摘要:
import cv2 from pathlib import Path import numpy as np Workspace = r"F:\pythonProject\测试\bag包测试\color_directory" fourcc = cv2.VideoWriter.fourcc(*"MJP 阅读全文
摘要:
import argparse import pyrealsense2 as rs import numpy as np import cv2 import os """ this is a file for convert .bag files to .png files for RealSens 阅读全文
摘要:
def img2pdf(img_files, name): doc = fitz.open() for file in img_files: page = doc.new_page() img_doc = fitz.open(file) pdf_bytes = img_doc.convert_to_ 阅读全文
摘要:
如何使用ffmpy从文件中获取元数据 import subprocess import ffmpy import json tup_resp = ffmpy.FFprobe( inputs={source_path: None}, global_options=[ '-v', 'quiet', '- 阅读全文
摘要:
#! /usr/bin/env python # -*- coding: utf-8 -*-# # # Name: num2chinese # Author: yunhgu # Date: 2021/8/24 14:51 # Description: # _MAPPING = (u'零', u'一' 阅读全文
摘要:
textgrid文件说明 第一行是固定的:File type = "ooTextFile" 第二行也是固定的:Object class = "TextGrid" 空一行 xmin = xxxx.xxxx # 表示开始时间 xmax = xxxx.xxxx # 表示结束时间 tiers? <exist 阅读全文
摘要:
import cv2 import numpy as np parameter_mapping = { # 内参 'internal_reference': [[25714.104851, 0.000000, 1847.417942], [0.000000, 2586.842593, 1152.89 阅读全文
摘要:
# -*- coding: utf-8 -*-# # # Name: 点云降维处理 # Author: yunhgu # Date: 2022/1/26 11:17 # Description: # import copy import logging import random import st 阅读全文
摘要:
#! /usr/bin/env python # -*- coding: utf-8 -*-# # # Name: 图片模糊度计算 # Author: yunhgu # Date: 2021/8/20 11:01 # Description: # import shutil from traceba 阅读全文
摘要:
#! /usr/bin/env python # -*- coding: utf-8 -*-# import re s = "你好2021" content = re.sub(r"(\S+?)(\d+)", r"**\1** ##\2##", s) print(content) 阅读全文