Ask Your Question

Patrick Tyll's profile - activity

2013-08-21 05:19:21 -0600 answered a question HTC One, OpenCV & Native Activity

Hey Guys, i develop a similar camera-application for Android with the openCV4Android. I use a HTC-One too for debugging and test cases. If I try to connect to the camera the app throws some Debug-Output.

08-21 12:08:43.855: D/qdmemalloc(4372): ion: Unmapping buffer  base:0x68c16000 size:4096
08-21 12:08:43.855: D/qdmemalloc(4372): ion: Unmapping buffer  base:0x6c06c000 size:4177920
08-21 12:08:43.855: D/qdmemalloc(4372): ion: Unmapping buffer  base:0x675ec000 size:4096
08-21 12:08:43.855: D/qdmemalloc(4372): ion: Unmapping buffer  base:0x6e58f000 size:8355840
08-21 12:08:43.855: D/qdmemalloc(4372): ion: Unmapping buffer  base:0x68907000 size:4096
08-21 12:08:43.855: D/qdmemalloc(4372): ion: Unmapping buffer  base:0x6f183000 size:8355840

Did you solve it? I think I have exactly the same problem.

2013-08-19 04:05:00 -0600 received badge  Scholar (source)
2013-08-19 04:04:59 -0600 received badge  Supporter (source)
2013-08-19 02:41:28 -0600 commented question OpenCV4Android: calcOpticalFlowPyrLK: exception after toArray() for status

What is about the return value of the toArray() method? public byte[] toArray() The return value is a 1 dimension Array. It should be correct if i try to copy it into a 1-dimensional array. In some test-runs on a galaxy s2 or nexus 7 I print the status array on the console: Output = [0,1,1,0,1] I think it's a camera problem. The Version 2.4.6 can't connect correctly to the camera of the htc-one or some camera config changes like changing the resolution is the reason.

2013-08-16 09:24:35 -0600 answered a question OpenCV4Android: calcOpticalFlowPyrLK: exception after toArray() for status

I have not solution for this problem wich solve it, but i know the reason of the problem.

I used a HTC-one for testing my application to Debug it and many other devices.

I found the same problem in the opecCV-Devzone: [http://code.opencv.org/issues/2359]

2013-08-15 13:44:36 -0600 received badge  Student (source)
2013-08-14 07:35:18 -0600 commented question OpenCV4Android: calcOpticalFlowPyrLK: exception after toArray() for status

I adapted line 54 of my .java file. My code at the last post is only a piece. In line 54 is only this code: byte statusS[] = status.toArray(); Sorry for my bad english. I hope you understand me..

2013-08-14 07:20:02 -0600 asked a question OpenCV4Android: calcOpticalFlowPyrLK: exception after toArray() for status

Hey guys,

My Code:

status = new MatOfByte();
err = new MatOfFloat();

Video.calcOpticalFlowPyrLK(previousMatFrame, currentMatFrame, prevuisMatOfPoint2f, pointsWichAreFound, status, err);

byte statusS[] = status.toArray();
//the exception after status.toArray(); 
08-14 14:00:11.086: E/AndroidRuntime(6639): java.lang.RuntimeException: Native Mat has unexpected type or size: Mat [ 6*1*CV_32FC2, isCont=true, isSubmat=false, nativeObj=0x6c0bb388, dataAddr=0x6c0b3f00 ]
08-14 14:00:11.086: E/AndroidRuntime(6639):     at org.opencv.core.MatOfByte.toArray(MatOfByte.java:54)
08-14 14:00:11.086: E/AndroidRuntime(6639):     at de.itintouch.mausapp.activitys.MausActivity.onCameraFrame(MausActivity.java:266)
08-14 14:00:11.086: E/AndroidRuntime(6639):     at org.opencv.android.CameraBridgeViewBase.deliverAndDrawFrame(CameraBridgeViewBase.java:387)
08-14 14:00:11.086: E/AndroidRuntime(6639):     at org.opencv.android.JavaCameraView$CameraWorker.run(JavaCameraView.java:321)
08-14 14:00:11.086: E/AndroidRuntime(6639):     at java.lang.Thread.run(Thread.java:864)

If i delete line 54 for converting the status object into an array, the application runs in normal case without errors. What could it be?? Please help me.

2013-07-23 06:35:19 -0600 asked a question opencv4android Front-Camera resolution

Hey guys,

it try to set the resolution of the front camera in my Android project to optimize the fps.

In the "OpenCV Tutorial 3 - Camera Control" Sample it works with the back camera. If i change it to:

mOpenCvCameraView.setCameraIndex(JavaCameraView.CAMERA_ID_FRONT);

it doesn't work. The OptionMenu is disabled after changing.

2013-07-19 04:36:01 -0600 asked a question OpenCV for Android: Create own App wich implements default the OpenCVManger

Hey dudes,

at first. Sorry for my bad english...

Ok. I'd like to develop a native Android App with the OpenCV SDK. I download the SDK folder and test some sample Project on my Device.

My question is:

Is it possible to implement the OpenCVManager as a library in my own Project to skip the Dialog at the beginning of the sample apps. I think it is more comfortable for the user if he don't have to download another app to run the main one.

Kind regards / Mit freundlichen Grüßen

Patrick Tyll