Hack Forums
[Python] How do I increase FPS on OpenCV using FastWindowCapture - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Python] How do I increase FPS on OpenCV using FastWindowCapture (/showthread.php?tid=6124869)



How do I increase FPS on OpenCV using FastWindowCapture - _NZT_ - Dec 1, 2020

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.


RE: How do I increase FPS on OpenCV using FastWindowCapture - Teiresias - Dec 2, 2020

(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.


RE: How do I increase FPS on OpenCV using FastWindowCapture - SIM-4378207 - Dec 3, 2020

Try lower resolution as well.
Or other framework, see if it's still slow.


RE: How do I increase FPS on OpenCV using FastWindowCapture - _NZT_ - Dec 3, 2020

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!


RE: How do I increase FPS on OpenCV using FastWindowCapture - The-Criminal - Dec 18, 2020

(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