- 博客(14)
- 收藏
- 关注
原创 radxa_zero_3E/3W(RK3566)安装带有gstreamer的opencv
为了在radxa 3W上使用opencv调用摄像头并用Gstream推流出去,需要编译安装opencv,为什么不使用pip直接安装编译好的opencv呢,因为我试过,它默认不带Gstreamer,只支持ffmpeg。虽然ffmpeg也能推流,但是经过我的测试还是gstreamer的延迟低一些。
2025-02-18 10:40:09
723
原创 jetson nano USB摄像头使用openCv打开帧率低的问题
最近玩jetson nano的时候发现openCv打开USB摄像头帧率只有5帧,但是windows下能跑30帧,在网络搜了一下原因发现是摄像头默认读取格式不对,需要改成MJPG格式帧率才能上去,于是使用优快云上找的代码,但是都不能工作,折腾了好久没搞定,突然想到上上看看,没想到真的解决了,这里做一下记录。
2023-05-11 09:43:24
3877
1
原创 带有标志位的循环队列
#include <stdio.h>#include <stdlib.h>#define MAXSIZE 10typedef struct{ int data[MAXSIZE]; int tag; int front; int rear;}sqQueue;int InitQueue(sqQueue *q){ q->front = 0; q...
2020-04-12 20:17:34
404
原创 链栈判断一个字符串是否为回文
#include <stdio.h>#include <stdlib.h>typedef struct lineStack { char data; struct lineStack * next;}linkStack;linkStack* push(linkStack* stack, char a) { linkStack * line = (linkS...
2020-04-12 17:41:51
2152
原创 单链表逆置
Status ReverseList(LinkList *L){ LinkList p, q; p = (*L)->next; (*L)->next = NULL; while (p != NULL) { q = p; p = p->next; q->next = (*L)->next; (*L)->next = q; }}...
2020-03-31 10:13:26
314
原创 单链表的合并
#include "stdio.h"#include "malloc.h"#include "stdlib.h"//用于产生随机数#include "time.h"//时间作为随机种子#define ERRO 0#define OK 1typedef int ElemType;//元素类型名重命名typedef int Status;//状态类型重命名/*结点结构体*/typ...
2020-03-29 14:59:29
285
原创 函数指针做函数参数
typedef void(*pType)(int);//重命名一个pType类型的函数指针void find1(int x){ printf("FUN1%d\n", x);}void CallFun(pType fp,int x)//PType 类型的函数指针做参数{ fp(x);}void main(){ CallFun(find1, 5); CallFun(fin...
2020-03-21 13:41:02
181
1
原创 函数名与函数指针
//find函数名也是指针,为指针常量,而(*findp)为函数针针变量void find(int x){ printf("%d\n", x);}void main(){ void (*findp) (int);//声明函数指针 findp = &find;//把函数首地址赋值给函数指针 (*findp)(20);//通过函数指针调用函数}void main()...
2020-03-21 13:26:46
229
原创 指针的指针
void find(char array[], char search, char *p)//此时向形参传递的指针相当于一个地址值,即按值传递,并不会改变 //实参的地址{ int i; for ( i = 0; array[i]!=0; i++) { if (array[i]==search)...
2020-03-21 12:48:05
135
原创 C语言中函数参数的传递
//按值传递void EXch(int a, int b){ int tem; tem = a; a = b; b = tem; printf("a=%d,b=%d\n", a, b);}void main(){ int a = 3, b = 4; EXch(a,b); printf("a=%d,b=%d\n", a, b);//a,b的值不会被改变}//按地址传...
2020-03-21 11:38:23
475
原创 常量指针与指针常量的区别
常量指针与指针常量的区别#include <stdio.h>#include <stdlib.h>void main(){ int i1=20, i2=30; //常量指针,指针的值不可变,但是指针的地址可变// const int *p=&i1;//先常量,再指针,所以是常量指针 //指针常量,指针的地址不变,但指针的值可变// int *con...
2020-03-20 23:41:34
280
原创 比较顺序表后缀大小
#include <stdio.h>#include <stdlib.h>#define MAXSIZE 20#define OK 1#define ERRO 0typedef int ElemType;//元素类型重命名typedef int Status;//状态重命名/*创建线性表结构体 ...
2020-03-16 20:23:26
171
原创 线性表的插入
#include <stdio.h>#include <stdlib.h>#define MAXSIZE 20#define OK 1#define ERRO 0typedef int ElemType;//元素类型重命名typedef int Status;//状态重命名/*创建线性表结构体 ...
2020-03-16 18:09:43
4529
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人