2017-12-08 00:51:35 -0600 | received badge | ● Popular Question (source) |
2017-06-16 03:02:34 -0600 | received badge | ● Popular Question (source) |
2013-08-13 01:18:57 -0600 | commented answer | Android Faster Image Processing Thank you for the suggestions. But the problem is, the camera preview is created by Vuforia , on JNI side, Not common Android Java side Camera. So i guess its not that optimised for speed that much |
2013-08-12 09:29:07 -0600 | asked a question | Android Faster Image Processing I am using OpenCV,Vuforia and Tesseract(tess-two) for my app. My system works like this:
I have problem with the 2nd and the 3rd parts.But since this is an OpenCV forum, i think i should ask the 2nd one. I am doing the image processing parts, as its written above, in C++ and the problem is , since i have to do image processing on every detected frame from Vuforia i create lots of image processing load. What i want to do is, find a multithread solution for image processing so that the live camera preview that is on the screen wont have lags and will be smoother. Where should i start from for making the image processing faster ? |
2013-07-24 01:15:57 -0600 | commented answer | Convert pixels to Mat But type function returns the values for like CV_8U, or CV_16U etc. I was asking about getting the format like, if its RGB, BGR, GRAYSCALE, ARGB etc |
2013-07-23 09:34:51 -0600 | commented answer | Convert pixels to Mat How can we find out the format of a Mat object? So that i can choose the proper converting selection for it. Vladislav, when i tried the way you described i am getting this error: Assertion failed (scn == 2 && depth == CV_8U). |
2013-07-23 03:52:30 -0600 | commented answer | Convert pixels to Mat Its normal short, so i changed it to CV_16SC3 , but this time it crashed with an error that says : " Assertion failed (depth == CV_8U || depth == CV_16U || depth == CV_32F)" in cvColor() Also i can see the picture. When i use mt.data() and send it to the Java part as byte[] and create bitmap, i can see the picture in color. This is how i get the pixels from vuforia: |
2013-07-23 03:20:03 -0600 | commented answer | Convert pixels to Mat I changed it like that, but still it crashes at the same point. |
2013-07-23 03:03:34 -0600 | commented answer | Convert pixels to Mat Hi again Mathieu, the app crashes when i try to convert the RGB to GRAYSCALe like this: It crashes during the cvtColor method. And the LOG gives the image type as 18. Is it a normal value? What do you think the problem can be |
2013-07-23 01:57:33 -0600 | commented answer | Convert pixels to Mat Hi Mathieu, Thank you for the quick answer. Yeah the image is in color. I will try that. |
2013-07-23 01:24:31 -0600 | asked a question | Convert pixels to Mat Hello I am using Vuforia for creating an Augmented Reality Android app. And i want to do image processing on the images i get from Vuforia's camera frames. I am thinking of using OpenCV natively for that only purpose. Vuforia captures images with its own Image class. but you can get pixels from that image as " short*". So I guess i have to turn those pixels somehow to Mat class so that i can use the image processing methods on it. But i couldnt find how to do that? Can someone help me about it? Some suggestions Thanks |