opencv4android

OpenCV with OpenNI on Android Device

倖福魔咒の 提交于 2019-12-12 04:07:43
问题 TL;DR In Android Studio using the Java version of OpenNI, the following line of code deletes OpenNI frame data and I don't know how to put processed data back into the same VideoFrameRef or how to process it with OpenCV: byte[] fb = frameBuffer.array(); where frameBuffer is of type ByteBuffer. Can somebody show me how to do so, or how to simply compile OpenCV with OpenNI support so I can do all the initialization etc in C++ before sending processed data back to Java to be displayed? Edit The

What version of libpng is used in different versions of OpenCV?

微笑、不失礼 提交于 2019-12-12 03:48:37
问题 In my application I am reading .png images and doing some processing. The output with OpenCV 2.4.9 and OpenCV 3.0.0 (both for windows) are not bit exact. What may be the potential error. Is there any difference in libpng in both the versions which is causing the problem. Also is there any possibility that the libs (e.g. libpng) or the version of libs is different in same version (say 2.4.9 or 3.0.0) of OpenCV for windows and OpenCV for Android. 回答1: Is there any difference in libpng in both

Compiling OpenCV library for image stitching using android NDK in cygwin throws error from creating libutils.so

牧云@^-^@ 提交于 2019-12-12 03:36:34
问题 I am using OpenCV-2.4.9 sdk and OpenCV stitching library for creating panorama image which is to be compiled and creating .so files to libs folder inside application I am using cygwin on windows to compile jni directory from project. it gives error like picture shown below: tried in windows 7,8 (x86,x64) but it gives same error successfully compiled other OpenCV example libraries but this one not compiling successfully. Does anyone know what is causing this error to be thrown? 来源: https:/

No implementation found for void org.opencv.core.Core.rotate_0

て烟熏妆下的殇ゞ 提交于 2019-12-11 14:28:17
问题 I build the OpenCVLib taught by here and done necessarily stuff in the OpenCVLib to call this in mavenLocal. Then I publish it as mavenLocal but I didn't take the libs to put into my app folder as I already have mavenLocal. I have tried converting bitmap to mat without a problem. But I can't rotate the Mat. public Bitmap rotateMat(Bitmap bitmap, int i){ Mat mat = helper.bitmapToMat(bitmap); switch (i) { case 1: Core.rotate(mat, mat, 0); break; case 2: Core.rotate(mat, mat, 2); break; case 3:

(process:10728): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed

放肆的年华 提交于 2019-12-11 12:06:33
问题 I am using cap = cv.VideoCapture(0) When opening the camera to record video, the program will work but he prompts me ((process:10728): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed ) I don't know what the reason is, is it because of a problem with your cmake or a problem with the installation? 回答1: I had similar issue in version 3.4.4, compiled with gstreamer support. Syntax "cv2.VideoCapture(0)" just stopped working. I had all gst-* libraries

Android OpenCV Paper Sheet detection

萝らか妹 提交于 2019-12-11 11:12:29
问题 I think this question is asked before but i didnt find a sample or solution for my problem. I am new to opencv and i want to use the OpenCV CameraPreview for paper sheet detection. In my sample app i use opencv 3.0.0 with static initialization. I understand that object recognition can done with these steps: Make the input image Canny Blur the Canny Image Find Contours on the blurred Canny Image Search for rectangles etc Draw lines or fill the rectangle with half transparent color My problem

Cannot link OpenCV Android inside Qt

梦想的初衷 提交于 2019-12-11 09:33:01
问题 I tried to use OpenCV with Android inside Qt, but I cannot successfully link it inside Qt, I get some undefined reference errors to the side libraries (like libjpeg, libtegra_hal etc.). I used this SO answer as a reference guide. This is my .pro file - INCLUDEPATH += "$$PWD/../../External-Libraries/opencv-android/sdk/native/jni/include" android { # 3rd party libs LIBS += \ -L"$$PWD/../../External-Libraries/opencv-android/sdk/native/3rdparty/libs/armeabi-v7a"\ -llibtiff\ -llibjpeg\ -llibjasper

Remove unwanted object from image in android

蹲街弑〆低调 提交于 2019-12-11 06:17:18
问题 I want to develop an android app that has to remove unwanted object from an image.I have seen Exemplar Image Inpainting algorithm(Patch method) and opencv4 Image Inpainting.I am new to opencv4.I need some suggestion.If I am going in a correct way I need examples for using opencv4 Image Inpainting.if its wrong pls guide me.I have found 2 research papers based on this. https://infoscience.epfl.ch/record/168803/files/psivt_psa_paper_inpainting.pdf Thanks in advance 来源: https://stackoverflow.com

NDK and OpenCV setup in Android Studio

南楼画角 提交于 2019-12-11 05:34:49
问题 I imported the module "OpenCV for Android" into Android Studio and I tried to implement my image processing features in Java code. Most of the OpenCV methods like Core.multiply and Core.add work fine, however, I found that some OpenCV methods like Mat.put() and Mat.get() are not quite efficient, and the program run really slow in my device. So, my questions are, If I set up NDK in Android Studio, would this make my program run faster? (I think the program would be more efficient if I use

Unable to create DescriptorMatcher in openCV 3.2 - Android

梦想的初衷 提交于 2019-12-11 05:16:49
问题 I'm running the following openCV code in Android: FeatureDetector detector = FeatureDetector.create(FeatureDetector.ORB); DescriptorExtractor descriptor = DescriptorExtractor.create(DescriptorExtractor.ORB); DescriptorMatcher matcher = DescriptorMatcher.create(DescriptorMatcher.BRUTEFORCE_HAMMING); It works fine in openCV 2.4.1 In openCV 3.2 I'm getting the following exception: java.lang.UnsatisfiedLinkError: No implementation found for long org.opencv.features2d.DescriptorMatcher.create_1