D3DShot icon indicating copy to clipboard operation
D3DShot copied to clipboard

get_latest_frame() returns None

Open kapeed7 opened this issue 4 years ago • 1 comments

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 avatar Aug 12 '20 19:08 kapeed7

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.

Hellikandra avatar Aug 13 '20 21:08 Hellikandra