EADST

C++: Normalize Images with Mean and STD in OpenCV

C++: Normalize Images with Mean and STD in OpenCV

void preprocess_image(cv::Mat& img) 
{
    cv::resize(img, img, cv::Size(224, 224));
    img.convertTo(img, CV_32FC3);
    img /= 255;
    img -= cv::Scalar(0.485, 0.456, 0.406);
    img /= cv::Scalar(0.229, 0.224, 0.225);
}
相关标签
About Me
XD
Goals determine what you are going to be.
Category
标签云
ChatGPT TensorRT CC Translation DeepSeek Gemma 算法题 Cloudreve XGBoost Claude Baidu PyCharm Github Data tar diffusers Jupyter Vim Tensor Anaconda mmap Math FP32 GPTQ FP16 RAR v2ray ResNet-50 HuggingFace Git Michelin GoogLeNet Paddle SQLite Windows PDB Hungarian 多进程 CAM Clash CSV Ptyhon Bitcoin GGML Algorithm Heatmap VPN Augmentation 阿里云 SAM Quantize BF16 LeetCode v0.dev Paper Ubuntu Pickle CV Mixtral Qwen2 公式 Land Docker Linux logger Distillation Tiktoken Nginx Bipartite Vmess GPT4 WebCrawler AI TSV Random Freesound Tracking CEIR Jetson 证件照 Video ModelScope scipy 财报 Zip 多线程 Breakpoint Firewall uWSGI PDF Domain 关于博主 Excel LoRA git-lfs NLP RGB NLTK Logo Bin PIP IndexTTS2 继承 Diagram Datetime FP64 ONNX C++ Crawler Pandas Permission Template Disk Animate Dataset 搞笑 Numpy Knowledge Attention Python Qwen Pillow Use Django Image2Text hf CTC Web BTC Google FP8 CLAP Streamlit Llama API Shortcut Hilton printf 版权 torchinfo EXCEL LaTeX 净利润 QWEN XML 腾讯云 LLM UI HaggingFace uwsgi Input CUDA Proxy TensorFlow OCR SPIE Quantization Magnet Pytorch 签证 Safetensors JSON transformers git NameSilo FlashAttention tqdm OpenCV UNIX VGG-16 MD5 LLAMA Food 音频 SVR Bert TTS 报税 BeautifulSoup YOLO llama.cpp 飞书 Hotel Color InvalidArgumentError OpenAI Sklearn Card Markdown Interview PyTorch Website 域名 DeepStream VSCode Statistics FastAPI Plotly Transformers Miniforge Base64 WAN GIT Qwen2.5 Review SQL Plate Conda COCO Password
站点统计

本站现有博文311篇,共被浏览741754

本站已经建立2380天!

热门文章
文章归档
回到顶部