Skip to content

ThiBsc/myOpenCVprojects

Repository files navigation

My OpenCV projects

License: MIT openCV version
A repository of my opencv projects

The projects

Project Description Preview
moveTracking A program to track movement using openCV (only CPU) and send notifications via Telegram movetracking_preview
digit recognition A program to recognize handwritten number digit digit_preview
playing cards recognition A script to recognize playing cards playingcards_preview
color detection A script to detect a showed color doublegame_preview
scanner A script to make a scanner like render scanner_processing
double game A script to find the common element on the double's game doublegame_preview

OpenCV configuration

I compiled OpenCV 4.2 from source with the opencv_contrib and NONFREE algorithms, so to have the same configuration as me, follow these commands:

mkdir opencv_src && cd opencv_src
git clone https://github.com/opencv/opencv.git
git clone https://github.com/opencv/opencv_contrib.git
mkdir build && cd build
cmake -D CMAKE_BUILD_TYPE=RELEASE \
      -D CMAKE_INSTALL_PREFIX=/usr/local \
      -D OPENCV_GENERATE_PKGCONFIG=ON \
      -D OPENCV_ENABLE_NONFREE=ON \
      -D OPENCV_EXTRA_MODULES_PATH=~/opencv_src/opencv_contrib/modules ../opencv
# find out number of CPU cores in your machine
nproc # return 12 for me
make -j12
sudo make install
pkg-config --modversion opencv4
python3 -c "import cv2; print(cv2.__version__)"