Ask Your Question
0

free parking slot detection opencv plz hlp..

asked 2014-03-29 10:00:38 -0600

dazz gravatar image

guys m new to opencv.. plz help me with my problem.any help would be greatly appreciated. i haven't participate to my opencv sessions well and i cant imagine how to du this. this is my final class assignment..:(

my problem; i want to detect free parking slots in a car park and display wether they are occupied or not.

i have attached the image to be used in identification.i thought to draw red rectangles around each slot when there is no vehicle in the park.(in this case i have to draw 10 rectangles).

when a vehicle occupies any slot from the free slots i thought to change the rectangle color to green.

so plz suggest me any procedure to do this.. if u have any code plz give it to me. thanx. god bless u all. reference image first image description

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
5

answered 2014-04-01 00:43:26 -0600

Haris gravatar image

updated 2014-04-01 02:23:31 -0600

One approach based on above image,

  1. Threshold your image.

  2. Find contour.

  3. Find rotated rectangle for the contour.

  4. Now fill your rotated rect, will give you mask for all parking area.

  5. Perform bitwise xor between above mask and first threshold image, this will give you mask for each parking slot.

  6. Using this mask you can analyse the background colour for parking slot, can decide whether it is occupied or not.

edit flag offensive delete link more

Comments

you are awesome. thanks.. god bless u sir..:) your answer suggest there are other methods when it comes to real sanarios..can somebody propose how this is done in real parks

dazz gravatar imagedazz ( 2014-04-01 02:47:43 -0600 )edit
3

I do appreciate @Harris giving you a direction on how to solve this, but please do not expect people to completely solve you assignment. This is a Q&A forum which suggest you showing an approach, showing your problems uptil now and then we suggest a new approach or an adaptation of yours. By simply saying you need to pass your final project because you skipped classes, you won't get large support from the community ...

StevenPuttemans gravatar imageStevenPuttemans ( 2014-04-01 03:43:19 -0600 )edit

Question Tools

Stats

Asked: 2014-03-29 10:00:38 -0600

Seen: 2,883 times

Last updated: Apr 01 '14