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

can not work by 'p' and 'esc' key #4

Open
nicole8806 opened this issue May 13, 2016 · 5 comments
Open

can not work by 'p' and 'esc' key #4

nicole8806 opened this issue May 13, 2016 · 5 comments

Comments

@nicole8806
Copy link

Hi, I don't know why the key can't wok, and I cannot label the target to tracking

@ttikkanen
Copy link

Confirmed, keyboard does not work at all on Linux, OpenCV 2.4.

@ghost
Copy link

ghost commented May 10, 2017

I am also facing this issue doesn't work after pressing key 'p'. Please help someone ??

@bhatshashank
Copy link

Hi, Even I was facing similar problem, was not able to pause the video by pressing 'p'.
Solution to make it work is given below.

In object-tracker-single.py & object-tracking-multiple.py
Replace line 23 by 2 lines given below
Line23 : if(cv2.waitKey(10)==ord('p')):
Replace :
key=cv2.waitKey(1) & 0xff
if(key==ord('p'))

In get_points.py
Replace line 52 by command given below
Line 52: key = cv2.waitKey(30)
Replace :
key=cv2.waitKey(1) & 0xff

By changing the above mentioned lines one will be able to execute the tracker successfully.

@ttikkanen
Copy link

@bhatshashank please open a pull request if you think that solved the problem

virajmavani added a commit to virajmavani/object-tracker that referenced this issue Apr 17, 2018
virajmavani added a commit to virajmavani/object-tracker that referenced this issue Apr 17, 2018
virajmavani added a commit to virajmavani/object-tracker that referenced this issue Apr 17, 2018
@virajmavani
Copy link

I have solved the issue. Opened a pull request. Until not accepted, you can use my forked repo.

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

4 participants