I’m trying to read an image from url. For this, I created the funcion below. For some url I input, it works exactly how I wish, but for others, it doesn’t. In this cases the cv2.imread(img, cv2….
My task is to find coordinates of lines (startX, startY, endX, endY) and rectangles (4 lines). Here is input file: I use the next code: img = cv2.imread(image_src) gray = cv2.cvtColor(img,cv2….