Basic camera settings

Before you grab an actual image, you can check out how to set up the webcam for capturing. We’ll take 'brightness' as an example

dcsObject.camera.brightness.setCurrent(-14);

Allowing all camera settings might be overwhelming for end users, especially for those without a technical background. With Dynamsoft Camera SDK, you can customize all these settings in your JavaScript code. For example:

dcsObject.camera.selectCamera('Integrated Camera');
dcsObject.camera.playVideo();                   //Start the video stream
dcsObject.camera.brightness.setCurrent(-14);    // Set the brightness
dcsObject.camera.contrast.setCurrent(60);       // Set the contrast
dcsObject.camera.captureImage('image-container');  // Start capturing

Related methods