上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 74 下一页
摘要: os.path.exists('sutdent_imformation/abnormal.csv') 存在返回真不存在返回假。 阅读全文
posted @ 2023-04-02 12:45 祥瑞哈哈哈 阅读(15) 评论(0) 推荐(0)
摘要: im_root = ImageTk.PhotoImage(Image.open('1.jpeg')) canvas_root = Canvas(root, width=2000, height=2000) canvas_root.create_image(0, 0, image=im_root) c 阅读全文
posted @ 2023-04-02 09:49 祥瑞哈哈哈 阅读(201) 评论(0) 推荐(0)
摘要: import pymysql import cv2 import numpy as np conn = pymysql.connect(host='127.0.0.1', port=3306, user='root', passwd='1234567890', db='studentmemo') c 阅读全文
posted @ 2023-04-01 13:09 祥瑞哈哈哈 阅读(49) 评论(0) 推荐(0)
摘要: for idx,select_row in select.iterrows(): 阅读全文
posted @ 2023-04-01 12:35 祥瑞哈哈哈 阅读(28) 评论(0) 推荐(0)
摘要: import cv2 cap = cv2.VideoCapture('student_video/22.MP4') #返回一个capture对象 cap.set(cv2.CAP_PROP_POS_FRAMES,i) #设置要获取的帧号 a,b=cap.read() #read方法返回一个布尔值和一个 阅读全文
posted @ 2023-04-01 12:23 祥瑞哈哈哈 阅读(120) 评论(0) 推荐(1)
摘要: import pandas as pd df = pd.read_csv('sutdent_imformation/abnormal.csv',header=None) all_fps=set(df.iloc[:,38]) 用set做。 阅读全文
posted @ 2023-04-01 11:05 祥瑞哈哈哈 阅读(271) 评论(0) 推荐(0)
摘要: 注意这里要存图片格式是二进制格式如果你用cv2读取的话需要转为二进制格式,直接ndarray写会报错的。 if pose.all_save_image==0: sql = "INSERT INTO studentmemo.student(idx,pic0) VALUES (%s,%s)" args 阅读全文
posted @ 2023-03-31 10:50 祥瑞哈哈哈 阅读(36) 评论(0) 推荐(0)
摘要: pure pixels, i.e, for any of the p endmembers there is at least one pixel containing only the correspondent material; 阅读全文
posted @ 2023-03-30 21:04 祥瑞哈哈哈 阅读(46) 评论(0) 推荐(0)
摘要: import pymysql # 创建连接 conn = pymysql.connect(host='127.0.0.1', port=3306, user='root', passwd='1234567890', db='studentmemo') # 创建游标 cursor = conn.cur 阅读全文
posted @ 2023-03-30 19:08 祥瑞哈哈哈 阅读(68) 评论(0) 推荐(0)
摘要: 编码错误,dataframe写入mysql是utf-8的话在mysql表中行和列都改成utf-8就行了。 阅读全文
posted @ 2023-03-30 18:50 祥瑞哈哈哈 阅读(37) 评论(0) 推荐(0)
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 74 下一页