How to get camera images to do some image processing ?

+2 votes
asked Aug 1, 2017 by arunmandal53 (210 points)
edited Aug 2, 2017 by arunmandal53
I want to use EasyAR camera interface to capture camera frame do some image processing.

2 Answers

0 votes
answered Aug 2, 2017 by albert52 (31,850 points)
Could you be more detailed? such as..
commented Aug 6, 2017 by arunmandal53 (210 points)
I want to capture byte[] of camera so that i can apply opencv and can write to storage as jpg.
commented Sep 7, 2017 by kenn (18,790 points)
You can get image data from Frame. If you are using Unity, you can find a FrameUpdate event, and if not, you will know where to get a frame from all samples.
commented Jun 6, 2018 by derzuomaia (1,190 points)
I have the same problem on Android, does anyone knows how to get the camera frame?
0 votes
answered Jun 6, 2018 by derzuomaia (1,190 points)

You can capture the frames from the camera preview and than doing your image processing.

You'll need to get the Frame from the CameraFrameStreamer, than get the byte array and convert the YUV_NV21 to RGB. I have just answered that on this question:

https://answers.easyar.com/1672/is-there-a-way-to-access-the-current-camera-frame-in-android?show=1672#q1672

Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...