Is there any quality difference in image captured using camera.takePicture(shutter callback, jpeg callback) and setOneShotPreviewCallback

Red Devil

I'm an intermediate android programmer. I've a simple application created for learning camera. My app is using camera.takePicture() method to register callbacks for JPEG callback and eventually capture the picture. But I feel that it may also be possible to capture the image using setOneShotPreviewCallback() and providing a callback.

My question is:

  • Will there be any differences in image quality between the 2 approaches?
  • Any additional things to be taken care of when trying to construct image using setOneShotPreviewCallback()?

Thanks in advance.

Sean Owen

takePicture() uses (potentially) the camera's full resolution. The preview gives you the image shown on screen which is more usually the screen's resolution. The picture will be higher resolution in general and higher quality. Note that you get something like JPEG-encoded data from the picture callback, but raw image buffer data in the preview callback.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

High quality image picked from gallery or captured from camera

From Dev

Captured image using custom camera is in wrong orientation

From Dev

Android Poor Image Quality When Saving Image From takePicture callback

From Dev

Simple callback function for camera

From Dev

Getting path of captured image in Android using camera intent

From Dev

Can't save captured image in folder using custom camera in android

From Dev

Getting path of captured image in Android using camera intent

From Dev

Is there any advantage to using a callback function here (JavaScript)?

From Dev

Difference between this and $(this) and callback function on event using jQuery

From Dev

Javascript using callback to draw an image to canvas

From Dev

Using callback to get image pixel data

From Dev

Is there any quality difference between PNG vs BMP image formats?

From Dev

Video Quality Difference on Camera and PC

From Dev

Preventing href until gelocation captured (callback help)

From Dev

JPEG Compression Quality using CGImage

From Dev

Android: Camera Asynctask with Preview Callback

From Dev

Camera : delay between takePicture and CallBack :

From Dev

Android: Camera Asynctask with Preview Callback

From Dev

Camera : delay between takePicture and CallBack :

From Dev

Very bad camera image quality

From Dev

Is there a callback for the triggering of any other callback in MATLAB?

From Dev

YouTube Live API Stream Status and Quality Callback

From Dev

Picasso image load callback

From Dev

Is there any callback method in twitter using fabric in android after sharing the post?

From Dev

Is there any callback method in twitter using fabric in android after sharing the post?

From Dev

Using jquery fileupload with coffeescript - resizing image when using add callback

From Java

What's the difference between these 2 ways of using a callback in addEventListener?

From Dev

Image captured from camera not displaying in imageview android

From Dev

How to get last image captured with camera in android?

Related Related

  1. 1

    High quality image picked from gallery or captured from camera

  2. 2

    Captured image using custom camera is in wrong orientation

  3. 3

    Android Poor Image Quality When Saving Image From takePicture callback

  4. 4

    Simple callback function for camera

  5. 5

    Getting path of captured image in Android using camera intent

  6. 6

    Can't save captured image in folder using custom camera in android

  7. 7

    Getting path of captured image in Android using camera intent

  8. 8

    Is there any advantage to using a callback function here (JavaScript)?

  9. 9

    Difference between this and $(this) and callback function on event using jQuery

  10. 10

    Javascript using callback to draw an image to canvas

  11. 11

    Using callback to get image pixel data

  12. 12

    Is there any quality difference between PNG vs BMP image formats?

  13. 13

    Video Quality Difference on Camera and PC

  14. 14

    Preventing href until gelocation captured (callback help)

  15. 15

    JPEG Compression Quality using CGImage

  16. 16

    Android: Camera Asynctask with Preview Callback

  17. 17

    Camera : delay between takePicture and CallBack :

  18. 18

    Android: Camera Asynctask with Preview Callback

  19. 19

    Camera : delay between takePicture and CallBack :

  20. 20

    Very bad camera image quality

  21. 21

    Is there a callback for the triggering of any other callback in MATLAB?

  22. 22

    YouTube Live API Stream Status and Quality Callback

  23. 23

    Picasso image load callback

  24. 24

    Is there any callback method in twitter using fabric in android after sharing the post?

  25. 25

    Is there any callback method in twitter using fabric in android after sharing the post?

  26. 26

    Using jquery fileupload with coffeescript - resizing image when using add callback

  27. 27

    What's the difference between these 2 ways of using a callback in addEventListener?

  28. 28

    Image captured from camera not displaying in imageview android

  29. 29

    How to get last image captured with camera in android?

HotTag

Archive