We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43d2fd4 commit 491b5a7Copy full SHA for 491b5a7
tests/testthat/test-qr_code.R
@@ -1,7 +1,9 @@
1
test_that("qr scanner works", {
2
- skip_if(ocv_version() < "4.5.2")
+ skip_if(identical(Sys.info()[["sysname"]], 'Linux') && ocv_version() < "4.5.2")
3
img <- ocv_read('qrtest.jpg')
4
expect_s3_class(img, "opencv-image")
5
txt <- ocv_qr_detect(img)
6
+ outimg <- ocv_qr_detect(img, draw = TRUE)
7
+ expect_s3_class(outimg, "opencv-image")
8
expect_equal(txt, "https://www.r-project.org")
9
})
0 commit comments