- 博客(9)
- 收藏
- 关注
原创 c++实现顺序表的基本功能
#include <iostream>#include <vector>using namespace std;struct Line{ int names[20]; int length;};Line* InitList(){ Line *L = new Line; L->length = 10; for (int i=0; i&l...
2019-11-16 14:32:23 155
原创 python将多张图片合成为一张
# coding:utf-8import osimport argparsefrom PIL import Image, ImageDraw, ImageFontdef get_file(image_dir): image_list = [] for root, dirs, files in os.walk(image_dir): if not files: conti...
2019-10-09 22:11:04 2485
原创 python将图片合成为视频
#coding:utf-8import osimport cv2import redef get_images(path): file_list = [] for root, dirs, files in os.walk(path): if not files: continue for file in file...
2019-10-09 22:05:05 1452 2
原创 python保存指定范围帧内的图片
#! /usr/bin/env python#-*- coding: utf-8 -*-import argparseimport cv2import osimport threadingimport timeimport multiprocessingimport sysreload(sys)sys.setdefaultencoding('utf-8')def u...
2019-09-09 23:15:47 476
原创 python实现iou的方法
def iou(test_box,base_box): ret = 0 #若坐标为空,return 0 if test_box == []: return...
2019-07-02 21:20:08 756
原创 删除一个文件夹里的部分目录
if [ $# != 1 ]then echo usage:sh delete.sh seqs_dir exitfiseq_dir=$1for file_name in `ls $seq_dir`do dir_name=$seq_dir$file_name if [ -d $dir_name ] then declare -i ...
2019-06-02 19:22:11 368
原创 计算日志信息里各性能所消耗的时间
日志信息如图import reimport os import csvimport argparse#得到输入的参数,日志路径def get_args(): parser = argparse.ArgumentParser(\ description="get cost time",\ formatter_c...
2019-03-15 23:18:39 555
原创 删除指定文件夹n天以前的文件
if [ $# != 2 ];thenecho usage:sh regular_clean.sh file_path file_days exitfipath=$1day=$2if [ ! -d $path ];then echo "the file is not exist" exitfiif [ -s $path ];then ech...
2019-02-11 20:06:27 402
原创 python批量读取文件里的每一个文件里的数字,分别求平均值
def get_files(file_path): file_list = [] #遍历文件夹 for root, dirs, files in os.walk(file_path): if not files: continue for file in files: compelete_pa...
2019-01-22 23:39:17 6913
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人