How to check if an image contains an element I am searchig for

Barry barry at barrys-emacs.org
Wed Jun 16 17:03:26 EDT 2021



> On 16 Jun 2021, at 21:46, Arak Rachael <arakelthedragon at gmail.com> wrote:
> 
> On Wednesday, 16 June 2021 at 22:08:31 UTC+2, Chris Angelico wrote:
>>> On Thu, Jun 17, 2021 at 6:06 AM Arak Rachael <arakelt... at gmail.com> wrote: 
>>> 
>>> Hi guys, 
>>> 
>>> I have an image from google maps to say and I need to check if it has road markings, in order to do that, I believe I need to change the effects on the image so the markings and road can be white or something and the things I don't need like cars, trees and so on to be black. 
>>> 
>>> images should contain only road surface and/or road markings (lines, zebras, stripes.
>>> 
>>> Can anyone help me on this, I already have the crop code, I just need to check if the cropped part contains what I need.
>> How well can you define the things you're looking for? 
>> 
>> https://xkcd.com/1425/ 
>> 
>> ChrisA
> Hi Chris,
> 
> what do you mean?

He means that image processing is a hard problem that requires expertise to solve.

> 
> Here is the image, I need to separate the road and markings from the rest and divide the image into squares of 100x100 pixels, for each square I need to check if it contains a road and markings:

Can you define road in terms of an algorithm that looks at the pixels?

> 
> https://www.dropbox.com/s/iduxj0j8w0ic616/SatelliteProcessing_Image.png?dl=0
> 
> -- 
> https://mail.python.org/mailman/listinfo/python-list
> 



More information about the Python-list mailing list