The Setup That Actually Matters With IR Dot Projection Cameras

I spent three weeks troubleshooting inconsistent depth readings on a project involving structured light cameras before I figured out what was going wrong. The cameras themselves weren't the issue. It was something far more mundane. When you're working with Ri Dot Cameras, the dot pattern density and projector intensity settings are the variables that get ignored most often. Everyone jumps straight into calibration routines and software configuration, but the hardware emission settings determine whether you're getting usable data at all. Most people run the default factory projection levels and wonder why their edge detection fails in anything but perfect lab lighting.

Ri Dot Cameras This One Change Made All The Difference

The change wasn't fancy. I stopped chasing software tweaks and adjusted the infrared dot projector pulse width and ambient light rejection filter. Specifically, narrowing the projection pulse to match the camera sensor's exposure window eliminated most of the ghosting artifacts I was seeing. The improvement was immediate and measurable. Where I was previously getting maybe sixty percent valid point coverage across a typical scene, it jumped to over ninety percent without touching a single line of code. Here is how I approached it step by step.

Understanding What You Are Actually Working With

IR dot cameras project a structured pattern of thousands of infrared dots onto a surface. The camera sensor captures the distortion of that pattern, and the software reconstructs depth from the displacement. Simple enough on paper. The problem is that the projected dots compete with ambient infrared light from sunlight, incandescent bulbs, and even some LED sources. When the environment floods the sensor with competing IR wavelengths, the dot pattern becomes illegible and the depth map fills with noise or drops out entirely. The factory default settings are designed to work across the widest possible range of conditions, which means they are optimized for none of them specifically. That is why your real-world results rarely match the spec sheet numbers.

Get the Full Details

How to view live traffic cameras around RI | WPRI.com
How to view live traffic cameras around RI | WPRI.com

The Adjustment Process

First, access the projector driver controls through your camera SDK. Not all manufacturers expose these registers clearly. Some hide them behind undocumented API calls or require a direct register write. I found the relevant controls under the pattern generator and image signal processor sections of the configuration tool. If yours does not have a GUI, you will need to work with raw register addresses from the technical manual. Reduce the projector pulse width from the default setting down to approximately seventy percent of the sensor exposure time. This ensures the dots are only emitted during the window when the sensor is actively integrating light. Anything outside that window is wasted energy and potential noise source. The exact percentage depends on your sensor readout speed, so test incrementally. Next, adjust the ambient light rejection filter. This is typically a narrow bandpass filter centered on the projector wavelength, usually around eight fifty to nine hundred nanometers for most IR dot systems. If your camera allows software-side filter tuning, crank the rejection outside that band as aggressive as possible. Even a few nanometers of additional rejection can dramatically improve performance in sunny conditions.

Where This Approach Breaks Down

This is not a universal fix. If you are working with highly reflective or transparent surfaces, reducing pulse width makes the problem worse because there is less signal to begin with. Specular reflections scatter the dot pattern unpredictably, and a weaker projection just means the sensor captures more reflection noise relative to the pattern signal. In those cases, increasing pulse width or adding an external polarizing filter on the lens is more effective. Another limitation is range. Narrowing the pulse reduces the total photon budget reaching the target surface. At longer distances, especially beyond three or four meters depending on your projector power, you may not have enough dot density to maintain tracking. The tradeoff is real. You gain reliability in challenging lighting conditions and lose it at distance. Plan accordingly. I also ran into a situation where a particular batch of cameras had a manufacturing variance in the dot pattern homogeneity. Adjusting pulse width helped with the noise but did not fix the underlying pattern inconsistency. In those cases, I had to implement a per-camera pattern compensation lookup table that mapped expected versus actual dot positions. It added calibration complexity but resolved about eighty percent of the remaining errors.

Practical Testing Procedure

Do not just change the settings and hope for the best. Measure before and after. Use a controlled target with known geometry and capture depth data under multiple lighting conditions. I used a flat calibration plate with machined features at known depths, tested it under indoor fluorescent lighting, direct sunlight simulation, and mixed conditions. Record the percentage of valid pixels, the standard deviation of depth measurements, and the rate of complete tracking loss. Start with pulse width reduction in small increments, maybe ten percent at a time, and evaluate the metrics after each change. Then adjust the filter settings. The optimal combination is usually not the most aggressive setting for both parameters simultaneously. There is a balance point where you get acceptable depth quality without starving the system of signal. The documentation from the camera manufacturer will give you a starting range for these parameters. Treat it as a suggestion, not a recommendation. The real values depend entirely on your specific installation environment and the surfaces you are scanning.

Why more cameras are watching drivers in RI's Blackstone Valley
Why more cameras are watching drivers in RI's Blackstone Valley

Alternative Approaches If This Does Not Help

If your application involves high-speed movement, the pulse width reduction might introduce motion artifacts because the shorter integration window makes the system more sensitive to displacement during capture. In those cases, consider sticking closer to default pulse settings and instead investing in a physical IR bandpass filter mounted directly on the camera lens. These are relatively inexpensive and can provide better ambient rejection than any software adjustment. They also do not affect the photon budget the way pulse narrowing does. For outdoor installations where sunlight is the dominant problem, the bandpass filter approach combined with a shaded housing that blocks direct sun from hitting the camera lens is more reliable than any projector adjustment alone. No amount of pulse optimization will compete with the infrared output of direct sunlight on a clear day. There is also the option of switching to a different projection technology entirely if your use case demands it. Time-of-flight sensors and stereo cameras do not rely on projected dot patterns and avoid these issues altogether, but they come with their own tradeoffs in terms of cost, resolution, and performance characteristics. Knowing when to adjust your current setup versus when to change hardware is part of the practical experience most guides skip over.

The core insight is that the default configuration is a compromise designed for maximum compatibility, not maximum performance in any specific scenario. Taking the time to tune the projector and filter settings to your actual operating conditions produces results that are noticeably better than what you get off the shelf. It is a small adjustment that most people overlook because it requires reading the technical documentation carefully and being willing to experiment rather than just following the quick start guide.