how to draw a shape on top of a playing video by clicking a mouse button in opencv python

前端 未结 1 1528
醉话见心
醉话见心 2021-01-15 03:06

Well, to begin with, I should admit that it is a pretty long question and I failed to find possible solutions through googling

I have a video in which an intruder tr

相关标签:
1条回答
  • 2021-01-15 03:29

    adding cv2.waitKey(0) will pause your while loop indefinitely! It will resume only after any key press.

    I think what you're trying to achieve is object tracking using Background Subtraction. Refer Here and see if it fits your requirements.

    EDIT:

    I guess you want to draw a freehand shape for intrusion area! This Link will guide you to do it. I hope this helps

    0 讨论(0)
提交回复
热议问题