TeamCode/src/main/java/org/firstinspires/ftc/teamcode/CameraBot.java
/**
     * Initialize the Vuforia localization engine.
     */
Initialize the Vuforia localization engine.
Initialize the Vuforia localization engine .
private void initVuforia() {
        Vuforia.setFrameFormat(PIXEL_FORMAT.RGB565, true);
        /*
         * Configure Vuforia by creating a Parameter object, and passing it to the Vuforia engine.
         */
        int cameraMonitorViewId = hwMap.appContext.getResources().getIdentifier("cameraMonitorViewId", "id", hwMap.appContext.getPackageName());
        VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters(cameraMonitorViewId);
        parameters.vuforiaLicenseKey = VUFORIA_KEY;
        parameters.cameraDirection = VuforiaLocalizer.CameraDirection.BACK;
        vuforia = ClassFactory.getInstance().createVuforia(parameters);
        vuforia.enableConvertFrameToBitmap();
        vuforia.setFrameQueueCapacity(5);
    }
private void initVuforia ( ) { Vuforia . setFrameFormat ( PIXEL_FORMAT . RGB565 , true ) ; /*
         * Configure Vuforia by creating a Parameter object, and passing it to the Vuforia engine.
         */ int cameraMonitorViewId = hwMap . appContext . getResources ( ) . getIdentifier ( "cameraMonitorViewId" , "id" , hwMap . appContext . getPackageName ( ) ) ; VuforiaLocalizer . Parameters parameters = new VuforiaLocalizer . Parameters ( cameraMonitorViewId ) ; parameters . vuforiaLicenseKey = VUFORIA_KEY ; parameters . cameraDirection = VuforiaLocalizer . CameraDirection . BACK ; vuforia = ClassFactory . getInstance ( ) . createVuforia ( parameters ) ; vuforia . enableConvertFrameToBitmap ( ) ; vuforia . setFrameQueueCapacity ( 5 ) ; }
Initialize the Vuforia localization engine.
Initialize the Vuforia localization engine .
//  Instantiate the Vuforia engine // Loading trackables is not necessary for the Camera bot // setup frame queue