Here are some basic examples of using library OpenCV v4.5.1 writen in Visual Studio 2019. These examples were done while I was preparing my exam and project from the subject Machine vision on master studies, Department of Electronics, School of Electrical Engineering, University of Belgrade.
You need the following :
- Software: Microsoft Visual Studio 2019
- Library: opencv-4.5.1
- Environment Variable: OPENCV_DIR
- System variables: Path add %OPENCV_DIR%\bin
- Debug|x64: OpenCV_v451_dbg.props
- Release|x64: OpenCV_v451_rel.props
- Read image
- Read camera
- Detect number of dots on dices
- Track red circle on images
- Affine Transformation
- Perspective transform
- Affine Transformation with Trackbar
- Perspective transform - Book on the table
- Perspective transform - Mouse warp
- Calibration using 3D calibration object
- Calibration of camera with debug
- Position estimation with single camera
Examples are made using course materials, books and online resources
- Machine vision - course materials
- Adrian Kaehler and Gary Bradski, Learning OpenCV 3 - Computer Vision in C++ with the OpenCV Library
- Davide Pesce, Reading dice with OpenCV – Part 1
- Detect red circles in an image using OpenCV
- Find the Center of a Blob using OpenCV
- OpenCV modules
- Camera calibration With OpenCV