====== OpenCV ====== [[https://opencv.org/ | OpenCV ]] is a popular open-source library for Computer Vision and Image processing Applications. ===== Install OpenCV ===== Install the libraries for C++ and Python ```shell $ sudo apt update $ sudo apt install libopencv-dev python3-opencv ``` ===== Get source code ===== Clone the examples [[gh>sravansenthiln1/opencv-demos]] ```shell $ git clone https://github.com/sravansenthiln1/opencv-demos $ cd opencv-demos ``` The example demos consist of C++ and Python examples to try. ===== Run Examples ===== ==== Taking the Image Manipulation examples in C++ ==== === Enter the example directory === ```shell $ cd C++/image-manipulation ``` === Compile the application === ```shell $ make ``` === Copy the sample data === ```shell $ cp ../../samples/flower.png sample.png ``` === Run the example === ```shell $ ./main ``` ==== Taking the Image Manipulation examples in Python ==== === Enter the example directory === ```shell $ cd Python/image-manipulation ``` === Copy the sample data === ```shell $ cp ../../samples/flower.png sample.png ``` === Run the example === ```shell $ python3 main.py ```