Skip to content
This repository has been archived by the owner on Aug 23, 2022. It is now read-only.

get_latest_frame() returns None #31

Open
kapeed7 opened this issue Aug 12, 2020 · 1 comment
Open

get_latest_frame() returns None #31

kapeed7 opened this issue Aug 12, 2020 · 1 comment

Comments

@kapeed7
Copy link

kapeed7 commented Aug 12, 2020

I think d.get_latest_frame() doesn't waits for the frame buffer to populate after d.capture() is called.

image

While manually waiting for that resolves the issue:

image

Just curious if the checks have intentionally been ignored considering performance....

@kapeed7 kapeed7 changed the title d.get_latest_frame() returns None get_latest_frame() returns None Aug 12, 2020
@Hellikandra
Copy link

Hellikandra commented Aug 13, 2020

Your implementation is near to be correct :-).

ret = d.caputre()
time.sleep(0.1)

while True:
    d.get_latest_frame()

Try this implementation. The capture while be greater.
I do not search more about that but I just think that d.capture() need some time before initialization.

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

No branches or pull requests

2 participants