libVision  1.0
A vision library made by FRC team #4529
Public Attributes | List of all members
LineResult Struct Reference

Result returned from TargetDetector::getContours() More...

#include <TargetDetector.h>

Public Attributes

bool isProcessed
 If there was a fatal issue with capturing/processing the frame. More...
 
bool isGood
 If the target found in the input frame. More...
 
float xPos
 Centeral X position of the target - goes from -100.0f to 100.0f, 0.0f being centered. More...
 
float width
 Combined width of the bounding boxes of the targets - goes from 0.0f to 100.0f. More...
 
rotation_t rotation
 Rotation direction of the target. More...
 

Detailed Description

Result returned from TargetDetector::getContours()

Member Data Documentation

bool LineResult::isGood

If the target found in the input frame.

bool LineResult::isProcessed

If there was a fatal issue with capturing/processing the frame.

Warning
If this is false, you MUST close and re-open the camera, as you will not be able to get any more good frames.
rotation_t LineResult::rotation

Rotation direction of the target.

float LineResult::width

Combined width of the bounding boxes of the targets - goes from 0.0f to 100.0f.

Note
Includes space between the 2 bounding boxes of the found targets.
float LineResult::xPos

Centeral X position of the target - goes from -100.0f to 100.0f, 0.0f being centered.


The documentation for this struct was generated from the following file: