I'm trying to select the roi offset in a image in opencv 4.2, but i don't get it working. (I'm doing a recognition in the roi and want to mark it with a line in the original image.)
I thought that I could use on "roi" in the following code the locateROI() function but I get always the -> "AttributeError: 'numpy.ndarray' object has no attribute 'locateROI'".
import cv2
import numpy as np
img = cv2.imread('image.JPG',cv2.IMREAD_COLOR)
roi = img[10:200, 10:200]
roi.locateROI()
As help I used get Original image from ROI image in opencv
Anybody who ca help me?