apoorva-dave / LicensePlateDetector

Detects license plate of car and recognizes its characters
349 stars 114 forks source link

it is showing a value error #1

Closed parthgoe1 closed 5 years ago

parthgoe1 commented 6 years ago
min_row, min_col, max_row, max_col = region.bbox

ValueError: too many values to unpack (expected 4)

apoorva-dave commented 6 years ago

can you please elaborate what all changes you did? what was the input file? And you are getting this error in DetectPlate.py?

parthgoe1 commented 6 years ago

I did not make any changes to the code. DetectPlate.py is working perfectly. But when I import it to segmentcharacter.py it makes a 3d array and gives an error.

Get Outlook for Androidhttps://aka.ms/ghei36


From: Apoorva Dave notifications@github.com Sent: Sunday, October 14, 2018 1:29:33 PM To: apoorva-dave/LicensePlateDetector Cc: Parth Goel [ CSE-2017 ]; Author Subject: Re: [apoorva-dave/LicensePlateDetector] it is showing a value error (#1)

can you please elaborate what all changes you did? what was the input file? And you are getting this error in DetectPlate.py?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/apoorva-dave/LicensePlateDetector/issues/1#issuecomment-429604887, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AhndcUi-wpz2f4mRWrFJmWusN9HJnTIXks5uku7lgaJpZM4Xa3do.

jimy2020 commented 6 years ago

In the min_row, min_col, max_row, max_col = region.bbox Line i am getting following error in DetectPlate.py? ValueError: too many values to unpack (expected 4)

apoorva-dave commented 6 years ago

Are you using some other image or video as I am unable to reproduce it. My friends have also used the same code and with the image/video examples given in repo, it is working fine for them. Can you share the image which you are using to test it?

On printing region.bbox what are you getting? It should be sequence of values like (718, 1115, 730, 1129)

jimy2020 commented 6 years ago

Hi dear apoorva I use image/video examples given in repo. But run python 3.6. When print(region) i see in IPython console following output <skimage.measure._regionprops._RegionProperties object at 0x000002E043AB6208>

On Tuesday, November 13, 2018, Apoorva Dave notifications@github.com wrote:

Are you using some other image or video as I am unable to reproduce it. My friends have also used the same code and with the image/video examples given in repo, it is working fine for them. Can you share the image which you are using to test it?

On printing region.bbox what are you getting? It should be sequence of values like (718, 1115, 730, 1129)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/apoorva-dave/LicensePlateDetector/issues/1#issuecomment-438133224, or mute the thread https://github.com/notifications/unsubscribe-auth/Ambi-Dh_ovLpPTy2eUoJdAHFVQfMrew8ks5uuky5gaJpZM4Xa3do .

jimy2020 commented 6 years ago

Also print(region.bbox) in the console see follow out put (0,489,0,63,532,3) I uesd video12.mp4.

On Tuesday, November 13, 2018, Apoorva Dave notifications@github.com wrote:

Are you using some other image or video as I am unable to reproduce it. My friends have also used the same code and with the image/video examples given in repo, it is working fine for them. Can you share the image which you are using to test it?

On printing region.bbox what are you getting? It should be sequence of values like (718, 1115, 730, 1129)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/apoorva-dave/LicensePlateDetector/issues/1#issuecomment-438133224, or mute the thread https://github.com/notifications/unsubscribe-auth/Ambi-Dh_ovLpPTy2eUoJdAHFVQfMrew8ks5uuky5gaJpZM4Xa3do .

apoorva-dave commented 6 years ago

I tried looking into it but still couldn't identify why region.bbox is giving you 6 values rather than 4. Did you try capturing these values and see if you are getting the same result? eg : take any 2 dummy variables t1, min_row, t2, min_col, max_row, max_col

jimy2020 commented 6 years ago

I fixed this error using 2 dummy variables as following min_row, min_col,null, max_row, max_col,null= region.bbox But I went through the following error in DetectPlate.py. ValueError: 3-dimensional arrays must be of dtype unsigned byte, unsigned short, float32 or float64؟

On 11/17/18, Apoorva Dave notifications@github.com wrote:

I tried looking into it but still couldn't identify why region.bbox is giving you 6 values rather than 4. Did you try capturing these values and see if you are getting the same result? eg : take any 2 dummy variables t1, min_row, t2, min_col, max_row,

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/apoorva-dave/LicensePlateDetector/issues/1#issuecomment-439629792

G-Slient commented 5 years ago

I am getting the same error. could you fix this error?

sandan000 commented 5 years ago

I am getting the same error. could you fix this error?

I got the same error too. You can try to change image from RGB to gray format.