Skip to content
Snippets Groups Projects
Commit fb56444e authored by michael.divia's avatar michael.divia
Browse files

Call 911

parent b34ee7a6
Branches
No related tags found
No related merge requests found
......@@ -58,8 +58,9 @@ with Hailo(hef_path) as hailo:
# --- Preprocess image ---
image = frame.astype(np.float32) / 255.0 # Normalize to [0, 1]
image = np.expand_dims(image, axis=0) # Add batch dimension
image = np.transpose(image, (0, 3, 1, 2)) # NHWC ? NCHW if required (check your model)
image = np.expand_dims(image, axis=0) # Add batch dimension → (1, H, W, C)
image = np.transpose(image, (0, 3, 1, 2)) # NHWC → NCHW
image = np.ascontiguousarray(image) # Ensure buffer is C-contiguous
print("-- Running inference...")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment