mediapipe icon indicating copy to clipboard operation
mediapipe copied to clipboard

Error in detection.location_data

Open omkarmohanjoshi opened this issue 3 years ago • 2 comments

Hi

I am trying to get bounding box of the pose estimate using draw_detection function given in drawing_utils.py but I am getting error in location_data.

Error is - "AttributeError: 'google.protobuf.pyext._message.FieldProperty' object has no attribute 'format'"

detection = detection_pb2.Detection giving me this error. I am not sure what input draw_detection needs for detection parameter. Please hep me understand

omkarmohanjoshi avatar Jun 17 '22 05:06 omkarmohanjoshi

Hi @omkarmohanjoshi , Please see this for drawing the bounding box https://github.com/google/mediapipe/blob/master/mediapipe/python/solutions/drawing_utils.py#:~:text=def%20draw_detection(,color%2C%20bbox_drawing_spec.thickness)

sureshdagooglecom avatar Aug 02 '22 15:08 sureshdagooglecom

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you.

google-ml-butler[bot] avatar Aug 09 '22 16:08 google-ml-butler[bot]

Closing as stale. Please reopen if you'd like to work on this further.

google-ml-butler[bot] avatar Aug 16 '22 16:08 google-ml-butler[bot]

Are you satisfied with the resolution of your issue? Yes No

google-ml-butler[bot] avatar Aug 16 '22 16:08 google-ml-butler[bot]