Results 1 to 2 of 2

Thread: Shape detection / recognition

  1. #1
    Join Date
    Dec 2008
    Location
    Poland
    Posts
    383
    Thanks
    52
    Thanked 42 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Shape detection / recognition

    Hello,
    I'm looking for a way to detect shape that is QImage (I know that OpenCV can do that but I don't want to use that lib in code) or as QPainterPath.


    Basically what I want to do is this: user draw rectangle, mouse move do create QPainterPath and now using that painter path I would like to detect shape that was drawn, in this case rectangle. The problem is that rectangle can have variable angle and can be imperfect. This also need to distinguish other shapes like circle, triangle etc.

    Any idea about solving this problem are more then welcome.
    In the near future - corporate networks reach out to the stars. Electrons and light flow throughout the universe.
    The advance of computerization however, has not yet wiped out nations and ethnic groups.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Shape detection / recognition

    There are many algorithms you can use based on different AI systems (e.g. neural networks). In general the problem is called "Classification" and the general approach involves teaching your classificator different shapes and then feeding it with the actual shape and asking it to classify the shape as belonging to one of the sets learned earlier. The algorithm itself depends on the actual task you want to solve, in your case a somewhat naive approach would be to feed the classifier with an ordered set of vertices forming the path.

    Here is an article to get you going:
    http://en.wikipedia.org/wiki/Statistical_classification
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. My Music Recognition
    By AmirH in forum Qt-based Software
    Replies: 2
    Last Post: 29th June 2014, 17:48
  2. Speech recognition library for Qt in C ++
    By giorgik in forum Qt Programming
    Replies: 4
    Last Post: 15th November 2012, 16:03
  3. Qt or C++ system recognition function
    By Momergil in forum Newbie
    Replies: 3
    Last Post: 28th July 2011, 22:01
  4. Speech recognition?
    By gadnio in forum Qt Programming
    Replies: 3
    Last Post: 7th May 2007, 09:49
  5. User recognition
    By eu.x in forum Qt Programming
    Replies: 4
    Last Post: 13th March 2007, 03:16

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.