I want to get the original image right after shooting.

Asked 1 years ago, Updated 1 years ago, 106 views

I have a question using the OLYMPUS SDK (CameraKit) for Android.

I would like to obtain the JPEG file of the photo taken immediately after the photo is taken.
The API currently provided allows you to obtain a "photographic result confirmation image", but
The original image of the photographed image cannot be obtained.

as shown in the property RECVIEW of the above image for confirmation of the result of
Is there a way to get the original size image for post-photographing storage?

android olympus-camerakit

2022-09-29 22:55

1 Answers

OPC support.
Thank you for your question.

There are two possible ways to get a picture taken immediately after taking a picture.

Method 1) Change the destination settings of the photographed image

If you set the camera property Destination_FILE to Destination_FILE_WIFI, you can transfer the captured image directly to the mobile device.You can retrieve the captured image with onReceiveCapturedImage.Please note that the image taken will not be saved on the microSD card of the camera itself.

The restrictions are as follows:

  • Cannot set continuous shooting.
  • When shooting a video, the video is automatically saved to the microSD card.

Method 2) Detects differences in the file list before and after shooting and transfers only the difference files

You can retrieve the list of files in the microSD card before and after shooting, detect the difference, and transfer only the difference files.

  • Before shooting, use downloadContentList to retrieve the list of files in the microSD card.
  • After shooting, run downloadContentList again when isMediaBusy is true→false
  • Check the differences in the file list
  • Transfer the difference file via downloadImage (IMAGE_RESIZE_NONE).

Run stopLiveView before transferring images in downloadImage and stop transferring live views to reduce transfer time.To resume the live view transfer, run startLiveView after the image transfer is complete.


2022-09-29 22:55

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.