application_vnd.jupyter.stderr_output_3.png text_plain_output_2.png application_vnd.jupyter.stderr_output_1.png
import cv2 as cv

import matplotlib.pyplot as plt

import torch

import cv2 as cv
import matplotlib.pyplot as plt
img = cv.imread('/kaggle/input/car-plate-detection/images/Cars0.png')
img = cv.cvtColor(img, cv.COLOR_BGR2RGB)
rec = cv.rectangle(img, (226, 125), (419, 173), (0, 250, 0), 2)
rec = cv.circle(rec, ((226 + 419) // 2, (125 + 173) // 2), 2, (255, 0, 0), 2)

import torch
yolo = torch.hub.load('ultralytics/yolov5', 'custom', path='/kaggle/working/yolov5/runs/train/exp/weights/best.pt')

img = '/kaggle/input/number-plate-detection/TEST/TEST.jpeg'
results = yolo(img)
cordinates = results.xyxy[0][:, :-1]
results.pandas().xyxy[0]