Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mohanson/face-detection-server
Face decection server based on SeetaFace
https://github.com/mohanson/face-detection-server
Last synced: about 2 months ago
JSON representation
Face decection server based on SeetaFace
- Host: GitHub
- URL: https://github.com/mohanson/face-detection-server
- Owner: mohanson
- Created: 2016-10-12T02:50:36.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-05-05T08:14:50.000Z (over 1 year ago)
- Last Synced: 2024-06-22T14:41:57.570Z (6 months ago)
- Language: Go
- Homepage:
- Size: 1.01 MB
- Stars: 104
- Watchers: 10
- Forks: 36
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FaceDetectionServer
基于 [SeetaFace](https://github.com/seetaface/SeetaFaceEngine) 的高性能人脸识别服务, 使用 Golang 与 CPP 混合开发. 该项目演示了使用 Cgo 与 CPP 代码进行复杂交互的一种方式.
![img](./face_detection.jpg)
# Requirements
```sh
$ apt install libopencv-dev libjsoncpp-dev
```# Build and Usage
```sh
$ make seeta # 下载 SeetaFace 源码到 /src, 切换到指定版本并进行编译, 该过程需要 cmake3 支持.
$ make faced # 编译胶水部分 c++ 代码, 提供可供 golang 使用的 c 语法 lib.
$ make goserver # 混合编译 golang/c++ 服务到单独二进制文件并启动服务
``````sh
$ http POST :8080/image/bin/detection < ./face.jpg # 对服务进行命令行测试
``````json
HTTP/1.1 200 OK
Content-Length: 70
Content-Type: application/json
Date: Wed, 12 Oct 2016 02:47:09 GMT{
"face": [
{
"Y": 167,
"height": 287,
"width": 287,
"x": 103
}
],
"size": [
500,
650
]
}
```