# FaceDetectionServer **Repository Path**: flybird119/FaceDetectionServer ## Basic Information - **Project Name**: FaceDetectionServer - **Description**: 基于 SeetaFace 的人脸识别服务, By and For Golang - **Primary Language**: Go - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2022-07-07 - **Last Updated**: 2022-07-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # FaceDetectionServer 基于 [SeetaFace](https://github.com/seetaface/SeetaFaceEngine) 的高性能人脸识别服务, 使用 Golang 与 CPP 混合开发. ![Face](./face_detection.jpg) # Requirements ```sh $ yum install cmake3 $ yum install opencv opencv-devel $ yum install jsoncpp-devel ``` # Build and Usage ```sh $ make seeta # 下载 SeetaFace 源码到 /src, 切换到指定版本并进行编译, 该过程需要 cmake3 支持 $ make faced # 编译胶水部分 c++ 代码, 提供可供 golang 使用的 c 语法 lib. $ make goserver # 混合编译 golang/c++ 服务到单独二进制文件 ``` ```sh $ ./server # 启动 HTTP 服务 $ 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 ] } ```