react-native-vision-camera icon indicating copy to clipboard operation
react-native-vision-camera copied to clipboard

❓ Take raw photo without additional system effects

Open AlekseyP18 opened this issue 3 years ago • 4 comments

Question

Hi

I am going to develop an application that will take a photo to give some advices to clients using AI to make analization of photo. To implement this logic correctly I'll have to make raw photo without any system effects that improve the photos.

As I understood it's possible using native language (like Swift)

Is it possible to make the raw photos without any system effects using this library?

I'll really appreciate for you answer and explanation!!!

What I tried

No response

VisionCamera Version

2.15.4

Additional information

AlekseyP18 avatar Jul 29 '23 21:07 AlekseyP18

Hey do you want YUV, RGB or RAW (DNG) images?

mrousavy avatar Aug 03 '23 07:08 mrousavy

Hi, thanks for you answer. I was on a vacation, so I couldn't answer before, but still this question is really important for me.

Right now I am not sure about an exact format of an image that we will use. If it's possible to get an image without any system optimizations and effects I will get this project to implement it using react native, that I really like

I would ask you to explain how can I get this image in RGB or RAW format of images. Or if it's possible to get it directly in JPEG format (without system effects)

I am grateful for your time and contribution for react native community!!!

AlekseyP18 avatar Aug 18 '23 08:08 AlekseyP18

Hey - yea I get what you're saying, but the only processing that's happening is in takePhoto() (RGB -> JPEG) and recordVideo() (YUV -> mp4/h264)

In a useFrameProcessor you get raw, unprocessed YUV frames in 4:2:0 8-bit format. Those are streamed in as the Camera is active.

Additionally, to take RAW (DNG) photos (takePhoto()), this should be possible soon with the new V3 API.

mrousavy avatar Aug 18 '23 15:08 mrousavy

As I understood right now it's possible to take a photo without any system effects and optimizations just using - takePhoto() to get it in JPEG format.

So I can use this library to develop that application

Okey, thank you for you answer! I wish you a good trip through developing this amazing library)

AlekseyP18 avatar Aug 21 '23 06:08 AlekseyP18