2020/11現在
key | value |
---|---|
Name | 鶴田 洸 (Akira TSURUDA) |
LAPRAS | https://lapras.com/public/I8IXHAC |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from flask import Flask, request | |
from flask_restplus import Api, Namespace, Resource, fields | |
# initialize flask app | |
app = Flask(__name__) | |
api = Api( | |
app, |
import logging | |
from datetime import datetime | |
from logging import FileHandler, Formatter, StreamHandler, getLogger | |
from pathlib import Path | |
logger = getLogger(__name__) | |
logger.setLevel(logging.INFO) | |
log_format = Formatter('%(asctime)s (%(name)s) [%(levelname)s] %(message)s') |
2020/11現在
key | value |
---|---|
Name | 鶴田 洸 (Akira TSURUDA) |
LAPRAS | https://lapras.com/public/I8IXHAC |
$OutputPath = [System.IO.Path]::GetFileNameWithoutExtension($Args[0])+".mkv" | |
.\mkvmerge.exe ` | |
-o $OutputPath ` | |
--colour-matrix 0:9 ` | |
--colour-range 0:1 ` | |
--colour-transfer-characteristics 0:16 ` | |
--colour-primaries 0:9 ` | |
--max-content-light 0:1000 ` | |
--max-frame-light 0:300 ` | |
--max-luminance 0:1000 ` |
import gradio as gr | |
import matplotlib.pyplot as plt | |
from feat import Detector | |
from PIL import Image | |
def detect_and_plot(image: Image.Image, face_model: str, landmark_model: str, au_model: str, emotion_model: str, facepose_model: str) -> plt.Figure: | |
# 画像を RGB に変換 (透過 PNG 対策) | |
if image.mode in ('RGBA', 'LA') or (image.mode == 'P' and 'transparency' in image.info): | |
image = image.convert("RGB") |