Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image data in capture resolution #21

Open
sommcz opened this issue May 8, 2019 · 1 comment
Open

Image data in capture resolution #21

sommcz opened this issue May 8, 2019 · 1 comment
Assignees
Labels

Comments

@sommcz
Copy link

sommcz commented May 8, 2019

Hello,

i there any proved/suggested way how to get image data in resolution specified by capture options?

As of following line of code

fullsizeData = getResizedAndRotatedImage(fullsizeData, mCanvasWidth, mCanvasHeight, displayOrientation);

Fullsized data are shrinked to canvas size into resulting data/file.

Canvas data are only for preview, but i need bigger resolution for live data processing.

I found two ways how to do it:

  • set canvas size bigger and resize it by css (works, but wasting some resources due to fps updates)
  • modify java code to add original sized picture data into some result

Is there any better way how to do it?

Thank you

@Sami-Radi Sami-Radi self-assigned this May 31, 2019
@Sami-Radi
Copy link
Collaborator

Hello,

The first option (> setting the canvas size to a bigger size) is the current best solution.

The second option (> modify java/ios code ) needs to process the image 2 times, when in portrait (rotate & resize the image for the canvas, rotate the captured image for use in the webview). I believe that live image processing is a heavy task for the phone and i'm not sure that the hardware can keep up with good performances. I'll have to do some benchmarks before introducing this kind of modifications.

Best Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants