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

inputFrame.rgba().size() #2

Open
aneela123 opened this issue Nov 6, 2023 · 0 comments
Open

inputFrame.rgba().size() #2

aneela123 opened this issue Nov 6, 2023 · 0 comments

Comments

@aneela123
Copy link

Hi team,

Can someone please confirm the following?
does the inputFrame.rgba().size() gives the resolution of the inputFrame or the previewSize of the camera?(https://github.com/touchlab-lab/OpenCVAndroidLib/blob/master/opencvandroidlib/src/main/java/org/opencv/android/CameraBridgeViewBase.java#L137)?

I could not find the exact documentation which points out that the rgba().size() returns the maximum resolution for the camera frames? Because in my code I am changing the previewSize of the cameraFrame and after testing that in my logs the inputFrame.rgba().size() was giving me the changed previewSize and not the resolution I have set using setMaxFrameSize() method(https://github.com/touchlab-lab/OpenCVAndroidLib/blob/master/opencvandroidlib/src/main/java/org/opencv/android/CameraBridgeViewBase.java#L277)

so, here my confusion is with rgba().size as to why it was returning the previewSize of the camera instead of giving me the resolution I have set using the setMaxFrameSize (which should be setting the frame size ) and then the rgba().size() is supposed to return that resolution? Any help on this is much appreciated!
Thanks.

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

No branches or pull requests

1 participant