DXcam icon indicating copy to clipboard operation
DXcam copied to clipboard

The speed is not ideal

Open ZengXinLei opened this issue 2 years ago • 6 comments

This is my code image

output image

And that's a good thing

ZengXinLei avatar Jan 07 '23 02:01 ZengXinLei

Do not use print, you got lag, use timeit :)

import timeit

res = timeit.repeat(lambda: camera.get_latest_frame(), repeat=10, number=1)
print(res)

lucasmonstrox avatar Feb 13 '23 04:02 lucasmonstrox

@lucasmonstro My fps is 16, Too slow. I have used your bench code.

vipcxj avatar Feb 25 '23 17:02 vipcxj

@vipcxj did you use video_mode?

lucasmonstrox avatar Feb 26 '23 07:02 lucasmonstrox

@lucasmonstro I use the method without any argument. If the video_mode is the default mode, then I use it.

vipcxj avatar Feb 26 '23 18:02 vipcxj

Try this https://github.com/AI-M-BOT/DXcam/releases/tag/1.0

AI-M-BOT avatar Mar 31 '23 18:03 AI-M-BOT

Try this https://github.com/AI-M-BOT/DXcam/releases/tag/1.0

I'm using this, nice!

windfocus avatar Jun 20 '23 19:06 windfocus