Table of Contents
- Introduction to Infrared Vision: Near vs. Mid-Far Infrared Images
- What Is an Infrared Image? Near-Infrared Images
- Middle and Far-Infrared Images: Thermal Infrared Imaging
- Types of Infrared Cameras
- Near-Infrared or Night Vision Cameras
- Mid-Far-Infrared or Thermal Cameras
- What Are Useful for Near-Infrared or Night Vision Cameras
- Middle-Far-Infrared or Thermal Cameras
- Summary
Introduction to Infrared Vision: Near vs. Mid-Far Infrared Images
In this tutorial, you will learn the basics of infrared imaging, including:
- What an infrared image is: Near vs. mid-far infrared
- Types of infrared cameras
- What they are useful for
This tutorial is the 1st in a 4-part series on Infrared Vision Basics:
- Introduction to Infrared Vision: Near vs. Mid-Far Infrared Images (today’s tutorial)
- Thermal Vision: Measuring your First Temperature from an Image with Python and OpenCV
- Thermal Vision: Fever Detector with Python and OpenCV (starter project)
- Thermal Vision: Night Object Detection with PyTorch and YOLOv5 (real project)
By the end of this lesson, you’ll know what infrared images are, their technology, and what they are useful for nowadays.
Infrared imaging is a unique field requiring specialized datasets. A library of curated infrared data would be instrumental in understanding and developing algorithms for various infrared spectrums.
Roboflow has free tools for each stage of the computer vision pipeline that will streamline your workflows and supercharge your productivity.
Sign up or Log in to your Roboflow account to access state of the art dataset libaries and revolutionize your computer vision pipeline.
You can start by choosing your own datasets or using our PyimageSearch’s assorted library of useful datasets.
Bring data in any of 40+ formats to Roboflow, train using any state-of-the-art model architectures, deploy across multiple platforms (API, NVIDIA, browser, iOS, etc), and connect to applications or 3rd party tools.
With a few images, you can train a working computer vision model in an afternoon. For example, bring data into Roboflow from anywhere via API, label images with the cloud-hosted image annotation tool, kickoff a hosted model training with one-click, and deploy the model via a hosted API endpoint. This process can be executed in a code-centric way, in the cloud-based UI, or any mix of the two.
Over 250,000 developers and machine learning engineers from companies such as Cardinal Health, Walmart, USG, Rivian, Intel, and Medtronic build computer vision pipelines with Roboflow. Get started today, no credit card required.
What Is an Infrared Image? Near-Infrared Images
Before starting to work with this curious type of image, we should understand where they come from.
We are all familiar with common digital color visible pictures (Figure 1, left) because we generate hundreds, even thousands, per year with our smartphones, tablets, and digital cameras.
The sensor inside digital cameras is able to capture not only the visible light or radiation but also the near-infrared light from the sun and artificial spotlights.
Nevertheless, our eyes cannot sense infrared radiation, so we see the world around us, as Figure 1 (left) shows.
To replicate how our eyes work, digital cameras usually include a near-infrared blocking filter glass between the sensor and the lens. For this reason, the sensor only captures visible light, just as our eyes do.
In the few cases where this filter is not included, we have a near-infrared camera that takes pictures like the one shown in Figure 1 (right) while also capturing the visible light.
So yes, what you may be thinking is possible! If you physically remove the glass filter from your camera, you will obtain an amazing visible and near-infrared capturing device!
Disclaimer: PyImageSearch does not recommend that you follow this process if you are not confident about the procedure. Incorrect handling of the device could result in a broken camera.
Figure 2 shows the response of a monochrome or Black and White (BW) common camera without a near-infrared blocking filter.
By looking at the electromagnetic spectrum shown in Figure 3, we understand that the wavelength of visible light goes from violet, 380 nm, to red, 750 nm, and the near-infrared radiation from approximately 760 to 1500 nm.
We have said that without near-infrared blocking filters, our common visible digital camera becomes a near-infrared and visible camera, as Figure 3 shows (the highest light absorption of this camera spectrum response takes place in the visible part, between 400 and 750 nm).
But, what happens if we would like to work with a different wavelength inside the infrared radiation (i.e., middle and far or long infrared)?
The answer is that we need a different technology, known as thermal infrared imaging.
Middle and Far-Infrared Images: Thermal Infrared Imaging
Looking again at Figure 3, we can identify the middle and long/far infrared between approximately 1500 nm and 1 million nm.
How do these thermal images or infrared middle and far-infrared images look?
Figure 4 (left) shows a middle-far or thermal picture capture with a small thermal camera Figure 4 (right).
Types of Infrared Cameras
As we have seen, there are two types of infrared images according to the current technology:
- Near-infrared (NIR)
- Middle-far infrared (MIR, FIR)
Near-Infrared or Night Vision Cameras
As we already know, a common color or monochrome visible camera could easily be converted into a near-infrared and visible camera.
The captured near-infrared radiation allows us to see in the dark!
That’s why we usually call them night vision cameras.
They commonly include a monochrome or Black and White sensor, Figure 5 (top). This technology requires an external artificial spotlight to illuminate the night scene captured. For that purpose, the night surveillance camera, shown in Figure 5 (bottom), includes a LED infrared light ring around the lens.
In the next section, we will see more interesting uses of this technology apart from security surveillance.
Mid-Far-Infrared or Thermal Cameras
This kind of imaging requires a different technology, known as thermal cameras.
Why thermal cameras, you may be wondering.
This technology allows us to measure the temperature of any scene by obtaining a temperature distribution map, as Figure 6 shows!
Yes, that is the “magic” behind capturing the middle-far-infrared radiation.
The resulting image, in grayscale format and colored with different amazing palettes, lets us measure and display the temperature of each pixel in real-time, as we will discover in the next tutorial.
As with near-infrared cameras, this technology makes it possible for us to see in the dark. What’s more, we don’t need an external artificial spotlight/torch to illuminate the night scenes.
Yes, again, the middle-far-infrared “magic”!
What They Are Useful for Near-Infrared or Night Vision Cameras
Night vision cameras are usually working as surveillance security cameras.
But what else are they useful for?
The most common uses are:
- Facial and iris biometric recognition
- Animal research surveillance
- Hunting
Biometric recognition is a technology that is highly in demand and fully integrated into our daily lives. These cameras are found, for example, in our smartphones for iris or facial recognition. As a result, we can verify our identity for a bank transaction or unlock our devices at night, under bad-quality illumination conditions, or even while wearing sunglasses.
Animal research is another smart use of this technology. Figure 7 (bottom-left) gives us an idea of how several of these devices spread around a specific wild area provide biologist researchers reliable knowledge, for example, about bobcat activity.
In the same way, hunters can detect and track the movements of the desired deer.
Middle-Far-Infrared or Thermal Cameras
In this last point of the tutorial, we will learn the common uses of thermal cameras.
It is important to point out that it is a more expensive technology than near-infrared cameras.
However, despite the higher cost, thermal cameras benefit from not requiring an artificial spotlight that limits the working distance.
To take advantage of their temperature-measuring capability, these cameras are used for the following:
- Wildfire detection
- Electric panels and electronic device supervision
- COVID-19 temperature access control
Unfortunately, our planet suffers from hundreds of wildfires per year. To fight against this problem, thermal cameras embedded into drones can help in firefighting, as we can extract from Figure 8 (top-left).
In industry, thermal cameras are very helpful in obtaining distribution heating maps to optimize electric and electronic devices in the designing process or fault prevention.
They are also useful for preventing and detecting fluid leaks and moisture problems.
Last but not least, as a consequence of COVID-19, thermal cameras can control the temperature at access points.
What's next? We recommend PyImageSearch University.
86 total classes • 115+ hours of on-demand code walkthrough videos • Last updated: October 2024
★★★★★ 4.84 (128 Ratings) • 16,000+ Students Enrolled
I strongly believe that if you had the right teacher you could master computer vision and deep learning.
Do you think learning computer vision and deep learning has to be time-consuming, overwhelming, and complicated? Or has to involve complex mathematics and equations? Or requires a degree in computer science?
That’s not the case.
All you need to master computer vision and deep learning is for someone to explain things to you in simple, intuitive terms. And that’s exactly what I do. My mission is to change education and how complex Artificial Intelligence topics are taught.
If you're serious about learning computer vision, your next stop should be PyImageSearch University, the most comprehensive computer vision, deep learning, and OpenCV course online today. Here you’ll learn how to successfully and confidently apply computer vision to your work, research, and projects. Join me in computer vision mastery.
Inside PyImageSearch University you'll find:
- ✓ 86 courses on essential computer vision, deep learning, and OpenCV topics
- ✓ 86 Certificates of Completion
- ✓ 115+ hours of on-demand video
- ✓ Brand new courses released regularly, ensuring you can keep up with state-of-the-art techniques
- ✓ Pre-configured Jupyter Notebooks in Google Colab
- ✓ Run all code examples in your web browser — works on Windows, macOS, and Linux (no dev environment configuration required!)
- ✓ Access to centralized code repos for all 540+ tutorials on PyImageSearch
- ✓ Easy one-click downloads for code, datasets, pre-trained models, etc.
- ✓ Access on mobile, laptop, desktop, etc.
Summary
In this tutorial, we have learned what an infrared image is and the difference between near-infrared (NIR) and mid-far-infrared (MIR and FIR) images, recognizing the different technologies that support them. We have also discovered today’s common uses of these special cameras, and we will look at the best way to combine them with Artificial Intelligence in the following lessons.
In the next tutorial, we will travel into thermal imaging. You will learn to measure your first temperature from one of these special images to apply this awesome technology to your project.
See you there!
Citation Information
Garcia-Martin, R. “Introduction to Infrared Vision: Near vs. Mid-Far Infrared Images,” PyImageSearch, P. Chugh, A. R. Gosthipaty, S. Huot, K. Kidriavsteva, and R. Raha, eds., 2022, https://pyimg.co/oj6kb
@incollection{Garcia-Martin_2022_Intro-Infrared-Vision, author = {Raul Garcia-Martin}, title = {Introduction to Infrared Vision: Near vs. Mid-Far Infrared Images}, booktitle = {PyImageSearch}, editor = {Puneet Chugh and Aritra Roy Gosthipaty and Susan Huot and Kseniia Kidriavsteva and Ritwik Raha}, year = {2022}, note = {https://pyimg.co/oj6kb}, }
Unleash the potential of computer vision with Roboflow - Free!
- Step into the realm of the future by signing up or logging into your Roboflow account. Unlock a wealth of innovative dataset libraries and revolutionize your computer vision operations.
- Jumpstart your journey by choosing from our broad array of datasets, or benefit from PyimageSearch’s comprehensive library, crafted to cater to a wide range of requirements.
- Transfer your data to Roboflow in any of the 40+ compatible formats. Leverage cutting-edge model architectures for training, and deploy seamlessly across diverse platforms, including API, NVIDIA, browser, iOS, and beyond. Integrate our platform effortlessly with your applications or your favorite third-party tools.
- Equip yourself with the ability to train a potent computer vision model in a mere afternoon. With a few images, you can import data from any source via API, annotate images using our superior cloud-hosted tool, kickstart model training with a single click, and deploy the model via a hosted API endpoint. Tailor your process by opting for a code-centric approach, leveraging our intuitive, cloud-based UI, or combining both to fit your unique needs.
- Embark on your journey today with absolutely no credit card required. Step into the future with Roboflow.
Join the PyImageSearch Newsletter and Grab My FREE 17-page Resource Guide PDF
Enter your email address below to join the PyImageSearch Newsletter and download my FREE 17-page Resource Guide PDF on Computer Vision, OpenCV, and Deep Learning.
Comment section
Hey, Adrian Rosebrock here, author and creator of PyImageSearch. While I love hearing from readers, a couple years ago I made the tough decision to no longer offer 1:1 help over blog post comments.
At the time I was receiving 200+ emails per day and another 100+ blog post comments. I simply did not have the time to moderate and respond to them all, and the sheer volume of requests was taking a toll on me.
Instead, my goal is to do the most good for the computer vision, deep learning, and OpenCV community at large by focusing my time on authoring high-quality blog posts, tutorials, and books/courses.
If you need help learning computer vision and deep learning, I suggest you refer to my full catalog of books and courses — they have helped tens of thousands of developers, students, and researchers just like yourself learn Computer Vision, Deep Learning, and OpenCV.
Click here to browse my full catalog.