Ask Your Question

david.serrano's profile - activity

2019-10-21 11:48:30 -0500 marked best answer Issue building OpenCV 3.4.3 for Android

Hi,

I'm following a guide to build OpenCV 3.3.x for Android on Windows (http://amin-ahmadi.com/2017/08/13/how...) and I've followed all the steps in it, but the configuration fails with the following issue:

The C++ compiler

    "D:/androidNdks/android-ndk-r15c/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++.exe"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: D:/dev/opencv-3.4.3/android_build/CMakeFiles/CMakeTmp

    Run Build Command(s):D:/Programs/CMake/bin/cmake.exe cmTC_fc979/fast && CMake Error: The source directory "D:/dev/opencv-3.4.3/android_build/CMakeFiles/CMakeTmp/cmTC_fc979/fast" does not exist.
    Specify --help for usage, or press the help button on the CMake GUI.

I've tried with the following variations:

  • ANDROID_NDK: D/AndroidNdks/android-ndk-r15c
  • ANDROID_NDK: D/AndroidNdks/android-ndk-r16b
  • Using the cmake exe from Cmake: D:\Programs\CMake\bin
  • Using the make exe from Mingw: D:\Programs\Mingw\msys\1.0\bin
  • Updating the toolchain used from the CMake GUI
  • Swapping between Mingw Makefiles and MSYS Makefiles

I've also run CMake as an admin to make sure there are no write permission issues.

From looking online i think it's also worth noting that ma CMakeLists file is unchanged from the one downloaded from the source files (here)

Any help or pointers as to what i may be doing wrong would be greatly appreciated!

Thanks, David

2019-10-21 11:48:11 -0500 answered a question Issue building OpenCV 3.4.3 for Android

I fixed the build issue! Stupidly, CMake was not picking up the MingW Environment variable, and was also silently failin

2019-10-18 04:39:03 -0500 asked a question Issue building OpenCV 3.4.3 for Android

Issue building OpenCV 3.4.3 for Android Hi, I'm following a guide to build OpenCV 3.3.x for Android on Windows (http://

2019-10-18 04:38:59 -0500 asked a question Issue building OpenCV 3.4.3 for Android

Issue building OpenCV 3.4.3 for Android Hi, I'm following a guide to build OpenCV 3.3.x for Android on Windows (http://

2019-10-18 04:38:45 -0500 asked a question Issue building OpenCV 3.4.3 for Android

Issue building OpenCV 3.4.3 for Android Hi, I'm following a guide to build OpenCV 3.3.x for Android on Windows (http://

2019-05-22 04:53:39 -0500 marked best answer OpenCV captured image resolution vs Fotoapparat

Hi,

I'm working on a project where we need to recognise bubbles as part of an exam. We've been testing different approaches to image taking based on requirements (we need to overlay shapes on the live camera stream) and below are the results.

As we can see, when taking the images directly from Fotoapparat, the canny detection works much much better than the OpenCV implementation. I have tried to adjust the camera resolution (by extending JavaCameraView) amongst many other things, but none of them seem to work, OpenCV captures always perform poorly.

Can anyone point me in the right direction towards capturing one of the frames from OpenCV with the highest possible resolution available to the phone?

Thanks in advance :)

RESULTS:

OpenCV - Raw ROI

enter image description here

OpenCV - Canny transformation on ROI

enter image description here

Fotoapparat - Raw ROI (Compressed 31% so i could upload)

enter image description here

Fotoapparat - Canny transformation on ROI

enter image description here

2019-05-22 04:53:39 -0500 received badge  Scholar (source)
2019-05-22 04:51:40 -0500 edited question Android CameraBridgeViewBase - deliverAndDrawFrame insights

Android CameraBridgeViewBase - deliverAndDrawFrame method insights Hi all, I have a question regarding the protected v

2019-05-22 04:51:20 -0500 received badge  Editor (source)
2019-05-22 04:51:20 -0500 edited question Android CameraBridgeViewBase - deliverAndDrawFrame insights

Android CameraBridgeViewBase Hi all, I have a question regarding the protected void deliverAndDrawFrame(CvCameraViewFr

2019-05-22 04:39:45 -0500 asked a question Android CameraBridgeViewBase - deliverAndDrawFrame insights

Android CameraBridgeViewBase Hi all, I have a question regarding the protected void deliverAndDrawFrame(CvCameraViewFr

2019-03-14 04:35:59 -0500 received badge  Enthusiast
2019-02-28 21:40:53 -0500 received badge  Teacher (source)
2019-02-25 21:09:59 -0500 received badge  Self-Learner (source)
2019-02-25 05:30:17 -0500 answered a question OpenCV captured image resolution vs Fotoapparat

I finally figured it out! What was happening was that when trying to extract a frame from OpenCV's onCameraFrame it wa

2019-02-21 19:56:21 -0500 received badge  Student (source)
2019-02-20 10:36:09 -0500 asked a question OpenCV captured image resolution vs Fotoapparat

OpenCV captured image resolution vs Fotoapparat Hi, I'm working on a project where we need to recognise bubbles as par