🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

github.com/mohanson/face-detection-server

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/mohanson/face-detection-server

v0.0.0-20230505081447-9c58fccf66f9
Source
Go
Version published
Created
Source

FaceDetectionServer

基于 SeetaFace 的高性能人脸识别服务, 使用 Golang 与 CPP 混合开发. 该项目演示了使用 Cgo 与 CPP 代码进行复杂交互的一种方式.

img

Requirements

$ apt install libopencv-dev libjsoncpp-dev

Build and Usage

$ make seeta    # 下载 SeetaFace 源码到 /src, 切换到指定版本并进行编译, 该过程需要 cmake3 支持.
$ make faced    # 编译胶水部分 c++ 代码, 提供可供 golang 使用的 c 语法 lib.
$ make goserver # 混合编译 golang/c++ 服务到单独二进制文件并启动服务
$ http POST :8080/image/bin/detection < ./face.jpg # 对服务进行命令行测试
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
    ]
}

FAQs

Package last updated on 05 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts