← All writing

Camera selection: what is the ideal digital camera for your work?

An article about the items we need to consider when choosing a digital camera for our vision project

Published · Read in Japanese

  • camera
  • camera selection
  • image-processing
  • computer-vision

For every vision project, one of the most important parts is usually choosing a suitable camera as the eye of your system. In this article, we will focus on a few important items that we need to consider when selecting a camera. These include the physical features of the camera as well as its software capabilities.

The problem

There are thousands of camera types from different manufacturers around the world, each offering a different quality at a different price. Because there are so many options, selecting the camera can be one of the most difficult and frustrating steps of a project.

We are going to discuss what we need to check to get the right camera. First, we’ll look at the main points of variation between cameras and then explain which ones matter most for a vision project.

Camera features

The features of a camera can be divided into two main sections: Physical (hardware) and Non-physical (software). Both kinds of features are important for every vision project, and they are not just about the quality of the images or videos.

Physical (hardware)

The most important physical part of a camera is its light sensor. It is the core piece of the system that captures the light and converts it into an image or video for us. Different sensors vary in many aspects, including resolution, light sensitivity, price, size, field of view (FOV) and frames per second (FPS).

Resolution is usually the more familiar topic for everyone. It is commonly accepted that resolution is the prominent feature defining the quality of your image/video. It certainly has an effect on your photography result, but it is not actually the only factor determining image/video quality.

The very first item that strongly affects the quality of the image/video is the pixel size on the camera sensor. Each camera sensor is a grid of thousands or millions of square-shaped pixel units. Each unit has a special material that converts visible light into an electric signal, which then becomes a digital number. That digital number is later saved in the camera memory and then on your computer as an image pixel, or simply “the color in the image”.

Each of these physical pixels on the sensor can absorb more light if it is bigger. That means if you are in a low-light environment, bigger pixels can gather more of the available light, so the image has less noise and more dynamic range (details in both bright and dark areas), which matters a lot. This is not only helpful in low-light places; even when you want to take a shot on a sunny day or under a strong light source, these pixels can provide clearer images compared to smaller pixels.

The pixel size is sometimes not mentioned as a clear number on the website when you want to purchase a camera, but it is important to check it when choosing one. The rule is simple here: Bigger pixel size means less noisy image/video.

What about resolution then?

The number of those physical pixels on the sensor defines the resolution of the sensor. For example, a camera with a resolution of 1920x1080 has a grid of 1920x1080 physical pixels. This number alone cannot define the quality of your image; rather, it defines the total size of the image/video and, in combination with the lens features, how much detail of the environment the picture can capture. The area that the picture covers depends on the physical size of the sensor and the lens.

Lens

This is the other important physical feature of a camera. The lens’s task is to concentrate the light from the environment onto the camera sensor. Lenses come in many variants and complicated shapes. I am not going into the details of all the possible lens shapes, as that would become a complex physics article, but it is worth mentioning some basic features of lenses.

Generally, two aspects of a lens are important: length (focal length) and aperture size.

You have surely heard of “wide lenses”. A wide lens has a short focal length, so it sees light from a broader area (a bigger FOV) and sends that light to the sensor. A longer focal length gives a narrower FOV and more magnification, so distant objects look bigger.

Aperture size, on the other hand, controls how much light reaches the sensor and how deep the sharp area (depth of field) is. In simple words, a bigger aperture makes the image brighter, but it also makes the depth of field smaller, which means a smaller part of the scene, in front of and behind the object, stays sharp (narrower focus area).

Type of sensor shutter

This is another important aspect of a camera. Cameras usually have one of two shutter types: global shutter and rolling shutter. In a rolling shutter, for each frame, each row of pixels on the sensor turns on one after another, receives the light and produces its digital value. This means if objects in front of the camera move very fast (moving noticeably within a few milliseconds) while a frame is being captured, then the view that the lower rows of the sensor see is going to be different from what the top rows see.

Global shutters, on the other hand, turn on the whole physical sensor simultaneously for each frame and make the digital picture. In this way, all the pixels see the same moment, so fast-moving objects are not distorted. Global shutter cameras are the most suitable for high-speed photography, including many industrial applications. Global shutter cameras are usually more expensive than rolling shutter cameras with the same resolution.

Connection type

The last physical feature that we are going to check in this article is how a camera sends its captured images to your computer or processing unit. The most common type is the IP camera, which sends images/videos over a LAN connection. The speed and image quality it can deliver are limited by the speed of its LAN port. Another common connection type is USB, which is used in webcams as well as many industrial cameras. The fastest cameras usually use dedicated high-speed interfaces such as CoaXPress. These interfaces have a much higher transfer speed, which makes them suitable for high-speed projects.


We talked about the important physical features of a camera that are usually needed for a vision project. However, each camera usually also comes with some software features that are worth noticing when choosing a camera.

Non-physical (software)

Each camera, after capturing a frame, sends it out using its connection type. IP cameras usually compress the image on their internal processor and then send it out as a compressed video stream. This stream has some metadata, such as the timestamp of each frame. For many vision projects, this metadata is important.

Industrial cameras, on the other hand, usually don’t compress the frames. They require a separate processing unit (e.g. your computer, a single-board computer or any other processing device) with their SDK (Software Development Kit) installed. This SDK receives the raw image data from the camera and then provides the metadata for it. It may also do some additional processing on the images before publishing them out of the SDK (like noise reduction, color correction or image enhancement).

There is an important point to notice here. The SDK runs on the computing device, not on the camera itself, so its speed is limited by the computer. That means if your computer or processing board is busy with other tasks, it may interfere with the work of the SDK. The SDK can then lose some of the frames, or miscalculate the metadata for the frames. For example, if you have a heavy process running on your PC, the CPU is going to be too busy to keep up with all the frames that your camera is sending. Because of that, not only may you lose some of the frames (since the SDK didn’t have time to catch them all), but wrong metadata (for example, a wrong frame number) can also be assigned to the frames. For many vision projects, this can be catastrophic, since a wrong frame number doesn’t let you do proper timing calculations.

Some good industrial cameras (which are usually more expensive) assign minimal metadata (including the frame number) to each frame on the camera itself, then send the image and metadata together to the PC. In this case, even if the SDK loses a frame, at least you know which frame is missing.

Another important note about camera software is the post-processing it does on the image. Even though it is supposed to increase the quality of the image, by reducing the noise or enhancing the colors, it may not be ideal for your use case. Some SDKs may automatically reduce bit depth (e.g. 12-bit → 8-bit) or use binning mode (combining neighboring pixels into one bigger pixel, which makes the image smaller and less detailed), which can eventually lower the image quality, and some of their noise reduction methods may not be ideal for your specific shooting environment. It is important to check the effect of each post-processing module of the camera’s software to make sure it does what you need. Besides, these processes consume some of the computing resources of your PC or device board, so you need to be mindful of that.

Summary

There are some important aspects of camera hardware and software that you need to check for your specific vision project. Just having a higher resolution or a more expensive camera does not necessarily mean it will perform best for your project. The combination of the physical features of the sensor and lens and the software-based features needs to match the project’s requirements.

Conclusion

The camera is the first step of a vision project. It can affect all the other parts of the vision system and its overall performance. Our understanding of camera selection should go beyond the typical commercial features of cameras. That will make sure we have a proper detection and scene understanding system at the most reasonable cost.