You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm trying to run ex_particle_filter_object_tracking_video.py file on another sample video. I have changed the template.png image with another subframe as per my sample video for the filter. But, I am unable to find the contour with largest area using the binary mask and obtain its centre coordinates. I am getting the following error:
Traceback (most recent call last): File "ex_particle_filter_object_tracking_video.py", line 110, in <module> my_particle.update(x_center, y_center) NameError: name 'x_center' is not defined
Any idea how this can be resolved.
The text was updated successfully, but these errors were encountered:
This error should be due to the fact that you are using a different video.
For a different video you need to set new versions of the images template.png. The template.png should be a sub-frame of the target you want to follow. You can get the template by simply using a cropping tool on your video to cut a portion of the target element you want to track. If the template has not been set then it is not be possible for the detector to find the target color in the image, and as a consequence it will not be able to find center_x and center_y (centers of the target) resulting in the error that you got.
Hi,
I'm trying to run ex_particle_filter_object_tracking_video.py file on another sample video. I have changed the template.png image with another subframe as per my sample video for the filter. But, I am unable to find the contour with largest area using the binary mask and obtain its centre coordinates. I am getting the following error:
Traceback (most recent call last): File "ex_particle_filter_object_tracking_video.py", line 110, in <module> my_particle.update(x_center, y_center) NameError: name 'x_center' is not defined
Any idea how this can be resolved.
The text was updated successfully, but these errors were encountered: