『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
楼主: ck3

[进阶教程] 超简单的搭建自己的人脸识别服务,离线使用,不同方位...

  [复制链接]

2

主题

105

帖子

1892

积分

金牌会员

Rank: 6Rank: 6

积分
1892
金钱
1787
HASS币
0
发表于 2020-5-19 11:39:01 | 显示全部楼层
看看哦,学习
回复

使用道具 举报

3

主题

189

帖子

1041

积分

金牌会员

Rank: 6Rank: 6

积分
1041
金钱
852
HASS币
0
发表于 2020-5-19 13:49:32 | 显示全部楼层
好像非常高大上,学习一下,感谢分享!
回复

使用道具 举报

0

主题

62

帖子

906

积分

高级会员

Rank: 4

积分
906
金钱
844
HASS币
0
发表于 2020-5-21 13:07:12 | 显示全部楼层
感谢分享
回复

使用道具 举报

1

主题

115

帖子

1632

积分

金牌会员

Rank: 6Rank: 6

积分
1632
金钱
1517
HASS币
0
发表于 2020-5-23 17:14:44 | 显示全部楼层
需要学着的东西太多了…
回复

使用道具 举报

3

主题

91

帖子

1172

积分

金牌会员

Rank: 6Rank: 6

积分
1172
金钱
1081
HASS币
0
发表于 2020-5-23 18:47:59 | 显示全部楼层
了解一下怎么进行。
回复

使用道具 举报

9

主题

360

帖子

1192

积分

金牌会员

Rank: 6Rank: 6

积分
1192
金钱
832
HASS币
0
发表于 2020-5-24 07:29:22 | 显示全部楼层
  
      


  .   ____          _            __ _ _

/\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \

( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \

\\/  ___)| |_)| | | | | || (_| |  ) ) ) )

  '  |____| .__|_| |_|_| |_\__, | / / / /

=========|_|==============|___/=/_/_/_/

:: Spring Boot ::        (v2.1.6.RELEASE)



2020-05-23 23:24:02.062  INFO 6 --- [           main] m.k.f.FaceRecognitionApplication         : Starting FaceRecognitionApplication v0.0.1-SNAPSHOT with PID 6 (/app/face_recognition.jar started by root in /)

2020-05-23 23:24:02.067  INFO 6 --- [           main] m.k.f.FaceRecognitionApplication         : No active profile set, falling back to default profiles: default

2020-05-23 23:24:04.552  INFO 6 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)

2020-05-23 23:24:04.641  INFO 6 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]

2020-05-23 23:24:04.642  INFO 6 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.21]

2020-05-23 23:24:04.832  INFO 6 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext

2020-05-23 23:24:04.834  INFO 6 --- [           main] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 2655 ms

2020-05-23 23:24:04.989  WARN 6 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'faceController': Unsatisfied dependency expressed through field 'faceEngineService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'faceEngineServiceImpl': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'config.freesdk.app-id' in value "${config.freesdk.app-id}"

2020-05-23 23:24:05.002  INFO 6 --- [           main] o.apache.catalina.core.StandardService   : Stopping service [Tomcat]

2020-05-23 23:24:05.032  INFO 6 --- [           main] ConditionEvaluationReportLoggingListener :



Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.

2020-05-23 23:24:05.043 ERROR 6 --- [           main] o.s.boot.SpringApplication               : Application run failed



org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'faceController': Unsatisfied dependency expressed through field 'faceEngineService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'faceEngineServiceImpl': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'config.freesdk.app-id' in value "${config.freesdk.app-id}"

        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:596) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]

        at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]

        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:374) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1411) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:592) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]

        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]

        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]

        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]

        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]

        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:845) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]

        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877) ~[spring-context-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]

        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) ~[spring-context-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]

        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140) ~[spring-boot-2.1.6.RELEASE.jar!/:2.1.6.RELEASE]

        at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:742) [spring-boot-2.1.6.RELEASE.jar!/:2.1.6.RELEASE]

        at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:389) [spring-boot-2.1.6.RELEASE.jar!/:2.1.6.RELEASE]

        at org.springframework.boot.SpringApplication.run(SpringApplication.java:311) [spring-boot-2.1.6.RELEASE.jar!/:2.1.6.RELEASE]

        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1213) [spring-boot-2.1.6.RELEASE.jar!/:2.1.6.RELEASE]

        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1202) [spring-boot-2.1.6.RELEASE.jar!/:2.1.6.RELEASE]

        at me.kyriechen.face_recognition.FaceRecognitionApplication.main(FaceRecognitionApplication.java:13) [classes!/:0.0.1-SNAPSHOT]

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_111]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_111]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_111]

        at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_111]

        at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:47) [face_recognition.jar:0.0.1-SNAPSHOT]

        at org.springframework.boot.loader.Launcher.launch(Launcher.java:86) [face_recognition.jar:0.0.1-SNAPSHOT]

        at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [face_recognition.jar:0.0.1-SNAPSHOT]

        at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51) [face_recognition.jar:0.0.1-SNAPSHOT]

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'faceEngineServiceImpl': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'config.freesdk.app-id' in value "${config.freesdk.app-id}"

        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:380) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1411) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:592) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]

        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]

        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]

        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]

        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]

        at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:277) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]

        at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1251) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]

        at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1171) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]

        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:593) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]

        ... 27 common frames omitted
回复

使用道具 举报

9

主题

360

帖子

1192

积分

金牌会员

Rank: 6Rank: 6

积分
1192
金钱
832
HASS币
0
发表于 2020-5-24 07:30:32 | 显示全部楼层
docker运行报错,环境是在esxi上面跑的hassos

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'faceEngineServiceImpl': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'config.freesdk.app-id' in value "${config.freesdk.app-id}"
回复

使用道具 举报

9

主题

160

帖子

2804

积分

论坛技术达人

积分
2804
金钱
2634
HASS币
50
 楼主| 发表于 2020-5-24 13:13:44 | 显示全部楼层
tiger81 发表于 2020-5-24 07:30
docker运行报错,环境是在esxi上面跑的hassos

Caused by: org.springframework.beans.factory.BeanCreatio ...

参考78楼那个老哥
回复

使用道具 举报

9

主题

360

帖子

1192

积分

金牌会员

Rank: 6Rank: 6

积分
1192
金钱
832
HASS币
0
发表于 2020-5-24 13:43:20 | 显示全部楼层
ck3 发表于 2020-5-24 13:13
参考78楼那个老哥


谢谢,不过我确认不是key的问题,应该是目录映射的问题,我是手动执行的docker run
回复

使用道具 举报

9

主题

360

帖子

1192

积分

金牌会员

Rank: 6Rank: 6

积分
1192
金钱
832
HASS币
0
发表于 2020-5-24 13:51:57 | 显示全部楼层
本帖最后由 tiger81 于 2020-5-24 13:53 编辑

docker run --name face_recognition  -it --privileged -p 9090:8080 -v /app:/app -d c794103684/face_recognition:latest
6a3628a685a5f9581e12f6bd11c88d5e3d916ee25419be95ac37261d8a4a0bbb
docker: Error response from daemon: error while creating mount source path '/app': mkdir /app: read-only file system.


我是想把主机上存放xml和lib的/app目录直接映射给容器。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-23 09:47 , Processed in 0.110707 second(s), 30 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表