Skip to content

Can't Run the basic frame capture example #77

@talhatahir-10xe

Description

@talhatahir-10xe

I'm currently on jetson Xavier NX and have imx219 sensor with the format RG10.

Here's the code I'm trying to run:

from linuxpy.video.device import Device, BufferType
with Device.from_id(0) as cam:
    print("Hi!")
    print(cam.info.capabilities)
    print(cam.get_format(BufferType.VIDEO_CAPTURE))
    for i, frame in enumerate(cam):
        print(f"frame #{i}: {len(frame)} bytes")
        if i > 9:
            break

terninal output log:

python3 linuxpy_test.py
Hi!
Capability.DEVICE_CAPS|STREAMING|EXT_PIX_FORMAT|VIDEO_CAPTURE
Format(width=1920, height=1080, pixel_format=<PixelFormat.SRGGB10: 808535890>, size=4147200)

And it gets stuck here infinitely, it never captures the frame i.e., frame 0: xyz bytes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions