自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(49)
  • 收藏
  • 关注

原创 单例模式示例

class Singleton{private: Singleton() { }; ~Singleton() { }; Singleton(const Singleton&); Singleton& operator=(const Singleton&);public: static Singleton& getInst...

2018-06-23 16:21:39 246

原创 OPENCV CV_64FC1含义

很好理解:CV_64FC1   64F代表每一个像素点元素占64位浮点数,通道数为1CV_64FC3   64F代表每一个像素点元素占64点×3个浮点数,通道数为4

2018-05-23 10:09:53 22482 5

原创 币圈百科系列1--GTC币

4月份GTC币一波涨幅1000%,币圈焦点,大有取代EOS币成为第一山寨社区币的趋势。下面介绍一下GTC币: 1、基础资料与项目介绍:英文名:Game.com/GTC 发行时间: 2018-01-03众筹价格: ¥0.45 官网:http://game.com/交易平台:比特儿国际站:www.gateio.co项目介绍:game.com是一个区块链游戏平台,...

2018-05-04 13:19:08 5026

原创 difference between unique_ptr and shared_ptr

smart pointers include unique_ptr and shared_ptr help to arrange memory allocations.the main difference between them are listed in the following code:can't use = operator but use std::move(sp13) 必须转移...

2018-04-09 20:04:59 203

原创 卷积运算的常用操作

求padding:void test_pad(int *input,int width,int height,int *&output, int pad ){ //single channel int out_width=width+2*pad; int out_height=height+2*pad; if(!output) output=new int[25]; ...

2018-04-08 14:19:36 1222

原创 Dlib 交叉编译错误汇总

首先 git clone --recursive https://github.com/tzutalin/dlib-android.git然后 cd dlib-android./envsetup下载的opencv地址不正确,自己去官网下载opencv-android-sdk,放在thirdparty文件夹下替换掉下载不完全的opencv重新运行./envsetup修改jni文件夹下所有调用open...

2018-03-08 13:55:55 1177

原创 ubuntu通过命令直接安装QT

打开终端,输入:sudo apt-get install qt5-default qtcreator在安装之前最好先输入 sudo apt-get update启动QT:命令行输入:qtcreator

2018-01-23 10:14:27 14949 4

原创 OPENCV 通过Mat访问每个像素

先上代码:#include#include#includeusing namespace std;using namespace cv;int main(){ Mat diff=imread("/home/lisa/dataset/02m16001200/0.jpg"); for(int i=0;i<diff.rows;i++) {

2017-12-14 15:05:42 288

原创 OPENCV imencode与imdecode用法

上代码直接跑:#include#include#includeusing namespace std;using namespace cv;//this program is used for testing opencv encode and decode for jgeg picturesint main(){ Mat tstMat=imread("/home/l

2017-12-13 14:49:05 18944 1

原创 KNN python code

几分钟写了个KNN Python代码,在编译器上可以直接跑:"""programs: KNN algorithmdescription:1.calculate the distance between test data and every single train data2.sort the distance 3.select the minimum k points b

2017-12-01 16:52:47 476

原创 centos caffe编译问题汇总

问题:caffe目录 make的时候g++: error: ”-fPIC”: No such file or directory解决方案:export CXXFLAGS="-fPIC"

2017-11-02 15:10:36 555

原创 python Opencv目录下视频转换为

import cv2import oscurdir="/home/lisa/dataset/video/selected/"index=1;interval=10def video2pic(path): global interval cap=cv2.VideoCapture(path); success,frame=cap.read() wh

2017-09-20 11:16:04 406

原创 Python Opencv旋转图片90度

import numpy as npimport cv2img=cv2.imread("/home/lisa/dataset/HandDataSet_720_1280/chenshuyi/image/0.jpg",1)cv2.imshow("temp",img)cv2.waitKey(0)img90=np.rot90(img)cv2.imshow("rotate",img90)

2017-09-19 10:56:17 42221 1

原创 c++读取写入文件--IO操作合集

写入文件// writing on a text file#include #include using namespace std;int main () { ofstream myfile ("example.txt"); if (myfile.is_open()) { myfile << "This is a line.\n"; myfile <<

2017-09-08 17:19:06 379

原创 C++封装调用SO简单示例

首先看下文件结构需要封装的是a.h,a.cpp里面有一个类g++ -fPIC -shared a.cpp -o liba.so

2017-08-18 17:09:15 4164

原创 VATIC ---Video Annotation Tool configuration Record

The work of  configurating the Video Annotation Tool ----Vatic really drives me crazy, you just cannot expect what bugs you can get . After three days of struggling,  I finnally work it out. Here are

2017-03-28 16:55:21 1244

原创 JAVA socket传输图片

Server端:import java.net.*;import java.sql.SQLException;import javax.imageio.ImageIO;import java.awt.image.BufferedImage;import java.io.*;public class ServerTest extends Thread{ priva

2017-02-20 14:45:52 5855 2

转载 深度学习术语表与解析

第一部分:深度学习名词表:57个专业术语加相关资料解析(附论文)http://waterbolik.github.io/%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD/2016/10/08/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0%E6%9C%AF%E8%AF%AD%E8%A1%A8本文整理了一些深度学习领域的专业名

2017-02-06 17:32:33 3834

原创 Android Studio新建工程出错

简单的解决方案:gradual.build中把:25+改成23+,target sdk与compile SDK全部区分开来。

2017-02-06 09:51:19 673

原创 linux opencv调用手机摄像头

手机端安装IP摄像头先上源码:#include "cv.h"#include "highgui.h"#include int main(int, char**) { cv::VideoCapture vcap; cv::Mat image;CvCapture *capture ; const std::string videoStreamAddr

2017-02-05 11:08:29 3824 3

原创 YOLO install

darknet配置darknet 出现错误:/bin/sh: 1: nvcc: not foundmake: *** [obj/convolutional_kernels.o] Error 127解决方法:# 修改makefileNVCC = /usr/local/cuda-7.5/bin/nvcc

2017-01-22 10:19:46 602

原创 常用工具与JAVA常用小函数实现

import java.io.File;import java.util.*;public class ReadJpg { public static void main(String args[]) throws Exception{ Vector Path=new Vector(); File root = new File("E:/PROJECT/HAND/midea

2017-01-19 14:05:13 252

原创 Face Detection Data Set and Benchmark文章系列1 FDDB technical report review

最近对人脸检测方法进行调研,FDDB是由CMU与MIT共同维护的一个评价各种人脸检测算法的数据基准集。先看官方介绍:Welcome to the Face Detection Data Set and Benchmark (FDDB), a data set of face regions designed for studying the problem of unconstrained

2017-01-06 17:05:36 1067

原创 SSD caffe install

https://www.douban.com/note/568788483/CXX/LD -o .build_release/tools/convert_imageset.bin.build_release/lib/libcaffe.so: undefined reference to cv::imread(cv::String const&, int)' .build_release/l

2017-01-04 12:37:58 1493

原创 Android新建工程遇到问题汇总以及解决方法

1、error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.解决办法:导入android-support-v7-appcompat 2、导入android-support-v7-appcompat会意外识别成JAVA程序解决办

2016-12-06 14:26:07 443

原创 JAVA JNI技术简单举例

JAVA JNI是与操作系统本地代码相互调用的功能的接口,从例子上手JAVA JNI,从这个例子就能看明白JNI技术的功用:1.java中声明native方法:package com.lisapublic class testnative{public native void sayHello();public static void main(String []a

2016-11-01 11:00:27 393

原创 截止总结前新学到的还需要巩固的知识

人们都说,进入一家新公司,学起东西来总是最快的,而学东西,很重要的一点,就是能熟练使用各种工具,总结一下最近用过的工具:1、google protobuf非常好用的结构化数据传输方式,已有文章阐明使用方法;2、gtestgoogle单元测试方式,暂时还感受不到强大的地方,主要是使用的场景较为简单;3、QTQT也算是一个大头了,

2016-10-29 14:56:32 481

原创 opencv从摄像头中读取视频,并保存在本目录下

首先自己配置好opencv#include #include#include#includeusing namespace std;int main(){ CvCapture *cap = cvCreateCameraCapture(0);//初始化相机捕获的指针 if (!cap) { cout << "create camera capture error

2016-09-29 15:24:44 2345

原创 mysql 数据库设计

获取最后更新时间:select 'staff',UPDATE_TIME from information_schema.TABLES where TABLE_SCHEMA='test' order by UPDATE_TIME desc limit 1;

2016-09-12 09:35:09 562

原创 GLOG使用举例

先占坑,回头慢慢写!

2016-08-23 11:47:50 289

原创 函数指针的简单代码示例

函数指针在c++使用回调函数时必学项目,不使用函数指针时的代码:// ConsoleApplication1.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#includeusing namespace std;float Pluscode(float a, float b){ return a + b; }float min

2016-08-01 15:27:51 466

原创 c++如何调用lib文件 静态库文件

先占坑!

2016-07-27 15:58:53 2262

原创 c++调用动态链接库DLL

先占坑,这周写!

2016-07-27 15:37:33 795 1

原创 c++11多线程之主线程与子线程数据传输与共享

c++线程间的数据传输与共享分很多种,而使用全局变量是很常见的一种,下面先来看看最基础的使用全局变量进行数据共享的例子:#include#includeusing namespace std;static int id = 1;void autoincrease(){ id=id+1;}int main(){ cout << "before increase " << id

2016-07-20 10:16:36 9326 1

原创 c++多个线程操作与互斥

典型的c++的卖票程序,看代码即可明白:#include#include#includeusing namespace std;static int ticket = 100;mutex mytmx;void sellticket(){ while (ticket >= 0) { if (mytmx.try_lock()) { cout <

2016-07-19 16:50:44 458

原创 c++11 批量产生多个线程

先占坑,以后写

2016-07-19 09:34:58 3392

原创 父类与子类析构与函数调用关系

一段简单的代码,说明了为什么析构函数要用虚函数、以及父类与子类的函数调用关系

2016-07-13 16:59:34 541

原创 C++构造与析构类与类中的指针对象

类的构造与析构是一个较复杂的问题,尤其涉及到一个类中包含多个对象时,比较难以理解,先看代码:#define _CRTDBG_MAP_ALLOC#include #include #includeusing namespace std;class inner{public: inner(){}; ~inner(){ cout << "inner destruc

2016-07-12 16:51:15 837

原创 C++11多线程系列第一部分

多线程编程对于大型的程序,复杂的算法应用十分广泛,最近一直在windows下开发,但是程序又需要在Linux等系统下跑,配置Boost标准库也是一个解决方案,C++11标准库实行时间比较久,现今大部分编译器都支持,所以用C++11实现多线程操作无疑是最好的选择!

2016-07-12 11:34:40 377

原创 QT C++实现多线程通信--示例代码

先占坑,回头慢慢写!

2016-07-11 11:45:20 2005 1

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除