Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Browsing all 1117 articles
Browse latest View live

sync failed when adding opencv as a dependence for my app

Hi, I want to use opencv-4.1.1-android-sdk in my app. My android studio version is 3.3.2 and sdk api is 28. I use Windows. I copied all libs under native/libs to my jniLibs folder. Then I import new...

View Article


Updated OpenCV4Android documentation

The documentation for installing/working with the Android library is INCREDIBLY outdated. If you search for how to install it, you will get a million different methods, all with their own...

View Article


C++ compilation issue migrating from 3.4.3 to 4.1.1 on Android

I am upgrading an Android JNI project from OpenCV 3.4.3 to 4.1.1. When building an issue came out : error: undefined reference to 'cv::dnn::dnn4_v20190621::Net::setInput(cv::_InputArray const&,...

View Article

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-to-build-opencv-3-3-x-for-android/) and I've followed all the steps in it, but the...

View Article

Why my App crashes when i applied Imgproc.resize

As the illustration shows, now i have the 'original' frame, not fill fully the screen. And i expect to got a fullscreen frame like below part, so i choose using imgproc.resize to achieve this, but when...

View Article


OpenCV Manager package was not founnd

Hi there! First, congratulations for you project on github! I'm trying to use it on my android device, I've added the OpenCVLibrary341 to the project in android studio, than it has been successfully...

View Article

How to remove the background image

I'm working on the Opencv project on Android. When I segmented images, I didn't know how to remove the background. Here is the source code for image segmentation. `private void Threshold() {...

View Article

Generate custom opencv .so for Android

Hello, I recently started using opencv for Android in a project, however I need to reduce apk size, and so i found...

View Article


face Recognition using opencv 3.4.3 use in Caused by:...

[C:\fakepath\Screenshot (20).png](/upfiles/1571891505375409.png)

View Article


How to create a new thread for object detection task?

I deploy a DNN in my android app, but the FPS is just 4 that makes the frames looks discontinuous, so i intend to create a new thread to handle the object detection task, Here is part of the code:...

View Article

Using calibrateCamera without Chessboard Java

I have 3D world points of an object as well as its image point. I have passed these into CalibrateCamera API and I am not getting right translation components and rotation matrix which would be...

View Article

How to bundle openCV *.so files into libopencv_java3.so (or single *.so file) ?

Hi I am trying to build opencv4.1.1+opencv_contrib modules 4.1.1 with android NDK r20. Think I am almost there: went through Cmake configure/generate, compilation of shared libs 100% OK for arm64-v8a....

View Article

speeding up camera preview in android opencv using CameraBridgeViewBase class...

I am working with android OpenCV and i am using CameraBridgeViewBase class. but when i am run my application and every time camera preview 5-6 second delay. public Mat onCameraFrame(CvCameraViewFrame...

View Article


Phash Algorithm in img_hash

I want to get the phash with opencv on Android then compare to a database of image phashes on a server. 1. Is the phash algorithm in opencv img_hash the same as one from phash.org at all? 2. I see...

View Article

opencv_java3.so

What is the purpose of this file? I built opencv 3.4.7 from source for android with the extra modules. it works but It didnt also build the this file, so i am using the one that you can just grab from...

View Article


How to detect and crop rectangle and apply transformation from an image?

Hello all, I am developing an application for detect driving license and capture image of driving license using surface view and detect driving license and crop from those it's four corner using...

View Article

OpenCV 4.1.2 cannot load .so library in android

SourceSets: sourceSets { main { assets.srcDirs = ['src/main/assets', 'src/main/assets/'] jni.srcDirs = ['src/main/jni', 'src/main/jniLibs/'] } } Splits: splits { abi { enable true reset() include...

View Article


speeding up camera preview in android opencv using CameraBridgeViewBase class...

I am working with android OpenCV and i am using CameraBridgeViewBase class. but when i am run my application and every time camera preview 5-6 second delay. public Mat onCameraFrame(CvCameraViewFrame...

View Article

Can i run OpenCV on the GPU pipeline if i plan to deploy it on Android and...

I am working on a tracking solution for an AR engine that needs to be deployed and work at minimum of 25 FPS on IOS and Android devices. So far i have been planning to optimize performance by multi...

View Article

App crash when using solvePnP on Android

Hi, I use OpenCV on Andoid. I can use it for face detection. But when I use it for solvePnp, the app crash. The code looks as follows: Mat mCameraMatrix = new Mat(3, 3, CvType.CV_64FC1); //assign...

View Article
Browsing all 1117 articles
Browse latest View live