自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 126

原创 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 2459

原创 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 1384 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 449

原创 python实现iou的方法

def iou(test_box,base_box): ret = 0 #若坐标为空,return 0 if test_box == []: return...

2019-07-02 21:20:08 752

原创 删除一个文件夹里的部分目录

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 342

原创 计算日志信息里各性能所消耗的时间

日志信息如图import reimport os import csvimport argparse#得到输入的参数,日志路径def get_args(): parser = argparse.ArgumentParser(\ description="get cost time",\ formatter_c...

2019-03-15 23:18:39 544

原创 删除指定文件夹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 378

原创 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 6899

空空如也

空空如也

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

TA关注的人

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