around

人脸对齐--One Millisecond Face Alignment with an Ensemble of Regression Trees

≡放荡痞女 提交于 2020-04-13 12:02:59
【今日推荐】:为什么一到面试就懵逼!>>> One Millisecond Face Alignment with an Ensemble of Regression Trees CVPR2014 http://www.csc.kth.se/~vahidk/face_ert.html https://github.com/suzuichi/OneMillisecondFaceAlignment 本文也是使用级联回归器来做人脸特征对齐的。速度快,效果不错,Dlib 实现了代码,可以测试 站在巨人的肩膀上可以看得更远。这里我们借鉴了前人的两个思路: 1)The first revolves around the indexing of pixel intensities relative to the current estimate of the shape 这里我们使用了一个相对位置的像素差值作为特征,为什么如此选择了? 在图像中我们使用一个 向量的形式来表示人脸的 shape,因为 一些变化因素如: shape deformation and nuisance factors such as changes in illumination conditions,导致了 这个基于向量表示形式的特征变化的幅度很大,基于这个特征来做精确的 shape estimation 就比较难

学习 Flex 布局

十年热恋 提交于 2020-04-11 11:45:30
Flex 是 CSS3 推出的一种布局方式,至今有超过十年时间了 要实现 Flex 布局很容易,只需要给一个元素的 display 属性设置为 flex 就行 .box { display: flex; } 咋看之下好像没什么变化,那是因为受到影响的其实是其内部的元素,给这个容器内添加几个元素就可以看到效果 <div class="box"> <div class="item-1">1</div> <div class="item-2">2</div> <div class="item-3">3</div> </div> 可以看到的是默认情况下应该独占一行的 <div> 元素现在全部挤在了一行,这就是 flex 的效果,也就是说只要一行代码就实现了 flex 布局,不愧为大神级理解 flex-direction 简单的说,布局其实就是一个怎么摆放的问题,内部那些元素既然可以摆成一行,当然也可以摆成一列,只需要向容器添加一个 flex-direction 属性,就能改变内部元素的摆放方向 .box { flex-direction: column; } 当其值为 column 的时候即为按列,而之前的默认值是 row ,一旦确定了摆放方向后,则该方向成为 flex 的主轴,用箭头来表示就像这样 flex-direction: row flex-direction: column

spring中aop不生效的几种解决办法

余生长醉 提交于 2020-04-07 11:51:05
先看下这个问题的背景:假设有一个spring应用,开发人员希望自定义一个注解@Log,可以加到指定的方法上,实现自动记录日志(入参、出参、响应耗时这些) package com.cnblogs.yjmyzz.springbootdemo.aspect; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface Log { } 然后再写一个Aspect来解析这个注解,对打了Log注解的方法进行增强处理  package com.cnblogs.yjmyzz.springbootdemo.aspect; import org.aspectj.lang.JoinPoint; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.Around; import org

spring中aop不生效的几种解决办法

倾然丶 夕夏残阳落幕 提交于 2020-04-07 10:10:11
先看下这个问题的背景:假设有一个spring应用,开发人员希望自定义一个注解@Log,可以加到指定的方法上,实现自动记录日志(入参、出参、响应耗时这些) package com.cnblogs.yjmyzz.springbootdemo.aspect; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface Log { } 然后再写一个Aspect来解析这个注解,对打了Log注解的方法进行增强处理  package com.cnblogs.yjmyzz.springbootdemo.aspect; import org.aspectj.lang.JoinPoint; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.Around; import org

面试刷题30:SpringBean的生命周期?

家住魔仙堡 提交于 2020-04-06 13:29:14
spring是Java软件开发的事实标准。 我是李福春,我在准备面试,今天的问题是:springBean的生命周期是怎样的? 答:spring最基础的能力是IOC(依赖注入),AOP(面向切面编程),ioc改善了模块之间的耦合问题, 依赖注入的方式:set方法,构造方法,成员变量+ @Autowire ;Bean的管理是IOC的主要功能。 bean的生命周期完全由spring容器管理,从属性设置到各种依赖关系的注入,简化了开发人员对bean的生命周期认知; Spring的容器中Bean生命周期如下: 对象创建 1,从xml配置的Bean,@Bean注解,或者Java代码 BeanDefinitionBuilder 中读取Bean的定义,实例化Bean对象; 2,设置Bean的属性; 3,注入Aware的依赖(BeanNameAware,BeanFactoryAware,ApplicationContextAware); 4, 执行通用的方法前置处理,方法: BeanPostProcessor.postProcessorBeforeInitialization() 5, 执行 InitalizingBean.afterPropertiesSet() 方法 6,执行Bean自定义的初始化方法init,或者 @PostConstruct 标注的方法; 7,执行方法

a small thing that made me a little bit depressed

天涯浪子 提交于 2020-04-05 23:23:26
It was just two hours ago,specificly speaking It was 11:48 almost coming close to midneight. I was pratising singing songs in my renting room which is a sharing apartment . I realized that my voice was a little upper but I thought it didn't matter cause my neighbor had all gotten home for the vacation of Tomb Sweeping Day. at the monent when I was prepared to record my voice,there was a sharp knock at the door outside. I thought maybe It was my neighbor coming back. I opened the door however only saw a man blame me for making big noises. I apologized to him and promised him I would stop

面试刷题30:SpringBean的生命周期?

流过昼夜 提交于 2020-04-05 23:10:04
spring是Java软件开发的事实标准。 我是李福春,我在准备面试,今天的问题是:springBean的生命周期是怎样的? 答:spring最基础的能力是IOC(依赖注入),AOP(面向切面编程),ioc改善了模块之间的耦合问题, 依赖注入的方式:set方法,构造方法,成员变量+ @Autowire ;Bean的管理是IOC的主要功能。 bean的生命周期完全由spring容器管理,从属性设置到各种依赖关系的注入,简化了开发人员对bean的生命周期认知; Spring的容器中Bean生命周期如下: 对象创建 1,从xml配置的Bean,@Bean注解,或者Java代码 BeanDefinitionBuilder 中读取Bean的定义,实例化Bean对象; 2,设置Bean的属性; 3,注入Aware的依赖(BeanNameAware,BeanFactoryAware,ApplicationContextAware); 4, 执行通用的方法前置处理,方法: BeanPostProcessor.postProcessorBeforeInitialization() 5, 执行 InitalizingBean.afterPropertiesSet() 方法 6,执行Bean自定义的初始化方法init,或者 @PostConstruct 标注的方法; 7,执行方法

了解切片符号

巧了我就是萌 提交于 2020-03-25 12:18:34
3 月,跳不动了?>>> 问题: I need a good explanation (references are a plus) on Python's slice notation. 我需要一个关于Python切片符号的很好的解释(引用是一个加号)。 To me, this notation needs a bit of picking up. 对我而言,此表示法需要一些注意。 It looks extremely powerful, but I haven't quite got my head around it. 它看起来非常强大,但是我还没有完全了解它。 解决方案: 参考一: https://stackoom.com/question/28T5/了解切片符号 参考二: https://oldbug.net/q/28T5/Understanding-slice-notation 来源: oschina 链接: https://my.oschina.net/u/3797416/blog/3210770

什么是正确的JSON内容类型?

霸气de小男生 提交于 2020-03-22 22:21:35
3 月,跳不动了?>>> 问题: I've been messing around with JSON for some time, just pushing it out as text and it hasn't hurt anybody (that I know of), but I'd like to start doing things properly. 我一直在弄乱 JSON 一段时间,只是将其作为文本推出,并没有伤害任何人(据我所知),但是我想正确地做事。 I have seen so many purported "standards" for the JSON content type: 我见过 这么 多的所谓的“标准”为JSON内容类型: application/json application/x-javascript text/javascript text/x-javascript text/x-json But which one is correct, or best? 但是哪一个是正确的,还是最好的? I gather that there are security and browser support issues varying between them. 我发现在它们之间存在安全性和浏览器支持问题。 I know there's a

什么是正确的JSON内容类型?

六眼飞鱼酱① 提交于 2020-03-22 22:21:22
3 月,跳不动了?>>> 问题: I've been messing around with JSON for some time, just pushing it out as text and it hasn't hurt anybody (that I know of), but I'd like to start doing things properly. 我一直在弄乱 JSON 一段时间,只是将其作为文本推出,并没有伤害任何人(据我所知),但是我想正确地做事。 I have seen so many purported "standards" for the JSON content type: 我见过 这么 多的所谓的“标准”为JSON内容类型: application/json application/x-javascript text/javascript text/x-javascript text/x-json But which one is correct, or best? 但是哪一个是正确的,还是最好的? I gather that there are security and browser support issues varying between them. 我发现在它们之间存在安全性和浏览器支持问题。 I know there's a