NewsCrawler.org

Real-time facial expression app built on a local AI decision model on a Mac

ローカルAI (Liquid AI d1) × Webカメラでリアルタイム表情判定アプリが簡単に作れた 〜意思決定モデルの可能性について〜
カメラ映像から表情を判定しているデモ画面。右の判定ログに 5 種の表情の確率が流れていく
Webカメラに顔を映す → 1コマを画像にする → d1 に画像と質問を渡す → 5つの表情の確率が返ってくる → 画面に表示、を1秒に約10枚のペースで繰り返す流れ。すべて手元のMacの中で完結する
Image: zenn.dev

The author of a Japanese Zenn article built an app that shows facial expressions from a webcam as percentages in real time. It uses Liquid AI d1[1], a decision model[2] that runs locally on a Mac, so no cloud API is involved.

Each webcam frame is sent to the model, which returns a probability for each of five options: neutral, smile, surprised, angry and troubled. The author reports about 0.1 seconds per judgment, roughly 10 frames per second, and memory use of about 5 GB. No extra training or tuning was done.

On the author's own face, the angry and troubled probabilities often swapped places, with values around 46% and 47%. The author sees this ambiguity as human-like and not a serious error, and plans to pass both values directly to the emotion parameters of a Live2D avatar.

Read the original zenn.dev

Sources

  • Zenn JA

    ローカルAI (Liquid AI d1) × Webカメラでリアルタイム表情判定アプリが簡単に作れた 〜意思決定モデルの可能性について〜

    10 likes0 bookmarks0 comments

Published: First seen: Читать по-русски

Open as a page