Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

Frames missed and frame status if incomplete for 1800 U-2050c #166

@imihassan

Description

@imihassan

I am trying to capture and save images from USB3 alied vision camera 1800 U-2050c. I am using asynchronous_grab_opencv.py file example to capture and save the images. The code is behaving not normal. When the code starts, it is capturing and storing images but after few seconds it misses few frames. I changed the buffer_count to 100 and missed frames are decreased but still there are. For each missed frame it waits for 1 to 4 seconds.

After continuous running for half an hour, it continuously start missing the frames and does not capture any image.

The computer system I am using is industrial computer nuvo-7160gc having i7 processor and 16 GB ram and SSD for storage and Nvme for OS. USB cable is industrial standard cable from 1st vision. I am not providing power to the camera seperately. It is being powered by USB.

The sample code is as below

if frame.get_status() == FrameStatus.Complete:
            print('{} acquired {}'.format(cam, frame), flush=True)

            msg = 'Stream from \'{}\'. Press <Enter> to stop stream.'
            img = frame.as_opencv_image()
            
            
            name = getDateStamp()
            
            cv2.imwrite(f"{pathSave}/{name}_{str(self.cntr).zfill(6)}.jpg",img)
cam.queue_frame(frame)

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