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

Issue running example 3a #20

Open
sjm5467 opened this issue Feb 5, 2020 · 0 comments
Open

Issue running example 3a #20

sjm5467 opened this issue Feb 5, 2020 · 0 comments

Comments

@sjm5467
Copy link

sjm5467 commented Feb 5, 2020

I ran your example 3a and was fine until I ran the tracking code and got the error below.

I had some issues with the install, so maybe I'm missing something there.
Thanks,
~Sara


AttributeError Traceback (most recent call last)
in ()
25 frame = cv2.resize(frame, None, fx = scaling, fy = scaling, interpolation = cv2.INTER_LINEAR)
26 thresh = tr.colour_to_thresh(frame, block_size, offset)
---> 27 final, contours, meas_last, meas_now = tr.detect_and_draw_contours(frame, thresh, meas_last, meas_now, min_area, max_area)
28 row_ind, col_ind = tr.hungarian_algorithm(meas_last, meas_now)
29 final, meas_now, df = tr.reorder_and_draw(final, colours, n_inds, col_ind, meas_now, df, mot, this)

/Users/Sara/tracktor-master/examples/tracktor.py in detect_and_draw_contours(frame, thresh, meas_last, meas_now, min_area, max_area)
74
75 i = 0
---> 76 meas_last = meas_now.copy()
77 del meas_now[:]
78 while i < len(contours):

AttributeError: 'list' object has no attribute 'copy'

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