先按照环境准备文档安装Anaconda
如文档安装端到端的paddleocr
关于各模型可以参考算法小结文档
import math | |
import sounddevice as sd | |
def frequency(base_freq, semitones): | |
return base_freq * (2 ** (semitones / 12)) | |
DO = 440 | |
RE = frequency(DO, 2) |
https://stackoverflow.com/questions/26590174/convert-rtsp-stream-to-virtual-web-camera |
// https://www.c-sharpcorner.com/UploadFile/dbeniwal321/using-gdi-print-functionality/ | |
//PrintDirect.cs | |
//shows how to write data directly to the | |
//printer using Win32 APIs. | |
//this code sends Hewlett-Packard PCL5 codes | |
//to the printer to print | |
//out a rectangle in the middle of the page. | |
using System; | |
using System.Text; | |
using System.Runtime.InteropServices; |
https://www.gpt4v.net/zh-CN/yeschat/ | |
https://weel.co.jp/media/stable-video-diffusion | |
{ | |
"svd": ["https://huggingface.co/stabilityai/stable-video-diffusion-img2vid/resolve/main/svd.safetensors", "checkpoints/svd.safetensors"], | |
"svd_xt": ["https://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt/resolve/main/svd_xt.safetensors", "checkpoints/svd_xt.safetensors"] | |
} |
https://websetnet.net/how-to-install-wechat-desktop-client-in-ubuntu-linux/ | |
Snap makes it easier to install WeChat unofficial client in Linux. Before you can install electronic-chat, you will need to install snapd and snapd-xdg-open. Run the below command to install it: | |
sudo apt install snapd snapd-xdg-open | |
Once done, type the following command to install it. | |
sudo snap install electronic-chat | |
This will install WeChat client. Once done, launch it from the terminal by typing: | |
electronic-chat |
https://opensource.adobe.com/dc-acrobat-sdk-docs/pdflsdk/ |
const acorn = require("acorn");
const code = `export default "hello, world";`;
const parsed = acorn.parse(code, {
sourceType: "module",
});
const stringLiteral = parsed.body[0].declaration.arguments[0].value;
# 读取当前目录下这些目录中各有多少文件 | |
ls . |awk -F ' ' '{("find "$1" |wc -l") | getline n;print n "\t" $1}' | |
# 从命令输出而不是文件名得到一个文件流重定向 | |
awk '{print "hello,",$0}' <(echo mr. white) | |
# 在命令的任意位置指定重定向到文件 | |
echo Hello, world. > hello Nice to meet you! |
set_fonts
set fonts inside a font cache on Context
and then fonts in cache are actually updated on frame startup
that's why you need to load font and display it in the next frame