Laser Line
The Laser Line module detects a single red laser line within the current image assumed to
be spanning the image in a horizontal direction from the right side to the left side of the image.
The primary purpose of the Laser Line module is to detect a horizontal laser line such that
one can use the detected values for collision or obstacle avoidance.
This module has been tested with the inexpensive laser line diode
from Instapark. We
have found this laser to be quite good quality for the price in comparison to other
handheld line lasers.
Example
| Source | Laser_Line |
 |  |
Variables
LOWEST_LASER_X, LOWEST_LASER_Y - The X,Y coordinate of the lowest detected part of the line.
HIGHEST_LASER_X, HIGHEST_LASER_Y - The X,Y coordinate of the highest detected part of the line.
AVERAGE_LASER_X, AVERAGE_LASER_Y - The average X,Y coordinate of the line
LASER_SLOPE - The average slope of the detected line
LASER_POINTS - An array containing the Y position of the detected line. Note that this array is
the same size as the current width of the processed image. This array is NOT and X,Y list but in
fact a single line bitmap that contains a 0 if no red laser point was detected in the column or
a non-zero number that indicates the Y position of that part of the detected line. Note that if
no line is detected them this array will contain all 0 values. If a straight laser line is detected
in the middle of the image against a planar object then all values will be IMAGE_HEIGHT/2.
See Also
Laser Spot
For more information
David Laser Scanner
Active Stereo
| "Laser_Line" Forum Posts | Last post | Posts | Views |
Is this the way to go? Obstacle avoidance
My mobile robot has a forward facing camera for obstacle avoidance and path finding. I want to implement this logic. If there is... |
15 days |
8 |
179 |
Seam tracking
Dear Steven
I am enclosing a jpg. I need to find the co-ordinates of the point of intersection between the laser l... |
28 days |
4 |
86 |
Laser line segmentation
Hi STeven,
Nice job with the laser line module. I was wondering if there is a way to use that data?... |
10 months |
2 |
530 |
|