store.sophi.xjr:spring-boot-ai-face-starter

Parent pom providing dependency and plugin management for applications built with Maven

License

License

Categories

Categories

Spring Boot Container Microservices
GroupId

GroupId

store.sophi.xjr
ArtifactId

ArtifactId

spring-boot-ai-face-starter
Last Version

Last Version

1.0.5.RELEASE
Release Date

Release Date

Type

Type

jar
Description

Description

Parent pom providing dependency and plugin management for applications built with Maven
Project URL

Project URL

https://projects.spring.io/spring-boot/#/spring-boot-starter-parent/spring-boot-ai-face-starter
Source Code Management

Source Code Management

https://github.com/sophisticatedxie/spring-boot-ai-face-starter.git

Download spring-boot-ai-face-starter

How to add to project

<!-- https://jarcasting.com/artifacts/store.sophi.xjr/spring-boot-ai-face-starter/ -->
<dependency>
    <groupId>store.sophi.xjr</groupId>
    <artifactId>spring-boot-ai-face-starter</artifactId>
    <version>1.0.5.RELEASE</version>
</dependency>
// https://jarcasting.com/artifacts/store.sophi.xjr/spring-boot-ai-face-starter/
implementation 'store.sophi.xjr:spring-boot-ai-face-starter:1.0.5.RELEASE'
// https://jarcasting.com/artifacts/store.sophi.xjr/spring-boot-ai-face-starter/
implementation ("store.sophi.xjr:spring-boot-ai-face-starter:1.0.5.RELEASE")
'store.sophi.xjr:spring-boot-ai-face-starter:jar:1.0.5.RELEASE'
<dependency org="store.sophi.xjr" name="spring-boot-ai-face-starter" rev="1.0.5.RELEASE">
  <artifact name="spring-boot-ai-face-starter" type="jar" />
</dependency>
@Grapes(
@Grab(group='store.sophi.xjr', module='spring-boot-ai-face-starter', version='1.0.5.RELEASE')
)
libraryDependencies += "store.sophi.xjr" % "spring-boot-ai-face-starter" % "1.0.5.RELEASE"
[store.sophi.xjr/spring-boot-ai-face-starter "1.0.5.RELEASE"]

Dependencies

compile (8)

Group / Artifact Type Version
com.google.guava : guava jar 29.0-jre
com.alibaba : fastjson Optional jar 1.2.38
org.springframework.boot : spring-boot-configuration-processor Optional jar 2.0.2.RELEASE
org.springframework.boot : spring-boot-starter Optional jar 2.0.2.RELEASE
org.projectlombok : lombok Optional jar 1.16.10
com.baidu.aip : java-sdk jar 4.12.0
org.springframework.boot : spring-boot-starter-web jar 2.0.2.RELEASE
cn.hutool : hutool-all jar 5.0.2

test (1)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter-test jar 2.0.2.RELEASE

Project Modules

There are no modules declared in this project.

Spring-Boot-Ai-Face-Starter

输入图片说明 输入图片说明 输入图片说明

😄 😄 😄

本项目以springboot2.0.2.RELEASE为基础,结合百度ai人工智能的人脸识别java sdk,封装其底层复杂参数传递,将其进行"springboot"化,在学习和使用本项目之前建议对于springboot2.x 以及java有一定的基础.

学习前

  1. springboot学习
  2. 百度人脸识别java-sdk在线文档

使用方法

  1. 初始化spring-boot项目,建议2.0以上版本。

  2. 导入项目maven依赖(gradle玩家可以前往maven中仓寻找对应的依赖写法)

<dependency>
    <groupId>store.sophi.xjr</groupId>
    <artifactId>spring-boot-ai-face-starter</artifactId>
    <version>1.0.2.RELEASE</version>
</dependency>

3.SpringBoot启动类上标注@EnableAiFace注解,可通过此注解开关人脸组件功能。

@SpringBootApplication
@EnableAiFace
public class UserProviderApplication {
    public static void main(String[] args) {
        SpringApplication.run(UserProviderApplication.class,args);
    }

}

4.配置文件写法(需要提前在百度开发者平台申请自己的应用账号信息)

ai:
  face:
    apiKey: 
    appId: 
    secretKey: 

5.默认情况自动注入AiFaceTemplate工具类,目前实现功能人脸对比、人脸搜索、人脸添加,后续将不断更新,欢迎大家在评论区提意见或者PR。

6.如果需要自己扩展该人脸功能,请自行创建类继承AiFaceTemplate,配合spring注册bean注解使用,自动拥有人脸操作客户端工具,具体扩展可以参考上面的百度api文档,最后在启动类注解中指明你的自定义扩展实现,即可在项目中使用。

开源不易,各位developer给颗星哈。

欢迎发起PR,一起来完善这个项目。

Versions

Version
1.0.5.RELEASE
1.0.4.RELEASE
1.0.3.RELEASE
1.0.2.RELEASE
1.0.1.RELEASE
1.0.0.RELEASE