07 2024 档案
摘要:1 import xlrd 2 import os 3 4 5 # 读取Excel中的数据 6 def read_excel_data(): 7 excel_path = os.path.join(os.getcwd(), 'files/total.xlsx') 8 print("~~~~~~~~~
阅读全文
摘要:1 import cv2 2 import numpy as np 3 4 5 # OpenCV进行二值化图片处理 6 def open_cv_deal_image(): 7 # 读取图像 8 image = cv2.imread('image/output.jpg') 9 # 灰度化 10 gra
阅读全文
摘要:1 from PIL import Image 2 3 4 def image_convert(): 5 im = Image.open("image/ball.png") 6 # 将彩色图片转换成黑白图片 7 bw_image = im.convert("L") 8 bw_image.save("
阅读全文
摘要:带带弟弟OCR:https://www.cnblogs.com/wstong2052/p/17212716.html
阅读全文
摘要:1 import xlrd 2 import os 3 4 5 # 读取Excel中的数据 6 def read_excel_data(): 7 excel_path = os.path.join(os.getcwd(), 'total.xlsx') 8 print("~~~~~~~~~~~~>>>
阅读全文
摘要:1 # _*_ coding: utf-8 _*_ 2 import json 3 import openpyxl 4 import mysql.connector 5 import requests 6 7 # 创建数据库连接 8 from openpyxl.styles import Borde
阅读全文
摘要:1 import sqlite3 2 3 start_row = 0 4 end_row = 10000 5 conn = sqlite3.connect('ball.db') 6 cur = conn.cursor() 7 with open('demo.txt', 'r', encoding='
阅读全文
摘要:1 import requests 2 import sqlite3 3 4 start_row = 0 5 end_row = 10000 6 conn = sqlite3.connect('ball.db') 7 cur = conn.cursor() 8 9 url = "https://ww
阅读全文
摘要:1 import base64 2 import os 3 import zipfile 4 5 import matplotlib.pyplot as plt 6 from openpyxl import load_workbook 7 8 """ 9 下载Excel中的图片保存到本地 10 ""
阅读全文