2020-09-17 08:30:23 -0600 | received badge | ● Popular Question (source) |
2020-04-24 20:51:54 -0600 | received badge | ● Famous Question (source) |
2017-07-20 07:14:01 -0600 | received badge | ● Taxonomist |
2016-08-31 08:33:49 -0600 | received badge | ● Famous Question (source) |
2016-03-26 17:43:06 -0600 | received badge | ● Notable Question (source) |
2015-07-20 21:32:49 -0600 | received badge | ● Notable Question (source) |
2015-01-30 04:05:15 -0600 | received badge | ● Notable Question (source) |
2014-12-01 10:28:03 -0600 | received badge | ● Popular Question (source) |
2014-09-16 08:51:07 -0600 | received badge | ● Popular Question (source) |
2014-05-28 02:11:34 -0600 | received badge | ● Popular Question (source) |
2013-05-12 09:08:10 -0600 | asked a question | No way to convert from YUV420sp to RGB565 with OpenCV? I want to do real time processing with Android. My code is derived from this http://www.stanford.edu/class/ee368/Android/HelloViewfinder/Project.zip They use a Java function decodeYUV420RGB(mRGBData, mYUVData, mImageWidth, mImageHeight) for conversion. But I want to use OpenCV instead. In the original code a bitmap is created in onPreviewFrame and they use Java code to decode YUV to RGB_565 in onDraw I tried a lot of combinations of this code (do comments and withdraw comments) in onDraw to convert YUV420sp to RGB_565 with OpenCV but nothing works: How can I convert YUV420sp to RGB_565 with OpenCV? |
2013-05-06 15:48:48 -0600 | asked a question | Android: How to set capture resolution for NativeCameraView? I use NativeCameraView and want to take pictures with camera resolutions. But I can take pictures only in preview resolution. mRgba.cols() and mRgba.rows() get resolution of display but I want to capture with camera resolution and I want the user to choose camera resolution. How can I use display resolution for preview and capture with camera resolution using NativeCameraView? And how can I find out camera resolutions for NativeCameraView (it hasn't a setResolution method like the JavaCameraView)? |
2013-05-05 08:20:11 -0600 | answered a question | Tutorial3-Camera Control: picture freezed after takePicture() I've read the example has to been fixed: https://github.com/Itseez/opencv/pull/838/files#r3914912 http://code.opencv.org/issues/2961 https://code.google.com/p/android/issues/detail?id=13966 I've changed my code to this: But I have still the same problem: After taken the first picture the screen freezes and no preview is shown. What can be done to fix the problem? |
2013-05-02 13:25:16 -0600 | asked a question | Android: mCamera.autofocus() -> runtime error I want to set autoFocus. But I get a runtime error when I set mCamera.autoFocus(myAutoFocusCallback). My program is based on the OpenCV Tutorial3 - Camera Control. AndroidManifest.xml: main.xml: CameraAppActivity.java: JavaCameraViewExtended.java How can I set mCamera.autoFocus(myAutoFocusCallback) for JavaCameraView without a runtime error? |
2013-05-02 10:19:40 -0600 | asked a question | Tutorial3-Camera Control: picture freezed after takePicture() [Update: Please see my update answer below this text] When a picture is taken with the "OpenCV Tutorial3 - Camera Control" app the taken picture is freezed on the screen and the preview doesn't come back. I tested it with Smartphone Android 2.2.2 and Tablet Android 3.2.1 device: Both the same. The relevant code: Tutorial3Activity.java: Tutorial3View.java: What can I do to come back to the preview screen after taken a picture? There is a mCamera.startPreview() command in the takePicture method but it seems not to have the effect to set the preview screen. |
2013-05-02 09:39:20 -0600 | received badge | ● Supporter (source) |
2013-04-30 00:15:11 -0600 | received badge | ● Student (source) |
2013-04-29 11:39:04 -0600 | received badge | ● Editor (source) |
2013-04-29 11:37:03 -0600 | asked a question | Use standard Android camera filters with CvCameraViewFrame My camera app shall use the standard camera filters for Android and for extra filters I want to use OpenCV. My app shall use live filters. In OpenCV I have to use CvCameraViewFrame for filters. In Android I have the class android.hardware.Camera.Parameters to set standard Android filters (http://developer.android.com/reference/android/hardware/Camera.Parameters.html). But CvCameraViewFrame has no setParameters(Camera.Parameters) or setWhiteBalance(String) (and so on) filter methods as Android Camera class has. Is there a way to use Android standard filters with CvCameraViewFrame or have I to implement them a second time for CvCameraViewFrame? Or have I to switch between android.hardware.Camera and org.opencv.android.CameraBridgeViewBase.CvCameraViewFrame and can only use Camera filters OR CvCameraViewFrame filters and no combination is possible? |
2013-04-28 12:52:50 -0600 | asked a question | Android: Do I use native library or not? I want to use the native libraries for an Android camera app. But I don't know whether my app uses native or java calls. I've done what's described here at "Native/C++": ndk-build did well without errors. And in the Eclipse package explorer I get an obj directory with libnative_camera_rX.X.X.so (X.X.X stands for version, there are a lot of versions in the directory). At project properties I added Library "OpenCV Library - 2.4.5". If I additionally check "Is Library" and try to start I get error "Android library projects cannot be laucnched.", if I uncheck "Is Library" I can run app. a) Why that? My Activity class implements CvCameraViewListener2 and I imported: import org.opencv.android.CameraBridgeViewBase.CvCameraViewFrame; and import org.opencv.android.CameraBridgeViewBase.CvCameraViewListener2; The app uses this methods: static { if (!OpenCVLoader.initDebug()) { // Handle initialization error } } private CameraBridgeViewBase mOpenCvCameraView; //onCreate: mOpenCvCameraView = (CameraBridgeViewBase) findViewById(R.id.HelloOpenCvView); mOpenCvCameraView.setVisibility(SurfaceView.VISIBLE); mOpenCvCameraView.setCvCameraViewListener(this); //onPause/onDestroy if (mOpenCvCameraView != null) mOpenCvCameraView.disableView(); public Mat onCameraFrame(CvCameraViewFrame inputFrame) { return inputFrame.rgba(); } But I don't know whether my app uses native calls or not. Is the inputFrame.rgba() a native call of a C++ library method in libnative_camera_rX.X.X.so or is it a call of a java method of one of the imported libs import org.opencv.android.CameraBridgeViewBase.CvCameraViewFrame or import org.opencv.android.CameraBridgeViewBase.CvCameraViewListener2? b) When it's not a native call: How to do a native call of method rgba(), something like this: System.nativecall(inputFrame.rgba(), libnative_camera_rX.X.X.so)? c) When it is a native call: Why it's a lot slower than the standard camera app of my smartphone? I get 14 fps with return inputFrame.rgba() as sole method in onCameraFrame and screen picture is delayed when I pan the camera; with standard camera app ther is no delay. |