Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

One approach is 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.

One approach is 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.