Skip to content

HighTemplar-wjiang/pyqt5_opencv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyqt5_opencv

Cross-platform object tracking tool using pyqt5 and opencv3

Dependencies:

  • Python3
  • PyQt5
  • OpenCV3

Usage:

  • Run "python qtcv.py"
  • Open your web camera or load a video file
  • (Optional) Calibrate: click-and-drag to select a reference line for real-world measurement, this will tell you the displacement of your tracking point in centimeter
    • Note: the assumption is that the distance between each point of your video surface and the lens is identical
  • Click-and-drag to select the object you want to track
  • Click Start to tracking, you may click Pause at any time as well. -- You may also use Start and Pause to position the frame in which you trakcing object is

Data:

  • In the right-top corner, the real-time pixel coordinate of your tracking point and its measured displacement appear in the first line and the second line respectively
  • When the tracking finished, tracking data named after (current time).csv will be saved in the ./data folder

About

Object tracking using pyqt5 and opencv3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages