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

img #16

Open
naroberto opened this issue Aug 26, 2019 · 0 comments
Open

img #16

naroberto opened this issue Aug 26, 2019 · 0 comments

Comments

@naroberto
Copy link

naroberto commented Aug 26, 2019

Hi Vivek,
I get the following error when I run the script. I don't understand what is the issue.
I am using the new version tracktor.py

Traceback (most recent call last):
File "/Users/rob/PycharmProjects/Flume_tracktor/MainCodeMac.py", line 76, in
final, contours, meas_last, meas_now = tr.detect_and_draw_contours(frame, thresh, meas_last, meas_now, min_area, max_area)
File "/Users/rob/PycharmProjects/Flume_tracktor/tracktor.py", line 71, in detect_and_draw_contours
img = cv2.cvtColor(img, cv2.COLOR_GRAY2BGR)
UnboundLocalError: local variable 'img' referenced before assignment

Cheers best
Robert

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

1 participant