Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect dtype of cv2.line argument #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ruddyscent
Copy link

Fix the following error:
Traceback (most recent call last):
File "/home/loop_over_dataset.py", line 208, in
tools.show_objects_in_bev_labels_in_camera(detections, lidar_bev, image, frame.laser_labels, valid_label_flags, camera_calibration, configs_det)
File "/home/misc/objdet_tools.py", line 387, in show_objects_in_bev_labels_in_camera project_detections_into_bev(bev_map, detections, configs) File "/home/misc/objdet_tools.py", line 237, in project_detections_into_bev
cv2.line(bev_map, (corners_int[0, 0], corners_int[0, 1]), (corners_int[3, 0], corners_int[3, 1]), (255, 255, 0), 2)
cv2.error: OpenCV(4.6.0) 👎 error: (-5:Bad argument) in function 'line'

Overload resolution failed: > - Can't parse 'pt1'. Sequence item with index 0 has a wrong type

  • Can't parse 'pt1'. Sequence item with index 0 has a wrong type

Fix the following error:
Traceback (most recent call last):
  File "/home/loop_over_dataset.py", line 208, in <module>
    tools.show_objects_in_bev_labels_in_camera(detections, lidar_bev, image, frame.laser_labels, valid_label_flags, camera_calibration, configs_det)
  File "/home/misc/objdet_tools.py", line 387, in show_objects_in_bev_labels_in_camera                                                                              project_detections_into_bev(bev_map, detections, configs)                     File "/home/misc/objdet_tools.py", line 237, in project_detections_into_bev
    cv2.line(bev_map, (corners_int[0, 0], corners_int[0, 1]), (corners_int[3, 0], corners_int[3, 1]), (255, 255, 0), 2)
cv2.error: OpenCV(4.6.0) 👎 error: (-5:Bad argument) in function 'line'
> Overload resolution failed:                                                   >  - Can't parse 'pt1'. Sequence item with index 0 has a wrong type
>  - Can't parse 'pt1'. Sequence item with index 0 has a wrong type
@ruddyscent ruddyscent requested a review from a team as a code owner July 24, 2023 09:40
@ruddyscent ruddyscent requested review from SudKul and removed request for a team July 24, 2023 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant