> For the complete documentation index, see [llms.txt](https://docs.roboflow.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.roboflow.com/models/supported-models/l2cs-net.md).

# L2CS-Net

L2CS-Net gaze detection is deprecated on Roboflow servers. It still runs in the browser with inferencejs.

L2CS-Net is a gaze direction model. It finds faces in an image and predicts where each face is looking, as yaw and pitch angles.

{% hint style="warning" %}
L2CS-Net is deprecated on Roboflow servers. It depended on Google's MediaPipe, which is no longer maintained, and [Roboflow Inference](https://docs.roboflow.com/deployment/self-hosted/self-hosted) removed it in version 1.2.8. It no longer runs on the Serverless Cloud API, the Video Inference API, or self-hosted Inference 1.2.8 and later. The `/gaze/gaze_detection` endpoint, the Python SDK `detect_gazes` method, and the Workflows "Gaze Detection" block all raise `FeatureDeprecatedError` (HTTP 410 Gone). Contact Roboflow if you need gaze detection on a server.
{% endhint %}

## Run Gaze Detection in the Browser

The [`inferencejs`](https://docs.roboflow.com/deployment/self-hosted/sdks/web-browser/inferencejs) browser SDK runs gaze detection on the user's device and does not depend on Roboflow Inference. Start a worker with the model name `gaze` and version `1`:

```typescript
import { InferenceEngine } from "inferencejs";

const inferEngine = new InferenceEngine();
const workerId = await inferEngine.startWorker("gaze", 1, "[publishable key]");

const video = document.getElementById("video"); // a webcam <video> element
const gazes = await inferEngine.infer(workerId, video);
```

Each result holds the eye positions plus `yaw` and `pitch` in radians. See [`GazeDetections`](https://docs.roboflow.com/deployment/self-hosted/sdks/web-browser/inferencejs-reference#gazedetections) for the full type. Learn how to turn yaw and pitch into a point on screen in the [gaze detection guide](https://blog.roboflow.com/gaze-direction-position/).
