Ask Your Question

ezfn's profile - activity

2017-07-24 06:55:29 -0500 received badge  Popular Question (source)
2015-12-03 02:42:58 -0500 received badge  Good Question (source)
2015-02-26 15:29:39 -0500 received badge  Nice Question (source)
2014-10-31 15:42:48 -0500 received badge  Famous Question (source)
2014-05-31 11:14:07 -0500 received badge  Notable Question (source)
2014-02-16 11:18:26 -0500 received badge  Popular Question (source)
2013-08-12 17:36:11 -0500 received badge  Student (source)
2013-08-12 05:27:37 -0500 received badge  Editor (source)
2013-08-12 03:33:47 -0500 asked a question Getting raw image data in android

Hi, I have been trying to get raw image data from the camera on Android. By raw I mean, before it went through Bayer filtering and interpolation. Sadly, The standard Android camera API, doesn't support this need:

I tried

public final void takePicture (Camera.ShutterCallback shutter, Camera.PictureCallback raw, Camera.PictureCallback postview, Camera.PictureCallback jpeg)

But, as seen in many other forums, the raw data returned to the "raw" callback is always null.

What I would like to have:

  1. [ideally] is a video stream of raw frames before any kind of manipulation.
  2. Less ideally, I can do with still images of the same kind.
  3. I can also benefit from capturing the frames after Bayer filtering, but before interpolation.

Note - I have also tried this:

Camera.Parameters parameters=preview.camera.getParameters();
parameters.set("rawsave-mode", "1");
parameters.set("rawfname", "/mnt/sdcard/test.raw");
preview.camera.setParameters(parameters);
preview.camera.takePicture(shutterCallback, null, jpegCallback);

But sadly it doesn't work with My Samsung Galaxy S2 and S4.

How would you go about this kind of task? Do you think it's even feasible within android, or maybe I have to resort to writing some native code?

I have GalaxyS4, BTW.

Thank you very much,

Erez

2013-08-12 03:15:09 -0500 received badge  Supporter (source)
2013-08-12 03:14:42 -0500 received badge  Scholar (source)
2013-06-03 04:26:53 -0500 asked a question How to work with OPENCV4ANDROID- in android studio

Hi, Can anyone give a tutorial or first steps of how to import opencv for android to the new android studio [or intellij] environment?

Thanks, Erez