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

本站现有博文332篇,共被浏览876092

本站已经建立2583天!

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