大方山水

文章
6
资源
0
加入时间
3年1月7天

Facedetect

#include "opencv2/objdetect.hpp"#include "opencv2/highgui.hpp"#include "opencv2/imgproc.hpp"#include <iostream>using namespace std;using namespace cv;static void help(){ cout <&l...

how to write a struct to a file directly?

Using write and read system call. Following is an example:blk.h:#include <stdlib.h>#include <stdio.h>#include <fcntl.h>#include <sys/types.h>#include <sys...

bash变量赋值及字符串的操作

转载:http://www.bsdlover.cn/html/24/n-3224.htmlBash中的变量1.用户定义的变量用户定义的变量有字母数字及下划线组成,并且变量名的第一个字符不能为数字.与其它UNIX名字一样,变量名是大小写敏感的.对于变量,用户可按如下方式赋值:name = value在引用变量时,需在前面加$符号,用户也可以在变量间进行相互赋值,如:

使用百度地图结合GPS进行定位

随时随地阅读更多技术实战干货,获取项目源码、学习资料,请关注源代码社区公众号(ydmsq666)本文在上文基础上加入GPS定位功能,实现实时定位,代码如下:Activity:package com.home;import android.app.Activity;import android....

浅谈Node.js之异步流控制

前言 在没有深度使用函数回调的经验的时候,去看这些内容还是有一点吃力的。由于Node js独特的异步特性,才出现