How the camera finds and follows a subject: focus mode and area, and subject detection. This is one of the 7 pages of the settings reference, which names every setting. Focus shows each at work in Studio, MCP, the CLI and Slate.
Read and write one with its typed getter and setter, or with setControl by id. A camera offers only some values of each: getCapabilities().controls lists them now. A setter refuses a value the camera does not offer with CameraRefusedError before sending anything; a getter throws CameraUnsupportedError when the setting is absent or does not apply in the current mode.
| Setting | Id | Getter and setter |
|---|---|---|
| Focus mode | focusMode | getFocusMode setFocusMode |
| Focus area | focusArea | getFocusArea setFocusArea |
| Subject detection | subjectDetection | getSubjectDetection setSubjectDetection |
| Detection subject | detectionSubject | getDetectionSubject setDetectionSubject |
| Eye selection | eyeSelection | getEyeSelection setEyeSelection |
| Continuous AF | continuousAutofocus | getContinuousAutofocus setContinuousAutofocus |
Focus mode
How the camera focuses: once and lock (AF-S), keep following the subject (AF-C), or by hand (MF).
AF-S, AF-C or MF, and the other modes a body offers (AF-A, DMF, AF-F, ...). Canon One-Shot is AF-S.
| Id | focusMode, for setControl and getCapabilities().controls.focusMode |
| Value type | FocusMode |
| How to use it | Focus: Focus mode |
| Search words | focus mode, One-Shot, AI Servo, AF-S, AF-C, AF-F, DMF, Movie Servo AF, movie servo autofocus |
Values 11 named values. A camera offers only some of them: getCapabilities().controls.focusMode.allowedValues lists which, right now.
AF-S AF-C AF-F DMF AF-A AF-D Preset focus MF MF reverse AF AF macro
Protocol properties
Protocol properties
The properties Slate reads and writes for it, by brand.
| Brand | Properties |
|---|---|
| PTP | FocusMode (0x500a) |
| Canon | CanonFocusMode (0xd108), CanonMovieServoAutofocus (0xd179) |
| Nikon | NikonStillFocusMode (0xd061), NikonMovieFocusMode (0xd1fa) |
getFocusMode
getFocusMode(): Promise<FocusMode> · MCP camera_get_focus_mode · CLI darkgrade camera get-focus-mode
setFocusMode
MCP camera_set_focus_mode · CLI darkgrade camera set-focus-mode
setFocusMode(value: FocusMode): Promise<FocusMode>Refuses a value the camera does not offer before sending anything, and resolves to the value read back.
Focus area
Where in the frame autofocus looks: the whole frame, a zone, or a spot.
Wide, Zone, Spot M, Tracking Spot M, ...; Sony's Flexible Spot is Spot, Lock-on AF is Tracking.
| Id | focusArea, for setControl and getCapabilities().controls.focusArea |
| Value type | FocusArea |
| How to use it | Focus: Focus area |
| Search words | focus area, AF area, AF method, AF-area mode |
Values 57 named values. A camera offers only some of them: getCapabilities().controls.focusArea.allowedValues lists which, right now.
Every named value (57)
Every named value (57)
Spot Wide Zone Center Tracking Spot S Spot M Spot L Expanded Spot Spot XS Spot XL Spot Free Size 1 Spot Free Size 2 Spot Free Size 3 Tracking Wide Tracking Zone Tracking Center Tracking Spot S Tracking Spot M Tracking Spot L Tracking Expanded Spot Tracking Spot Tracking Spot XS Tracking Spot XL Tracking Spot Free Size 1 Tracking Spot Free Size 2 Tracking Spot Free Size 3 Quick Single Point Face Tracking Multi Point Expanded Point Cross Expanded Point Around Large Zone Horizontal Large Zone Vertical Flexible Zone 1 Flexible Zone 2 Flexible Zone 3 Spot Without Tracking Single Point Without Tracking Expanded Point Cross Without Tracking Expanded Point Around Without Tracking Dynamic S Auto Area 3D Tracking Dynamic M Dynamic L Pinpoint Wide S Wide L Wide C1 Wide C2 Dynamic 25 Dynamic 72 Dynamic 153 Group Dynamic 9
Protocol properties
Protocol properties
The properties Slate reads and writes for it, by brand.
| Brand | Properties |
|---|---|
| Canon | CanonLiveViewAutofocusMode (0xd1ba) |
| Nikon | NikonStillFocusMeteringMode (0xd05d), FocusMeteringMode (0x501c), NikonMovieFocusMeteringMode (0xd1f8) |
| Sony | FocusArea (0xd22c) |
getFocusArea
getFocusArea(): Promise<FocusArea> · MCP camera_get_focus_area · CLI darkgrade camera get-focus-area
setFocusArea
MCP camera_set_focus_area · CLI darkgrade camera set-focus-area
setFocusArea(value: FocusArea): Promise<FocusArea>Refuses a value the camera does not offer before sending anything, and resolves to the value read back.
Subject detection
Whether autofocus finds and follows a subject, such as a face or an eye, on its own.
Whether the camera looks for faces, eyes and other subjects to focus on.
| Id | subjectDetection, for setControl and getCapabilities().controls.subjectDetection |
| Value type | SubjectDetection |
| How to use it | Focus: Subject detection |
| Search words | subject recognition, subjectRecognition, eye tracking, eye AF, face detection, subject detection, face and eye detection |
Values 2 named values. A camera offers only some of them: getCapabilities().controls.subjectDetection.allowedValues lists which, right now.
Off On
Protocol properties
Protocol properties
The properties Slate reads and writes for it, by brand.
| Brand | Properties |
|---|---|
| Canon | CanonSubjectDetection |
| Nikon | NikonSubjectDetection, NikonMovieSubjectDetection |
| Sony | SubjectRecognitionInAF (0xd157) |
getSubjectDetection
getSubjectDetection(): Promise<SubjectDetection> · MCP camera_get_subject_detection · CLI darkgrade camera get-subject-detection
setSubjectDetection
MCP camera_set_subject_detection · CLI darkgrade camera set-subject-detection
setSubjectDetection(
value: SubjectDetection,
): Promise<SubjectDetection>Refuses a value the camera does not offer before sending anything, and resolves to the value read back.
Detection subject
What subject detection looks for: people, animals, vehicles.
What subject detection looks for: People, Animals, Birds, ...
| Id | detectionSubject, for setControl and getCapabilities().controls.detectionSubject |
| Value type | DetectionSubject |
| How to use it | Focus: Detection subject |
| Search words | recognition target, recognitionTarget, subject to detect, detection subject, tracking object |
Values 9 named values. A camera offers only some of them: getCapabilities().controls.detectionSubject.allowedValues lists which, right now.
Auto People Animals Vehicles Planes Animals and birds Birds Insects Cars and trains
Protocol properties
Protocol properties
The properties Slate reads and writes for it, by brand.
| Brand | Properties |
|---|---|
| Canon | CanonDetectionSubject |
| Nikon | NikonDetectionSubject, NikonMovieDetectionSubject |
| Sony | RecognitionTarget (0xd158) |
getDetectionSubject
getDetectionSubject(): Promise<DetectionSubject> · MCP camera_get_detection_subject · CLI darkgrade camera get-detection-subject
setDetectionSubject
MCP camera_set_detection_subject · CLI darkgrade camera set-detection-subject
setDetectionSubject(
value: DetectionSubject,
): Promise<DetectionSubject>Refuses a value the camera does not offer before sending anything, and resolves to the value read back.
Eye selection
Which eye the camera focuses on when it detects a face.
Which eye subject detection focuses on: Auto, Right or Left; Off where a body can turn eye detection off (Canon).
| Id | eyeSelection, for setControl and getCapabilities().controls.eyeSelection |
| Value type | EyeSelection |
| How to use it | Focus: Eye selection |
| Search words | eye select, eyeSelect, eye selection, eye detection |
Values 4 named values. A camera offers only some of them: getCapabilities().controls.eyeSelection.allowedValues lists which, right now.
Auto Off Right Left
Protocol properties
Protocol properties
The properties Slate reads and writes for it, by brand.
| Brand | Properties |
|---|---|
| Canon | CanonEyeDetection (0xd12c) |
| Sony | RightLeftEyeSelect (0xd159) |
getEyeSelection
getEyeSelection(): Promise<EyeSelection> · MCP camera_get_eye_selection · CLI darkgrade camera get-eye-selection
setEyeSelection
MCP camera_set_eye_selection · CLI darkgrade camera set-eye-selection
setEyeSelection(value: EyeSelection): Promise<EyeSelection>Refuses a value the camera does not offer before sending anything, and resolves to the value read back.
Continuous AF
Canon's Continuous AF: the camera keeps the lens roughly in focus before you press, then locks focus as usual. Only cameras that have it list it.
Canon's Continuous AF: in One-Shot it keeps the lens roughly focused before the AF press, then locks like One-Shot. That is not AF-C, so it is a setting of its own, present only where offered.
Whether the camera keeps focusing before a half-press (Canon Continuous AF): On or Off.
| Id | continuousAutofocus, for setControl and getCapabilities().controls.continuousAutofocus |
| Value type | ContinuousAutofocus |
| How to use it | Focus: Continuous AF |
| Search words | continuous AF, continuous autofocus, Pre-AF, pre AF |
Values 2 named values. A camera offers only some of them: getCapabilities().controls.continuousAutofocus.allowedValues lists which, right now.
Off On
Protocol properties
Protocol properties
The properties Slate reads and writes for it, by brand.
| Brand | Properties |
|---|---|
| Canon | CanonContinuousAutofocus (0xd1c9) |
| Sony | PreAF (0xd1af) |
getContinuousAutofocus
getContinuousAutofocus(): Promise<ContinuousAutofocus> · MCP camera_get_continuous_autofocus · CLI darkgrade camera get-continuous-autofocus
setContinuousAutofocus
MCP camera_set_continuous_autofocus · CLI darkgrade camera set-continuous-autofocus
setContinuousAutofocus(
value: ContinuousAutofocus,
): Promise<ContinuousAutofocus>Refuses a value the camera does not offer before sending anything, and resolves to the value read back.
Other settings
How bright the picture is: shutter speed, ISO, aperture and the modes around them.
What a recording is: the photo or video mode, the format, quality and frame rate, and sound.
What a photo is and how it is taken: drive mode, shutter type and flash, and the file the camera writes.
The colour of the light and how the camera renders it: white balance, colour temperature, the look and the picture profile.
The two settings beside the zoom operations: image stabilisation and digital zoom.
The one setting of the live picture: its quality.
Related
The class: constructor, every method, what each returns and throws.
Every setting id with its values, getter, setter and vendor properties.
Every exported type, field by field.
Every error class: when it is thrown and what to do.
Every import path of the package and what it exports.