-
Notifications
You must be signed in to change notification settings - Fork 2
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
Reference histogram #1
Comments
Hey Gianluca. Well, in order not to have to create an interface of some sort asking me what object I want to track in my program, I set the initial [x,y] of the histogram to be equal to [240,320] (this point was purely empirical based on my camera, screen, etc). So it will start tracking the object at this point (it will compute the histogram for it at the start of the program). In order to make this more interactive, we could implement a way of clicking in the screen to define the first point to be tracked, which i think is quite easy. I also commented some of the functions within the code, I hope things are clearer. If not, keep asking! Cheers, Eric |
Good morning, sir, import cv2 def click(event, x, y, flags, param):
video=cv2.VideoCapture('vtest.avi')
video.release() |
Hello egrinstein,
nice work. I am not understanding what is the reference histogram that you want to track.
For example, I would like to track the histogram of a particular object in a greyscale scene.
How can I do it with this code?
Thank you very much
Gianluca
The text was updated successfully, but these errors were encountered: