(android) Make background transparent in opencv.
Hi, I am using OpenCV android library to extract an image from background, for this i have used grabcut() method. Here is the code : Imgproc.grabCut(imgC3, mask, rect, bgdModel, fgdModel, 1...
View ArticleImage Detection if it is Registered or Not.
I am making an app which it can detect image if I register it on application or not. How do I implement this on my application?? Please.. Where can I put the image that can be detected? For example I...
View Articleunable to use libopencv_java4.so in android studio with c++
After compilation it is problem to use new opencv 4.0 library in Android studio with c++, used new library libopencv_java4.so (same problem with x86_64, arm7, arm8) send errors during compilation in...
View ArticleCameraCalibration example computes NAN
I am using OpenCV 3.2.0's example project for achieving CameraCalibration. I have a chessboard checker printed which I use to check for a 4 x 6 pattern of checkers. For the sample image, I use the...
View ArticleNeed Equivalent code in JAVA
(numClasses, height, width) = output.shape[1:4] # our output class ID map will be num_classes x height x width in # size, so we take the argmax to find the class label with the # largest probability...
View ArticleIs Neon Optimization enabled by default in Official OpenCV 3.4.4 prebuilt...
I need to know this as my online search never provided me the answer. a) Is the NEON optimization enabled in the default official precompiled android Opencv libraries? If No, then is there any reason...
View ArticleOpenCV (android) : onCameraFrame() image preview getting blurred
Hello, i need clear preview when onCameraFrame() is called. because i am working on OCR so i need read text from an image it is only possible when image is clear. right now image is so blurry so it is...
View ArticleDNN.net.forward() in Android
String model = getPath("model.net", getApplicationContext()); net = Dnn.readNet(model); Mat frame = inputFrame.rgba(); // Imgproc.cvtColor(frame, frame, Imgproc.COLOR_RGBA2RGB); // Forward image...
View ArticleOpencv (3.2.0) Compile Android with NEON provide a lot of errors (3.4.4 works...
##### System information (version) - OpenCV => 3.2.0 - Operating System / Platform => Linux Ubuntu 16.04 / Android - 7 , ARM (armeabiv7-a) - Compiler => Clang 5.0 - Opti => NEON (if...
View ArticleHow to get one-pixel value from grayscaleImage(java,Android)
After using code below changedImg = new Mat(); Imgproc.cvtColor(sampledImg, changedImg, Imgproc.COLOR_RGB2GRAY); changedImg.convertTo(changedImg,CvType.CV_8UC1); int rows = changedImg.rows(); int...
View ArticleGlare detection in image
Hi all, i'm trying to detect glare in image using opencv 3.3.1 in my android application. i am use GaussianBlur and than using MinMaxLocResult get the min and max value of the glare. it's working find...
View ArticleIs it possible to compare 1 to many images in OpenCV??
I have many images which is in digital format (jpg, png, etc).. Then if i capture image from camera then it will be recognize..!...
View ArticleDifference outputs when resize image by OpenCV in languages and platform...
I use functions: Python: > resized_image = cv2.resize(crop_image, (160, 160)) Java: > Size sz = new Size(160, 160);> Mat resizeMat = new Mat();> Imgproc.resize(cropImage, resizeMat, sz);...
View ArticleRAW10 decoder? (MIPI, Android)
Does OpenCV have a decoder for the RAW10 format as described here? https://developer.android.com/reference/android/graphics/ImageFormat.html#RAW10
View ArticleDnn forward result has rows = -1, colums = -1
Hi there, I'm trying to translate this **WORKING Python code** for Neural Transfer Style on **Java (Android).** (the original work is from...
View ArticleStop beep audio from loop
I have added a beep audio in my program. need it to be in a while loop but the beep keeps looping when i launch my program. Do i add a if statement? Please help
View ArticleOpencv (3.2.0) Compile Android with NEON provide a lot of errors (3.4.4 works...
##### System information (version) - OpenCV => 3.2.0 - Operating System / Platform => Linux Ubuntu 16.04 / Android - 7 , ARM (armeabiv7-a) - Compiler => Clang 5.0 - Opti => NEON (if...
View ArticleDnn.forward crash in Android ndk
Hi, I am using OpenCV for Android 4.01. I am trying to use caffe dnn for face detection. I construct a Mat image for the captured image. Then I use haar-based face detection for detecting frontal face...
View Articleusing open3.4.0 build failed
1、I build opencv 3.4.0 in linux env, and using ndk r10d the cmake config parameter is like the following: cmake -DCMAKE_TOOLCHAIN_FILE=android.toolchain.cmake -DANDROID_NDK=/home/XXX/android-ndk-r10d...
View ArticleHow to get one-pixel value from grayscaleImage(java,Android)
After using code below changedImg = new Mat(); Imgproc.cvtColor(sampledImg, changedImg, Imgproc.COLOR_RGB2GRAY); changedImg.convertTo(changedImg,CvType.CV_8UC1); int rows = changedImg.rows(); int...
View Article