X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=benchmarks%2FJava%2FSmartLightsController%2FMotionDetection.java;h=84913186479c51f531299fd8fb5a297a4791c739;hb=258a0230ed01ad0927ed54d37aafa3dd37da5af0;hp=3c9567f1e238a6d5e1471be2f971f01066332747;hpb=3e3e0d0e468e7f791963c1c14e06966563d3f65c;p=iot2.git diff --git a/benchmarks/Java/SmartLightsController/MotionDetection.java b/benchmarks/Java/SmartLightsController/MotionDetection.java index 3c9567f..8491318 100644 --- a/benchmarks/Java/SmartLightsController/MotionDetection.java +++ b/benchmarks/Java/SmartLightsController/MotionDetection.java @@ -260,7 +260,7 @@ class MotionDetection implements CameraCallback { public void newCameraFrameAvailable(byte[] latestFrame, long timeStamp) { //public void newCameraFrameAvailable(CameraSmart _camera) { BufferedImage img = null; - + //byte[] newImg = _camera.getLatestFrame(); try { //InputStream in = new ByteArrayInputStream(_camera.getLatestFrame()); @@ -286,7 +286,7 @@ class MotionDetection implements CameraCallback { // timestamp from camera into timestamp buffer long dateLong = timeStamp; //long dateLong = _camera.getTimestamp(); - //System.out.println("dateLong: " + dateLong + " - newImage size: " + newImg.length); + //System.out.println("DEBUG: New image at time: " + dateLong); possibleDate = new Date(dateLong); imageWriteLock.unlock(); // Never forget to unlock