Learn How to Clean A Camera Lens from Our Camera Optical Engineers.

Keeping Your Optics Clean is Critical to Image Quality

    If you've spent lots of with cellphone cameras, consumer DSLRs, and/or building your own USB / GMSL cameras, you'll quickly find issues that result from dirty optics. 

    In this article, we'll:

  • Review the impact of dirt and dust on your pictures and/or computer vision system.
  • Identify ways to avoid dirty optics and camera sensors.
  • Explain best practices to clean your camera lens and/or other optics.
A direty action camera lens

Dust and Dirt on your camera lens can ruin a good image and create havoc for computer vision models

1.) Stray Light (Camera Lens Haze And Streaks)

Stray light results from light scattering off surfaces within into your camera. Dust or dirt that is located anywhere in the optical path can create stray light issues.

The easiest way to see an example of stray light is to put a fingerprint on your cellphone camera then point it at a bright overhead light. These streaks are one type of stray light known as flare. See our stray light article for more examples of stray light and the impact.

To avoid stray light, keep your lenses clean and use a lens hood when you're shooting in bright or backlit conditions.

Image Blemish DSLR Dusty Sensor.webp__PID:72ae2b53-65f7-42a1-a0e0-a788c13fb0ee

2.) Blemishes (Spots and Dark Dots)

Blemishes are a complete nuisance because they are challenging to get rid of. Blemishes are largely a result of dust on your camera sensor, but for OEM camera manufacturing, dust on the back of your lens can shake free over time, thus landing on your image sensor.

Blemishes can be post corrected in Photoshop, Lightroom, or with other image processing software. This can be a very tedious process.


How to Avoid Dust and Dirt

1.) Keep it Clean

Store your lens and camera in a clean case. Whenever reattaching your lens (DSLR, mirrorless) to the camera, use a blast of room air on the sensor and lens. Ideally this is desiccated (dry) compressed room air that is also ionized.

If you take your lens off, make sure to do it in the cleanest environment possible, or shield your camera from the environment as best possible, such as in a backpack or vehicle. Here at Commonlands, we perform every step in a Cleanroom Class 1000 equivalent environment in clean rooms and/or laminar flow stations. 

If you are a camera engineer looking for more detailed assembly tips and tricks for volume production, we're happy to help: send us an email. These are too detailed for a quick article.

2.) Preassemble When Possible

If you are creating an embedded camera system, we recommend prethreading the lens with the lens holder before assembling with the PCB. This prevents unwanted anodization debris from landing on the sensor, creating blemishes.

How to clean your camera lens

1.) Blow off your lens using Room Air

First, use room air to remove dust. The best solution is to use dry ionized compressed air.

If you don't have an air compressor and ionized air gun, you can also use a tool like our air duster.

Do not use keyboard cleaning aerosols that contain liquid. This can leave streaks and make it even harder to clean. And in certain cases this can damage the coatings on the lens.

Air Blaster Tool.webp__PID:31ecf51c-a7f9-4e8b-80f6-a9777494d87b
rocket air duster blaster cleaner for lenses
camera sensor cleaning duster
raspberry pi camera lens cleaner
rocket air duster blaster cleaner for lenses
camera sensor cleaning duster
raspberry pi camera lens cleaner

Rocket Air Blaster Dust-Removal

View Details
How to Clean a Camera Lens Cloth.webp__PID:85603226-c199-4efe-a08d-9d4f96b9535e
Camera Lens Cleaning Kit for Raspberry Pi Camera
how to clean a camera lens
Camera Lens Cleaning Kit for Raspberry Pi Camera
how to clean a camera lens

Camera Lens Cleaning Kit w/ Screws

View Details

2.) Use lens cleaning Solution 

Use lens cleaning solution and a cleaning cloth to wipe off any remaining dirt. 

Be sure to avoid using coarse cloths or dirty/sandy cloths as these can scratch the lens element and/or coating.

If you do not have lens cleaning solution, we recomend mixing distilled water with isopropyl alcohol in a 50% 50% mixture.

What's Your Application? Our Lenses Cover the Spectrum.

Low Distortion 6.8mm M12 Lens

CIL068-F2.5-M12A650

Low Distortion 6.8mm M12 Lens

200°@5.7mm IP67 Fisheye M12 Lens

CIL217-F2.7-M12A650

200°@5.7mm IP67 Fisheye M12 Lens

Fast 6mm M12 Lens

CIL061-F1.9-M12B650

Fast 6mm M12 Lens

Mobile Robotics?

Find a low F# or low distortion lens to optimize your computer vision.

Factory Machine Vision?

Our cost-effective compact C-Mount lenses are designed for up to 1.1"~1.2" format global shutter sensors.

16mm C-Mount Lens 1.1" 12MP

CIL513-F2.8-CMANIR

16mm C-Mount Lens 1.1" 12MP

25mm C-Mount Lens 1.1" 12MP

CIL514-F2.8-CMANIR

25mm C-Mount Lens 1.1" 12MP

Small 2.5mm M12 Lens

CIL825-F2.4-M12ANIR

Small 2.5mm M12 Lens

No Distortion 4.4mm M12 Lens

CIL043-F3.2-M12B650

No Distortion 4.4mm M12 Lens

230°@4.5mm Fisheye M12 Lens

CIL213-F2.3-M12A660

230°@4.5mm Fisheye M12 Lens

Intelligent Everywhere?

Our low distortion lenses with multiple F# can be used to optimize your depth of field.

Surveillance?

Our fisheye and IR Corrected lenses are suitable for doorbell cameras and active IR illuminated scenes.

200°@6.3mm Fisheye M12 Lens

CIL219-F2.5-M12IR

200°@6.3mm Fisheye M12 Lens

186°@5.2mm IR Corrected Fisheye M12 Lens

CIL239-F2.0-M12ANIR

186°@5.2mm IR Corrected Fisheye M12 Lens

Low Distortion 6mm M12 Lens

CIL059-F1.7-M12B650

Low Distortion 6mm M12 Lens

188°@6.6mm IP67 M12 Fisheye

CIL222-F2.0-M12A650

188°@6.6mm IP67 M12 Fisheye

No Distortion 3.2mm Lens

CIL034-F2.3-M12B650

No Distortion 3.2mm Lens

Fast 6mm M12 Lens

CIL061-F1.9-M12B650

Fast 6mm M12 Lens

Does it Require Getting Dirty?

Our IP67 and IP69K lenses are suitable for applications exposed to the environment.

Aerial Robotics?

Our tiny lenses are ideal for collision avoidance and object recognition.

Large Format 3.5mm M12 Lens

CIL334-F2.2-M12C660

Large Format 3.5mm M12 Lens

Wide-Angle 3.5mm M12 Lens

CIL335-F1.8-M12A660

Wide-Angle 3.5mm M12 Lens

Small 3.3mm M12 Lens

CIL036-F2.2-M12A650

Small 3.3mm M12 Lens