# OpenCV library build for esp-idf This component used to build and include OpenCV library into the esp-idf as a component for esp32, esp32s2 and esp32s3 CPUs. Now the opencv could be build with IDF version >= 4.4. This component was tested with opencv V 4.7.0. More details about OpenCV can be found [here](https://opencv.org/). The project has next folders: opencv - OpenCV source code directory, added as git submodule opencv_contrib - additional modules for OpenCV, added as git submodule opencv_patch - folder with patch files for opencv and opencv_contrib examples - directory with opencv examples running on Esp32-cam board. ## The examples: feature2d - extraction of 2d features form the camera image. motion_detection - example detect the motion on the picture from camera and print the coordinates of the object to the console. object_tracking - track the object located on center of the camera. people_detection - the example has to detect people on the image. text_area_detection - detect area on the image where text expected.
# Feature2d example for IDF OpenCV component This example shows how to use OpenCV in ESP-IDF projects. This example requires esp32-eye or esp32-s3-eye development boards. The example use opencv library to extract 2D features from the image and compute the feature descriptors. To run the example on target please run: ``` idf.py -p PORT flash monitor ```
# Motion detection example for IDF OpenCV component This example shows how to use OpenCV in ESP-IDF projects. This example requires esp32-eye or esp32-s3-eye development boards. The example use opencv library to detect motion at camera image. To run the example on target please run: ``` idf.py -p PORT flash monitor ```
# Object tracking example for IDF OpenCV component This example shows how to use OpenCV in ESP-IDF projects. This example requires esp32-eye or esp32-s3-eye development boards. The example use opencv library to track objects on camera image. To run the example on target please run: ``` idf.py -p PORT flash monitor ```
# People detection example for IDF OpenCV component This example shows how to use OpenCV in ESP-IDF projects. This example requires esp32-eye or esp32-s3-eye development boards. The example use opencv library to detect people on camera image. To run the example on target please run: ``` idf.py -p PORT flash monitor ```
# Text area detection example for IDF OpenCV component This example shows how to use OpenCV in ESP-IDF projects. This example requires esp32-eye or esp32-s3-eye development boards. The example use opencv library to detect text areas on camera image. To run the example on target please run: ``` idf.py -p PORT flash monitor ```
idf.py add-dependency "espressif/opencv^4.7.0~2"
To create a project from this example, run:
idf.py create-project-from-example "espressif/opencv^4.7.0~2:features2d"
To create a project from this example, run:
idf.py create-project-from-example "espressif/opencv^4.7.0~2:motion_detection"
To create a project from this example, run:
idf.py create-project-from-example "espressif/opencv^4.7.0~2:object_tracking"
To create a project from this example, run:
idf.py create-project-from-example "espressif/opencv^4.7.0~2:people_detection"
To create a project from this example, run:
idf.py create-project-from-example "espressif/opencv^4.7.0~2:text_area_detection"