自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 资源 (2)
  • 收藏
  • 关注

原创 ubuntu下python3.4安装numpy

1、安装pip3$ apt-get install python3-dev$ apt-get install python3-pip2、安装numpypip3 install numpy

2016-01-28 16:08:23 3939

转载 window system doesn't support opengl (raspberry pi)

问题发生:在树莓派上使用opencv的时候,出现如下错误:window system doesn't support opengl经过定位,发现是在cvShowImage出现该错误的,经过分析,原因是树莓派系统装的是opengl的简易版,所以不支持cvShowImage,解决方法如下Solutions.转自:http://raspberrypi.stackexchange.com/questions

2016-01-26 13:58:54 4144 4

原创 ubuntu开机无法进入桌面,只有命令行?

1.在字符端输入”switchdesk GNOME”,回车,再输入”startx”,回车2.在控制台下登录先执行 $ export LANG=C再重新配置 X$ sudo dpkg-reconfigure xserver-xorg

2016-01-21 15:07:37 5222

原创 windows git安装和上传文件

1、在windows下载安装git,网站如下http://git-scm.com/download/2、配置windows系统的git账户$ git config --global user.name "abc"$ git config --global user.email abc@xxxx.com3、生成密钥, 按三次回车,注意记录秘钥默认路径(本电脑是 “/c/Users/shit/.s

2016-01-16 17:41:15 469

原创 Linux下截图

1、安装ImageMagickdebian系 ( ubuntu ,mint等):$sudo apt-get install ImageMagickredhat系 ( fedora ):$sudo yum install ImageMagick2、在终端下输入命令可以支持jpg,png等等$import filename.jpg$import filename.png3、选定区域截图4、输入命令ls

2016-01-14 19:44:50 368

原创 Ubuntu下安装Python3.4

1、通过命令行安装python3.4$sudo apt-get install python3.42、 Ubuntu底层采用的是Python2.*,Python3与Python2是互不兼容的,但是不能卸载Python2,只需要将默认的Python指向Python3即可3、命令行输入python,查看python当前使用版本,我的是python2.7.6$python退出命令行$quit()输出原路径

2016-01-14 18:57:49 690

原创 memcpy && strncpy的区别,memcpy && strcpy的区别

一、memcpy && strncpy的区别实际使用时候遇见问题:在拷贝以FF D8开始FF D9结尾的jpg图片的时候, strncpy出现了一大串00 的空数据 memcpy可以使用查了区别: strncpy:src遇到NULL字符拷贝结束,所以产生了一大串 00 00 …(c/c++)复制字符串src中的内容(字符,数字、汉字….)到字符串dest中,复制多少由size_tn的值决定。如

2016-01-12 16:01:01 878

原创 27. Remove Element

1.要求 Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn’t matter what you leave beyond the new length.2.

2016-01-06 17:50:58 295

原创 67. Add Binary

1.需求 Given two binary strings, return their sum (also a binary string).For example, a = “11” b = “1” Return “100”.2.代码#include <iostream>#include <string>using namespace std;class Solution {publi

2016-01-06 15:32:46 289

原创 258. Add Digits

1、要求 Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.For example:Given num = 38, the process is like: 3 + 8 = 11, 1 + 1 = 2. Since 2 has only one di

2016-01-06 10:27:02 321

原创 21. Merge Two Sorted Lists

/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */class Solution {public: ListNode *mer

2016-01-03 20:43:28 274

原创 13.Roman to Integer

1、wiki:Roman数字介绍 https://en.wikipedia.org/wiki/Roman_numerals2、 Symbol Value I 1 V 5 X 10 L 50 C 100 D 500 M 10003、 Combination Value IV 4 IX 9 XL 40 X

2016-01-03 19:22:18 352

v4l2采集MJPG保存到本地

参考博客地址:http://blog.csdn.net/fendoubasaonian 环境: 1、一个支持MJPG格式的usb摄像头 2、支持V4L2的linux环境 实现: 1、从摄像头读取一帧MJPG图片 2、将MJPG图片保存到本地

2015-12-13

STM32 TIM1-7 PWM1-4

关于stm32的定时器pwm大全,TIM1-TIM7,PWM1-4

2013-08-07

空空如也

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

TA关注的人

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