To optimize Scanning and Processing procedures

Hello there,

Running a fresh install of OpenCV 4.5, got myself wondering if there were a combination of parameters to run in the “cmake” procedure in order to optimize image scanning and processing.

For example, what library or dependency must be added in the following command in order to have better image scanning and processing results?

best wishes,
I

i.e. installation source has been built with the following command line

 cmake -D CMAKE_BUILD_TYPE=RELEASE \
     -D CMAKE_INSTALL_PREFIX=~/app/opencv45 \
     -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules 
     -D ENABLE_NEON=ON \
     -D ENABLE_VFPV3=ON \
     -D OPENCV_PYTHON3_INSTALL_PATH=/home/pi/.local/lib/python3.7/site-packages \
     -D WITH_OPENMP=ON \
     -D BUILD_TIFF=ON \
     -D WITH_FFMPEG=ON \
     -D WITH_TBB=ON \
     -D BUILD_TBB=ON \
     -D BUILD_TESTS=OFF \
     -D WITH_EIGEN=OFF \
     -D WITH_V4L=ON \
     -D WITH_LIBV4L=ON \
     -D WITH_VTK=OFF \
     -D WITH_QT=ON \
     -D WITH_OPENGL=ON \
     -D OPENCV_ENABLE_NONFREE=ON \
     -D INSTALL_C_EXAMPLES=ON \
     -D INSTALL_PYTHON_EXAMPLES=ON \
     -D BUILD_NEW_PYTHON_SUPPORT=ON \
     -D BUILD_opencv_python3=TRUE \
     -D OPENCV_GENERATE_PKGCONFIG=ON \
     -D BUILD_EXAMPLES=OFF …

you should explain that. or better yet, SHOW what you mean.

why do you think that’s not optimized already? why do you think there’s room for improvement?

you should explain that. or better yet, SHOW what you mean.

You’re correct. I should come with evidences.

why do you think that’s not optimized already? why do you think there’s room for improvement?

not thinking, but wondering. And I Agree. I have no complaining. I’m just planning ahead.

Later on, I’m going to post my results on those matter. Of course, if there are any matter at all! rsrs :slight_smile:

you already got those:

and that’s probably all there is to it (on the pi)

@berak Thanks! :pray:

The complete command line now has been updated

cmake -D CMAKE_BUILD_TYPE=RELEASE
-D CMAKE_INSTALL_PREFIX=$cwd/installation/OpenCV-"$cvVersion"
-D INSTALL_C_EXAMPLES=ON
-D INSTALL_PYTHON_EXAMPLES=ON
-D ENABLE_NEON=ON
-D ENABLE_VFPV3=ON
-D WITH_OPENMP=ON
-D WITH_TBB=ON
-D BUILD_TBB=ON
-D WITH_EIGEN=OFF
-D WITH_V4L=ON
-D OPENCV_PYTHON3_INSTALL_PATH=$cwd/OpenCV-$cvVersion-py3/lib/python3.7/site-packages
-D WITH_QT=ON
-D WITH_OPENGL=ON
-D OPENCV_EXTRA_MODULES_PATH=…/…/opencv_contrib/modules
-D BUILD_EXAMPLES=ON …