mirror of
https://gitcode.com/gh_mirrors/es/esp32-opencv.git
synced 2025-08-14 18:50:49 +08:00

- For now, the example gets an image from the camera and puts it on the LCD - TODO: image is rotated and refresh rate not good
32 lines
1.1 KiB
CMake
Executable File
32 lines
1.1 KiB
CMake
Executable File
idf_component_register(
|
|
SRCS
|
|
main.cpp
|
|
app_screen.cpp
|
|
app_camera.c
|
|
|
|
system.cpp
|
|
|
|
INCLUDE_DIRS
|
|
.
|
|
include
|
|
opencv
|
|
)
|
|
|
|
# Be aware that the order of the librairies is important
|
|
add_prebuilt_library(opencv_imgcodecs "opencv/libopencv_imgcodecs.a")
|
|
add_prebuilt_library(libpng "opencv/3rdparty/liblibpng.a")
|
|
add_prebuilt_library(libzlib "opencv/3rdparty/libzlib.a")
|
|
add_prebuilt_library(opencv_imgproc "opencv/libopencv_imgproc.a")
|
|
add_prebuilt_library(opencv_core "opencv/libopencv_core.a")
|
|
add_prebuilt_library(ade "opencv/libade.a")
|
|
|
|
target_link_libraries(${COMPONENT_LIB} PRIVATE opencv_imgcodecs)
|
|
target_link_libraries(${COMPONENT_LIB} PRIVATE libpng)
|
|
target_link_libraries(${COMPONENT_LIB} PRIVATE libzlib)
|
|
target_link_libraries(${COMPONENT_LIB} PRIVATE opencv_imgproc)
|
|
target_link_libraries(${COMPONENT_LIB} PRIVATE opencv_core)
|
|
target_link_libraries(${COMPONENT_LIB} PRIVATE ade)
|
|
|
|
# create spiffs partition (named 'storage') from the ../spiffs_image directory
|
|
#spiffs_create_partition_image(storage ../spiffs_image FLASH_IN_PROJECT)
|