Skip to content

inputFrame.rgba().size()  #2

Open
@aneela123

Description

@aneela123

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions