Go to Post There are NO old, bold electrical engineers! - Al Skierkiewicz [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-23-2010, 06:16 AM
SavtaKenneth SavtaKenneth is offline
Registered User
AKA: Yotam Kenneth
FRC #2212
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Israel
Posts: 63
SavtaKenneth will become famous soon enough
Image recognition API

Hi,

We're trying to program an Image recognition software and we're running into a problem as some(most) of the classes used in the Circle Tracker Demo don't have proper(any) documentation in the WPIlib API. If anyone knows of the documentation of the classes used in the Demo we'd highly appreciate knowing of it.

Many Thanks

~Kenneth
The Spikes #2212
Reply With Quote
  #2   Spotlight this post!  
Unread 01-24-2010, 02:12 AM
Michael DiRamio Michael DiRamio is offline
Registered User
FRC #1114 (Simbotics)
Team Role: Teacher
 
Join Date: Jan 2006
Rookie Year: 2006
Location: St. Catharines, Ontario, Canada
Posts: 39
Michael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond repute
Re: Image recognition API

The classes mirror the NI Vision library. There's a windows help file for it in the National Instruments folder:

C:\Program Files\National Instruments\Vision\Documentation\NIVisionCVI.chm

Look under imaqDetectEllipses in the index.
Reply With Quote
  #3   Spotlight this post!  
Unread 01-24-2010, 12:23 PM
SavtaKenneth SavtaKenneth is offline
Registered User
AKA: Yotam Kenneth
FRC #2212
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Israel
Posts: 63
SavtaKenneth will become famous soon enough
Re: Image recognition API

Thanks that helped. I've got another question though what are the variables m_score,m_rawScore and m_xMax representing?
Reply With Quote
  #4   Spotlight this post!  
Unread 01-24-2010, 07:16 PM
Michael DiRamio Michael DiRamio is offline
Registered User
FRC #1114 (Simbotics)
Team Role: Teacher
 
Join Date: Jan 2006
Rookie Year: 2006
Location: St. Catharines, Ontario, Canada
Posts: 39
Michael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond repute
Re: Image recognition API

I haven't found any documentation about these, but here's my stab at it based on the sample target code:

m_xMax - the width of the image put into the same units as the height. The one line of documentation in the java Target code talks about dividing everything by the height to get things in the same units.

m_rawScore - the score value sent back by the NIVision code. It appears to be a value between 0 and 1000 describing how "ellipse-like" the ellipse it detected is (with 0 being not at all and 1000 being perfect).

m_score - this is a calculation based on the size of the ellipse and the m_rawScore defined above. Large ellipse and high raw score will lead to a high m_score.

- It multiplies the major radius and minor radius (so bigger size will result in a bigger value)
- It divides by (1001 - m_rawScore). A perfect raw score would lead to it being divided by 1, but the less perfect it is, the larger the divisor.
- It is then divided by the area of the image to make it a percentage of the total image size.

Hope that helps.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Java: Image Recognition Delian Java 1 01-12-2010 10:11 AM
[TBA]: API Client Development Greg Marra The Blue Alliance 21 05-04-2008 08:06 PM
FIRST Blogs API Timothy D. Ginn FIRST-related Organizations 0 07-23-2005 09:53 AM
SMTP C++ API Ryan M. Programming 1 09-23-2004 01:49 PM
Win32 API Port Connection Help Raven_Writer Programming 3 01-17-2003 02:23 PM


All times are GMT -5. The time now is 07:35 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi