79305722

Date: 2024-12-24 13:38:24
Score: 0.5
Natty:
Report link

It seems you have switched the width and height in your CompressSave function. It works if you use:

int _width = img.cols;
int _height = img.rows;

Also note that OpenCV uses BGR as format when dealing with images, so probably you will want to use TJPF_BGR instead of TJPF_RGB.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Tom Deblauwe