mirror of
https://github.com/opencv/opencv.git
synced 2025-06-11 11:45:30 +08:00
Merge pull request #16240 from olramde:olramde
* Changed plus operator to os.path.join() * Remove '/' from PATH
This commit is contained in:
parent
1a74de1f9c
commit
c75d93337e
@ -4,7 +4,7 @@
|
||||
QR code detect and decode pipeline.
|
||||
===============================================================================
|
||||
'''
|
||||
|
||||
import os
|
||||
import numpy as np
|
||||
import cv2 as cv
|
||||
|
||||
@ -12,7 +12,7 @@ from tests_common import NewOpenCVTests
|
||||
|
||||
class qrcode_detector_test(NewOpenCVTests):
|
||||
def test_detect_and_decode(self):
|
||||
img = cv.imread(self.extraTestDataPath + '/cv/qrcode/link_ocv.jpg')
|
||||
img = cv.imread(os.path.join(self.extraTestDataPath, 'cv/qrcode/link_ocv.jpg'))
|
||||
detector = cv.QRCodeDetector()
|
||||
retval, points, straight_qrcode = detector.detectAndDecode(img)
|
||||
self.assertEqual(retval, "https://opencv.org/");
|
||||
|
Loading…
Reference in New Issue
Block a user