IR photos with the Boscam HD19, part 1


On my multicopter, I have a Boscam HD19 camera. This camera was explicitely developed for use on UAVs and has some interesting functions, like live video out, full HD recording and taking photos. The recording functions can also be controlled via the UAV's remote control, which makes it especially useful. The stock lens is very wide-angeled and - in my opinion - not of excessively good quality. Fortunately, the HD19 uses a standard 12x0,5mm thread for lenses and good but cheap lenses in various angles are available from the internet.

As of all digital cameras, the sensor of the HD 19 is also sensitive to infrared light. However, the HD19's stock lens has an IR-cut filter because IR light is very prominent in the light spectrum and would otherwise cause the picture's colors to be distorted.

So, to get infrared light, we either have to remove the IR-cut filter from the stock lens or get a lens without filter. As I didn't like the wide angle of the stock lens and I had some problems with unsharp edges, I decided to buy a 6mm lens on eBay for about 6€ incl. shipping. It is noticeable that the HD19 has a 1/2.5" sensor. Most cheap CCD and CMOS cameraswith M12 lenses have 1/3" or 1/4" lenses which leads to a small tunnel effect on photos with the HD19. Thus, only lenses for 1/2.5" sensors should be used. Those lenses are also often called "HD" or "3 Megapixel / 3MP lenses".

thumb IR beforeAfter replacing the lens, the images look like the one to the right (click picture to enlarge). Colors don't seem to match, especially colors of plants, and the whole picture is tinted red/pink. That is pretty much how it is supposed to look like. The automatic white balance function of digital cameras is calibrated for the visible light spectrum only. IR light throws it off very much and generally, the IR part is very strong on the general spectrum. IR light has a longer wavelength and thus penetrates e.g. fog or clouds much better. This photo was taken at 9 in the evening on a cloudy day, but it's still very bright. As for the plants, the foliage of a living plant reflects IR light very well. That's why plants appear very bright in an IR picture. IR reflectivity is also a good indicator of a plant's health.

thumb IR autowhitebalBut of course, we don't want all pink pictures, hence we have to do a bit of postprocessing. I use GIMP for postprocessing of photos. The necessary functions are also available in other programs, like Adobe Photoshop. The easiest way to get reasonably good pictures is to use the automatic white balance function of GIMP (menu Colors -> Auto -> White Balance). This already gives a nice result but it's still very pinkish (see left, click to enlarge). To get better results, we still have to do some corrections and those are best done with color curves (menu Colors -> Curves). Select the Red channel and try to lower the level around 100-120 a bit.

thumb IR afterAfter correcting the Red channel and a tiny little bit also Green and Blue channels, the result is pretty ok (see right, click to enlarge). During the postprocessing, we lose a bit of dynamic range (compare e.g. the door of the black car left of the image's center), but the normal colors are almost totally correct now. Vegetation still is a bit pinkish but that is not easy to correct without losing a big amount of dynamic range and contrast in the process.

To make things easier, I have written a small Scheme script for GIMP which does the correction automatically. You can find it from my download area.

Part 2 will cover postprocessing of images which were taken with an IR-passthrough filter.

Original article URL:

E-mail me when people leave their comments –

You need to be a member of diydrones to add comments!

Join diydrones


  • Brent,

    I would have to search ebay as well :). The one I used in the pictures in this article is
    As I wrote, check for "HD" or "3 Megapixel / 3MP" lenses with 12mm thread. If the lens has an IR-cut filter integrated, it's usually described in the text and those you DON'T want. You should also have a close look on the product photos. If "IR" is printed on the lenses border, it does NOT have an IR-cut filter, means, IR-light can pass through.

  • Could you please provide a link to a suitable lens that would be better under normal conditions? There are quite a few on eBay but unsure as to which one will work.

  • Thanks for the information.  Can't wait for part 2.

  • 100KM

    Ok, thanks. My gripe is the apparent noise in the image, compared to the gopro, but it's a fraction of the price, so fair enough..

  • You mean in regards to the frequent complaints about too pale colors? No. Using a better (bigger - more light) lens could, however, improve the image quality on overcast days.

  • 100KM

    Thank you - IR aside - would it merit replacing the stock lens with a "better" lens as you say? Would one see an improvement in quality in visual spectrum?

  • Search eBay for CCTV Megapixel lens or CCTV 3MP lens. usually, if it's not mentioned, they don't have an IR-cut filter. Also the text "IR" on the lens frame means no filter.

  • 100KM
    Thank you! Could you perhaps link to that ir filterless lens on ebay?
  • Thank Stefan, I have in proyect to modificate a HK wing camera but this one sounds better, easyer and no so expensive :)

  • It has 2 serial image functions. Automatic trigger every 3-30s (configurable) and taking of multiple pictures at trigger. The automatic function can be activated through a button on the camera or you can also control it via an R/C channel. I don't know the exact thresholds, but +100% activates video recording, 0% is standby and -100% takes a photo - or multiple, if the serial image function is active.

    You have to use external power because it was designed as an UAV/FPV camera. It comes with a cable that connects directly to Boscam or other video transmitters and gets power from there.

This reply was deleted.