OpticalFlowTracking
This contains two programs with vehicular tracking based the sparse and dense optical flow algorithms of Lucas-Kanade and Gunnar-Farneback.
Install / Use
/learn @aznmahou/OpticalFlowTrackingREADME
OpticalFlowTracking
This repository contains two programs with vehicular tracking based the sparse and dense optical flow algorithms of Lucas-Kanade and Gunnar-Farneback. Five test videos are also provided along with a paper written about these programs.
Refer to the paper "Optical Flow Based Vehicular Tracking" for all aspects of the programs including limitations, advantages and possible improvements.
Please note that video 4 and 5 have been compressed to allow upload to GitHub as it was limited to 25 MB.
Requirements
- Python
- OpenCV
- Numpy Library
How to run
To run each file, simple download and run the python file. This will ouput a window with the tracking drawn onto the initial video.
To run different provided test files, please edit the variable "cap" near the top of the file. This can be done by commenting out the current running video with #. Proceed to uncomment the test file you wish to run by removing the # infront of its cap variable.
To run files outside of the provided ones, you can edit the filename inside the quotation marks and include your video. Please note this video must be in the same folder as the python file. An example of this is changing "cap = cv2.VideoCapture("test5.mp4")" to "cap = cv2.VideoCapture("carVideo.mp4")" to run a video named carVideo.mp4.
Related Skills
node-connect
351.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
