From c75d93337e0126e845c598a8fcec087d55ec1cf3 Mon Sep 17 00:00:00 2001 From: olramde Date: Fri, 10 Jan 2020 22:18:31 +0900 Subject: [PATCH] Merge pull request #16240 from olramde:olramde * Changed plus operator to os.path.join() * Remove '/' from PATH --- modules/objdetect/misc/python/test/test_qrcode_detect.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/objdetect/misc/python/test/test_qrcode_detect.py b/modules/objdetect/misc/python/test/test_qrcode_detect.py index 4ffd60ec8f..18f7ed79ed 100644 --- a/modules/objdetect/misc/python/test/test_qrcode_detect.py +++ b/modules/objdetect/misc/python/test/test_qrcode_detect.py @@ -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/");