Go to Post I walked out to the area where the robot was getting ready to move, and there's no room near the robot. I look again, and realize it's all students. - rachakate [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 23-01-2012, 09:51
kinganu123 kinganu123 is offline
Registered User
FRC #1747
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Piscataway, NJ
Posts: 243
kinganu123 is on a distinguished road
Need clearing up on Vision Paper

I was reading the Vision paper for java and three particular lines stuck out that i didn't entirely understand how to do.
1. "The exposure on the camera was set by intentionally overexposing the
image by shining a flashlight into the camera, allowing the auto exposure to reduce the sensitivity, then locking in that setting."
How would we "lock" the sensitivity. From what I understand, we'd have to stand in front of the robot with a flashlight every time it turns on to set overexpose it to light... Is that really what must be done?
2. It says that "a width and height of 30-400 and 40-400 pixels" is the criteria. Doesn't that change with the distance to the hoops? If so, how would I compensate for the pixel change? Or is that just a range of possible values?
3. What does "center of mass x value" mean? Is that the pixel location (which doesn't make sense because it would be coordinate points) for the center of a rectangle? I'm basically asking what this line of code means:
Code:
System.out.println("Particle: " + i + ":  Center of mass x: " + r.center_mass_x)
__________________

Last edited by kinganu123 : 23-01-2012 at 09:54.
Reply With Quote
  #2   Spotlight this post!  
Unread 23-01-2012, 10:37
Bryscus's Avatar
Bryscus Bryscus is offline
EE, CpE
AKA: Bryce B.
FRC #0180 (SPAM)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 1999
Location: Jupiter, FL
Posts: 173
Bryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud of
Re: Need clearing up on Vision Paper

Quote:
Originally Posted by kinganu123 View Post
I was reading the Vision paper for java and three particular lines stuck out that i didn't entirely understand how to do.
1. "The exposure on the camera was set by intentionally overexposing the
image by shining a flashlight into the camera, allowing the auto exposure to reduce the sensitivity, then locking in that setting."
How would we "lock" the sensitivity. From what I understand, we'd have to stand in front of the robot with a flashlight every time it turns on to set overexpose it to light... Is that really what must be done?
2. It says that "a width and height of 30-400 and 40-400 pixels" is the criteria. Doesn't that change with the distance to the hoops? If so, how would I compensate for the pixel change? Or is that just a range of possible values?
3. What does "center of mass x value" mean? Is that the pixel location (which doesn't make sense because it would be coordinate points) for the center of a rectangle? I'm basically asking what this line of code means:
Code:
System.out.println("Particle: " + i + ":  Center of mass x: " + r.center_mass_x)
1. Log into the camera from a web browser. Go to setup. (I don't have the camera with me so this is from memory). In the options on the left hand side there is a link for setting up the image and there's a sub-link for advanced settings. What you'll do is shine the light in from of the camera and then use the pull-down and select hold (I think the setting is just called exposure). Then click save. The images from the camera will now be darker when you remove the light. This setting will remain through a power cycle.

2. I think what he's saying is that he is filtering the rectangles that don't fit into those criteria.

3. Center of mass is the coordinates all measured together to give you an approximate center of a "particle" (NI calls contiguous pixel masses particles). Thus, center of mass x is exactly what it sounds like. The center of the particle in question on the x axis.

Hope that helps.

- Bryce
__________________
The opulence of the front office decor varies inversely with the fundamental solvency of the firm.
Reply With Quote
  #3   Spotlight this post!  
Unread 23-01-2012, 10:39
nickpeq nickpeq is offline
Turing-complete
FRC #1255 (Blarglefish)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Baytown, TX
Posts: 60
nickpeq is an unknown quantity at this point
Re: Need clearing up on Vision Paper

Quote:
Originally Posted by kinganu123 View Post
I was reading the Vision paper for java and three particular lines stuck out that i didn't entirely understand how to do.
1. "The exposure on the camera was set by intentionally overexposing the
image by shining a flashlight into the camera, allowing the auto exposure to reduce the sensitivity, then locking in that setting."
How would we "lock" the sensitivity. From what I understand, we'd have to stand in front of the robot with a flashlight every time it turns on to set overexpose it to light... Is that really what must be done?
EDIT: Go with what Bryce said If you can save settings through a power cycle, I will definitely do that too.
2. It says that "a width and height of 30-400 and 40-400 pixels" is the criteria. Doesn't that change with the distance to the hoops? If so, how would I compensate for the pixel change? Or is that just a range of possible values?
3. What does "center of mass x value" mean? Is that the pixel location (which doesn't make sense because it would be coordinate points) for the center of a rectangle? I'm basically asking what this line of code means:
Code:
System.out.println("Particle: " + i + ":  Center of mass x: " + r.center_mass_x)
1. There are various settings for the camera that can be manipulated. Exposure is a bit less controllable. The AxisCamera.ExposureT class does have a "hold" value, if you were using a flashlight to overexpose the camera. It may indeed be necessary to manually overexpose it for the perfect settings, but I doubt you'll always need perfect settings.
2. I imagine they found that you generally aren't close enough or far enough away to go outside of these bounds for the size of the rectangles. Also, you really don't want to pick up all the little reflections off of other things. (removeSmallObjects helps)
3. Yes, it's the center x-value of the rectangle.

My own question: I would like to know more about how to get static test images onto the cRIO.
Reply With Quote
  #4   Spotlight this post!  
Unread 23-01-2012, 14:58
Bryscus's Avatar
Bryscus Bryscus is offline
EE, CpE
AKA: Bryce B.
FRC #0180 (SPAM)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 1999
Location: Jupiter, FL
Posts: 173
Bryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud of
Re: Need clearing up on Vision Paper

Quote:
Originally Posted by nickpeq View Post
My own question: I would like to know more about how to get static test images onto the cRIO.
Do you mean transfer them to the cRIO and then use them? Or save images from the camera during processing?

You can always just ftp a file over to the cRIO. If you open up a windows file explorer window (like My Computer) you can type the IP address of the cRIO into the address bar. For example, ftp://10.xx.yy.2 where xx.yy is you team number, is what you'd type. From there you can just drag and drop files into the folder.

To use them, you might have to use the imaq Functions from the NIVision library. I don't see a read image in any of the Image classes provided in WPILib.

For the latter, you might find it here:

http://www.chiefdelphi.com/forums/sh...85#post1111985

- Bryce
__________________
The opulence of the front office decor varies inversely with the fundamental solvency of the firm.
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


All times are GMT -5. The time now is 22:21.

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