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

NameError: name 'detections' is not defined #12

Open
xiaoleitongxue opened this issue Sep 3, 2022 · 2 comments
Open

NameError: name 'detections' is not defined #12

xiaoleitongxue opened this issue Sep 3, 2022 · 2 comments

Comments

@xiaoleitongxue
Copy link

I got a error NameError: name 'detections' is not defined
I checked the track.py line 58, The detections was defined as global variable.
I did't kown what cause this issue.

[ERROR] [1662190947.981701]: bad callback: <function callback_image at 0xffff93023310>
Traceback (most recent call last):
  File "/opt/ros/noetic/lib/python3/dist-packages/rospy/topics.py", line 750, in _invoke_callback
    cb(msg)
  File "/home/nx/portable/catkin_workspace/src/sort-deepsort-yolov3-ROS-ros-noetic/sort_track/src/track.py", line 58, in callback_image
    cv2.rectangle(cv_rgb, (int(detections[0][0]), int(detections[0][1])), (int(detections[0][2]), int(detections[0][3])), (100, 255, 50), 1)
NameError: name 'detections' is not defined
@losingby
Copy link

maybe you can open video stream and darknet node

@GiovanniBenitez
Copy link

Running into the same error @xiaoleitongxue. Were you able to figure it out?

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

No branches or pull requests

3 participants