OpticFlow
This is a code base for optical flow estimation using Python language, integrating various methods of OpenCV.
Install / Use
/learn @gongpx20069/OpticFlowREADME
OpticFlow
This is a code base for optical flow estimation using Python language, integrating various methods of OpenCV.
Dependency Library
- Opencv:
pip3 install opencv-python - opencv-contrib:
pip3 install opencv-contrib-python==3.3.0.10
pip3 install opencv-contrib-python==3.4.2.16
How to use the script
What if we need to capture the dense optical flow between two images? We only need the following code:
import cv2
from opencv_flow import OpticFlow
of = OpticFLow(mode = 'pcaflow')
img1 = cv2.imread('test/1.jpg')
img2 = cv2.imread('test/2.jpg')
flow = of.getflow(img1, img2)
You can check the wiki docs for specific methods!
Compatible with Pytorch
In the quick start section, all of our data structures are based on numpy. In this chapter, we mainly make the data structure compatible with Pytorch and develop more functions. You can check the wiki docs for specific methods!
Related Skills
node-connect
348.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.9kCreate 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
348.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
348.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
