opencv sterevision
2014-11-26
0 0 0
no vote
Other
Earn points
+ Distance between two cameras in my project is 6 cm, you can chose father distance for the best result with your camera's type
+ Before running "Detect objects & compute distance to object" module, you must calibrate your cameras. How?
Change "#define CALIBRATION 0" to "#define CALIBRATION 1" in stdafx.h file.
After calibration, you will get new matrices in "CalibFile" folder (*.yml), if the result is good enough, change back "#define CALIBRATION 0"
Put this line into file stdafx.h: "#define ANALYSIS_MODE 1" as well.
+ I used chessboard 10x7 & 40 frames for calibration module, more details in "StereoFunctions.cpp" file. You can change these numbers suitable with your type of chessboard.
+ For problems with loading cameras, you should modify in "StereoGrabber.cpp". Put "index" appropriate with your device in cvCaptureFromCAM
+ Before running "Detect objects & compute distance to object" module, you must calibrate your cameras. How?
Change "#define CALIBRATION 0" to "#define CALIBRATION 1" in stdafx.h file.
After calibration, you will get new matrices in "CalibFile" folder (*.yml), if the result is good enough, change back "#define CALIBRATION 0"
Put this line into file stdafx.h: "#define ANALYSIS_MODE 1" as well.
+ I used chessboard 10x7 & 40 frames for calibration module, more details in "StereoFunctions.cpp" file. You can change these numbers suitable with your type of chessboard.
+ For problems with loading cameras, you should modify in "StereoGrabber.cpp". Put "index" appropriate with your device in cvCaptureFromCAM
c++
opencvsterevision
Related Source Codes
Local Path Planning Algorithm - DWA Algorithm
0
0
no vote
enDAQ-Shock-Data-Share-SRS-Blog
0
0
no vote
Calling chatGPT in a Windows application
0
0
no vote
Test Hello world
0
0
no vote
RCS calculation by one-way ray tracing
0
0
no vote
No comment