"提供目"(Teikyo-me) is japanese traditional funny picture for TV captured things.
Japanese TV has fund provider. And japanese TV maker introduce the company for appreciation. So sometimes that caption be coverd with some people eyes.
This repository generate this "提供目".
To install Teikyo generator, you need to install Go and Go workspaces.
And to enable Face API in Azure.
https://azure.microsoft.com/ja-jp/services/cognitive-services/face/
-
go get
this repository$ go get github.com/hatobus/Teikyo
-
To write
.env
file .env file is like thisURL=[Your request URL with Azure] KEY1=[Azure Key1] KEY2=[Azure Key2]
-
To start
server.go
go run server.go
Default port is
8080
. If it already used. To change other ports. -
Do POST Request
- curl
curl http://localhost:8080/detect \ -F "upload[]=@path/to/img1.jpg" \ -F "upload[]=@path/to/img2.jpg" \ -H "Content-Type: multipart/form-data"
- httpie
http -f POST http://localhost:8080/detect \ upload[]@/path/to/img1.jpg \ upload[]@/path/to/img3.jpg
Source image must be
jpeg
file. (Other format will be error) - curl
-
To generate pictures
Output image generate to
picture/output
and name isoutput[num].png
example
- Azure
- FaceAPI
- Golang
- godotenv
- gin