commit 27/2025
Tambah Crop Setting
This commit is contained in:
@@ -1063,7 +1063,7 @@ public class Cameradetail {
|
||||
// 30 fps means 33 ms per frame
|
||||
// so if grab is quicker than 30 ms , its stale frame
|
||||
try{
|
||||
if (mGrabber==null) throw new FrameGrabber.Exception("Grabber is null");
|
||||
if (mGrabber==null) throw new Exception("Grabber is null");
|
||||
Frame frame = mGrabber.grab(); // grab frame
|
||||
delta = System.currentTimeMillis() - now;
|
||||
now = System.currentTimeMillis();
|
||||
@@ -1093,7 +1093,8 @@ public class Cameradetail {
|
||||
|
||||
if (Capturing.get()) {
|
||||
try{
|
||||
if (mGrabber==null) continue;
|
||||
if (mGrabber==null) throw new Exception("Grabber is null");
|
||||
|
||||
frame = mGrabber.grab();
|
||||
} catch (Exception e){
|
||||
if (Capturing.get()){
|
||||
|
||||
Reference in New Issue
Block a user