openlangrid / mlgrid-services

A framework to serve various generative AIs and other machine learning functions via WebSocket and JSONRPC.
Apache License 2.0
2 stars 0 forks source link

FERを追加する #12

Open takawitter opened 2 years ago

takawitter commented 2 years ago

参考: https://github.com/justinshenk/fer procsディレクトリ下に facial_expression_recognition_fer ディレクトリを作ってその中で呼び出せるようにする(docker化含む)

takawitter commented 2 years ago

Google Colabで以下のスクリプトを実行して動作することを確認。画像ファイルは添付のものを使用。

!pip install fer
from fer import FER
import cv2

img = cv2.imread("./justin.jpeg")
detector = FER()
detector.detect_emotions(img)

justin