Available/free parking space detection image analysis algorithm
Mostrar comentarios más antiguos
I'm working on a project with a jpg file attached, can you help?
5 comentarios
Mehmed Saad
el 12 de Mayo de 2020
have a look at regionprops and edge in MATLAB help
Walter Roberson
el 12 de Mayo de 2020
Some other people have discussed this in the past.
Mehmed Saad
el 13 de Mayo de 2020
“You cannot, at the very same time, be grateful and unhappy, or ungrateful and happy.”
― Mokokoma Mokhonoana
Image Analyst
el 17 de Jul. de 2021
You seem to have detached your JPG image file.
Respuesta aceptada
Más respuestas (2)
Image Analyst
el 12 de Mayo de 2020
0 votos
Look up the prior posts like Walter suggested. One way might be to have a template setup (like a binary image mask with a bunch of rectangles). Then you have one image for a completely empty lot, measure the MeanIntensity with regionprops() for each space. Then do the same with your test image and see if the mean intensities are significantly different enough. You could also subtract the background from the test image and see how many blobs there are and if any blob centroid is contained within a template rectangle.
MUHAMMAD BILAL
el 24 de Nov. de 2021
0 votos
So this code only works for the 3 images you attached? I need to run this code on three differnent images other than this. Can anyone provide me 3 images other than attached ones.
11 comentarios
Image Analyst
el 24 de Nov. de 2021
Who cares what images other people have? The only ones that matter are the ones for your parking lot. So just use them and make templates from them. My code should then work if you have the right template image.
MUHAMMAD BILAL
el 25 de Nov. de 2021
Glad you replied. Sir can u suggest me some code for masking like the one you used for your image.
Walter Roberson
el 25 de Nov. de 2021
What difficulty did you encounter using the code he already posted, just changing the file names?
MUHAMMAD BILAL
el 25 de Nov. de 2021
He is using test images. He applied masking in one of the image. I just want to know about masking he applied?
Walter Roberson
el 25 de Nov. de 2021
What about the masking do you want to know, or what about the masking is failing for you?
He is not computing the mask image. He (someone) went out and took a picture when there were no cars, and that is the mask image.
Cars block out the floor, so the code looks for places that do not look like the image with no cars, and which are sufficiently large to be interesting. That code is going to stay the same even if you have a completely different garage layout.
Image Analyst
el 25 de Nov. de 2021
Honestly I just used a photo-editing program (Photoshop) to paint white wherever there was a parking space, and black wherever it was not a space. That was easiest for me. You can write a program to do it in MATLAB if you want (using drawpolygon and poly2mask) but a paint program is easier.
MUHAMMAD BILAL
el 25 de Nov. de 2021
Great. Thanks for your time and responding back to me. Actually i am using your code for my project. But project require 2 set of images. I have used the one's you attached. I am looking for 3 more images like yours. Thanks again.
Image Analyst
el 25 de Nov. de 2021
Just do a Google image search for "parking lot overhead", or something like that, to get similar images.
MUHAMMAD BILAL
el 25 de Nov. de 2021
Thanks for your time sir.
Sudhish
el 23 de Nov. de 2024
hey did you get a dataset for this? @MUHAMMAD BILAL
Image Analyst
el 23 de Nov. de 2024
I'm presuming if it's really his project, that he has a camera looking down on the parking lot that he wants to inspect, and snaps photos several times a day. Isn't that what you have, @Sudhish. If not, and it's some class project, then the class should provide you with a set of input images. Or else collect them yourself.
Categorías
Más información sobre Convert Image Type en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




