learnopencv

spmallick / learnopencv

Learn OpenCV 提供丰富的 C++ 和 Python 计算机视觉示例代码,帮助开发者快速上手 OpenCV 并解决实际图像处理问题。

Jupyter Notebook 数据科学 开发工具 OpenCV 计算机视觉 C++ Python 示例代码

为什么值得看

编辑点评

项目汇集了大量实用教程和可运行示例,覆盖图像处理、特征检测、深度学习推理等常见场景,适合想通过实战学习 OpenCV 的开发者。C++ 和 Python 双语言对照是最大亮点,便于理解算法实现。注意部分示例依赖较旧版本,运行时需留意环境配置。

Star 趋势

近 7 日
  • Star 总数23,153
  • 今日新增+1
  • 7 日增速-50%
  • Fork11,662

同类项目

同场景 · 数据科学 / 开发工具

项目文档

来自 GitHub README · master 分支

LearnOpenCV

This repository contains code for Computer Vision, Deep learning, and AI research articles shared on our blog LearnOpenCV.com.


Build Production-Ready Computer Vision & AI Solutions

LearnOpenCV is maintained by BigVision.AI, a computer vision and AI consulting company. We help organizations design, build, optimize, and deploy production-ready AI solutions. Our team has deep expertise in computer vision, deep learning, multimodal AI, and edge deployment, with experience solving complex technical challenges across industries.

Have a project in mind? Talk with our expert AI solution builders.

List of Blog Posts

Blog Post Code
SAM-3: What’s New, How It Works, and Why It Matters [Updated] Code
VGGT vs. VGGT-Ω (VGGT-Omega): A Complete Guide to Feed-Forward 3D Reconstruction Code
MiniCPM-o 4.5: A 9B Model That Can See, Hear, and Speak at the Same Time Code
Object Tracking using OpenCV (C++/Python) [Updated] Code
Object Detection with OpenCV 5 in C++: YOLO26 Pose and Segmentation [Updated] Code
Read, Write and Display a Video using OpenCV [Updated] Code
Histogram of Oriented Gradients Explained Using OpenCV [Updated] Code
Edge Detection Using OpenCV [Updated] Code
Read, Display and Write an Image Using OpenCV [Updated] Code
Cropping an Image Using OpenCV [Updated] Code
Image Resizing with OpenCV [Updated] Code
Filling Holes in an Image Using OpenCV (Python/C++) [Updated] Code
Barcode and QR Code Scanner Using OpenCV [Updated] Code
OCR Text Recognition Using Tesseract and OpenCV [Updated] Code
Color Spaces in OpenCV (C++ and Python) [Updated] Code
Human Pose Estimation with OpenCV (C++ and Python) [Updated] Code
Face Detection with OpenCV and Dlib (C++ and Python) [Updated] Code
Rotation Matrix to Euler Angles [Updated] Code
Hough Transform with OpenCV (C++ and Python) [Updated] Code
Otsu's Thresholding with OpenCV [Updated] Code
Stereo Camera Depth Estimation with OpenCV (Python and C++) [Updated] Code
Understanding Lens Distortion [Updated] Code
Blob Detection Using OpenCV (Python, C++) [Updated] Code
Homography Examples Using OpenCV (Python and C++) [Updated] Code
Convex Hull Using OpenCV in Python and C++ [Updated] Code
Hu Moments for Shape Matching with OpenCV (Python and C++) [Updated] Code
BRISQUE Image Quality Assessment with OpenCV [Updated] Code
Super Resolution in OpenCV [Updated] Code
Augmented Reality Using ArUco Markers in OpenCV [Updated] Code
Head Pose Estimation with OpenCV [Updated] Code
Average Face with OpenCV: C++ and Python Tutorial [Updated] Code
Image Alignment with ECC in OpenCV: C++ and Python [Updated] Code
Monocular SLAM in Python with OpenCV [Updated] Code
OpenCV QR Code Scanner in C++ and Python [Updated] Code
Optical Flow in OpenCV: Sparse and Dense Methods [Updated] Code
CNN-Based Image Colorization with OpenCV DNN [Updated] Code
Snake Game with OpenCV and Python [Updated] Code
Delaunay Triangulation and Voronoi Diagram using OpenCV ( C++ / Python) [Updated] Code
Contour Detection using OpenCV (Python/C++) [Updated] Code
Feature Based Image Alignment using OpenCV (C++/Python) [Updated] Code
Video Stabilization Using Point Feature Matching in OpenCV [Updated] Code
Camera Calibration using OpenCV [Updated] Code
Find the Center of a Blob (Centroid) using OpenCV (C++/Python) [Updated] Code
How to find frame rate or frames per second (fps) in OpenCV ( Python / C++ ) ? [Updated] Code
Install OpenCV 5 on Linux Code
Decoding Virat Kohli's Flick Shot: AI-Based 3D Motion Reconstruction Code
How to Run Object Detection with OpenCV 5
World Cup 2026 Offside Technology: AI, Computer Vision, and the Connected Ball
AI Aced JEE Advanced 2026. Can You Trust It to Teach You?
How to Fine-Tune YOLO26 for Safety Gear and Sign Language Detection Code
How to Unlock 5 Vision Skills with the Moondream Cloud API Code
JEE Advanced 2026: We Tested AI on the Toughest Exam
How to Master Qwen3-VL Embedding and Reranker for Multimodal Search Code
How to Master YOLOE: Real-Time Open-Vocabulary Detection Made Easy Code
Vision Banana: How Image Generators Are Becoming Powerful Vision Models
YOLO26 Keypoint Estimation: Real-Time Pose Estimation with Ultralytics Code
RF-DETR Segmentation: Real-Time Detection & Instance Segmentation Guide Code
YOLO26 Instance Segmentation: Pixel-Perfect AI at Real-Time Speed Code
Multi-Object Tracking with Roboflow Trackers and OpenCV Code
Real-Time Face Blur and Pixelation with OpenCV YuNet Code
Breaking the Bottleneck: Achieving Native NMS-Free Inference with YOLO26 Code
YOLOv26: An Object Detector Built for Real-Time Deployment Code
Beyond Transformers: A Deep Dive into HOPE
Serving SGLang: Launch a Production-Style Server
Deployment on Edge: LLM Serving on Jetson using vLLM Code
Nested Learning: Is Deep Learning Architecture an Illusion?
How to Build a GitHub Code-Analyser Agent for Developer Productivity Code
The Existential Problems in LLM Serving
SAM 3D: Foundation Model for Single-Image 3D Reconstruction
Image-GS: Adaptive Image Reconstruction using 2D Gaussians Code
Ultimate Guide to Vector Databases and RAG Pipeline Code
What Makes DeepSeek OCR So Powerful Code
2D Gaussian Splatting: Geometrically Accurate Radiance Field Reconstruction Code
TRM: Tiny Recursive Models Code
Deploying ML Models on Arduino: From Blink to Think Code
VideoRAG: Redefining Long-Context Video Comprehension
AI Agent in Action: Automating Desktop Tasks with VLMs Code
Top VLM Evaluation Metrics for Optimal Performance Analysis Code
Getting Started with VLM on Jetson Nano Code
VLM on Edge: Worth the Hype or Just a Novelty? Code
AnomalyCLIP : Harnessing CLIP for Weakly-Supervised Video Anomaly Recognition Code
AI_for_Video_Understanding_From_Content_Moderation_to_Summarization Code
Video-RAG: Training-Free Retrieval for Long-Video LVLMs Code
Object Detection and Spatial Understanding with VLMs ft. Qwen2.5-VL Code
LangGraph: Building Self-Correcting RAG Agent for Code Generation Code
Inside Sinusoidal Position Embeddings: A Sense of Order Code
Inside RoPE: Rotary Magic into Position Embeddings Code
SimLingo-Vision-Language-Action-Model-for-Autonomous-Driving Code
FineTuning Gemma 3n for Medical VQA on ROCOv2 Code
SmolLM3 Blueprint: SOTA 3B-Parameter LLM
LangGraph-A-Visual-Automation-and-Summarization-Pipeline Code
Fine-Tuning AnomalyCLIP: Class-Agnostic Zero-Shot Anomaly Detection Code
SigLIP 2: DeepMind’s Multilingual Vision-Language Model
MedGemma: Google’s Medico VLM for Clinical QA, Imaging, and More Code
Nanonets-OCR-s: Enabling Rich, Structured Markdown for Document Understanding
Optimizing VJEPA-2: Tackling Latency & Context in Real-Time Video Classification Scripts Code
V-JEPA 2: Meta’s Breakthrough in AI for the Physical World Code
NVIDIA Cosmos Reason1: Video Understanding Code
GR00T N1.5 Explained
LLaVA Code
SmolVLA: Affordable & Efficient VLA Robotics on Consumer GPUs Code
Fine-Tuning Grounding DINO: Open-Vocabulary Object Detection Code
Getting Started with Qwen3 – The Thinking Expert Code
Inside the GPU: A Comprehensive Guide to Modern Graphics Architecture
Distributed Parallel Training: PyTorch Code
MONAI: The Definitive Framework for Medical Imaging Powered by PyTorch
SANA-Sprint: The One-Step Revolution in High-Quality AI Image Synthesis
FramePack-Video-Diffusion-but-feels-like-Image-Diffusion Code
Model Weights File Formats in Machine Learning
Unsloth: A Guide from Basics to Fine-Tuning Vision Models Code
Iterative Closest Point (ICP) Algorithm Explained Code
MedSAM2 Explained: One Prompt to Segment Anything in Medical Imaging Code
Batch Normalization and Dropout as Regularizers
DINOv2_by_Meta_A_Self-Supervised_foundational_vision_model Code
Beginner's Guide to Embedding Models
MASt3R-SLAM: Real-Time Dense SLAM with 3D Reconstruction Priors Code
Google's A2A Protocol
Nvidia SANA : Faster Image Generation
Fine-tuning RF-DETR Code
Qwen2.5-Omni: A Real-Time Multimodal AI
Vision Language Action Models: Robotic Control Code
Fine-Tuning Gemma 3 VLM using QLoRA for LaTeX-OCR Dataset Code
ComfyUI Code
Gemma-3: A Comprehensive Introduction
YOLO11 on Raspberry Pi: Optimizing Object Detection for Edge Devices Code
VGGT: Visual Geometry Grounded Transformer – For Dense 3D Reconstruction Code
DDIM: The Faster, Improved Version of DDPM for Efficient AI Image Generation Code
Introduction to Model Context Protocol (MCP)
MASt3R and MASt3R-SfM Explanation: Image Matching and 3D Reconstruction Code
MatAnyone Explained: Consistent Memory for Better Video Matting Code
GraphRAG: For Medical Document Analysis Code
OmniParser: Vision Based GUI Agent
Fine-Tuning-YOLOv12-Comparison-With-YOLOv11-And-YOLOv7-Based-Darknet Code
FineTuning RetinaNet for Wildlife Detection with PyTorch: A Step-by-Step Tutorial Code
DUSt3R: Geometric 3D Vision Made Easy : Explanation and Results Code
YOLOv12: Attention Meets Speed Code
Video Generation: A Diffusion based approach Code
Agentic AI: A Comprehensive Introduction Code
Finetuning SAM2 for Leaf Disease Segmentation Code
Object Insertion in Gaussian Splatting: Paper Explained and Training Code for MCMC and Bilateral Grid Code
Depth Pro: Sharp Monocular Metric Depth Code
Fine-tuning-Stable-Diffusion-3_5-UI-images Code
SimSiam: Streamlining SSL with Stop-Gradient Mechanism Code
Image Captioning using ResNet and LSTM Code
Molmo VLM: Paper Explanation and Demo Code
3D Gaussian Splatting Paper Explanation: Training Custom Datasets with NeRF-Studio Gsplats Code
FLUX Image Generation: Experimenting with the Parameters Code
Contrastive-Learning-SimCLR-and-BYOL(With Code Example) Code
The Annotated NeRF : Training on Custom Dataset from Scratch in Pytorch Code
Stable Diffusion 3 and 3.5: Paper Explanation and Inference Code
LightRAG - Legal Document Analysis Code
NVIDIA AI Summit 2024 – India Overview
Introduction to Speech to Speech: Most Efficient Form of NLP Code
Training 3D U-Net for Brain Tumor Segmentation (BraTS-GLI) Code
DETR: Overview and Inference Code
YOLO11: Faster Than You Can Imagine! Code
Exploring DINO: Self-Supervised Transformers for Road Segmentation with ResNet50 and U-Net Code
Sapiens: Foundation for Human Vision Models by Meta Code
Multimodal RAG with ColPali and Gemini Code
Building Autonomous Vehicle in Carla: Path Following with PID Control & ROS 2 Code
Handwritten Text Recognition using OCR Code
Training CLIP from Sratch for Image Retrieval Code
Introduction to LiDAR SLAM: LOAM and LeGO-LOAM Paper and Code Explanation with ROS 2 Implementation Code
Recommendation System using Vector Search Code
Fine Tuning Whisper on Custom Dataset Code
SAM 2 – Promptable Segmentation for Images and Videos Code
Introduction to Feature Matching Using Neural Networks Code
Introduction to ROS2 (Robot Operating System 2): Tutorial on ROS2 Working, DDS, ROS1 RMW, Topics, Nodes, Publisher, Subscriber in Python Code
CVPR 2024 Research Papers - Part- 2 Code
CVPR 2024: An Overview and Key Papers Code
Object Detection on Edge Device - OAK-D-Lite Code
Fine-Tuning YOLOv10 Models on Custom Dataset Code
ROS2 and Carla Setup Guide for Ubuntu 22.04
Enhancing Image Segmentation using U2-Net: An Approach to Efficient Background Removal Code
YOLOv10: The Dual-Head OG of YOLO Series Code
Fine-tuning Faster R-CNN on Sea Rescue Dataset Code
Mastering Recommendation System: A Complete Guide
Automatic Speech Recognition with Diarization : Speech-to-Text Code
Building MobileViT Image Classification Model from Scratch In Keras 3 Code
SDXL Inpainting: Fusing Image Inpainting with Stable Diffusion Code
YOLOv9 Instance Segmentation on Medical Dataset Code
A Comprehensive Guide to Robotics
Integrating Gradio with OpenCV DNN Code
Fine-Tuning YOLOv9 on Custom Dataset Code
Dreambooth using Diffusers Code
Introduction to Hugging Face Diffusers Code
Introduction to Ultralytics Explorer API Code
YOLOv9: Advancing the YOLO Legacy Code
Fine-Tuning LLMs using PEFT Code
Depth Anything: Accelerating Monocular Depth Perception Code
Deciphering LLMs: From Transformers to Quantization Code
YOLO Loss Function Part 2: GFL and VFL Loss Code
YOLOv8-Object-Tracking-and-Counting-with-OpenCV Code
Stereo Vision in ADAS: Pioneering Depth Perception Beyond LiDAR Code
YOLO Loss Function Part 1: SIoU and Focal Loss Code
Moving Object Detection with OpenCV Code
Integrating ADAS with Keypoint Feature Pyramid Network for 3D LiDAR Object Detection Code
Mastering All YOLO Models from YOLOv1 to YOLO-NAS: Papers Explained (2024)
GradCAM: Enhancing Neural Network Interpretability in the Realm of Explainable AI Code
Text Summarization using T5: Fine-Tuning and Building Gradio App Code
3D LiDAR Visualization using Open3D: A Case Study on 2D KITTI Depth Frames for Autonomous Driving Code
Fine Tuning T5: Text2Text Transfer Transformer for Building a Stack Overflow Tag Generator Code
SegFormer 🤗 : Fine-Tuning for Improved Lane Detection in Autonomous Vehicles Code
Fine-Tuning BERT using Hugging Face Transformers Code
YOLO-NAS Pose Code
BERT: Bidirectional Encoder Representations from Transformers Code
Comparing KerasCV YOLOv8 Models on the Global Wheat Data 2020 Code
Top 5 AI papers of September 2023
Empowering Drivers: The Rise and Role of Advanced Driver Assistance Systems
Semantic Segmentation using KerasCV DeepLabv3+ Code
Object Detection using KerasCV YOLOv8 Code
Fine-tuning YOLOv8 Pose Models for Animal Pose Estimation Code
Top 5 AI papers of August 2023
Fine Tuning TrOCR - Training TrOCR to Recognize Curved Text Code
TrOCR - Getting Started with Transformer Based OCR Code
Facial Emotion Recognition Code
Object Keypoint Similarity in Keypoint Detection Code
Real Time Deep SORT with Torchvision Detectors Code
Top 5 AI papers of July 2023
Medical Image Segmentation Code
Weighted Boxes Fusion in Object Detection: A Comparison with Non-Maximum Suppression Code
Medical Multi-label Classification with PyTorch & Lightning Code
Getting Started with PaddlePaddle: Exploring Object Detection, Segmentation, and Keypoints Code
Drone Programming With Computer Vision A Beginners Guide Code
How to Build a Pip Installable Package & Upload to PyPi
IoU Loss Functions for Faster & More Accurate Object Detection
Exploring Slicing Aided Hyper Inference for Small Object Detection Code
Advancements in Face Recognition Models, Toolkit and Datasets
Train YOLO NAS on Custom Dataset Code
Train YOLOv8 Instance Segmentation on Custom Data Code
YOLO-NAS: New Object Detection Model Beats YOLOv6 & YOLOv8 Code
Segment Anything – A Foundation Model for Image Segmentation Code
Build a Video to Slides Converter Application using the Power of Background Estimation and Frame Differencing in OpenCV Code
A Closer Look at CVAT: Perfecting Your Annotations YouTube
ControlNet - Achieving Superior Image Generation Results Code
InstructPix2Pix - Edit Images With Prompts Code
NVIDIA Spring GTC 2023 Day 4: Ending on a High Note with Top Moments from the Finale!
NVIDIA Spring GTC 2023 Day 3: Digging deeper into Deep Learning, Semiconductors & more!
NVIDIA Spring GTC 2023 Day 2: Jensen’s keynote & the iPhone moment of AI is here!
NVIDIA Spring GTC 2023 Day 1: Welcome to the future!
NVIDIA GTC Spring 2023 Curtain Raiser
Stable Diffusion - A New Paradigm in Generative AI Code
OpenCV Face Recognition – Does Face Recognition Work on AI-Generated Images?
An In-Depth Guide to Denoising Diffusion Probabilistic Models – From Theory to Implementation [Code](https://github.

README 内容较长,此处已截断,完整内容请查看 GitHub 仓库。

文档抓取自 GitHub 仓库 README,版权归原作者所有;已过滤徽章等噪音并经安全消毒后展示。