RedApparat / Fotoapparat

Making Camera for Android more friendly. 📸
Apache License 2.0
3.81k stars 405 forks source link

How can i apply converted frame to preview/photoResult #345

Closed mym0404 closed 3 months ago

mym0404 commented 5 years ago

What are you trying to achieve or the steps to reproduce?

Hi I want to apply filter/flip/other image processing to preview/photoResult

I know this things are not work of this library.

I want to know is that

  1. I converted byte array to converted byte array or bitmap in frameProcessing{}

  2. how can i apply this image to preview and captured photo?

I know this is stupid question... Sorry about that

How did you initialize FA?

What was the result you received?

convert frame.image to converted byte array not affected..

What did you expect?

Context:

mym0404 commented 5 years ago

I solved my problem with Frame Processor.

Frame Processor can't handle preview itself.

So I did like below.

  1. convert byte[] (YUV format) to image

  2. processing image (OpenGL)

  3. Show Image using other GLSurfaceView

  4. Turn off CameraView of this library (turn off setPreviewTexture & setPreviewSurface?)

Then, I can receive only byte[] data from this great library.

kleysonr commented 5 years ago

Hi @mym0404,

May you share the final layout and your FrameProcessor class ? I am a newbie on android dev and I need to achieve the same as you.

Thanks.