object-tracker icon indicating copy to clipboard operation
object-tracker copied to clipboard

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

Open nicole8806 opened this issue 9 years ago • 5 comments

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

nicole8806 avatar May 13 '16 06:05 nicole8806

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

ttikkanen avatar Dec 05 '16 08:12 ttikkanen

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

ghost avatar May 10 '17 18:05 ghost

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.

bhatshashank avatar Aug 03 '17 13:08 bhatshashank

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

ttikkanen avatar Oct 03 '17 11:10 ttikkanen

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

virajmavani avatar Apr 17 '18 10:04 virajmavani