Skip to content

cap. read() cannot obtain the actual frame size #1176

@pangkun248

Description

@pangkun248

I am using cv2.VideoCapture to read a variable resolution RTMP stream, but when I use OpenCV==4.6.0.66 version, I can automatically sense the shape change information of the frame. However, starting from OpenCV==4.7.0.72, I cannot sense it anymore. The shape of the read frame is always the size it was initialized to. Do you know what changes caused this?What areas of code should I modify to be able to perceive changes in size in version 4.12 or 5.0 ?

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