Camera Focusing Tutorial

By IPVM Team, Published on Oct 14, 2019

Camera focus is fundamental to quality imaging. Mistakes can significantly reduce details, making cameras less effective.

free-image

In this guide, we explain focus issues and proper procedure, covering:

  • Fixed vs. Varifocal Cameras
  • Auto vs. Manual Focus
  • Two Fundamental Lens Controls
  • How to Focus
  • Using Autofocus
  • Potential Autofocus Issues
  • Manufacturer Focus Control Differences - Avigilon, Axis, Hikvision
  • Manual Varifocal Lenses
  • Manual Iris Lenses

Fixed ***** ****** *******

***** ***** ****** *******, with ** *** ** adjusting *****, *** ****** used ** ************ ******* today. ** **** ****** the **** *** *** be ********** ** ***, whether ****** ****** * bullet ** ****** ******* which ** *** ******** to ** ****** ** the *****, ** ** the **** ** **** dome *******, ********** ** shrouds ** ** ************ with ** *** ** access.

Factory Focused Fixed Lens

**** ** ******* **** accessible ******, *** **** is ***** *********** ***** in ***** *** *** intended ** ** *********. This ***** **** ** focus ****** *** *******, users **** *** ******* but ** ******* *** camera, ******* ** ****** adjustments ** *****.

********** ******* ****** *** specialty ******* **** ** multi ****** ** ******* may ******* **** **** focus ** **** **** focus ***********. ************, **** legacy ***** **** ****** may ***** ***** ***** adjustment. *******, **** ***** instances *** ******** ** 2019.

Auto ****** ****** *****

*** ********* *******, ***** are *** ******** ***** of *****:

  • **** *****/*********:** ********* *******, ***** may **** * ****** and ******* *** ****** to ************* ***** ******. This *** ** ****** via *** ******'* *** interface ** ** **** cases ** * ******** button ** *** ****** itself (*****). ********* ** found ** **** **** factors, ********* *****, *******, turrets, ***, *** *** cameras.

focus control inside dome

  • ****** *****:****** ***** ******** *** user ** ********** ****** zoom *** **** ***** using ***** ** *** camera's ****. ****** ***** is **** ****** ** box *******, ****** **** dome ** ****** ****** may ***** *******, ** well.

Autofocus *** **** ******

** ****, ********* ** common ** *** **** majority ** ********* *******. Previously, ** *** ********** a **** ***, ******* feature. ***, ****** ***** is ********* ******* **** to *********** *******, **** as************** ***** ************ ***** ** *********** or ** ***** ***** imager***-*/********** ***** *** *********** lenses. *******, **** ***** models **** ** *** in *** ******* ** shifting ** *********, ****** manual ***** *** ********.

******* ** **** *****, we ***** ********* **** in **** ******, *** discuss ****** *****, ** well.

Two *********** ********

**** ******* *** ********, there *** *** ****** controls:

  • **** *****: ******* ***** itself **** ****** ****** on ****. ***** ******** are ********* ******* **** through ***, * ******* Infinity (∞).
  • ****: ******* *** ****' angle ** ****, ***** indirectly ******* *****. ********* labeled * (****) ******* T (*********).

***** ******** *** ***** in *** *** ********* of ********* **** ****** or ******** ** *** lens ** ****** ***** cameras. ** **** ** differences *** *** ** use ***** ******** *****.

How ** *****

****** ***** *** *** general ****: ****** *** to **** ****** *** focus. ******** **** ***** after ******** **** ******* the ******. *******, ***** are *** ******* ***** impact ****:

  • ********* **** *********** **** moving:**** ********* ******* ************* track ***** ***** **** is ******* *** ******* autofocus **** *** **** stops ******. ******* ** this, ***** *** *** need ** ******** ******* autofocus ** ***.
  • **** ** ***** ** check **** *****:** ***** *****, **** adjusting *** ****, *** image *** ****** ********* blurry *** *********** *** zoom ***** *** ** difficult. ** *** ** necessary ** ***** *** refocus, ** ***** *******, while ******* *** ****** to *** ******* ***** of ****.

Using **** *****/********* ******

**** **** ***** ********* is * ******* ******* and ****** ************, ****** are ***** ********, *** even ******** ** **** cameras. ***** ****** ********* fall **** *** ** three **********:

  • **** ***** *********:** ***** ******, *** camera *** *** ***** on *** ******* ****** range, ******* ******** ** near ** ********** *******. This ** ***** ******** by ***** ** ****** target ** ***** **, such ** * ****** or **** *****, *** may ******* ****** ********** to **** **** ***** in **** *****.
  • ***** ******* **** ********* from *** ** *****:**** ******* *** ******* to **** ***** **** switching **** *** ** night **** *** **** versa. ** *** *******, focus *** ** ********* when ********* **** *** to **** **** ****** with ** ******* ** as *** ****** **** not **** ****** ***** to ******* *****. ** these ******, ** ********* disabling **** ******* ** focus ******* ** ***** as ** ** **** effective *** ** ****** focus.
  • ******* ** ***** *****:** **** *****, *** camera *** ** ****** to ***** ** *** desired ****** ******* ** is ****** *** ****/*** for *** **** ** compensate. **** ** **** common *** *** ******* with **** **** ***** where ***** ** *** rough ***** *** ****** prior ** *********, *** may ***** ** **** motorized ******* ** ****.

*** ***** ***** ************ the ********* *******, ******* how *** ****** ******** when *** ****** ** in ******* ****** ** soft *****, *** *** three ****** ********* *****.

Manufacturer ****/***** ******** ****

****** ************* *** ********* controls *** ***** *** zoom ** ***** *******, with **** **** ******* labeled *** ******* ** use **** ******.

*** *******, ****' ******** are **** ******, ******* Near/Far *** ****/****, **** slider ******** **** *** each. **** ** ******** to *** *** ************* installers (*** ****** ********** in **** *****), *** fine ****** ***** *** be ********* ** ***** are ** ******* ***** allow *** ********* ** "step" ***** ****/*** ** slight *******.

Axis Zoom Focus Controls

******** ** ******* ** Axis, **** * **** level ******, *** ******* used ** ******* ********* and **** **** ****/*** (0/Infinity) *****, ******** ***** control ** *****.

Avigilon Zoom Focus Controls

*********'* ******** *** ********* in *** "***" ***** pop *** ** *** live **** ** *** web *********. *** ******** have ** **** ******, only *****, ***** *** be ********* *** **** users. ************, ********* ** triggered ** * ****** further ****, ***** ** named "********* *****" ** its *******.

Hikvision Zoom Focus Controls

Manual ********* ****** (**** ** ****)

** ****** ***** *******, zoom *** ***** *** located ** *** **** itself, **** ***** ** locking ***** (****** "*******") used ** ****** ****. The ***** ****** ** these ******** ****** **** lens ** **** *** is ********* ******* ** the **** *****:

Manual Zoom Fine Focus Controls

** ******, ***** ****** move *** ****** *** then ***** ** ** tighten *** **** *****/****. In ****** ****** **** manual ****** *** **** Back ***** **********, **** zoom **** ** ******** set ** *** ****, with ***** ******* ******** before ********** **** ***** in *** ******. **** adjustments ** ***** *** then ** **** **** the ******'* *** ********* (demonstrated ** *** ***** above).

Even **** ******: ****** ****

**** **** ****** ** 2019, **** ****** ******* manual ********** ** *** iris. **** ** ******** using * ***** ****/******, labeled ****, *** ********* in *** ****** ** the **** ******* ***** and ****. ********** ****** from ****** ** **** (C ** *), ********* left *** *** *** open ****** ** **** cases ** ***** ******** the ***** ******** *** camera. ******* **** *********** **** *********** ** iris *** *** ******.

****** **** ****** *** extremely **** ** ******* installs, ****** ***** *** see ***** *********** ** existing ******** ** ********* cameras.

Manual Iris Control

Camera ********* *** ******

**** ***** ****** ******* on ***** *** *** related ******. *******, ****** and ********* ******* *** decisions ** ***** ******* are ******* *** *** much **** **** ****** cover ** ******* ******* details, ******* *** ***** of **** *****. *** more ***********, ******* ****** also ***:

[****: **** ****** *** originally ******** ** ****, but ******* ************* ** 2018/2019 **** ********** *********** on *** ******* ***** of *** ******, ************* videos, *** ****.]

Comments (14)

How do you deal with out of focus issues when the Aperture opens (during the evening).   ?

 

typically our efforts at focusing are done during daylight conditions, but camera goes out of focus at night

I am surprised there was no mention of neutral density filters being used as part of the focusing process. 

When you focus in daylight, the iris is relatively closed which maximizes depth of field (the amount of distances in focus). 

When you hold a neutral density filter (they're dark) in front of the lens, it "tricks" the lens into thinking it's nighttime, the iris opens creating the worst case for depth of field. You can then focus on the primary target distance. There still may be distances out of focus but you will have done the best you can. 

Also, note the f-number of the lens you're using (or integrated) with the camera. The lower (or "faster") the f-number of the lens, the better you can achieve low light performance as well as increased depth of field compared to a "slower" lens. 

As I recall from many years ago, 1 f-stop "slower" represents a 50% loss of light passed. For example, an f1.4 lens passes 50% less light than an f1.0. Optical physicists, kindly correct me if that is mis-stated. 

The other potential problem is if the camera drops to B/W and relies on IR to illuminate the scene. When a camera goes from color to B/W with IR, there is a focal shift which can cause the focus to go soft. I think most lenses are IR corrected to solve that problem but not necessarily. 

Instead of filters i'd rather use a simulated night scene (if the focusing is done in day light conditions) by adjusting the shutter speed at 1/1000 or 1/5000.Camera goes in black and white mode,  the iris opens as if it's night and you can fine focus in a way that works both for day and night conditions .Still there is no way to simulate the IR different focal plane but to focus at true night time with IR on

I had never heard of a neutral density filter, but after reading it sounds like how I was taught to focus cameras (back in the day), with the the iris open. We used a welding helmet glass lens. $3.50 at the hardware store. A little clumsy to hold the glass against the lens but it worked. Made the image look just like night and would get a great focus each time.

#2 welders glass in front of the lens will simulate night to allow for a proper night focus.  You will still likely have a little offset if using IR to illuminate the scene. 

Years ago, a manufacturer passed those out at an ISC show. 

I believe they were #5 lenses for welding googles. I've passed them out at my training classes for years. They're getting harder to find as even welding has gone electronic with googles/hoods that darken automatically.

Are you seeing this often? What cameras are you using?

It used to be common practice to use filters or welder's glass during focusing to simulate night time, but in our testing and based on comments from others, we have not found it to be a major problem in 2018.

Additionally, many (possibly most) autofocus models will automatically refocus the camera when switching from day to night, which reduces these issues further.

It's possible that there may be fine focus issues in specific cases, and I have seen autofocus fail sometimes, but in the vast majority of tests I've personally performed in the past couple of years, focus has been fine moving from day to night.

 

Great material.  One comment I wanted to make is that I know of at least 2 brands that allow you to perform an auto-focus on a specified area of the scene.  So, if the auto-focus is confused and tried to focus on the wrong part of the scene, you can draw a box, and then press the auto-focus button and the camera will focus on that part of the scene.

 

A question I have - how long do different camera take to perform an auto-focus?  What is the range you have seen?

We mention the focus area in the second video, actually. The one thing I'd point out is that I've seen that focus area box be effectively useless on a number of cameras. It may make a slight difference, but ultimately if focus is so far out that it's having trouble on the full screen, I haven't seen the focus area change that.

As far as focus time, I'd say it ranges from about 2-3 seconds to maybe 10. I'd say "average" is probably 5-7. A full focus scan on some cameras may take longer, as well, but that's generally only recommended under specific circumstances or when re-initializing/re-calibrating a lens by the manufacturers which support it. 

About autofocus it would be interesting to mention the mode that the camera uses to determine when the image is in focus.I guess that the most used (maybe the only?)is working with contrast so the more contrasted image=focus. But mayeb there are other modes that i don't know so it would be interesting to compare

Newer information about the fundamental control of the auto / manual focus setting / adjustment.  Interesting!!

Great article.

Good article.  I notice sometimes some of the 36x rooftop PTZs we use struggle to get in focus when zoomed to their maximize zoom (36x).  I can usually correct the issue by zooming out just a bit and then back in.  I will try the fine focus now.

Great detail in the reading assignment.

Read this IPVM report for free.

This article is part of IPVM's 6,590 reports, 889 tests and is only available to members. To get a one-time preview of our work, enter your work email to access the full article.

Already a member? Login here | Join now

Related Reports

Single Frame Gait Recognition From Michigan State and Osaka University Examined on Oct 01, 2020
Gait recognition has the potential for accurate identification at a distance,...
Face Detection Shootout - Dahua, Hanwha, Hikvision, Uniview, Vivotek on Jul 30, 2020
Face detection analytics are available from a number of manufactures...
Uniview Deep Learning Camera Tested on Jul 14, 2020
Uniview's intrusion analytics have performed poorly in our shootouts. Now,...
VSaaS Will Hurt Integrators on Aug 06, 2020
VSaaS will hurt integrators, there is no question about that. How much...
K7 Wall Mounted IR Temp Gun Tested on Jun 26, 2020
The original K3 model was missing a number of important features but the...
Quantum Dots Potential for Surveillance Cameras Explained on Sep 08, 2020
Quantum dots are starting to be used in TVs for better images, but how will...
FLIR Screen-EST Screening Software Tested on Jun 30, 2020
In our FLIR A Series Test, the cameras' biggest drawback was their lack of...
Camera Course Summer 2020 - Last Chance on Jul 18, 2020
This is your last chance to register for the Summer 2020 Camera Course. This...
Injes Tiny Temperature Terminal Tested on Jul 17, 2020
While temperature terminals have trended bigger, the Injes DFace801 is...
Facial Recognition: Weak Sales, Anti Regulation, No Favorite, Says Security Integrators on Jul 07, 2020
While facial recognition has gained greater prominence, a new IPVM study of...
Fever Camera Sales From Integrators Surveyed on Jun 01, 2020
Fever cameras are the hottest trend in video surveillance currently but how...
The Future of Metalens For Video Surveillance Cameras - MIT / UMass / Immervision on Sep 25, 2020
Panoramic cameras using 'fisheye' lens have become commonplace in video...
Beware Rigged China Fever Cameras on Sep 08, 2020
Many China fever camera manufacturers have rigged algorithms dynamically...
Avigilon Elevated Temperature Detection Camera Tested on Sep 17, 2020
Avigilon has entered the temperature screening market with the release of...
Monitoring Alarm Systems From Home - Innovation or Danger? on Oct 13, 2020
Remote monitoring by alarm companies since COVID-19 is bringing cost savings...

Recent Reports

GDPR Impact On Temperature / Fever Screening Explained on Oct 22, 2020
What impact does GDPR have on temperature screening? Do you risk a GDPR fine...
Security And Safety Things (S&ST) Tested on Oct 22, 2020
S&ST, a Bosch spinout, is spending tens of millions of dollars aiming to...
Nokia Fever Screening Claims To "Advance Fight Against COVID-19" on Oct 22, 2020
First IBM, then briefly Clorox, and now Nokia becomes the latest Fortune 500...
Deceptive Meridian Temperature Tablets Endanger Public Safety on Oct 21, 2020
IPVM's testing of and investigation into Meridian Kiosk's temperature...
Honeywell 30 Series and Vivotek NVRs Tested on Oct 21, 2020
The NDAA ban has driven many users to look for low-cost NVRs not made by...
Avigilon Aggressive Trade-In Program Takes Aim At Competitors on Oct 20, 2020
Avigilon has launched one of the most aggressive trade-in programs the video...
Mexico Video Surveillance Market Overview 2020 on Oct 20, 2020
Despite being neighbors, there are key differences between the U.S. and...
Dahua Revenue Grows But Profits Down, Cause Unclear on Oct 20, 2020
While Dahua's overall revenue was up more than 12% in Q3 2020, a significant...
Illegal Hikvision Fever Screening Touted In Australia, Government Investigating, Temperature References Deleted on Oct 20, 2020
The Australian government told IPVM that they are investigating a Hikvision...
Panasonic Presents i-PRO Cameras and Video Analytics on Oct 19, 2020
Panasonic i-PRO presented its X-Series cameras and AI video analytics at the...
Augmented Reality (AR) Cameras From Hikvision and Dahua Examined on Oct 19, 2020
Hikvision, Dahua, and other China companies are marketing augmented reality...
18 TB Video Surveillance Drives (WD and Seagate) on Oct 19, 2020
Both Seagate and Western Digital recently announced 18TB hard drives...
Watrix Gait Recognition Profile on Oct 16, 2020
Watrix is the world's only gait recognition surveillance provider IPVM has...
Intel Presents Edge-to-Cloud Ecosystem for Video Analytics on Oct 16, 2020
Intel presented its processors and software toolkit for computer vision at...