PDA

View Full Version : Python object (shape) recognition, help!



bestron
April 1st, 2011, 09:06 PM
I'm beginning a project that has shapes of objects recognition as a part of it, I'll be programming in python
any help with this will be acceptable: libraries, algorithms or source codes, as I don't have any ideas on how to implement that in programming

Tony Flury
April 1st, 2011, 09:15 PM
ok - what sort of image (bitmap/raster or vector) ? simple shapes (square, triangle etc), or complex. Shaded or simple colours ?

There are a lot of things to consider

if you are dealing with a bit map image, you will probably want to start with some edge detection, and simplification - i.e. convert your bitmap into a simple vector image.

Arndt
April 1st, 2011, 09:15 PM
I'm beginning a project that has shapes of objects recognition as a part of it, I'll be programming in python
any help with this will be acceptable: libraries, algorithms or source codes, as I don't have any ideas on how to implement that in programming

Can you give an example?

bestron
April 1st, 2011, 09:33 PM
well that will be an image from a file or a camera such as a mug, clock or something like that

Tony Flury
April 7th, 2011, 10:25 AM
You do realise that there are teams of experts working on this and starting to get results only with 10,000s of hours of work.

Visual recognition of real world objects is tough - you have to deal with colour, shading, lighting, orientation, texture, focus, distance. You could spend a lot of time getting the programm just to consistently recognise the exact same object over and over again - and not to generate false positives.

All in all - not a job for one person i would not have thought.

And then you need to start to thing about classification - for instance - you show your program two objects - can it recognise that they are both clocks - i.e. can it recognise the common features - hands, clock face etc, and then what about clocks with out numerals on the face, or with roman numberals, or where the hand stay still and the face rotates, or digital clocks ?

simeon87
April 7th, 2011, 12:34 PM
Most of all, I think Python is not fast enough to do real world image processing. You could create an application that loads an image and calls a C library to do the image processing but I don't think you can do image processing with many filters in Python itself.

LemursDontExist
April 7th, 2011, 09:05 PM
You could try looking the the Python Imaging Library (http://www.pythonware.com/products/pil/) as a starting point. This should allow you do do edge detection and relatively fast filter application. That said, unless you're trying to do is fairly simple, or you're ready to devote hundreds of hours to the task, I think you're out of luck. As the others have noted, image recognition is still very much in it's infancy.

If you gave us some more details as to what you're hoping to do, we might be able to help more!

g30rg3
May 4th, 2011, 11:17 AM
Well I'm not an expert, but since I have worked with image processing using Matlab, I think you could code the program in Matlab and use a Matlab to Python conversion library. That would be much easier. But as far as I know, the conversion library is not exhaustive and there may be functions that are not supported

cheapodonuts
June 10th, 2011, 06:53 PM
Anyone notice this thread started on April 1st? ;)
Still, I'd love to have some thing like this as a functioning program. I need some automatic system to scare Gulls away from my garden. Not other birds, just Gulls that steal my cat's food. :D