Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

please solve my error in your code I found it while testing #9

Open
Sowmya180801 opened this issue Nov 23, 2022 · 0 comments
Open

please solve my error in your code I found it while testing #9

Sowmya180801 opened this issue Nov 23, 2022 · 0 comments

Comments

@Sowmya180801
Copy link

error Traceback (most recent call last)
Input In [10], in <cell line: 1>()
1 if name == 'main':
----> 3 trackMultipleObjects()

Input In [9], in trackMultipleObjects()
266 print(datetime.datetime.now())
267 cropped_image[i] = image[y1:y1+h1+25, x1:x1+w1+25]
--> 269 LPN[i] = detection(cropped_image[i])
270 print(LPN[i])
273 a = int(a) + int(1)

Input In [7], in detection(image_1)
2 height = 900
3 width = 700
----> 5 img = cv2.cvtColor(image_1, cv2.COLOR_RGB2GRAY)
6 car_image = cv2.resize(img, (width,height))
7 img_1 = cv2.resize(img, (width,height))

error: OpenCV(4.6.0) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'

@Sowmya180801 Sowmya180801 changed the title please solve my error in your code I found it will testing please solve my error in your code I found it while testing Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant