Lines.py

Ramazan CELIK, 10/21/2022 08:09 PM

Download (206 Bytes)

 
1

    
2
import cv2 as cv
3

    
4
img = cv.imread('cats.jpg') # path to ilage
5
cv.imshow('Cats', img)
6
def trait(img, start_point, end_point):
7
    cv.line(img, start_point, end_point, (0, 0, 255)) 
8
    return cv.imshow(img)