Skip to content

Commit cae0c74

Browse files
committed
Use QImage::bytesPerLine() #11
1 parent 7bf2160 commit cae0c74

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Src/Plugins/LibFacedetection/DetectorLibfacedetection.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ int CDetectorLibfacedetection::Detect(const QImage &image, QVector<QRect> &faces
3737
PERFORMANCE_START(Libfacedetection)
3838
int *pResults = facedetect_cnn(pBuffer,
3939
(unsigned char*)img.bits(), img.width(),
40-
img.height(),
41-
img.width() * 3);
40+
img.height(), img.bytesPerLine());
4241
PERFORMANCE_ADD_TIME(Libfacedetection, "detect:image width:"
4342
+ QString::number(image.width())
4443
+ ";Height:"

0 commit comments

Comments
 (0)