avatar
Articles
292
Tags
211
Categories
0

karr's blog
Search

karr's blog

flask create_time update_time is_delete
Created2023-01-18
123create_time = db.Column(db.DateTime, server_default=func.now())update_time = db.Column(db.DateTime, server_default=func.now(), onupdate=func.now())is_delete = db.Column(db.Integer, server_default='0')
python命令行参数
Created2023-01-17
123456parser = argparse.ArgumentParser(description='Defence')parser.add_argument('--source', default='test02.mp4', help='source')parser.add_argument('--weight', default='weights/yolov5s.pt', help='weight')args = parser.parse_args()print(args.source)
python播放音频文件
Created2023-01-15
可在nano或者gax上面使用(已测试过) 将mp3文件转换为wav文件trans_mp3_to_wav.py 12345678from pydub import AudioSegment# 这里filepath填的是.mp3文件的名字(也可加上路径)def trans_mp3_to_wav(filepath): song = AudioSegment.from_mp3(filepath) song.export("test.wav", format="wav")trans_mp3_to_wav('test.mp3') 播放play_wav.py 12345from pydub import AudioSegmentfrom pydub.playback import playsong = AudioSegment.from_wav("test.wav")play(song)
图片标注工具Labelme的安装及使用方法
Created2023-01-07
https://blog.csdn.net/zong596568821xp/article/details/83375227
爬取百度图片
Created2023-01-07
1234567891011121314151617181920212223242526272829303132333435363738394041from fake_useragent import UserAgentimport requestsimport reimport uuidheaders = {"User-agent": UserAgent().random, # 随机生成一个代理请求 "Accept-Encoding": "gzip, deflate, br", "Accept-Language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6", "Connection": "keep-alive"}img_re = re.compile('"thumbURL":&q ...
linux 打开端口1935,CentOS服务器开放端口
Created2023-01-05
https://blog.csdn.net/weixin_39915308/article/details/116846197
cartographer 使用自己的雷达
Created2023-01-05
文件修改 demo_revo_lds.launch12345678910111213141516171819202122232425262728293031323334<!-- Copyright 2016 The Cartographer Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS&quo ...
opencv-python同时调用两个摄像头
Created2023-01-03
123456789101112131415161718192021222324252627282930313233import cv2import numpy as npcapture = cv2.VideoCapture(0)capture_usb = cv2.VideoCapture(2)# 打开自带的摄像头if capture.isOpened() and capture_usb.isOpened(): # 以下设置显示屏的宽高 capture.set(cv2.CAP_PROP_FRAME_WIDTH, 640) capture.set(cv2.CAP_PROP_FRAME_HEIGHT, 480) capture_usb.set(cv2.CAP_PROP_FRAME_WIDTH, 640) capture_usb.set(cv2.CAP_PROP_FRAME_HEIGHT, 480) # 持续读取摄像头数据 while True: read_code, frame = capture.read() read_ ...
nano 自启动脚本实现方式
Created2022-12-23
nano 自启动脚本实现方式https://blog.csdn.net/Lstar_/article/details/120993385 1gnome-session-properties
pip导出 requirements.txt
Created2022-11-29
pipreqs1pip install pipreqs 在python项目的根目录下 使用 pipreqs ./ 12pipreqs ./ --encoding=utf8INFO: Successfully saved requirements file in ./requirements.txt
1…232425…30
avatar
karr
世界那么大,我想去看看。
Articles
292
Tags
211
Categories
0
gitee
Announcement
This is my Blog
Recent Post
python 使用线程池来同时执行多个函数2025-07-23
获取 A 股全部历史数据保存到本地2025-07-22
What are AI Agents?2025-07-21
Hello, 极简AES!2025-07-20
Git报错: Failed to connect to github.com port 443 解决方案2025-03-30
Tags
memory_profiler mysqlclient react-error utils OTP io多路复用 importlib postMessage 字典 救猫咪 数据库 text npm 协程 react-warning git-lfs Artificial Intelligence vue-router Android 前端 变现 Homebrew commit message 重复数据 动态口令 Next-key lock stopPropagation ONLY_FULL_GROUP_BY react-fragment-error-message 代码 口罩检测系统 react-props-warning-message 远程仓库 FastAPI eslint es6 GROUP BY 搜索引擎 md5 react-text-error-message
Archives
  • July 20254
  • March 20256
  • February 20252
  • January 20253
  • November 20242
  • October 20243
  • September 20247
  • August 202410
Info
Article :
292
UV :
PV :
Last Update :
©2024 - 2025 By karr
Framework Hexo|Theme Butterfly
Search
Loading the Database