上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 49 下一页
摘要: k3s比minikube更接近生产环境 3大辣鸡运营商把GitHub给禁了,所以用国内的 curl -sfL https://rancher-mirror.rancher.cn/k3s/k3s-install.sh | INSTALL_K3S_MIRROR=cn INSTALL_K3S_VERSIO 阅读全文
posted @ 2024-02-01 09:10 朝阳1 阅读(158) 评论(0) 推荐(0)
摘要: 导出 pip freeze > requirements.txt 安装 pip install -r requirements.txt 阅读全文
posted @ 2024-01-30 10:57 朝阳1 阅读(34) 评论(0) 推荐(0)
摘要: 使用venv(系统默认安装): 创建一个新的虚拟环境:运行命令 python -m venv myenv 其中myenv是你的虚拟环境的名称。 激活虚拟环境:会根据当前运行版本win/linux进行自动激活 activate 在激活的虚拟环境中安装所需的软件包:运行命令 pip install pa 阅读全文
posted @ 2024-01-30 10:26 朝阳1 阅读(59) 评论(0) 推荐(0)
摘要: 00:00:00视频开始的地方 input.mp4是要截取的视频 00:00:07是截取结束的时间 output.mp4是新视频的名字 ffmpeg -copyts -ss 00:00:00 -i input.mp4 -t 00:00:07 -c copy output.mp4 阅读全文
posted @ 2024-01-23 15:08 朝阳1 阅读(64) 评论(0) 推荐(0)
摘要: 只能去除固定水印位置。如果水印位置会变,那么后面的就去除不掉。而且如果视频第一帧没有水印出现,那么后面也没办法去掉。。。。。。。。 ffmpeg -i base.mp4 -vf "delogo=x=5:y=5:w=300:h=200" output.mp4 这时候需要直接用ffmpeg或者第三方软件 阅读全文
posted @ 2024-01-23 14:02 朝阳1 阅读(438) 评论(2) 推荐(0)
摘要: abc.txt 我喜欢唱跳rap&篮球 import os import pyttsx3 # 创建一个TTS引擎 engine = pyttsx3.init() voices = engine.getProperty('voices') for v in voices: print("ID:", v 阅读全文
posted @ 2024-01-23 10:53 朝阳1 阅读(60) 评论(0) 推荐(0)
摘要: from moviepy.editor import VideoFileClip video = VideoFileClip('xxxx.mp4') # 剪辑从第1秒到第6秒的视频片段 clipped_video = video.subclip(0, 6) # 保存成gif clipped_vide 阅读全文
posted @ 2024-01-23 10:51 朝阳1 阅读(48) 评论(0) 推荐(0)
摘要: 先从一段代码看起,下面这个代码是将传入的对象转换成 JSON string并返回回去,其中,如果判断 i==nil 时,会返回""。 func ToJSONString(i interface{}) string { if i == nil { return "" } bytes, _ := jso 阅读全文
posted @ 2024-01-17 17:02 朝阳1 阅读(84) 评论(0) 推荐(0)
摘要: 安装,这里用的二进制源码,地址 https://www.percona.com/downloads 完全备份格式 innobackupex -uroot -p密码 备份目录 [参数] 增量备份格式 innobackupex -uroot -p密码 备份目录 --incremental 新数据存放目录 阅读全文
posted @ 2024-01-17 16:20 朝阳1 阅读(35) 评论(0) 推荐(0)
摘要: 原视频 转换后 import os import cv2 import numpy as np from moviepy.editor import AudioFileClip, VideoFileClip def pixel2char(pixel): char_list = "@#$%&abqwe 阅读全文
posted @ 2024-01-12 14:51 朝阳1 阅读(64) 评论(0) 推荐(0)
上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 49 下一页