Programming · PRC-32

Basic Image Processing with OpenCV and Python Workshop

Basic Image Processing with OpenCV and Python Workshop is a hands-on course in OpenCV 5 and Python, from enhancing images and finding edges and contours to measure and count objects, to tracking objects in video and detecting faces and objects with AI models. It suits Python developers, engineers and anyone who wants to build computer vision systems.

Updated
From 10,800 THB / person 12,000 −10% excl. VAT 7% · group rates available
PDFDownload the course outline
  • Duration18 hours · 3 days
  • FormatOnsite / live online
  • Next roundOn request
  • CertificateIncluded

Course overview

Inspecting parts, counting products, reading values from images and detecting people or vehicles from a camera all start with sound image processing. OpenCV is the leading open source library for computer vision and works with Python straight away, and OpenCV 5 has reworked its DNN module to support far more of the ONNX format, so modern AI models and classic image processing techniques can now sit in the same program.

This workshop takes learners through OpenCV 5 with Python, from the basics of digital images, transformations, thresholding, filters and histograms to finding contours to measure and count objects, matching features, and detecting motion and tracking objects in video. It then moves into deep learning with face detection and recognition, object detection with YOLO26 and acceleration with OpenVINO, and closes with a project that builds a vision system working with a real camera. (3 days, 6 hours per day, 18 hours in total, Beginner level.)

What you’ll gain

  • Understand how computer vision works, from image capture and processing to analysis and interpretation
  • Install OpenCV 5 with Python and handle images and video as NumPy arrays
  • Transform images, separate objects by thresholding and colour, and improve images with filters and histograms
  • Find contours to measure, count and check the shape of objects in images
  • Match features between images, detect motion and track objects in video
  • Run ONNX models through the DNN module to detect faces and objects
  • Speed up model inference with OpenVINO on an ordinary CPU
  • Build a small end-to-end vision system that works with a real camera

Who this course is for

  • Anyone who wants to build computer vision systems that read, measure or count objects from images
  • Production engineers and technicians who want to extend camera-based quality inspection
  • Python developers who want to start working with images and video
  • Students and teachers who want a computer vision foundation before moving on to deep learning

Prerequisites

  • Basic Python, such as variables, lists, loops, functions and installing packages with pip
  • Basic use of the command line and VS Code
  • Familiarity with NumPy will help you learn faster
  • A laptop with 8 GB of RAM or more, a webcam and permission to install software

Curriculum

Course Details

This course is the 2026 edition of Basic Image with OpenCV and Python Workshop, updated for OpenCV 5. It runs for 3 days, 6 hours per day (18 hours in total, 09:00-16:00), as a workshop in which learners write code against real images, video and cameras in every topic. Beginner level, for learners with basic Python. Day one covers image processing fundamentals, day two covers measuring, counting and tracking objects, and day three covers deep learning for images with ONNX models, face detection and recognition, YOLO26 and OpenVINO, with a capstone that builds a vision system from a real camera. Every lab runs on an ordinary laptop without a GPU. Learners take home a lab guide, source code and sample images and video for every lab.

Day 1 Digital Image Fundamentals and Image Processing

Section 1: Lab: Getting Started with OpenCV 5 and Python

  • How computer vision works, from image capture and processing to analysis and interpretation
  • Install Python, a virtual environment and opencv-python 5, including the headless option
  • Images as NumPy arrays: pixels, channels and the BGR, RGB, HSV and grayscale colour spaces
  • Read, show and save images, and open a webcam with VideoCapture
  • Lab: a first program that shows the camera feed and saves a still image

Section 2: Lab: Drawing and Geometric Transformations

  • Draw lines, rectangles, circles and text on images
  • Resize, rotate, translate and crop images with a ROI
  • Affine and perspective transforms
  • Lab: straighten a photo of a skewed document so it looks scanned

Section 3: Image Arithmetic and Thresholding

  • Add, subtract and blend images, and use bitwise operations with masks
  • Global, Otsu and adaptive thresholding
  • Separate objects by HSV colour range with inRange
  • Lab: detect objects by colour in images and from a webcam

Section 4: Filters, Morphology and Edge Detection

  • Reduce noise with Gaussian, median and bilateral filters
  • Morphology: erode, dilate, opening and closing
  • Find edges with Sobel and Canny
  • Lab: clean up images of parts before analysing them

Section 5: Lab: Histograms and Image Enhancement

  • Analyse histograms of grayscale and colour images
  • Adjust brightness and contrast with histogram equalisation and CLAHE
  • Gamma correction for images that are too dark or too bright
  • Lab: normalise camera images taken in different lighting so they can be analysed consistently
Day 2 Measuring, Counting and Tracking Objects

Section 6: Contours and Shape Analysis

  • Find contours and their hierarchy with findContours
  • Area, perimeter, bounding boxes and minimum area rectangles
  • Approximate shapes with approxPolyDP to tell triangles, rectangles and circles apart
  • Lab: sort parts by shape

Section 7: Lab: Measuring and Counting Parts

  • Convert pixels to millimetres using a reference object
  • Camera calibration with a checkerboard to correct lens distortion
  • Count objects with connected components and separate touching objects with watershed
  • Lab: measure and count parts on a table from a camera and check whether they pass

Section 8: Feature Detection and Matching

  • Corners with Harris and Shi-Tomasi
  • Keypoints and descriptors with ORB and SIFT
  • Match features with BFMatcher and FLANN
  • Find a homography to locate objects and align images
  • Lab: find a product label in photos taken from different angles

Section 9: Lab: Video and Motion Detection

  • Read and write video with VideoCapture and VideoWriter
  • Frame differencing and MOG2 and KNN background subtraction
  • Optical flow to see the direction of movement
  • Lab: detect motion in a defined zone and record the events

Section 10: Lab: Object Tracking in Video

  • MeanShift and CamShift for tracking objects by colour
  • TrackerNano and TrackerVit, which use small DNN models
  • Choose a tracker for the speed and accuracy you need
  • Lab: track a selected object in video and draw its path
Day 3 Deep Learning for Images and Real Camera Systems

Section 11: The DNN Module in OpenCV 5

  • How deep learning differs from classic image processing
  • Load ONNX models with readNetFromONNX and choose an engine in OpenCV 5
  • Prepare images with blobFromImage and read model outputs
  • Find ready-to-use models in the OpenCV Zoo
  • Lab: classify images with a pre-trained ONNX model

Section 12: Lab: Face Detection and Recognition

  • Detect faces and facial landmarks with FaceDetectorYN (YuNet)
  • Align faces and extract features with FaceRecognizerSF (SFace)
  • Compare faces with cosine similarity and set the threshold
  • Consent, PDPA and storing face data securely
  • Lab: face verification for learners who have given consent

Section 13: Object Detection with YOLO26

  • How object detection works: bounding boxes, confidence and NMS
  • Detect objects in images and video with Ultralytics YOLO26
  • Export the model to ONNX and run it with the OpenCV DNN module
  • Lab: count people or vehicles crossing a line in video

Section 14: Lab: Speeding Up with OpenVINO

  • What OpenVINO is and how it fits into vision work
  • Convert models to OpenVINO IR and run them with OpenVINO Runtime
  • Shrink models with FP16 and INT8 and check the effect on accuracy
  • Lab: measure FPS before and after OpenVINO on your own laptop

Section 15: Workshop: A Vision System from a Real Camera

  • Design the pipeline: capture, process, detect, measure and record
  • Choose a problem such as checking part sizes, counting products or logging entries by face
  • Record results to a CSV file with evidence images and show them on screen
  • Present the work, review it together and plan how to use it in real work

Schedule & training options

For individuals — public rounds

No public rounds are open right now. Join the waiting list and we will contact you first when the next round opens, or ask us on LINE. Or call 02-570-8449 or 088-807-9770

For organisations — in-house / private

  • Tailor the content to your team’s tools and projects
  • Your dates, at your office or live online
  • Quotation with tax ID for procurement
Corporate training quote

Instructors

Frequently asked questions

How does image processing differ from computer vision?

Image processing transforms or adjusts images, for example reducing noise, adjusting contrast, finding edges or separating objects from the background, and the result is usually still an image. Computer vision makes the computer understand what is in the image, such as counting parts, measuring sizes, recognising faces or detecting objects, and it usually relies on image processing to prepare the image first. This course starts with image processing and builds up to computer vision and AI models.

What are the steps to find object contours in an image with OpenCV?

Convert the image to grayscale, reduce noise with a Gaussian blur, then separate objects from the background with a threshold or find edges with Canny. Use morphology to close small gaps, then call findContours to get a list of contours, one per object. From each contour you can calculate area, perimeter and bounding boxes to measure or count objects. For real-world units, compare against a reference object of known size.

What is OpenVINO, and how is it used with OpenCV?

OpenVINO is Intel's open source toolkit for optimising and running AI models faster on CPUs and integrated GPUs, without a separate graphics card. In the course, OpenCV prepares the images and displays the results, while models such as YOLO26 are converted to OpenVINO IR and run with OpenVINO Runtime. You also try shrinking models to FP16 or INT8 and compare FPS on your own laptop.

Who is Basic Image Processing with OpenCV and Python Workshop for, and what background do I need?

It suits anyone building computer vision systems that read, measure or count objects, production engineers and technicians, Python developers, and students who want a foundation before deep learning. You should be able to write basic Python and install packages with pip; familiarity with NumPy helps. Please bring a laptop with 8 GB of RAM or more and a webcam. No GPU is needed.

What can I do after completing Basic Image Processing with OpenCV and Python Workshop?

You will be able to process images and video fluently with OpenCV 5, separate objects by threshold and colour, measure and count parts from contours, match features between images, detect motion and track objects in video, run ONNX models to detect faces and objects, and speed them up with OpenVINO. You also take home prototype code for a vision system that works with a real camera.

Can Basic Image Processing with OpenCV and Python Workshop be run in-house for our team?

Yes. IT Genius Institute runs in-house training for organisations. Workshop examples and problems can be adapted to your team's work, such as checking part sizes on a production line, counting products or analysing CCTV video, and the emphasis can lean towards classic image processing or AI models as needed. Contact the institute to request a quotation.

Related articles

Articles are published in Thai.