- 博客(5)
- 收藏
- 关注
原创 检查json的脚本
# -*- coding: utf-8 -* import cv2 import os #dir = r"F:\wenjian\trainingData_3.3\VideoData" dir = r"./20200320_非机动车雨篷/白天" for eachPic in os.listdir(dir): if eachPic.split('.')[-1] == 'jpg': vPath = dir + "/" + eachPic + '.json' #print(vPath.
2021-07-06 11:19:20 151
原创 统计数据的脚本
import codecs import numpy as np import pandas as pd import matplotlib.pyplot as plt # import seaborn as sns # from pandas_profiling import ProfileReport #from numpy import * import operator from os import listdir def readTXT(path): #print(path) .
2021-07-05 11:39:28 367
原创 视频抽帧脚本
# -*- coding: utf-8 -* import cv2 import os #dir = r"F:\wenjian\trainingData_3.3\VideoData" dir = r"./20191009_非机动车雨篷视频" for eachVid in os.listdir(dir): vPath = dir + "/" + eachVid #vPath = r"./20191009_非机动车雨篷视频/@20190811194708_20190811194715_6735..
2021-07-05 11:37:46 303
转载 ArrayList循环遍历并删除元素的常见陷阱
在工作和学习中,经常碰到删除ArrayList里面的某个元素,看似一个很简单的问题,却很容易出bug。不妨把这个问题当做一道面试题目,我想一定能难道不少的人。今天就给大家说一下在ArrayList循环遍历并删除元素的问题。首先请看下面的例子: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
2017-10-11 22:37:07 138
原创 C#关于数组排序
在学校里教的冒泡排序一直都是: for (int i = 0; i { for (int j=0; j { if (a[j] > a[j + 1]) { i
2017-10-01 15:34:39 200
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人