Skip to content

Instantly share code, notes, and snippets.

View Hellohistory's full-sized avatar
💭
Codeing(◦˙▽˙◦)

Hellohistory

💭
Codeing(◦˙▽˙◦)
View GitHub Profile
import os
from PIL import Image
import questionary
from rich.console import Console
from rich.prompt import Prompt
from rich import print as rprint
from rich.table import Table
console = Console()
import os
import random
from rich.console import Console
from rich.table import Table
from rich.progress import track
def display_intro():
table = Table(title="程序介绍")
@Hellohistory
Hellohistory / md5校验_GUI.py
Last active February 12, 2024 18:45
一个带GUI的md5校验
import tkinter as tk
from tkinter import filedialog, messagebox, scrolledtext, ttk
import hashlib
import json
import os
import webbrowser
class MD5CheckerApp:
def __init__(self, root):
@Hellohistory
Hellohistory / 单文件提取.py
Created April 9, 2023 09:24
将Labelimg标注文件单个提取出来
import os
from PIL import Image
import xml.etree.ElementTree as ET
# 接受用户输入的标注文件地址、图像文件地址和输出文件夹地址
annotation_path = input("请输入标注文件地址:")
image_path = input("请输入图片文件地址:")
output_dir = input("请输入输出文件夹地址:")
# 解析XML文件,并对每个文字区域进行裁剪