Quote:
Originally Posted by kinganu123
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