PyQt/PySide: How do I convert QImage into OpenCV's MAT format
问题 I'm looking to create a function for converting a QImage into OpenCV's (CV2) Mat format from within the PyQt. How do I do this? My input images I've been working with so far are PNGs (either RGB or RGBA) that were loaded in as a QImage. Ultimately, I want to take two QImages and use the matchTemplate function to find one image in the other, so if there is a better way to do that than I'm finding now, I'm open to that as well. But being able to convert back and forth between the two easily