Skip to content

A repository of my opencv projects

License

NotificationsYou must be signed in to change notification settings

ThiBsc/myOpenCVprojects

Repository files navigation

My OpenCV projects

License: MITopenCV version
A repository of my opencv projects

The projects

ProjectDescriptionPreview
moveTrackingA program to track movement using openCV (only CPU) and send notifications via Telegrammovetracking_preview
digit recognitionA program to recognize handwritten number digitdigit_preview
playing cards recognitionA script to recognize playing cardsplayingcards_preview
color detectionA script to detect a showed colordoublegame_preview
scannerA script to make a scanner like renderscanner_processing
double gameA script to find the common element on the double's gamedoublegame_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://.com/opencv/opencv.git
git clone https://.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__)"