Commit c75d9333 authored by olramde's avatar olramde Committed by Alexander Alekhin

Merge pull request #16240 from olramde:olramde

* Changed plus operator to os.path.join()

* Remove '/' from PATH
parent 1a74de1f
......@@ -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/");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment