Available/free parking space detection image analysis algorithm
이전 댓글 표시
I'm working on a project with a jpg file attached, can you help?
댓글 수: 5
Mehmed Saad
2020년 5월 12일
have a look at regionprops and edge in MATLAB help
Walter Roberson
2020년 5월 12일
Some other people have discussed this in the past.
Mehmed Saad
2020년 5월 13일
“You cannot, at the very same time, be grateful and unhappy, or ungrateful and happy.”
― Mokokoma Mokhonoana
Image Analyst
2021년 7월 17일
You seem to have detached your JPG image file.
채택된 답변
추가 답변 (2개)
Image Analyst
2020년 5월 12일
0 개 추천
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
2021년 11월 24일
0 개 추천
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
Image Analyst
2021년 11월 24일
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
2021년 11월 25일
Glad you replied. Sir can u suggest me some code for masking like the one you used for your image.
Walter Roberson
2021년 11월 25일
What difficulty did you encounter using the code he already posted, just changing the file names?
MUHAMMAD BILAL
2021년 11월 25일
He is using test images. He applied masking in one of the image. I just want to know about masking he applied?
Walter Roberson
2021년 11월 25일
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
2021년 11월 25일
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
2021년 11월 25일
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
2021년 11월 25일
Just do a Google image search for "parking lot overhead", or something like that, to get similar images.
MUHAMMAD BILAL
2021년 11월 25일
Thanks for your time sir.
Sudhish
2024년 11월 23일
hey did you get a dataset for this? @MUHAMMAD BILAL
Image Analyst
2024년 11월 23일
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.
카테고리
도움말 센터 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




