camerakit-android icon indicating copy to clipboard operation
camerakit-android copied to clipboard

Captured image resolution is different from preview resolution

Open Divay-Parashar opened this issue 5 years ago • 9 comments

Is this a bug report?

(Yes)

Have you read the Contributing Guidelines?

(Yes)

Environment

Android Motorola one power

Steps to Reproduce

(Write your steps here:)

  1. Add CameraKit library in your project and complete basic setup of Library with your Activity.
  2. capture image with function "cameraKitView.captureImage(new CameraKitView.ImageCallback() " and save image somewhere in the device storrage. 3.Then compare Camera preview resolution and saver

Expected Behavior

Camera Preview Size (width=1920, height=1080) Camera Image Captured Size(width=1920, height=1080)

Actual Behavior

Camera Preview Size(width=1920, height=1080) Camera Image Captured Size(width=2560, height=800)

ScreenShots of Error. camera preview when application open in device .

Screenshot_20190406-173715

This is how image looks when i save this image in device storage ..

Screenshot_20190406-173752

Reproducible Demo

This is my zipped project. CameraTest.zip Plese give me solution as soon as possible my project is stuck just because of this issue.

Divay-Parashar avatar Apr 06 '19 12:04 Divay-Parashar

Did you find any solution?

Divay-Parashar avatar Apr 15 '19 11:04 Divay-Parashar

What version of the library are you using?

nullptr2this avatar Apr 18 '19 17:04 nullptr2this

I'm using 'com.camerakit:camerakit:1.0.0-beta3.10' version but this issue is still in latest version '3.11' and there are lots of bugs in the latest version that's why I'm using this version.

Divay-Parashar avatar Apr 19 '19 08:04 Divay-Parashar

Hi there! Unfortunately I've got the same issue on some devices. On screenshots I'm putting an ImageView with result picture above the Preview.

I also attached device info, but the problem accrued not only on this device. I use 1.0.0-beta3.10 also tried 3.11, the same result

http://prntscr.com/nf82ny http://prntscr.com/nf82xt http://prntscr.com/nf833f

tinkooladik avatar Apr 22 '19 10:04 tinkooladik

Hi there! Unfortunately I've got the same issue on some devices. On screenshots I'm putting an ImageView with result picture above the Preview.

I also attached device info, but the problem accrued not only on this device. I use 1.0.0-beta3.10 also tried 3.11, the same result

http://prntscr.com/nf82ny http://prntscr.com/nf82xt http://prntscr.com/nf833f

Hi tinkooladik could you please suggest me another better camera library.

Divay-Parashar avatar Apr 22 '19 11:04 Divay-Parashar

I found this problem happened on > 2000px res. Just change output resolution to 1.9 or less.

cameraKitView.setImageMegaPixels(1.9f);

dendyaziz avatar Jun 25 '19 01:06 dendyaziz

@dendyaziz cool, it helped, thank you!

tinkooladik avatar Jul 05 '19 10:07 tinkooladik

I encountered the same problem, the phone model is Huawei Honor 30, how to solve the problem?

wangwei66666 avatar Feb 18 '21 07:02 wangwei66666

Any way to resolve this other than using the imageMegaPixels? I found using that, the result are not the same for all devices.

fangor16 avatar Mar 15 '21 02:03 fangor16