File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,8 +47,8 @@ void main() throws Exception {
4747 try (var stream = device. openStream(format)) {
4848 TimeUnit . SECONDS. sleep(1 ); // let the camera initialize
4949
50- var zoomLimits = stream. getPropertyLimits(CaptureProperty . ZOOM );
51- System . out. println(" Zoom limits: " + zoomLimits );
50+ var exposureLimits = stream. getPropertyLimits(CaptureProperty . EXPOSURE );
51+ System . out. println(" Exposure limits: " + exposureLimits );
5252
5353 var image = stream. capture();
5454 ImageIO . write(image, " png" , new File (" /tmp/image.png" ));
Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ void main() throws Exception {
2020 try (var stream = device .openStream (format )) {
2121 TimeUnit .SECONDS .sleep (1 ); // let the camera initialize
2222
23- var zoomLimits = stream .getPropertyLimits (CaptureProperty .ZOOM );
24- System .out .println ("Zoom limits: " + zoomLimits );
23+ var exposureLimits = stream .getPropertyLimits (CaptureProperty .EXPOSURE );
24+ System .out .println ("Exposure limits: " + exposureLimits );
2525
2626 var image = stream .capture ();
2727 ImageIO .write (image , "png" , new File ("/tmp/image.png" ));
You can’t perform that action at this time.
0 commit comments