You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 5, 2023. It is now read-only.
you can modify the code in "run.py" like this :
points, _ = detector(image) -> points, bbox = detector(image)
then ,draw bbox :
if bbox is not None:
bbox_pt = np.array(bbox ,dtype=np.int)
bbox_pt = np.reshape(bbox_pt,(-1,4,2))
cv2.polylines(frame,bbox_pt,1,POINT_COLOR,THICKNESS)
Hi @patrickwf your code works, could you tell me how can we use the bx, by, w and h provided by the model to draw bounding box ? Also I am not able to understand why do we need to use anchors.csv file.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi I have tried the below code to draw bbox around hand but not drawing properly
(handtracker.py)
bounding box offsets, width and height
bbox_dict = {
"x": dx,
"y": dy,
"w": w,
"h": h
}
cv2.rectangle(frame, (bbox_dict['x'], bbox_dict['y']),
(bbox_dict['x'] + bbox_dict['w'], bbox_dict['y'] + bbox_dict['h']), (0, 255, 0), 1)
please advise
The text was updated successfully, but these errors were encountered: