> For the complete documentation index, see [llms.txt](https://ftc-code.gitbook.io/tech-toolbox/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ftc-code.gitbook.io/tech-toolbox/computer-vision/setting-up-camera-intro-to-computer-vision-tools/vuforia.md).

# Vuforia

The Vuforia Library

Vuforia is a library often used with vision detection for FTC. To use Vuforia, you will need to obtain a Vuforia license key. Luckily, this process is simple and steps can be found [here](https://library.vuforia.com/getting-started/vuforia-license-manager#:~:text=Go%20to%20the%20License%20Manager,in%20the%20License%20Name*%20field.).

### Instantiating Vuforia

Once you have gotten the license key, you must start the initialization of Vuforia. Start with these two lines.

```java
String VUFORIA_KEY = "Vuforia Key Goes Here"
VuforiaLocalizer vuforia;
```

### Parameters

Now we must further initialize the Vuforia Engine but passing the necessary parameters for it to run. Just paste this line into your initialization.

```java
int cameraMonitorViewId = hardwareMap.appContext.getResources().getIdentifier("cameraMonitorViewId", "id", hardwareMap.appContext.getPackageName());
VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters(cameraMonitorViewId);
```

Now we since we have created the parameters object, we can pass in the actual parameters.

```java
parameters.vuforiaLicenseKey = VUFORIA_KEY;
parameters.cameraDirection = BACK; //Making sure to use the right camera
```

Paste these lines to pass everything into and actually startup the Vuforia Engine

```java
vuforia = ClassFactory.getInstance().createVuforia(parameters);

vuforia.setFrameQueueCapacity(1);

vuforia.enableConvertFrameToBitmap();

```
