Previously, I installed all the necessary libraries.
The python code I'd like to reproduce with reticulate:
import cvlib as cv
import cv2
img = cv2.imread(sys.argv[1])
bbox, label, conf = cv.detect_common_objects(img)
What I had tried:
library(reticulate)
cv <- import("cvlib")
cv2 <- import("cv2")
temp = list.files(pattern = "*.jpg")
img <- cv2$imread(temp)
cv$detect_common_objects(img)
The erro message:
Error in py_call_impl(callable, dots$args, dots$keywords) :
error: OpenCV(4.0.0) /io/opencv/modules/imgproc/src/resize.cpp:3662: error: (-215:Assertion failed) func != 0 in function 'resize'
Here follows the project with the environment configuration and image:
Project Link
Any help is appreciated.
Thanks in advance!