This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| from PIL import Image | |
| import xml.etree.ElementTree as ET | |
| # 接受用户输入的标注文件地址、图像文件地址和输出文件夹地址 | |
| annotation_path = input("请输入标注文件地址:") | |
| image_path = input("请输入图片文件地址:") | |
| output_dir = input("请输入输出文件夹地址:") | |
| # 解析XML文件,并对每个文字区域进行裁剪 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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="程序介绍") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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() |