Hi, nice project.
Reminds me of of my own tkinter-gui / vb-gui projects.
You can speed up inference around 20-25% by creating the rectangle mask once and not inside the 'reverse2original' loop.
Also you can replace the reverse matrix code with one line = 'mat_rev = cv2.invertAffineTransform(mat)'
For faster detection 'scrfd_500m_bnkps.onnx' in most cases does a very good job.
Thomas
Hi, nice project.
Reminds me of of my own tkinter-gui / vb-gui projects.
You can speed up inference around 20-25% by creating the rectangle mask once and not inside the 'reverse2original' loop.
Also you can replace the reverse matrix code with one line = 'mat_rev = cv2.invertAffineTransform(mat)'
For faster detection 'scrfd_500m_bnkps.onnx' in most cases does a very good job.
Thomas