![]() ![]() What are we going to do: Now we would use the function cv2.imread( path_to_file ) in order to read the image and imutils.resize( image, width = size you want ) would resize the image. Here ‘filename’ stores the address of the file we would select. Tk().withdraw() filename = askopenfilename() Why this?: This would help us in letting the user choose the image, which would later be used for license plate detection. What are we going to do: After importing all the necessary modules we would want to accept an image by the user. import numpy as np import cv2 import imutils from tkinter import Tk from tkinter.filedialog import askopenfilename ![]() Firstly, we would be importing all the modules needed for the program. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |