OpenCV in C# For Beginners - Introduction to Template Matching

Ғылым және технология

In this series, I will be taking you through an introductory tour of OpenCV and Emgu (the OpenCV C# Wrapper)!
OpenCV has been one of my favorite libraries to tinker with, where you can do some impressive things such as facial recognition, image manipulations and filters, video processing, and much more! So I wanted to introduce fellow programmers to it, so you can have as much fun as I’ve had over the years.
🔴 Link to the Playlist, in case you need to catch up -
• Introduction to OpenCV
🔴 Download Source Code used in the OpenCV Series Here!
bit.ly/3P3zXoy
🔴 Check out Programming With Chris Live T/Th/Sat nights!
bit.ly/3nHuLuN
🔴 Subscribe For More Programming Tutorials
bit.ly/3NN23DB
☕️Buy me a coffee if you enjoy the free content! -
bit.ly/3Pw56Sf
In this video, I discuss Template Matching in OpenCV! Template matching is a pretty cool way to do some basic object detection, and I use an example of a computer vision app that could visually grade a student's multiple choice test using OpenCV.
🕘Timestamps:
0:00 - Video Start
00:28 - What is template matching in OpenCV
01:44 - Example app idea for Template Matching
03:52 - Getting started with the Template Matching code
04:52 - How to resize templates for template matching
06:52 - CvInvoke.MatchTemplate
11:25 - Min Max and Locs
13:05 - Threshold Images in OpenCV and C#
15:46 - What to do with the data from our template match function
22:20 - The finished product
Thanks for watching! I plan on making a ton more tutorial programming videos on libraries I find interesting, and if that’s your sort of thing, check out my other videos and subscribe for more. Thanks!
🎬Watch My most recent videos:
bit.ly/3yJwaY5

Пікірлер: 10

  • @ProgrammingWithChris
    @ProgrammingWithChris2 жыл бұрын

    Thanks for watching! Let me know what else you may want to see with OpenCV in the comments! 🕘Timestamps: 0:00 - Video Start 00:28 - What is template matching in OpenCV 01:44 - Example app idea for Template Matching 03:52 - Getting started with the Template Matching code 04:52 - How to resize templates for template matching 06:52 - CvInvoke.MatchTemplate 11:25 - Min Max and Locs 13:05 - Threshold Images in OpenCV and C# 15:46 - What to do with the data from our template match function 22:20 - The finished product

  • @MarcusDeMattes
    @MarcusDeMattes Жыл бұрын

    Many thanks for this tutorial. Works like a charm.

  • Жыл бұрын

    Awesome explanation. Thank you.

  • @waltergrimm7161
    @waltergrimm71614 ай бұрын

    At min 15 the dots did not match the fields that where checked with A, 11 are checked with A, only 6 dots show in result

  • @manyooyooman
    @manyooyooman Жыл бұрын

    Awesome tutorial thanks. Please also do a tutorial on how to detect objects like paper or receipts in an image taken with camera and fix the perspectives, basically like how Office Lens does it

  • @HOSTRASOKYRA
    @HOSTRASOKYRA Жыл бұрын

    Thank you very much.

  • @joshuastelman6218
    @joshuastelman62182 ай бұрын

    Im working on a person project where Im trying to control a character in a video game to walk around to monsters and kill them. I have image data of all the different types of monsters that could be my template. Say I have a large 2d image on my screen representing the world Im in, how would I match thousands of templates for a monster against my screen and draw rectangles around where a monster could possibly be located? In your example you have 1 template for 1 test sheet. I would like to have thousands of templates. Or maybe there is a better way? Is it possible for a template to be trained to account for different types of images instead of just one? Some insight to this would be very helpful. Also, Id like to be able to recognize thinks like ledges, ropes, ladders, platforms etc. Could this all be done if I have the images?

  • @Cod3rMax
    @Cod3rMax Жыл бұрын

    How it is possible to detect a moving object if it is close to an edge or not like the zigzag game

  • @JawadAbidi
    @JawadAbidi Жыл бұрын

    Thank you for this tutorial, but i have always 0 in matches.Rows and Cols, pleas could you let me what's the issue?

  • @nikolamanja
    @nikolamanja Жыл бұрын

    Can this solve checkbox detection ?

Келесі