08 2021 档案
摘要:如何使用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)
阅读全文
摘要:读取和生成json文件 from json import load,dumps # 读取json文件 def read_json(file_path): file_json = None try: with open(file_path, mode='r', encoding="utf-8") as
阅读全文
摘要:问题 直接使用pyinstaller -F test.py 进行打包,之后运行exe会报错 解决方法 将dat文件打包到exe中 修改spec文件 # -*- mode: python -*- block_cipher = None face_models = [ ('.\\face_recogni
阅读全文
摘要:pyyaml模块 pip install pyyaml 在安装的时候是pyyaml,但是在使用的时候是yaml. 具体使用 #! /usr/bin/env python # -*- coding: utf-8 -*-# # # Name: tools_01 # Author: yunhgu # Da
阅读全文