2 Star 11 Fork 5

小帅丶 / BaiDuFaceOfflineSample

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

BaiDuFaceOfflineSample

介绍

百度人脸识别离线识别SDK Java版 Windows 基础项目搭建运行

使用说明

项目自身占用挺大。DLL文件较多。下载可能会慢。耐心等待

其他必要或非必要文件

face-resource 人脸识别的一些模型文件 必须要

orbe_install 奥比摄像头所需exe

hjimi_install 华捷艾米摄像头所需exe

下载后粘贴到项目根目录即可

下载地址:

链接: https://pan.baidu.com/s/1LL3Mg6LIGNq12l9k3NDK6Q 提取码: ydtb

项目整包下载

参考配套博文

https://blog.csdn.net/u010651369/article/details/100543224

示例代码

import com.jni.face.*;

public class FaceTest {

    public static void main(String[] args) {
        Face face = new Face();
        // 初始化sdk
        // 若采用证件照模式,请把id_card设为true,否则为false,证件照模式和非证件照模式提取的人脸特征值不同,
        // 不能混用
        boolean idCard = false;
        face.sdkInit(idCard);
        String deviceId = face.getDeviceId();
        System.out.println("设备指纹信息:" + deviceId);
        //图片路径
        String filePath = "F:\\testimg\\demo-card-1.jpg";
        //获取人脸属性
        String result = Face.faceAttr(filePath);
        System.out.println("result = " + result);
    }

}
MIT License Copyright (c) 2019 小帅丶 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

百度人脸识别离线识别SDK Java版 Windows 展开 收起
Java
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/xshuai/BaiDuFaceOfflineSample.git
git@gitee.com:xshuai/BaiDuFaceOfflineSample.git
xshuai
BaiDuFaceOfflineSample
BaiDuFaceOfflineSample
master

搜索帮助