OpenCV Python Tutorial #7 - Template Matching (Object Detection)
Welcome to another OpenCV tutorial! We'll be talking about template matching (object detection). In this video, we'll use an image of a soccer practice and use OpenCV to detect the soccer ball and find it's exact location. For example, the image of the ball will be our template, and we'll use OpenCV to match it.
💻 AlgoExpert is the coding interview prep platform that I used to ace my Microsoft and Shopify interviews. Check it out and get a discount on the platform using the code "techwithtim" https://algoexpert.io/techwithtim
📄 Relevant Documentation: https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_gui/py_drawing_functions/py_drawing_functions.html
📝 Code For This Series: https://github.com/techwithtim/OpenCV-Tutorials
🔍 Playlist: https://youtube.com/playlist?list=PLzMcBGfZo4-lUA8uGjeXhBUUzPYc6vZRn
⭐️ Timestamps ⭐️
00:00 | Setup & Images
02:35 | Loading Template & Base Images
04:55 | Template Matching Methods
07:00 | Theory Behind Template Matching
14:10 | Displaying Matches
◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
💰 Courses & Merch 💰
💻 The Fundamentals of Programming w/ Python: https://tech-with-tim.teachable.com/p/the-fundamentals-of-programming-with-python
👕 Merchandise: https://teespring.com/stores/tech-with-tim-merch-shop
🔗 Social Medias 🔗
📸 Instagram: https://www.instagram.com/tech_with_tim
📱 Twitter: https://twitter.com/TechWithTimm
⭐ Discord: https://discord.gg/twt
📝 LinkedIn: https://www.linkedin.com/in/tim-ruscica-82631b179/
🌎 Website: https://techwithtim.net
📂 GitHub: https://github.com/techwithtim
🔊 Podcast: https://anchor.fm/tech-with-tim
🎬 My YouTube Gear 🎬
🎥 Main Camera (EOS Canon 90D): https://amzn.to/3cY23y9
🎥 Secondary Camera (Panasonic Lumix G7): https://amzn.to/3fl2iEV
📹 Main Lens (EFS 24mm f/2.8): https://amzn.to/2Yuol5r
🕹 Tripod: https://amzn.to/3hpSprv
🎤 Main Microphone (Rode NT1): https://amzn.to/2HrZxXc
🎤 Secondary Microphone (Synco Wireless Lapel System): https://amzn.to/3e07Swl
🎤 Third Microphone (Rode NTG4+): https://amzn.to/3oi0v8Z
☀️ Lights: https://amzn.to/2ApeiXr
⌨ Keyboard (Daskeyboard 4Q): https://amzn.to/2YpN5vm
🖱 Mouse (Logitech MX Master): https://amzn.to/2HsmRDN
📸 Webcam (Logitech 1080p Pro): https://amzn.to/2B2IXcQ
📢 Speaker (Beats Pill): https://amzn.to/2XYc5ef
🎧 Headphones (Bose Quiet Comfort 35): https://amzn.to/2MWbl3e
🌞 Lamp (BenQ E-reading Lamp): https://amzn.to/3e0UCr8
🌞 Secondary Lamp (BenQ Screenbar Plus): https://amzn.to/30Dtafi
💻 Monitor (BenQ EX2780Q): https://amzn.to/2HsmUPZ
💻 Monitor (LG Ultrawide 34WN750): https://amzn.to/3dSD7tS
🎙 Mic Boom Arm (Rode PSA 1): https://amzn.to/30EZw9m
🎚 Audio Interface (Focusrite Scarlet 4i4): https://amzn.to/2TjXsih
💸 Donations 💸
💵 One-Time Donations: https://www.paypal.com/donate?hosted_button_id=CU9FV329ADNT8
💰 Patreon: https://www.patreon.com/techwithtim
◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
⭐️ Tags ⭐️
- Object detection in OpenCV
- Template matching OpenCV
- Python
- Computer vision
- Cameras and video capture
⭐️ Hashtags ⭐️
#OpenCV #Python #TemplateMatching
-
7:54
Tech With Tim
1 year ago $0.01 earnedThese 7 Coding Skills Give You an UNFAIR Advantage
279 -
57:06
BEK TV
10 hours agoExposing the Left’s Agenda: Border Chaos, Gun Control, and 2028 Predictions - Nick Adams
1.22K -
1:34:18
Chicks On The Right
4 hours agoMedia insists on protecting criminals, Canada is lost, and Schumer ain't effin' leavin'
19.6K6 -
14:38
Cowboy Kent Rollins
11 days ago $3.25 earnedMountain Man Breakfast | Hearty Breakfast Casserole
15.2K17 -
1:17:10
Game On!
18 hours ago $2.96 earnedJalen Hurts DODGES Trump! Skips Team White House Visit!
20.5K4 -
1:39:03
BEK TV
1 day agoTrent Loos in the Morning 4/29/2025
31.2K1 -
5:52
MichaelMotamedi
13 hours ago $3.83 earnedEating The Most Elusive Lobster In The World
34.3K19 -
11:03
Melonie Mac
16 hours agoClair Obscure Expedition 33 Has Saved Gaming
54.9K37 -
7:39
The Shannon Joy Show
17 hours ago🇺🇸 America's Breaking Point: Are We Ready to Toss the Board? 🎯
40.2K27 -
10:00
Adam Does Movies
21 hours ago $3.53 earnedCEO Claims Netflix Saved Hollywood. Um, WHAT?!?! - Rant
56.9K11
0 Comments