PayamB.
PayamB.

Reputation: 754

simple way to detect street area in google map images (aerial images)

im trying to detect the area of the street in image without any deep learning method.

say i have this image:

enter image description here

i am looking for any simple method to detect street portion of the image like the following:

enter image description here

now i know this might not be very accurate, and accuracy is not the problem at all , i am trying to achieve this without using any deep learning method.

Upvotes: 0

Views: 2963

Answers (1)

Dr Yuan Shenghai
Dr Yuan Shenghai

Reputation: 1915

Hough line can give direct straight line measure. but i don't thin it will give you exactly what you want. As shown below

enter image description here

You need a lot more complicated algorithms such as deep sematic segmentation model. and train based on that.

Even you don't like deep learning. traditional algo such as variational analysis, SVM learning or adaboost is also very complicated and you wont be able to use it easily. You need to have mucher deeper understanding on those topic.

if you really want you can start with variational analysis, active contour model, snake energy for extracting the road first. This variational analysis is proven to be working for a complex scenes and extract a particular model as shown in the image below. your road is the empty low gradient region and all building tree nearby are high gradient responses that you don't want.

enter image description here

My suggestion is to make your life easier by using pre trained model and extra the surface model. Download, run python script. that's all

There are a few open-source implementations that you can try such as this

https://github.com/ArkaJU/U-Net-Satellite

https://github.com/Paulymorphous/Road-Segmentation

https://github.com/avanetten/cresi

enter image description here

Based on the predicted mask. then you can get production accurately as shown below

enter image description here

This would be the result that you are looking for

Regards

Shenghai Yuan

Upvotes: 2

Related Questions