摘要: 出现类似的代码时,将在头文件中定义的变量加const或是static 出现这种错误时,原因可能是 1 没有把函数所在的c文件生成.o目标文件2 没在相关头文件中定义 阅读全文
posted @ 2016-08-10 17:53 夜空释 阅读(317) 评论(0) 推荐(0)
摘要: 首先在ubuntu上安装 sudo apt-get install v4l-utils 在终端输入命令: v4l2-ctl -d /dev/video0 --all 这个是查看所有参数的命令, video可以用命令:ls /dev/video* 查看 还有输入v4l2-ctl help 查看不同参数 阅读全文
posted @ 2016-08-10 11:36 夜空释 阅读(1116) 评论(0) 推荐(0)
摘要: 一幅彩色图像的基本要素是什么? 说白了,一幅图像包括的基本东西就是二进制数据,其容量大小实质即为二进制数据的多少。一幅1920x1080像素的YUV422的图像,大小是1920X1080X2=4147200(十进制),也就是3.95M大小。这个大小跟多少个像素点和数据的存储格式有关。下面简述yuv与 阅读全文
posted @ 2016-07-09 14:22 夜空释 阅读(5979) 评论(1) 推荐(0)
摘要: mplayer -demuxer rawvideo -rawvideo w=176:h=144 test.yuv mplayer -fps 30 test.264 ffmpeg采集摄像头视频数据 ffmpeg -f video4linux2 -s 320*240 -r 10 -i /dev/vide 阅读全文
posted @ 2016-07-05 14:21 夜空释 阅读(1950) 评论(0) 推荐(0)
摘要: gcc 后定义要加 cgi.c 阅读全文
posted @ 2016-07-04 14:17 夜空释 阅读(244) 评论(0) 推荐(0)
摘要: 左键选中后 ctrl+ 跳转到定义 alt+,返回到调用者的程序 阅读全文
posted @ 2016-07-02 17:20 夜空释 阅读(153) 评论(0) 推荐(0)
摘要: /home/fa/.config/lxsession/LXDE/autostart文件最后添加脚本 阅读全文
posted @ 2016-05-10 18:12 夜空释 阅读(3654) 评论(0) 推荐(0)
摘要: rfkill list all 会出现如下提示 0:ideapad_wlan: Wireless LAN Soft blocked: no Hard blocked:yes 1:ideapad_bluetooth: Bluetooth Soft blocked: no Hard blocked: y 阅读全文
posted @ 2016-04-21 09:31 夜空释 阅读(4494) 评论(0) 推荐(0)
摘要: 修复 Windows 7 启动项重新启动ubuntu之后,结果发现选择windows 7的启动项,又进入到Ubuntu的安装界面。下面来说明如何修复,进人Ubuntu系统,打开“应用程序 附件--终端”,命令如下sudo gedit /etc/default/grub修改GRUB_TIMEOUT=" 阅读全文
posted @ 2016-04-21 09:01 夜空释 阅读(3217) 评论(0) 推荐(0)
摘要: opencv中图像文件格式是BRG的顺序 而QImage是RGB形式 H:色彩 S:深浅 s=0 只有灰度 V:明暗 阅读全文
posted @ 2016-04-04 19:36 夜空释 阅读(167) 评论(0) 推荐(0)