LittleStone8397
码龄14年
关注
提问 私信
  • 博客:81,539
    问答:152
    81,691
    总访问量
  • 30
    原创
  • 33,195
    排名
  • 35
    粉丝
  • 0
    铁粉
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:上海市
  • 加入CSDN时间: 2011-03-05
博客简介:

QQ839787886的博客

查看详细资料
  • 原力等级
    当前等级
    2
    当前总分
    187
    当月
    4
个人成就
  • 获得39次点赞
  • 内容获得11次评论
  • 获得145次收藏
  • 代码片获得483次分享
创作历程
  • 2篇
    2024年
  • 2篇
    2022年
  • 8篇
    2021年
  • 6篇
    2020年
  • 26篇
    2019年
  • 6篇
    2018年
成就勋章
TA的专栏
  • linux
  • android
    3篇
兴趣领域 设置
  • 人工智能
    opencv计算机视觉机器学习深度学习神经网络tensorflow
创作活动更多

2024 博客之星年度评选报名已开启

博主的专属年度盛宴,一年仅有一次!MAC mini、大疆无人机、华为手表等精美奖品等你来拿!

去参加
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

C语言旋转CHW的图像

【代码】C语言旋转CHW的图像。
原创
发布博客 2024.12.20 ·
179 阅读 ·
3 点赞 ·
0 评论 ·
0 收藏

C语言实现旋转一个HWC的图像

【代码】C语言实现旋转一个HWC的图像。
原创
发布博客 2024.12.20 ·
216 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

由于cherry-pick,导致repo sync冲突

git
原创
发布博客 2022.07.27 ·
450 阅读 ·
0 点赞 ·
1 评论 ·
0 收藏

用tensorflow的conv2d卷积实现均值blur

import numpy as npimport matplotlib.pyplot as pltimport cv2import tensorflow as tffrom tensorflow.python.framework import graph_utilimport timeblur_size = 31s_time = time.time()# (height, width, channel)BGR -- > HWC,RGB# img = cv2.imread(
原创
发布博客 2022.03.16 ·
366 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

多线程信号cond_wait()为什么使用while

int empty_slot = 5;producer(){ while(1) { lock(&empty_cnt_lock); while(empty_slot == 0){ cond_wait(&empty_cond, &empty_cnt_lock); } empty_slot --; unlock(&empty_cnt_lock); .
原创
发布博客 2021.07.10 ·
453 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

将字符串作为shell命令执行

eval: eval [arg ...] Execute arguments as a shell command. Combine ARGs into a single string, use the result as input to the shell, and execute the resulting commands. Exit Status: Returns exit status of command or success if.
原创
发布博客 2021.07.08 ·
5700 阅读 ·
2 点赞 ·
0 评论 ·
4 收藏

sizeof用法

#include <stdio.h>#include <stdlib.h>void test(char *p){ printf("p: %lu %s
", sizeof(p), p);}int main(){ char str[30] = "zhang"; char str_two[7][8] = {0}; printf("str: %lu %s
", sizeof(str), str); printf("str_two: %lu
", s.
原创
发布博客 2021.05.24 ·
125 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

strncat越界,踩内存

#include <string.h>#include <stdio.h> #include <stdlib.h>int main(){ char *a = (char *)malloc(sizeof(char) * 10); char w[30]="WWWWWWWWWWWWWWWWWWWWWWWWWWWW"; printf("w[30]: %c
", w[30]); //越界 memcpy(a, "123456789", 10); mem.
原创
发布博客 2021.05.21 ·
716 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

VirtualBox 中虚拟机扩容ubuntu硬盘空间,完全图形化操作

1、关闭虚拟机2、打开cmd窗口,进入到VirtualBox目录下(C:\Program Files\Oracle\VirtualBox),可以看到改目录下面有VBoxManage.exe3、VBoxManage modifyhd <虚拟硬盘路径> --resize 204800,例如:扩容到200GB,命令如下: VBoxManage modifyhd "D:\vm_ubuntu\ubuntu18.04\ubuntu18.04.vdi" --resize 204800...
原创
发布博客 2021.05.20 ·
376 阅读 ·
1 点赞 ·
1 评论 ·
1 收藏

查看Linux系统函数头文件,使用man

$ man stat$ man 2 stat
原创
发布博客 2021.05.18 ·
510 阅读 ·
1 点赞 ·
0 评论 ·
1 收藏

获取文件大小fseek、stat、fstat

#include <sys/stat.h>#include <unistd.h>#include <stdio.h>#include <fcntl.h>/*************************************************************************struct stat { dev_t st_dev; //文件的设备编号 ino_t s.
原创
发布博客 2021.05.18 ·
404 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

dirname与basename的用法注意

#include <stdio.h>#include <stdlib.h>#include <string.h>#include <libgen.h>int main(){ char in_filename[128] = "/tmp/test_name.file"; char out_filename[128]; char *dirc = NULL, *basec = NULL, *bname = NULL, *dname = NULL;.
原创
发布博客 2021.05.18 ·
218 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

shell中 执行后台命令后的打印保存到文件

test_code -param >> log 2>&1 &
原创
发布博客 2020.10.30 ·
4164 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

shell 变量名中包含变量

eval接受一个字符串作为它的参数,并对它进行评估,就好像你在命令行上键入了该字符串一样。(如果你传递了几个参数,它们首先与它们之间的空格相连接。)eval echo \${$n}运行传递给的参数eval。扩展后,参数是echo和${1}。所以eval echo \${$n}运行命令echo ${1}。string=idid=1stream_1="111111"cmd="{$(eval echo \${stream_${id}}), 222222}"ech...
原创
发布博客 2020.10.22 ·
6086 阅读 ·
2 点赞 ·
0 评论 ·
13 收藏

Makefile中空格与tab

makefile实际上是在一个文件中用两种完全不同的“语言”编写的。recipe(运行编译器,echo等的命令)是用shell脚本语法编写的。不在recipe中的其余makefile是用makefile语法编写的。为了使make能够区分配方和不是配方的东西,它使用了TAB字符。因此,以TAB开头的行被假定为recipe的一部分,因此它们是shell脚本并传递给shell进行解析。而不以TAB开头的行不能成为recipe的一部分,它们必须是make语法,用空格。ifneq是makefile
原创
发布博客 2020.09.14 ·
3338 阅读 ·
4 点赞 ·
1 评论 ·
14 收藏

数组名 、 函数名 和 数组名取地址 、 函数名取地址

#include <stdio.h>#include <stdlib.h>#include <string.h>void test(){ printf("123456
");}int main(){ char a[10]; printf("&a:%p, a:%p, &a[0]:%p
", &am...
原创
发布博客 2020.03.04 ·
724 阅读 ·
0 点赞 ·
0 评论 ·
3 收藏

glibc-2.30.tar.xz

发布资源 2020.01.19 ·
xz

从内存中保存yuv文件

数据是NV12YYYYYYYYYYYYYYYYUVUVUVUV frame_y_buf = (u8 *)malloc(width * height); if (frame_y_buf == NULL) { printf("allocate frame_y_buf error, line:%d!
", __LINE__); rval = -1; b...
原创
发布博客 2020.01.16 ·
666 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

获取数组的第一大值和第二大值

#include <stdio.h>#include <stdlib.h>#include <string.h>int arry[10] = {8, 2, 4, 6, 8, 3, 1};int main(){ int n = 0, i = 0 ,j = 0; int max_value = 0, max_value_index = 0; i...
原创
发布博客 2020.01.15 ·
436 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Win10 打开OpenSSH

一、安装OpenSSH 客户端 、OpenSSH 服务器设置 -> 管理可选功能 -> 添加功能 -> [OpenSSH 客户端] [OpenSSH 服务器]二、启动服务并设置为自动启动SSH服务 -> 启动SSH服务 ->属性 -> 启动选择 -> 自动ubuntu$ scp 1.txt xxx@company@1...
原创
发布博客 2019.12.04 ·
543 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏
加载更多