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
标签云
ModelScope EXCEL BeautifulSoup 云服务器 icon Clash GGML Website Domain HaggingFace QWEN InvalidArgumentError 版权 CC PDF PDB 第一性原理 Plotly Linux Breakpoint DeepSeek LeetCode NameSilo ms-swift Food Animate 多线程 继承 git-lfs uWSGI Web scipy XGBoost Pickle Video LaTeX Review Color Bitcoin 报税 Agent Qwen2 SQL C++ TTS Github 净利润 RAR Pandas Bert WAN FastAPI GoogLeNet 图标 Diagram llama.cpp logger 签证 Django diffusers Augmentation TensorFlow WebCrawler Mixtral 域名 Gemma Template Harness YOLO 飞书 音频 BTC 算法题 ONNX tqdm JSON Llama Streamlit FP16 SPIE NLTK NLP CUDA Image2Text Land mmap Ubuntu CAM Use FP64 IndexTTS2 HuggingFace RL CLAP Pillow Safetensors printf Permission 论文速读 VGG-16 Base64 Dataset v0.dev FP32 COCO API Jev XML Zip Baidu RGB Distillation Markdown Windows Claude ChatGPT Shortcut hf v2ray GPTQ API网关 Algorithm Jupyter GIT Math 腾讯云 Cloudreve CSV Qwen Quantization CEIR Magnet 证件照 Jetson Datetime Numpy Hungarian tar Conda Anaconda BF16 Freesound Vmess SAM 阿里云 git Card Transformers Logo Pytorch Google News VPN 搞笑 ResNet-50 Vim Bin Tracking 公式 多进程 Tiktoken Attention Input 论文 TensorRT TSV OpenCV Paper Search 强化学习 Excel Interview SQLite MD5 Heatmap FP8 UI OpenAI Data Docker LLM DeepStream Michelin LLAMA Hotel PyTorch 财报 Python Paddle Translation CV Tensor Sklearn Statistics Rebuttal Qwen2.5 关于博主 SVR OCR GPT4 Quantize Bipartite torchinfo AI Password UNIX LoRA VSCode 递归学习法 Nginx transformers FlashAttention Miniforge Proxy Git uwsgi Crawler Random Knowledge Plate Disk 图形思考法 Firewall Hilton Ptyhon CTC 顶会 PyCharm PIP
站点统计

本站现有博文338篇,共被浏览972343次

本站已经建立2685天!

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