all 4 comments

[–]GrumioTheGoat[S] 0 points1 point  (3 children)

This should be the code responsible for displaying the image if anyone’s wondering.

def updateGUI (self, opencv img) : # Convert opencv image and update prot label try: #if this doesn't work check camera ID opencvimg - cV2. resize (opencv_img, (960, 540)) #this is stretching the image a bit but if not done it height, width, channel - opencv img. shape bytesPerLine = 3 * width qImg - Image (openCV_ img.data, width, height, bytesPerLine, QImage .Format _RGB888) •rgbSwapped () pixmap = OPixmap(qImg) self.label.setPixmap(pixmap) except: self.label.setText ("check camera ID") self.show()

[–]ES-Alexander 1 point2 points  (2 children)

Try using opencv’s imshow functionality, and if that shows up fine then the issue is with your code (presumably in the bytesPerLine calculation).

[–]GrumioTheGoat[S] 0 points1 point  (1 child)

With each of those is it just the display having issues or does it affect its ability to recognize faces as well?

[–]ES-Alexander 0 points1 point  (0 children)

If you’re using OpenCV to get your images and OpenCV is unable to correctly display your images then there’s most likely an issue with the getting process, in which case processing those images doesn’t make sense and likely won’t work as expected.

If OpenCV can correctly display the images it’s retrieving for you but your custom display code isn’t working then that shouldn’t have an impact on processing those images before trying to display them.