> 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/ko/supported-models/l2cs-net.md).

# L2CS-Net

L2CS-Net 시선 감지는 Roboflow 서버에서 사용 중단되었습니다. 하지만 inferencejs를 사용하면 브라우저에서 계속 실행됩니다.

L2CS-Net은 시선 방향 모델입니다. 이미지에서 얼굴을 찾고 각 얼굴이 바라보는 방향을 요(yaw) 및 피치(pitch) 각도로 예측합니다.

{% hint style="warning" %}
L2CS-Net은 Roboflow 서버에서 지원 중단되었습니다. 더 이상 유지 관리되지 않는 Google의 MediaPipe에 의존했으며, [Roboflow Inference](https://docs.roboflow.com/deployment/self-hosted/self-hosted) 에서 버전 1.2.8에 제거했습니다. 이제 Serverless Cloud API나 자체 호스팅 Inference 1.2.8 이상에서는 실행되지 않습니다.  `/gaze/gaze_detection` 엔드포인트, Python SDK의 `detect_gazes` 메서드, 그리고 Workflows의 "Gaze Detection" 블록은 모두 `FeatureDeprecatedError` (HTTP 410 Gone)를 발생시킵니다. 서버에서 시선 감지가 필요하면 Roboflow에 문의하세요.
{% endhint %}

## 브라우저에서 시선 감지 실행

&#x20;[`inferencejs`](https://docs.roboflow.com/deployment/self-hosted/sdks/web-browser/inferencejs)  브라우저 SDK는 사용자의 기기에서 시선 감지를 실행하며 Roboflow Inference에 의존하지 않습니다. 모델 이름으로 워커를 시작합니다 `gaze`  및 버전 `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);
```

각 결과에는 눈 위치와 함께 `yaw` 및 `pitch` (라디안 단위)가 포함됩니다. 전체 타입은 [`GazeDetections`](https://docs.roboflow.com/deployment/self-hosted/sdks/web-browser/inferencejs-reference#gazedetections) 에서 확인하세요. yaw와 pitch를 화면상의 한 점으로 변환하는 방법은 [시선 감지 가이드에서 알아보세요.](https://blog.roboflow.com/gaze-direction-position/).
