摘要: 代码: import subprocess from datetime import timedelta import os def parse_time(time_str): """将时间字符串解析为秒""" hours, minutes, seconds = map(int, time_str. 阅读全文
posted @ 2024-04-28 18:44 大话人生 阅读(32) 评论(0) 推荐(0)
摘要: 代码: import cv2 import numpy as np import os import random from concurrent.futures import ThreadPoolExecutor # 图片文件夹路径 image_folder_path = r'F:\jinggua 阅读全文
posted @ 2024-04-28 16:54 大话人生 阅读(47) 评论(0) 推荐(0)
摘要: 代码: import cv2 import numpy as np import os import random from concurrent.futures import ProcessPoolExecutor from tqdm.auto import tqdm # 图片文件夹路径 imag 阅读全文
posted @ 2024-04-28 16:35 大话人生 阅读(120) 评论(0) 推荐(0)
摘要: 代码: import os import requests from bs4 import BeautifulSoup from urllib.parse import urljoin, urlparse # 检查URL是否有效 def is_valid_url(url): parsed = url 阅读全文
posted @ 2024-04-28 14:58 大话人生 阅读(60) 评论(0) 推荐(0)
摘要: 代码 import os import requests from bs4 import BeautifulSoup # 指定要爬取的网址 url = 'https://www.baidu.com/' # 请求网页内容 response = requests.get(url) response.ra 阅读全文
posted @ 2024-04-28 14:48 大话人生 阅读(51) 评论(0) 推荐(0)
摘要: 代码: import cv2 import numpy as np import os import random from tqdm import tqdm # 图片文件夹路径 image_folder_path = r'F:\jingguan\tu' # 视频文件所在的文件夹路径 video_f 阅读全文
posted @ 2024-04-28 14:37 大话人生 阅读(43) 评论(0) 推荐(0)