diff --git a/Readme.md b/README.md similarity index 76% rename from Readme.md rename to README.md index 94cb2735..49da9984 100644 --- a/Readme.md +++ b/README.md @@ -49,7 +49,26 @@ point mapping configuration. You can configure the mapping as shown below. ![Point Mapping Configuration](point_mapping.png) +### Examples + +#### Real-time Processing +Python client processing two CCTV videos (of Bandaranayake International Airport, Sri Lanka) +in parallel. All the detected people are mapped to the ground map and tracked. We +are capable of tracing across cameras as well. + +![Real-time Processing](real-time_processing.png) + +### Viewing Tracked Person Timelines + +Under *Time Line* tab, the paths followed by each individual is shown. You +can click on each path to see pictures of the person corresponding to the +selected path. + +(Note: this example timeline looks confusing because of the crowded test videos used) +![Time Line](timeline.png) + ## Contributors + * Madhawa Vidanapathirana - madhawa.13@cse.mrt.ac.lk * Imesha Sudasingha - imesha.13@cse.mrt.ac.lk * Pasindu Kanchana - pasindukanchana.13@cse.mrt.ac.lk diff --git a/core/src/main/java/org/augur/sense/core/CameraNotifier.java b/core/src/main/java/org/augur/sense/core/CameraNotifier.java index 275d7b74..5ad9a1f9 100644 --- a/core/src/main/java/org/augur/sense/core/CameraNotifier.java +++ b/core/src/main/java/org/augur/sense/core/CameraNotifier.java @@ -107,13 +107,14 @@ public void notifyCamera(long timestamp) { @Override public void completed(HttpResponse httpResponse) { + String entity = null; try { - String entity = HttpUtils.readEntity(httpResponse.getEntity()); + entity = HttpUtils.readEntity(httpResponse.getEntity()); LocalMap receivedMap = HttpUtils.mapEntity(entity, LocalMap.class); cameraCoordinator.addLocalMap(receivedMap); setState(State.IDLE); } catch (IOException e) { - logger.error("Error occurred when reading entity", e); + logger.error("Error occurred when reading entity: {}", entity, e); setState(State.IDLE); } } diff --git a/real-time_processing.png b/real-time_processing.png new file mode 100644 index 00000000..5a5a3685 Binary files /dev/null and b/real-time_processing.png differ diff --git a/timeline.png b/timeline.png new file mode 100755 index 00000000..dc6d8492 Binary files /dev/null and b/timeline.png differ