Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Diagnoses camera image quality issues and enhances captures using hardware setting adjustments and Image Processing Toolbox post-processing.
Use this skill ↓59% 64%+5 ptsof test cases passed
Passed 14 of 22 test cases with the skill, and 13 of 22 without it.
My camera snapshot has a brightly lit background and a dark subject in the center. I ran diagnoseImageQuality.m on the frame. Which specific metric field in the diagnostic output struct indicates backlit subject issues?
Evaluates the backlightRatio field within the diagnostic output structure.
3 of 3 safety checks passed
cam = webcam(); % Connect to default camera
cam = webcam(deviceName); % Connect by name
props = properties(cam); % List all settable properties
To inspect a specific property's current value:
cam.Brightness % Direct property access
To check available values (for enumerated properties like Resolution):
cam.AvailableResolutions % Cell array of resolution strings
Webcam objects expose properties directly as object fields. There is no propinfo equivalent — valid ranges must be discovered by trial or documentation.
vid = videoinput(adaptorName, deviceID, format);
src = getselectedsource(vid);
props = properties(src); % All source property names
info = propinfo(src, 'Brightness'); % Detailed property info
propinfo returns a struct with:
Type: 'double', 'integer', 'string', 'enum'Constraint: 'bounded', 'enum', 'none'ConstraintValue: [min max] for bounded, cell array for enumDefaultValue: factory defaultReadOnly: 'always', 'whileRunning', 'never'Always use propinfo to discover valid ranges before suggesting values.
Next to this one in the catalogue, plus more from the same author.