Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

How do I increase FPS on OpenCV using FastWindowCapture

How do I increase FPS on OpenCV using FastWindowCapture?
By fast window capture I mean taking a screenshot ever x sec to have a live window
I am only getting 15 FPS and I have a 4 core 3.6GHZ processor, NVME SSD (3,500mbs/read/write, 6x faster than regular SSD) and a RX 580 8GB GPU so it is not my computer.
I tried doing research but could not find the answer I was looking for related to my problem.
(Dec 1, 2020 03:26 PM)_NZT_ Wrote:  How do I increase FPS on OpenCV using FastWindowCapture?
By fast window capture I mean taking a screenshot ever x sec to have a live window
I am only getting 15 FPS and I have a 4 core 3.6GHZ processor, NVME SSD (3,500mbs/read/write, 6x faster than regular SSD) and a RX 580 8GB GPU so it is not my computer.
I tried doing research but could not find the answer I was looking for related to my problem.

Unfortunately that is just the slow nature of python. You might want to use pypy3 or cython to speed up your code.
Try lower resolution as well.
Or other framework, see if it's still slow.
Update: I have used Pywin32 (Instead of OpenCV) for capturing screen and also removed the borders and went from 15/20 FPS to 60-85 FPS!
(Dec 1, 2020 03:26 PM)_NZT_ Wrote:  How do I increase FPS on OpenCV using FastWindowCapture?
By fast window capture I mean taking a screenshot ever x sec to have a live window
I am only getting 15 FPS and I have a 4 core 3.6GHZ processor, NVME SSD (3,500mbs/read/write, 6x faster than regular SSD) and a RX 580 8GB GPU so it is not my computer.
I tried doing research but could not find the answer I was looking for related to my problem.
Use win32 api directly


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by dondevetoJul 12, 2020 02:28 PM 3 127 Jul 12, 2020 02:28 PM
Last Post: dondeveto
[Java] by RamJan 11, 2018 11:03 AM 2 186 Jan 11, 2018 11:03 AM
Last Post: ocd_eddie
[Python] by severosDec 1, 2017 02:07 PM 0 107 Dec 1, 2017 02:07 PM
Last Post: severos