Ask Your Question

CarlosDelfino's profile - activity

2016-10-19 08:05:51 -0600 commented question OpenCV on STM32 (Cortex M4)

I do not get to say that this is impossible, but I think now unlikely especially in Cortex-M4, perhaps the Cortex-M7 which has higher speeds, even on a Cortex-A to 1Ghz'm having problems especially with perspective transfomrações that They require a lot of processing.

It seems to me that what weighs more in OpenCV is the destruction of the object cv :: Mat.

Please inform destalhes the problem you are having, if any have interest in working on this port.

2016-10-18 12:37:13 -0600 received badge  Scholar (source)
2016-10-18 12:37:05 -0600 answered a question What better way of passing extra parameters to compile?

The solution to this question is quite simple as suggested in the comments, be resolved by reading the CMake manual follows the summary of what I learned on the subject:

Just replace "EXTRA_" to "CMAKE_" in the name of the variable that parameterize the cmake command:

CMAKE_CXX_FLAGS_RELEASE
CMAKE_C_FLAGS_RELEASE

He does not use these post-fixed variables "_Release" or even "_DEBUG" the joint compilation, unless the variable CMAKE_BUILD_TYPE is used to determine the type of compilation to be done, selecting the appropriate setting for each use.

So the solution to pass extra parameters to compile OpenCV is using the variables:

CMAKE_CXX_FLAGS

    CMAKE_C_FLAGS

In addition it may be required for additional parameters to the linking process to use that variable:

CMAKE_EXE_LINKER_FLAGS

More information can be found at:

2016-10-18 12:35:44 -0600 answered a question How to select package type on build distribution processes

The package selection is through the variables, such as the three lists below which represent respectively the creation of integradl TGZ file with shell file, a file type TZ and the type tar.gz. to activate just replace OFF by ON (obviously)

CPACK_BINARY_STGZ = OFF
CPACK_BINARY_TZ = OFF
CPACK_BINARY_TGZ = OFF

Among several other options, which can be found here: https://cmake.org/cmake/help/v3.3/mod...

2016-10-18 12:24:36 -0600 answered a question Selecting the name of the package to be created during the building process compiled OpenCV.

The choice of the package name is made by use of the variable

CPACK_PACKAGE_FILE_NAME

You can use other variables to help you compose your package, such as:

CPACK_PACKAGE_FILE_NAME = $ {CPACK_PACKAGE_NAME} - $ {} CPACK_PACKAGE_VERSION -NanoPI-M3-Cortex-A53-ARMv8-A - $ {} CMAKE_BUILD_TYPE
2016-10-18 02:51:06 -0600 received badge  Enthusiast
2016-10-16 10:58:52 -0600 asked a question Selecting the name of the package to be created during the building process compiled OpenCV.

The packet creating proceso for distribution creates three packets being two type tar and a third compressed binary type in a shell file.

how can I select the name of these files created or intervene in this name.

For example, this were created in my build configured with the make command:

  • OpenCV-unknown-armv7l.sh
  • OpenCV-unknown-armv7l.tar.gz
  • OpenCV-unknown-armv7l.tar.Z

Comando usado para configuração:

cmake -G "Unix Makefiles" \
 -D CMAKE_CXX_COMPILER=/usr/bin/arm-linux-gnueabihf-g++ \
 -D CMAKE_C_COMPILER=/usr/bin/arm-linux-gnueabihf-gcc \
 -D CMAKE_BUILD_TYPE=RELEASE-NANOPI \
 -D CMAKE_INSTALL_PREFIX=/usr/local \
 -D WITH_TBB=ON \
 -D WITH_V4L=ON \
 -D WITH_QT=ON \
 -D WITH_OPENGL=ON \
 -D WITH_IMAGEIO=ON \
 -D WITH_GSTREAMER=ON \
 -D ENABLE_NEON=ON \
 -D ENABLE_FAST_MATH=ON \
 -D BUILD_SHARED_LIBS=OFF \
 -D BUILD_NEW_PYTHON_SUPPORT=OFF \
 -D BUILD_EXAMPLES=OFF \
 -D BUILD_FAT_JAVA_LIB=OFF \
 -D BUILD_TBB=ON \
 -D BUILD_opencv_apps=OFF -D BUILD_opencv_nofree=OFF -D BUILD_opencv_java=OFF \
 -D BUILD_opencv_objdetect=ON -D BUILD_opencv_core=ON -D BUILD_opencv_imgproc=ON -D BUILD_opencv_ml=ON -D BUILD_opencv_flann=OFF \
 -D BUILD_opencv_highgui=ON \
 -D BUILD_OPTIONAL=Off  \
 -D BUILD_DOCS=OFF \
 -D INSTALL_C_EXAMPLES=OF \
 -D INSTALL_PYTHON_EXAMPLES=OFF \
 -D INSTALL_TO_MANGLED_PATHS=ON \
 -D INSTALL_CREATE_DISTRIB=ON \
 -D INSTALL_TESTS=OFF \
 -D CMAKE_VERBOSE=ON \
 ..
2016-10-16 10:53:42 -0600 asked a question How to select package type on build distribution processes

When compiling OpenCV the package creation process creates three packages type, as must be done to select only a specific package type in the building?

2016-10-16 05:36:22 -0600 commented question What better way of passing extra parameters to compile?

I need more two days for answer

2016-10-16 05:27:09 -0600 commented question What better way of passing extra parameters to compile?

Correct is: The correct is: CMAKE_CXX_FLAGS and CMAKE_C_FLAGS. without _RELEASE. and for linker is CMAKE_EXE_LINKER_FLAGS

2016-10-16 01:21:00 -0600 commented question What better way of passing extra parameters to compile?

@berak I'll do it tomorrow or on Monday without fail.

I'm finishing the build and will do some tests to see if everything is ok.

not appear the parameters for the Linker, I need to make sure that the result was positive.

Thank you for guidance.

2016-10-16 01:13:34 -0600 received badge  Autobiographer
2016-10-16 00:40:14 -0600 commented question What better way of passing extra parameters to compile?

And I need tool extra flags for LD.

2016-10-16 00:39:52 -0600 commented question What better way of passing extra parameters to compile?
2016-10-16 00:10:41 -0600 commented question What better way of passing extra parameters to compile?

hummmm, CMAKE.....

2016-10-16 00:10:05 -0600 commented question What better way of passing extra parameters to compile?

new update for make clear

2016-10-16 00:09:48 -0600 received badge  Editor (source)
2016-10-16 00:03:42 -0600 commented question What better way of passing extra parameters to compile?

@berak either both to the C as C ++..

2016-10-15 23:34:25 -0600 asked a question What better way of passing extra parameters to compile?

I am compiling OpenCV in order to make it more optimized possible to run on Cortex-A53 processor in a NanoPI M3 produced by FriendlyARM.

I have used in my projects the following keys:

-mtune=cortex-a53 -mcpu=cortex-a53 -mfloat-abi=hard -march=armv8-a+crc

Enabling the CMake with the following option besides "ENABLE_NEON = ON:

 -D EXTRA_C_FLAGS_RELEASE="-mtune=cortex-a53 -mcpu=cortex-a53 -mfloat-abi=hard -march=armv8-a+crc"

I did not succeed because the OpenCV settings do not use it.

What better way of passing those extra parameters to compile?

I do this:

mkdir CortexA53Release
cd CortexA53Release
cmake -G "Unix Makefiles" \
 -D CMAKE_CXX_COMPILER=/usr/bin/arm-linux-gnueabihf-g++ \
 -D CMAKE_C_COMPILER=/usr/bin/arm-linux-gnueabihf-gcc \
 -D CMAKE_BUILD_TYPE=RELEASE-NANOPI \
 -D CMAKE_INSTALL_PREFIX=/usr/local \
 -D WITH_TBB=ON \
 -D WITH_V4L=ON \
 -D WITH_QT=ON \
 -D WITH_OPENGL=ON \
 -D WITH_IMAGEIO=ON \
 -D WITH_GSTREAMER=ON \
 -D ENABLE_NEON=ON \
 -D ENABLE_FAST_MATH=ON \
 -D BUILD_SHARED_LIBS=OFF \
 -D BUILD_NEW_PYTHON_SUPPORT=OFF \
 -D BUILD_EXAMPLES=ON \
 -D BUILD_FAT_JAVA_LIB=OFF \
 -D BUILD_TBB=ON \
 -D INSTALL_C_EXAMPLES=ON \
 -D INSTALL_PYTHON_EXAMPLES=OFF \
 -D INSTALL_TO_MANGLED_PATHS=ON \
 -D INSTALL_CREATE_DISTRIB=ON \
 -D INSTALL_TESTS=ON \
 -D EXTRA_C_FLAGS_RELEASE="-mtune=cortex-a53 -mcpu=cortex-a53 -mfloat-abi=hard -march=armv8-a+crc" \
 -D EXTRA_CXX_FLAGS_RELEASE="-mtune=cortex-a53 -mcpu=cortex-a53 -mfloat-abi=hard -march=armv8-a+crc" \
 ..

And get:

...

-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    EXTRA_CXX_FLAGS_RELEASE
    EXTRA_C_FLAGS_RELEASE


-- Build files have been written to: /home/fa/Workspace/opencv/CortexA53Release
2016-10-04 22:33:17 -0600 received badge  Supporter (source)