Prueba de animación en OBS

Animación en vivo con OBS

Utilizo dlib para conocer mi rostro y animarlo usando websock para mover el dibujo en OBS.

RLL=20
RHH=12
RVV=-12
python3 expresion.py | while read A; do
eval "$A";
echo "{\"request-type\":\"SetSceneItemProperties\",\"item\":\"cabeza\",\"rotation\": $( echo "360+($RL-.5)*$RLL" | bc -l), \"visible\": true, \"position\": { \"x\": $(echo "scale=2; 640+($RH*$RHH)" | bc -l ), \"y\": $(echo "scale=2; 360+($RV*$RVV)" | bc -l ), \"alignment\": 0 }, \"message-id\":\"cara\"}"
[ "$BOCA" == "$BOCA1" ] && continue
[ "$BOCA" == "0" ] && echo "{\"request-type\":\"SetSceneItemProperties\",\"item\":\"boca\",\"visible\": true, \"message-id\":\"b\"}"
[ "$BOCA" == "1" ] && echo "{\"request-type\":\"SetSceneItemProperties\",\"item\":\"boca\",\"visible\": false, \"message-id\":\"b\"}"
BOCA1=$BOCA
done | websocat ws://localhost:4444

Publicado en Experimento y etiquetado , , , .