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

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

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

  [复制链接]

0

主题

24

帖子

159

积分

注册会员

Rank: 2

积分
159
金钱
135
HASS币
0
发表于 2020-5-16 18:33:12 | 显示全部楼层
看看看大佬作品
回复

使用道具 举报

4

主题

103

帖子

1741

积分

金牌会员

Rank: 6Rank: 6

积分
1741
金钱
1638
HASS币
0
发表于 2020-5-16 19:38:42 | 显示全部楼层
学习学习
回复

使用道具 举报

9

主题

360

帖子

1192

积分

金牌会员

Rank: 6Rank: 6

积分
1192
金钱
832
HASS币
0
发表于 2020-5-17 07:28:25 | 显示全部楼层
感谢分享!!
回复

使用道具 举报

3

主题

158

帖子

679

积分

高级会员

Rank: 4

积分
679
金钱
521
HASS币
10
发表于 2020-5-17 13:25:28 | 显示全部楼层
1.png
大佬,请问下为什么docker启动这个容器有报错?
回复

使用道具 举报

9

主题

160

帖子

2804

积分

论坛技术达人

积分
2804
金钱
2634
HASS币
50
 楼主| 发表于 2020-5-17 14:09:38 | 显示全部楼层
kan0r 发表于 2020-5-17 13:25
大佬,请问下为什么docker启动这个容器有报错?

你配置文件配了吗
回复

使用道具 举报

3

主题

158

帖子

679

积分

高级会员

Rank: 4

积分
679
金钱
521
HASS币
10
发表于 2020-5-17 15:50:24 | 显示全部楼层
ck3 发表于 2020-5-17 14:09
你配置文件配了吗

2.png
按照你说的都配了。。奇怪
回复

使用道具 举报

9

主题

160

帖子

2804

积分

论坛技术达人

积分
2804
金钱
2634
HASS币
50
 楼主| 发表于 2020-5-17 16:16:12 | 显示全部楼层
kan0r 发表于 2020-5-17 15:50
按照你说的都配了。。奇怪

你application.yaml里面怎么写的
回复

使用道具 举报

3

主题

158

帖子

679

积分

高级会员

Rank: 4

积分
679
金钱
521
HASS币
10
发表于 2020-5-17 16:30:46 | 显示全部楼层
ck3 发表于 2020-5-17 16:16
你application.yaml里面怎么写的

3.png
这个应该也没错吧?看报错说什么初始化不成功
回复

使用道具 举报

9

主题

160

帖子

2804

积分

论坛技术达人

积分
2804
金钱
2634
HASS币
50
 楼主| 发表于 2020-5-17 16:33:31 | 显示全部楼层
kan0r 发表于 2020-5-17 16:30
这个应该也没错吧?看报错说什么初始化不成功

你把所有的error log发出来
回复

使用道具 举报

3

主题

158

帖子

679

积分

高级会员

Rank: 4

积分
679
金钱
521
HASS币
10
发表于 2020-5-17 18:54:31 | 显示全部楼层
c794103684-face_recognition1
datestreamcontent
2020-05-17 05:22:38stdout
2020-05-17 05:22:38stdout... 38 common frames omitted
2020-05-17 05:22:38stdoutat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:374) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:593) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1171) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1192) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.beans.factory.support.AbstractBeanFactory.resolveEmbeddedValue(AbstractBeanFactory.java:851) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.context.support.PropertySourcesPlaceholderConfigurer.lambda$processProperties$0(PropertySourcesPlaceholderConfigurer.java:175) ~[spring-context-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.core.env.AbstractPropertyResolver.resolveRequiredPlaceholders(AbstractPropertyResolver.java:211) ~[spring-core-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.core.env.AbstractPropertyResolver.doResolvePlaceholders(AbstractPropertyResolver.java:237) ~[spring-core-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:124) ~[spring-core-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:178) ~[spring-core-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
2020-05-17 05:22:38stdoutCaused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'config.freesdk.app-id' in value "${config.freesdk.app-id}"
2020-05-17 05:22:38stdout... 27 common frames omitted
2020-05-17 05:22:38stdoutat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:593) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1171) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1251) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:277) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:592) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1411) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:380) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
2020-05-17 05:22:38stdoutCaused 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}"
2020-05-17 05:22:38stdoutat org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51) [face_recognition.jar:0.0.1-SNAPSHOT]
2020-05-17 05:22:38stdoutat org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [face_recognition.jar:0.0.1-SNAPSHOT]
2020-05-17 05:22:38stdoutat org.springframework.boot.loader.Launcher.launch(Launcher.java:86) [face_recognition.jar:0.0.1-SNAPSHOT]
2020-05-17 05:22:38stdoutat org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:47) [face_recognition.jar:0.0.1-SNAPSHOT]
2020-05-17 05:22:38stdoutat java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_111]
2020-05-17 05:22:38stdoutat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_111]
2020-05-17 05:22:38stdoutat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_111]
2020-05-17 05:22:38stdoutat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_111]
2020-05-17 05:22:38stdoutat me.kyriechen.face_recognition.FaceRecognitionApplication.main(FaceRecognitionApplication.java:13) [classes!/:0.0.1-SNAPSHOT]
2020-05-17 05:22:38stdoutat org.springframework.boot.SpringApplication.run(SpringApplication.java:1202) [spring-boot-2.1.6.RELEASE.jar!/:2.1.6.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.boot.SpringApplication.run(SpringApplication.java:1213) [spring-boot-2.1.6.RELEASE.jar!/:2.1.6.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.boot.SpringApplication.run(SpringApplication.java:311) [spring-boot-2.1.6.RELEASE.jar!/:2.1.6.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:389) [spring-boot-2.1.6.RELEASE.jar!/:2.1.6.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.boot.SpringApplication.refresh(SpringApplication.java:742) [spring-boot-2.1.6.RELEASE.jar!/:2.1.6.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140) ~[spring-boot-2.1.6.RELEASE.jar!/:2.1.6.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) ~[spring-context-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877) ~[spring-context-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:845) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:592) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1411) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:374) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
2020-05-17 05:22:38stdoutat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:596) ~[spring-beans-5.1.8.RELEASE.jar!/:5.1.8.RELEASE]
2020-05-17 05:22:38stdoutorg.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-17 05:22:38stdout
2020-05-17 05:22:38stdout2020-05-17 05:22:38.306 ERROR 7 --- [           main] o.s.boot.SpringApplication               : Application run failed
2020-05-17 05:22:38stdoutError starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2020-05-17 05:22:38stdout
2020-05-17 05:22:38stdout2020-05-17 05:22:38.290  INFO 7 --- [           main] ConditionEvaluationReportLoggingListener :
2020-05-17 05:22:38stdout2020-05-17 05:22:38.240  INFO 7 --- [           main] o.apache.catalina.core.StandardService   : Stopping service [Tomcat]
2020-05-17 05:22:38stdout2020-05-17 05:22:38.229  WARN 7 --- [           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-17 05:22:38stdout2020-05-17 05:22:38.002  INFO 7 --- [           main] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 7339 ms
2020-05-17 05:22:38stdout2020-05-17 05:22:38.001  INFO 7 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2020-05-17 05:22:37stdout2020-05-17 05:22:37.720  INFO 7 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.21]
2020-05-17 05:22:37stdout2020-05-17 05:22:37.719  INFO 7 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2020-05-17 05:22:37stdout2020-05-17 05:22:37.629  INFO 7 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)
2020-05-17 05:22:30stdout2020-05-17 05:22:30.327  INFO 7 --- [           main] m.k.f.FaceRecognitionApplication         : No active profile set, falling back to default profiles: default
2020-05-17 05:22:30stdout2020-05-17 05:22:30.309  INFO 7 --- [           main] m.k.f.FaceRecognitionApplication         : Starting FaceRecognitionApplication v0.0.1-SNAPSHOT on c794103684-face_recognition1 with PID 7 (/app/face_recognition.jar started by root in /)
2020-05-17 05:22:29stdout
2020-05-17 05:22:29stdout :: Spring Boot ::        (v2.1.6.RELEASE)
2020-05-17 05:22:29stdout =========|_|==============|___/=/_/_/_/
2020-05-17 05:22:29stdout  '  |____| .__|_| |_|_| |_\__, | / / / /
2020-05-17 05:22:29stdout \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
2020-05-17 05:22:29stdout( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
2020-05-17 05:22:29stdout /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
2020-05-17 05:22:29stdout  .   ____          _            __ _ _
2020-05-17 05:22:29stdout

回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-23 09:57 , Processed in 0.086293 second(s), 32 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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