自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(257)
  • 资源 (5)
  • 收藏
  • 关注

原创 高斯模糊 matlab

close all;image = imread('66_input.png');figure(1),imshow(image);w=fspecial('gaussian',[5 5],5);im=imfilter(image,w);figure(2),imshow(im);%imwrite(im,'result.jpg','jpg');fspecial第一个参数为高斯类型的滤波算子,核的宽度尺寸...

2018-03-20 20:22:00 22016

原创 开启SSHd

2018-03-19 11:58:11 526

原创 测时间

/* struct timezone tz; struct timeval tv; gettimeofday(&tv, &tz);    printf("now1: %ld %ld\n", tv.tv_sec, tv.tv_usec); write(uart_fd, send_buf, BUF_MAX); gettimeofday(&tv, &amp...

2018-03-19 11:54:32 424

原创 nv12zhuanrgb zhuan hsv

void NV21_T_RGB(unsigned int width , unsigned int height , unsigned char *yuyv)// , unsigned char *rgb{ const int nv_start = width * height ;// test_rgb = calloc(width*height*3, 1);    u32  i, j, inde...

2018-03-02 09:26:21 374

原创 NV12转rgb24

void NV21_T_RGB(unsigned int width , unsigned int height , unsigned char *yuyv)// , unsigned char *rgb{ const int nv_start = width * height ; test_rgb = calloc(width*height*3, 1);    u32  i, j, index ...

2018-02-28 09:19:27 2005 1

原创 ipu缩小程序

if(ceshi_flag==0) { memset(&task, 0, sizeof(task)); task.output.width   = 640; task.output.height  = 480; task.output.format  = v4l2_fourcc('N', 'V', '1', '2'); fd_ipu = open("/de...

2018-02-27 15:18:56 570

原创 imx6q文件系统中没有lrz lsz 解决方案

在网上下载lrzlsz 的安装包lrzsz-0.12.20.tar.gz然后在Ubuntu底下交叉编译 生成的bin底下的lrz lsz 直接拷贝到文件系统的bin底下 就能在板子上不用权限的执行lrz lsz了...

2018-02-11 12:54:43 593

原创 在ubuntu的文件夹底下搜索所有含某字符串的文件 grepf

进入到文件夹路径底下在终端输入:grep -rn zifuchuan *就可以找到所有含zifuchuan内容的文件了 放假前的大总结

2018-02-11 12:39:55 6440

原创 从h.264中sps中获得压缩长宽

1920*1080vpu压缩码流SPS部分例子:00 00 00 01 67 42 40 28 A6 80 78 02 27 E5 40从A6 开始的二进制分别是 :1010 0110 1000 0000 0111 1000 0000 0010 0010 0111 1110 0101 0100 0000根据哥伦布我个人的划分为:1 010 011 010 0 000000111

2018-02-05 11:14:27 314

转载 Linux中线程与CPU核的绑定

转载来自:http://blog.chinaunix.net/uid-26739406-id-3181199.html最近在对项目进行性能优化,由于在多核平台上,所以了解了些进程、线程绑定cpu核的问题,在这里将所学记录一下。    不管是线程还是进程,都是通过设置亲和性(affinity)来达到目的。对于进程的情况,一般是使用sched_setaffinity这个函数来实现,网上讲的

2018-01-27 17:08:24 590

原创 ./mxc_vpu_test.out -E "-x 1 -b 2800 -o vpu.264 -f 2 -w 1920 -h 1080"

./mxc_vpu_test.out  -E "-x 1 -b 2800 -o vpu.264   -f 2 -w 1920 -h 1080" x 为选择dev/video1 b为bitrate f为264类型insmod ov5640_mipi.ko input_width=1920 input_height=1080飞凌的预览命令行:./mxc_v4l2_overlay.out -iw 259...

2018-01-26 21:12:30 728

原创 FFMPEG X264 安装

sudo ./configure --prefix=/usr/local/lib/x264_3 --enable-shared --enable-static --disable-asm  --cross-prefix=/home/ymrf/my-imx6/03_tools/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolch

2018-01-25 18:58:42 354

转载 使用FFMPEG从MP4封装中提取视频流到H264文件

http://www.360doc.com/content/13/0925/17/13084517_317034684.shtml命令行:ffmpeg -i 20130312_133313.mp4 -codec copy -bsf: h264_mp4toannexb -f h264 20130312_133313.264说明: -i 20130312_1

2018-01-25 09:06:24 1133 1

原创 一个关了 另一个怎么办

/* if((camera_fd = open(open_camera, O_RDWR)) == -1){//perror("open camera error");uart2_hongwaikejian=2;return -1;}else{*/

2018-01-18 08:50:33 229

原创 计算时间

struct timezone tz;struct timeval tv;gettimeofday(&tv, &tz);   printf("now1: %ld %ld\n", tv.tv_sec, tv.tv_usec);write(uart_fd, send_buf, BUF_MAX);gettimeofday(&tv, &tz);printf("now2: %ld %

2018-01-16 13:43:38 191

原创 3035内核boot内容

1 setenv setargs 'setenv bootargs console=ttymxc0,115200  root=/dev/mmcblk0p1 rootwait rw video=mxcfb0:dev=bt656,BT656-PAL,if=BT656,bpp=32'2 setenv bootcmd 'run setargs; mmc dev 3; mmc read ${loadad

2018-01-07 17:52:06 207

原创 数组转换成nv12格式的mat格式

frame.create(1080*3/2 , 1920, CV_8UC1);        memcpy(frame.data, pic_track_5640, 1920*1080*3/2);        cvtColor(frame, rgbImg, CV_YUV2BGR_NV12);        if(kkkk1==1)        {           

2017-12-26 13:08:23 1781

转载 在Qt中移植VPU编解码程序时遇到的问题

在使用freescale开发板实现VPU的硬编码过程中,将测试程序中关于vpu编码函数移植到Qt中,在pro文件中包含 "vpu_lib.h"、"vpu_io.h"的文件路径以及对应的链接库文件:  INCLUDEPATH  += "/mnt/hgfs/window_share/linux-3.0.35/include"  INCLUDEPATH  += "/home/imx6/rootf

2017-12-18 18:53:28 782

原创 i2cdetect i2cdump i2cget i2cset用法

root@myzr /$  ./i2cdetect -l i2c-0   i2c             imx-i2c                                 I2C adapteri2c-1   i2c             imx-i2c                                 I2C adapteri2c-2   i2c    

2017-12-13 11:01:42 1480

原创 imx6q v4l2 输入部分ok

#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #i

2017-12-13 09:19:19 646

原创 SD卡启动imx6q步骤

1. SD卡升级方式:  A. 在linux系统下,(其他linux板子或者linuxPC机),将TF通过读卡器插入linux系统,将被识别为/dev/sda1,或者把TF/SD卡直接插入linux,将被识别为/dev/mmcblk0。后面的数字要看系统中的U盘或者SD卡数目来定。后面操作以/dev/mmcblk0为例。  B. 将u-boot.bin,uImage和rootfs.tg

2017-12-13 09:02:51 4375

原创 udp 客户端 服务端

./clinet 230.1.1.1 7838 192.168.3.110 12345./server 230.1.1.1 7838编译程序用下列命令:gcc -Wall multi_udp_clinet.c -o clinetgcc -Wall multi_udp_server.c -o servermulti_udp_clinet.c

2017-12-11 14:01:49 273

转载 error while loading shared libraries: libstdc++.so.6

转载来自:http://blog.csdn.net/cloume/article/details/42425085sudo apt-get install lib32stdc++6  备用sudo apt-get install libstdc++6

2017-12-07 16:09:17 961

原创 最大最小中值滤波 matlab

Y=ordfilt2(X,5,ones(3,3)),相当于3×3的中值滤波Y=ordfilt2(X,1,ones(3,3)),相当于3×3的最小值滤波Y=ordfilt2(X,9,ones(3,3)),相当于3×3的最大值滤波close all;%最大值滤波inputimage=imread('66_input.png');figure(),imshow(input

2017-12-06 17:34:02 8403 1

转载 滤波

img=imread('66_input.png');  f=rgb2gray(img);  subplot(1,2,1);  imshow(f);  f=double(f);  f=fft2(f);  f=fftshift(f);  [m,n]=size(f);  %  d0=80;  m1=fix(m/2);  n1=fix(n/2);  for i

2017-12-05 19:26:49 233

转载 聚类一

网上搜到的程序:亲测能用:close all;clc;I_rgb=imread('wen12_input.png');[mm,nn,kk]=size(I_rgb);figure();imshow(I_rgb);title('原始图像');%去噪filter=ones(5,5);filter=filter/sum(filter(:));denoised_r=con

2017-12-04 15:30:20 290

原创 matlab 显示一张图片到三维坐标

close all;inputimage=imread('66_input.png');Rchannel = inputimage(:,:,1); Gchannel = inputimage(:,:,2); Bchannel = inputimage(:,:,3); figure;scatter3(Rchannel(:),Gchannel(:),Bchannel(:

2017-12-04 14:33:23 6914 1

转载 opencv window 2411 依赖项

opencv_calib3d2411d.libopencv_contrib2411d.libopencv_core2411d.libopencv_features2d2411d.libopencv_flann2411d.libopencv_gpu2411d.libopencv_highgui2411d.libopencv_imgproc2411d.libopencv

2017-11-23 19:57:44 392

转载 OpenCV 下载驿站(百度云盘下载,同步更新)

转载来自:”http://blog.csdn.net/yanzi1225627/article/details/47668021鉴于在OpenCV官网下载速度很慢,国内访问也不稳定,本博客将提供百度云盘下载链接,持续更新OpenCV及相关书籍下载,欢迎光临!http://blog.csdn.net/yanzi1225627/article/details/47668021

2017-11-23 19:38:05 373

转载 Linux驱动开发】Ubuntu14.04配置tftp服务并与ARM tftp

转载来自:https://tieba.baidu.com/p/4126537346?red_tag=1417927789使用tftp工具在pc端与arm端通过以太网传输文件是嵌入式开发中常用的一种文件传输手段。在Windows环境下我们通常会使用tftpd32来提供tftp服务器与客户端的服务,与之配合使用的是Windows终端或其他常见的调试设备,如SecureCRT等;在Linux

2017-11-23 16:56:52 464

转载 设置虚拟机ip

转载来自:https://jingyan.baidu.com/article/f25ef25414e8ea482d1b8265.html我的虚拟机上找不到ip 设置NAT连接 更改下面红色的就找到IP了Ubuntu网络配置如下:Ubuntu上连了两块网卡,eth0为外网的eth1为内网的eth0上IP为自动获取eth1上为手工设置1、打开Ubuntu的/etc/networ

2017-11-23 15:25:53 381

转载 YuvI420转Jpeg

转载来自:http://blog.csdn.net/smilestone_322/article/details/50770961这个不知道能用不此处的YUV数据指I420,I422应该做一下修改也能用,这个我没有测试。Jpeg的宽度、和高度可以是任意的,原来在网上找的都只能是16的倍数才行,采用的方法是libjpeg.lib。 函数实现如下:参数说明:

2017-11-21 11:05:40 489

原创 imx6q 板子ping win7主机 Ubuntu14.04主机

检查下面四点:1.板子和win7改成同一网段2.win7不要上网3.板子pingwin7的ip就行了。。。。。( win7ping不了板子 板子没有回复能力,这个无所谓)4.板子和win7的网线通过路由器连接,都插到路由器电脑的端口。做到以上四点板子指定能ping通win7主机,接下来我要试试imx6q和虚拟机Ubuntu14.04直接的ping命令,试好再发博客。

2017-11-21 08:33:13 338

转载 64位的ubuntu14.04 LTS安装 Linux交叉编译工具链及32位“ia32-libs”依赖库

转载来自:https://www.cnblogs.com/cartsp/p/5308604.htmlubuntu又迎来了其新一代的长期支持版本 14.04 LTS,其带来了许多令人期待的新特新,遂决定进行升级。装好了64位版本及安装 Linux交叉编译工具链运行GCC,${CROSS_COMPILE}gcc -v依然会提示那经典的“没有那个文件或目录”提示。

2017-11-13 20:19:11 1080

转载 ubuntu14.04的error while loading shared libraries: libz.so.1问题

转载来自:http://blog.csdn.net/stephen_yu/article/details/45645073原文地址: http://snailszzy.blog.163.com/blog/static/9439909320145954030703//opt/EmbedSky/4.4.6/lib/gcc/arm-embedsky-linux-gnueabi/4.4

2017-11-13 20:18:06 967

转载 ubuntu下安装cmake及cmake简单使用

转载来自:http://blog.csdn.net/flydreamforever/article/details/65454018前言最近突然想将开发环境转移到linux上,同时也准备阅读些github上的开源代码,发现现在开源项目一般都是用cmake管理的。所以就在自己的虚拟机上捣鼓了一天。一开始我也不知道cmake是啥,后来通过折腾也大概知道其作用,它所做

2017-11-13 20:16:50 3167

原创 ubuntu imx6q linux3.14 安装交叉编译工具

1 下载明远智睿的linux314资料  按照资料说明

2017-11-09 09:46:26 332

原创 linux c 定时器

struct itimerval t; fflush(stdout); setvbuf(stdout,NULL,_IONBF,0); t.it_interval.tv_usec =20000; t.it_interval.tv_sec = 0; t.it_value.tv_usec =20000; t.it_value.tv_sec = 0; if( setitimer( ITIME

2017-11-09 09:20:49 536

原创 师兄给的论文查询网址

https://sci-hub.io/

2017-11-09 09:20:13 403

原创 测试文件:打印 gsl opencv

gsl:#include #include int main (void){  double x = 5.0;  double y = gsl_sf_bessel_J0 (x);  printf ("J0(%g) = %.18e\n", x, y);  return 0; }打印:/* helloworld.cpp */#include in

2017-11-09 09:19:41 228

linux4.1.15内核i2c检测程序

linux4.1.15 交叉编译的i2c检测工具 可以直接下载到开发板上使用 方法为: i2c-detect -l 。i2cdetect -y -r 1 。i2cdump -f -y 2 0x21。

2018-02-05

imx6q 手册 指导

i.MX-6-G2D-API-User's-Guide.pdf i.MX_6_Series_Ubuntu_Multimedia_User's_Guide.pdf i.MX_Linux_User's_Guide.pdf i.MX-6-VPU-Application-Programming-Interface-Linux-Reference-Manual.pdf v4l2.pdf i.MX_6Quad_6Dual_Reference_Manual_(Rev_D).pdf IMX6DQCEC.pdf

2017-11-09

gsl的一些老版本库

gsl1.8.0及gsl-1.8-src可执行文件.zip gsl-库.zip gsl-64.rar gsl-2.2.tar.gz gsl-1.16-vc11.zip gsl-1.16.tar.gz

2017-11-09

挂载摄像头的ko文件

imx6使用ov5642摄像头时需要预先挂载的ko文件

2016-08-22

VS2010常见错误

vs2008/vs2010不支持默认整型排除4430来解决;内存泄露主要因为以下一些情况引起;常见断言错误总结:error C2440: “CWinApp::Enable3dControls”引起的C4996告警

2015-03-23

空空如也

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

TA关注的人

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