人脸识别是一项实用的技术。但是这种技术总是感觉非常神秘,在sklearn中看到了人脸识别的example,代码网址如下:
http://scikit-learn.org/0.13/auto_examples/applications/face_recognition.html#example-applications-face-recognition-py
首先介绍一些PCA和SVM的功能...
分类:
编程语言 时间:
2015-05-16 12:02:20
收藏:
0 评论:
0 赞:
3 阅读:
16637
题目
思路
前缀树,之前有一道LeetCode的题差不多的,我用之前的代码修改了一下即过。代码struct WordDictionary {
char c;
// sons for "abcdefghijklmnopqrstuvwxyz\0"
struct WordDictionary * son[27];
};/** Initialize your data str...
分类:
其他 时间:
2015-05-16 12:01:48
收藏:
0 评论:
0 赞:
0 阅读:
208
最先进的人脸识别是当前facebook和香港科技大学的深度神经网络的人脸识别:
论文下载地址:
facebook:DeepFace
https://research.facebook.com/publications/480567225376225/deepface-closing-the-gap-to-human-level-performance-in-face-verification/...
分类:
其他 时间:
2015-05-16 12:01:38
收藏:
0 评论:
0 赞:
0 阅读:
170
创建express的开发环境
~ D:\workspace\javascript>express -e nodejs-https
~ D:\workspace\javascript>cd nodejs-https && npm install
ejs@0.8.5 node_modules\ejs
express@3.2.6 node_modules\express
├── methods@...
分类:
Web开发 时间:
2015-05-16 12:01:28
收藏:
0 评论:
0 赞:
0 阅读:
372
本来这里的方法很多,在mac上做到还是没有win下方便,1,借助一个jar包(AndroidUnusedResources1.6.2.jar):把该jar包放到工程目录下,如下图所示:
然后在控制台执行:cd 你所在的工程路径
例如:cd /Users/hl/Documents/workspace/YourProject
然后再执行
java -jar AndroidUnusedReso...
分类:
移动平台 时间:
2015-05-16 12:01:20
收藏:
0 评论:
0 赞:
0 阅读:
259
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define INF 100000000
using namespace std;
int n,m;
int x[1005];
int y[1005];
int fa[1005...
分类:
编程语言 时间:
2015-05-16 12:01:16
收藏:
0 评论:
0 赞:
0 阅读:
257
poj3694:题目链接
题目大意:给出n个点,m条无向边的图,图中存在割边,问每加入一条新的边后的割边的数量
首先,进行双连通缩点,缩点后的图变成一棵树,树上的每条边都是割边,然后没加入一条新的边后,会使这条边的两个点到这两个点的lca形成一个环,使原本的割边减少。
图学的不好,只能显式建树,后来发现建树后没什么用,等以后再修改了
#include
#include
#include...
分类:
Web开发 时间:
2015-05-16 12:00:58
收藏:
0 评论:
0 赞:
0 阅读:
289
Bridge定义:将抽象和行为划分开来,各自独立,但能动态的结合。
为什么使用桥模式
通常,当一个抽象类或接口有多个具体实现(concrete subclass),这些concrete之间关系可能有以下两种:
这多个具体实现之间恰好是并列的,如前面举例,打桩,有两个concrete class:方形桩和圆形桩;这两个形状上的桩是并列的,没有概念上的重复,那么我们只要使用继承就可以了。实际...
分类:
编程语言 时间:
2015-05-16 12:00:48
收藏:
0 评论:
0 赞:
0 阅读:
233
总结链队列
什么是链队?
队列的链式存储结构称为链队列。链队也有两个指针,队头指针和队尾指针,这样队头删除和队尾插入操作就会很方便,链式队列一般像单链表一样,有一个头结点。
图示:
具体实现:
#include
using namespace std;
template
struct Node {
T data;
struct Node *nex...
分类:
编程语言 时间:
2015-05-16 12:00:38
收藏:
0 评论:
0 赞:
0 阅读:
236
号外
昨天,atom官方更新了atom的版本;
把之前内置到core的核心插件autocomplete替换成autocomplete plus,还做了许多修正,具体看这里
Notable Changes
Atom now bundles Autocomplete Plus and the completion providers for HTML, CSS, Less, Sass, sni...
分类:
其他 时间:
2015-05-16 12:00:28
收藏:
0 评论:
0 赞:
0 阅读:
444
1 Combination Sum
Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. The same repeated number may be chosen from C...
分类:
编程语言 时间:
2015-05-16 12:00:18
收藏:
0 评论:
0 赞:
0 阅读:
217
当我们保存图片后就会发个通知告诉系统让sdcard重新挂载,这样其他程序就会立即找到这张图片。 Intent intent = new Intent();
intent.setAction(Intent.ACTION_MEDIA_MOUNTED);
intent.setData(Uri.fromFile(Environment...
分类:
移动平台 时间:
2015-05-16 12:00:08
收藏:
0 评论:
0 赞:
0 阅读:
1775
姑且不论这东西到底有没有用,毕竟Jsp页面编程完全可以利用JSP的include命令,像传统网页编程一样,先写好几个页眉页脚header.html、footer.html、banner.html之类,再于每个页面利用引入这几个页面。这样一来好维护,二来代码清晰不麻烦,三来去到asp.net、vbscript、php等服务器编程页面我们一样这样搞。要不是html没有include命令,甚至来不至于用...
分类:
Web开发 时间:
2015-05-16 11:59:58
收藏:
0 评论:
0 赞:
0 阅读:
366
添加war 包 并重启tomcat的脚本
echo "stop tomcat..."
ps -ef|grep root|grep "tomcat"|grep java|grep -v grep|awk '{print $2}'|xargs -i kill -9 {}
sleep 6
echo "stop tomcat done!"
#判断根目录下是否有XXXX.war,如...
分类:
其他 时间:
2015-05-16 11:59:48
收藏:
0 评论:
0 赞:
0 阅读:
100
废话不多说,贴代码!
Get my IP
whatsmyip My Real IP is:
document.write("");
Sohu API My IP Info:
var cip = returnCitySN.cip;
var cid = returnCitySN.cid;
var cname = returnCitySN.cnam...
分类:
其他 时间:
2015-05-16 11:59:38
收藏:
0 评论:
0 赞:
0 阅读:
228
Cow Acrobats
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 3207
Accepted: 1264
Description
Farmer John's N (1 <= N <= 50,000) cows (numbered 1..N) are pl...
分类:
其他 时间:
2015-05-16 11:59:28
收藏:
0 评论:
0 赞:
0 阅读:
296
原代码如下:#include
using namespace std;
int main()
{
int i = 0, j = 0;
for (i = 1; i < 10; i++)
{
for (j = 1; j <= i; j++)
{
cout << i << "*" << j << "=";
cout.width(4); //设置结果宽度...
分类:
编程语言 时间:
2015-05-16 11:59:18
收藏:
0 评论:
0 赞:
0 阅读:
744
#ifndef _STRING_H_
#endif _STRING_H_
//#pragma once //此句与头两句效果相同
#include
using namespace std;
#define MAX_STRING_SIZE 10 //合并后存放字符串的空间大小,可以比第一的字符串长度小
typedef char SString[MAX_STRING_SIZE+1];
...
分类:
其他 时间:
2015-05-16 11:59:08
收藏:
0 评论:
0 赞:
0 阅读:
229
实现一个模块用它遍历当前进程的父进程和任务队列,并将遍历的结果输出到一个proc 文件中(遍历可以从 current 当前进程开始,父进程遍历到初始化进程,遍历任务队列可以利用 for_each_process 宏)。下面是我的内核模块的实现部分:/************************************************************
* 使用内核模块从当前进程...
分类:
系统服务 时间:
2015-05-16 11:58:58
收藏:
0 评论:
0 赞:
0 阅读:
245
刚写的,直接刷没了。0-0
看问题。
公司升级软件,但是,再使用原来的模板和类后,系统报错:无法找到类接口。
整整一篇。
但是我进去看了代码,使用了import和include,那到底是那里错了呢?
后来测试发现是发布设置的问题。
文件->发布设置
然后问题解决。
但是我发现,这个问题不是绝对的,看情况而定。
第二个问题,图片失真。
导出影片后,发现图像...
分类:
其他 时间:
2015-05-16 11:58:48
收藏:
0 评论:
0 赞:
0 阅读:
170