
老兵


9.4k 访问量
0 原创专栏
98 资料
0 粉丝
个性签名:此E友还没有留下个性签名哦~
加入易百纳时间:2020-08-25
-
大佬们,有什么好的iot边缘计算网关设备值得推荐一下?2021-04-290 0 3057
-
入了一个effect的 hdr400的要贵300-4002021-03-182 0 4008
-
请问可以运用软件把FPGA中的程序读出来吗?2021-02-204 0 3965
-
请问Qt中程序可以正常运行,但是总是报下面的错误是怎么回事?Error 2 in function StorageSystem::Registry::ATypeIOHandlerBaseundefined2021-02-182 0 2232
-
现在有个项目,就是需要ui确定数据格式后,根据这个数据格式来修改数据报的解析函数然后在让程序自动编译这个插件,这个自动编译该怎么搞2021-02-083 0 2204
-
2021-02-042 0 2107
-
我拿了5000张train 500val colab上用tesla T4跑,这一个batch要个15秒左右请问这速度正常嘛2021-01-292 0 2094
-
我要在这上面画一些标尺,现在是用overlay line这个函数在每一帧图像上画,有没有一次画好后面采集图像的时候就可以不用重复画的方法呢?2021-01-275 0 2744
-
大佬们有什么办法能在不借助开发板的情况下把程序下到fpga芯片里吗2021-01-265 0 2177
-
请问除了用morphology自带的骨架提取,还有其他比较好的办法能提取到细胞膜的骨骼?谢谢2021-01-210 0 1644
-
请问一下,opencv中如何把tiff转成jpg,并且保证原来的色彩感谢解答2021-01-151 0 2382
-
mport subprocesscmd = subprocess.Popen(‘tracert -d 192.168.1.125’, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)for info in iter(cmd.stdout.readline, ‘b’): if info == b’’: pass else: print(str(info, encoding=’gbk’))python代码如上,保存在test.py中,在Linux中执行python test.py 一直没有反应,直接ctrl后提示错误: ^CTraceback (most recent call last): File “test.py”, line 4, in for info in iter(cmd.stdout.readline, ‘b’):KeyboardInterrupt请问是什么原因,如何chu’li2020-12-040 0 2769
-
nrf52832蓝牙主机(接收蓝牙数据 串口输出)怎么优化2020-12-042 0 2867
-
各位好,想请问下,调试硬件宽动态,已经出图,打印/dev/mpp,会报错 <3>[ venc] [Func]:venc_inq_task_call_back [Line]:3253 [Info]:venc 0 stream buffer is full. <3>[ venc] [Func]:venc_inq_task_call_back [Line]:3253 [Info]:venc 1 stream buffer is full. <3>[ venc] [Func]:venc_inq_task_call_back [Line]:3253 [Info]:venc 2 stream buffer is full. <3>[ venc] [Func]:venc_inq_task_call_back [Line]:3253 [Info]:venc 0 stream buffer is full. <3>[ venc] [Func]:venc_inq_task_call_back [Line]:3253 [Info]:venc 1 stream buffer is full. <3>[ venc] [Func]:venc_inq_task_call_back [Line]:3253 [Info]:venc 2 stream buffer is full. <3>[ venc] [Func]:venc_inq_task_call_back [Line]:3253 [Info]:venc 0 stream buffer is full.2020-11-123 0 3636
-
各位行业前辈好!我现在正在学习MTK平台开发,目前遇到了一个问题,需要用MTK设备同时与两台服务器建立TCP通信,请问这个如何实现呢?期待回复!谢谢!2020-11-051 0 2552
-
在使用海思3516a时串口不能收发0x00的问题,以及发送二进制文件的时候这部分数据被隐去,求解?2020-10-313 0 2716
-
程序没有动态分配内存,但内存一值在下降,初始可用22M内存,下降到6M左右,一下子又变为22M可用,咋回事啊? 1、我的开发环境。海思 hi3516ev200,编译器 arm-himix100-linux-gcc,内核 linux-4.9.37。 2、遇到的问题。程序(有动态内存分配)刚跑起来时候,可用内存还有 22M,大概跑了 60 分钟,可用内存还剩下 6m。然后程序被强行杀死,内核打印类似 Out of memory: Kill process 的信息。所以我怀疑是内存泄漏导致内存耗尽,但我找不到到底是那里泄漏了。当我把很多无关进程去掉后,单独跑一个进程,该进程没有动态分配内存。也出现类似情况,但是内存下降至 6m 左右,一下子又提高到 22M ,程序没有被杀死。为什么会这样?内存变化情况如下,单位是K: 2228421900217722132419500191761879218056169041629615560148881421612680114481000885366992675622352206562033619472186721796815440110406960922088 3、代码很简单,最终在 while(1)循环不断通过 tcp 发送数据给服务器。 void* thread_report_device_info(void* arg) { int sockfd; char ip_addr[IP_ALEN] = {0}; struct sockaddr_in s_addr_in; char buffer[1024]; int ret = -1; int len =0; int conn_state, i; INI_T *ini_info = (INI_T *)arg; int32_t mach = 0,macl = 0; printf("\n thread send device info start \n"); while(1) { sockfd = socket(AF_INET,SOCK_STREAM,0); if(sockfd == -1) { printf("socket error! thread exit \n"); break; } memset(&s_addr_in,0,sizeof(s_addr_in)); s_addr_in.sin_addr.s_addr = inet_addr(ini_info->server_ip); s_addr_in.sin_family = AF_INET; s_addr_in.sin_port = htons(SERVER_PORT); //set tcp keepalive set_tcp_keep_alive(sockfd); //connet conn_state = 0; for(i = 0; i< 200; i++) { usleep(10000); ret = connect(sockfd,(struct sockaddr *)(&s_addr_in),sizeof(s_addr_in)); if(ret == 0) { conn_state = 1; ret = local_inet(ini_info->net_type,ip_addr,&mach,&macl); if (0 != ret){ printf("get local ip failed"); return NULL; } printf("ip_addr = %s, mac = %06x%06x \n", ip_addr, mach,macl); break; } } if(conn_state == 0) { printf("connect failed \n"); close(sockfd); continue; } printf("connect success \n"); int cnt = 0; while(1) { sleep(5); memset(buffer,0,sizeof(buffer)); snprintf(buffer, sizeof(buffer), "{\"type\":0,\"opcode\":1,\"information\": {\"id\":\"112233445566\"},\"status\":{\"power\":100,\"temp\":56}}"); cnt = strlen(buffer); printf("buffer = %s, strlen(buffer) = %d\n", buffer, cnt); ret = write(sockfd,buffer,cnt); if(ret <= 0) { printf("send status info error \n"); break; } printf("report device info to ai-box success \n"); } close(sockfd); } return NULL; } 4、哪位仁兄可以帮帮我? 谢谢。2020-10-291 0 2940
-
谁有编一个live555源码的吗?我编译的时候 找不到这个函数,是为什么呢?2020-10-292 0 2216
-
海思的低延时模式和低延时卷绕有什么区别?有人知道吗?2020-10-160 0 4982
-
ffmpeg可以使用cuda硬件加速的方法 解码编码mp4。所以在想可不可以也加速抽离图片 第二个需求是把视频抽离成单张图片,用的是这个方法 ffmpeg -i 1.mp4 -f image2 q:v 2 -an -r 10 -s 320*180 D:\cut\%4d.jpg 在ffmpeg里面文档看到的方法是有专门的剥离器叫“Demuxers” 在N卡的发布手册里面也看到有jpeg图片格式解码编码的支持。请问我上面代码怎么改进? Libraries The scientific and utility libraries listed below are available in the lib/ directory (DLLs on Windows are in bin/), and their interfaces are available in the include/ directory. cublas (BLAS) cublas_device (BLAS Kernel Interface) cuda_occupancy (Kernel Occupancy Calculation [header file implementation]) cudadevrt (CUDA Device Runtime) cudart (CUDA Runtime) cufft (Fast Fourier Transform [FFT]) cupti (CUDA Profiling Tools Interface) curand (Random Number Generation) cusolver (Dense and Sparse Direct Linear Solvers and Eigen Solvers) cusparse (Sparse Matrix) libcu++ (CUDA Standard C++ Library) nvJPEG (JPEG encoding/decoding) npp (NVIDIA Performance Primitives [image and signal processing]) nvblas ("Drop-in" BLAS) nvcuvid (CUDA Video Decoder [Windows, Linux]) nvgraph (CUDA nvGRAPH [accelerated graph analytics]) nvml (NVIDIA Management Library) nvrtc (CUDA Runtime Compilation) nvtx (NVIDIA Tools Extension) thrust (Parallel Algorithm Library [header file implementation]) 也测试过了如下代码都失败了 ffmpeg -hwaccel cuvid -c:v h264_cuvid -i 1.ts -c:v h264_nvenc -vframes 54000 image%5d.jpg ffmpeg -hwaccel cuvid -c:v h264_cuvid -i 1.ts -c:v h264_nvenc -vframes 54000 image%5d.jpg ffmpeg -hwaccel cuvid -c:v h264_cuvid -i 1.mp4 -c:v h264_nvenc -f image2 -r 1 image%5d.jpg ffmpeg -hwaccel cuvid -i 1.mp4 -f image2 -r 5 image%5d.jpg 请问我上面代码怎么改进?2020-10-140 0 3146

共34条
- 1
- 2