open class Vision : MineralDetection
This class takes care of all your vision needs. Wrapper class for Vuforia that extends MineralDetection. Improves code reusability.
IMPORTANT: Use of the Vision class requires a Vuforia auth key. To learn how to set one up, browse to the VuforiaAuthKey class.
open class Location
A class representing where a robot is on the field. The origin is the center of the field. |
Vision(hardwareMap: HardwareMap) |
static val LABEL_GOLD_MINERAL: String |
|
static val LABEL_SILVER_MINERAL: String |
|
var cameraDirection: CameraDirection |
|
var hardwareMap: HardwareMap |
|
var tfod: TFObjectDetector |
|
var vuforia: VuforiaLocalizer |
open fun activate(): Unit |
|
open fun getLocation(): Location
Attempts to determine the robot's location. |
|
open fun initVuforia(): Unit
Initialize the Vuforia localization engine. |
open fun getUpdatedRecognitions(): MutableList<Recognition>
Asks TFOD for updated recognitions. |
|
open fun init(): Unit
Convenience method to initialize Vuforia and TensorFlow at the same time. Usually called during the init phase of an op mode. |
|
open fun initTfod(): Unit
Initialize the Tensor Flow Object Detection engine. |
|
open fun shutdown(): Unit
Shut down TFOD. This method is typically called in an OpMode's stop function. |