马上注册,结交朋友,共同学习EasyClick
您需要 登录 才可以下载或查看,没有账号?立即注册
×
人脸识别API服务端
功能:识别图片性别,年龄特征,支持一张图包含多个人脸进行识别
服务端启动结果
Application Version: 1.0.0 Spring Boot Version: 2.5.5
18:38:41.248 [main] INFO top.lyj.App - [logStarting,55] - Starting App v0.0.1-SNAPSHOT using Java 1.8.0_202 on E5 with PID 24028 (E:\人脸识别服务端\ant-utils-0.0.1-SNAPSHOT.jar started by pc in E:\人脸识别服务端)
18:38:41.258 [main] DEBUG top.lyj.App - [logStarting,56] - Running with Spring Boot v2.5.5, Spring v5.3.10
18:38:41.258 [main] INFO top.lyj.App - [logStartupProfileInfo,659] - No active profile set, falling back to default profiles: default
18:38:44.810 [main] WARN i.u.websockets.jsr - [handleDeployment,68] - UT026010: Buffer pool was not set on WebSocketDeploymentInfo, the default pool will be used
18:38:44.844 [main] INFO io.undertow.servlet - [log,382] - Initializing Spring embedded WebApplicationContext
18:38:45.237 [main] DEBUG t.l.c.FaceEngineCompoment - [getFaceEnine,72] - 初始化人脸引擎成功!
18:38:47.170 [main] INFO io.undertow - [start,120] - starting server: Undertow - 2.2.10.Final
18:38:47.188 [main] INFO org.xnio - [<clinit>,95] - XNIO version 3.8.4.Final
18:38:47.204 [main] INFO org.xnio.nio - [<clinit>,58] - XNIO NIO Implementation Version 3.8.4.Final
18:38:47.297 [main] INFO org.jboss.threads - [<clinit>,52] - JBoss Threads version 3.1.0.Final
18:38:47.692 [main] WARN s.d.s.r.o.OperationImplicitParameterReader - [modelSpecification,170] - Unable to interpret the implicit parameter configuration with dataType: MultipartFile, dataTypeClass: class java.lang.Void
18:38:47.763 [main] INFO top.lyj.App - [logStarted,61] - Started App in 7.266 seconds (JVM running for 8.082)
//EC请求
let req = http.httpPost("http://192.168.2.4:8080/face/faceAuth", {}, {"image": "/sdcard/Pictures/人物2.jpg"}, 5 * 1000, {})
logd(req);
// 识别结果
【远程设备】(js/main.js#19 ){"msg":"success","code":0,"data":[{"sex":1,"avg":69,"code":0},{"sex":1,"avg":69,"code":0}]}
|