Change rendering and fix minor bug
Change-Id: Ibc5f1b6785b71d18940f9e8868f8b4dbb2ba4e5f
diff --git a/person_detection/base_camera.py b/person_detection/base_camera.py
index e97dca2..b8fa47c 100644
--- a/person_detection/base_camera.py
+++ b/person_detection/base_camera.py
@@ -39,6 +39,7 @@
BaseCamera.process[self.device].start()
# wait until frames are available
_ = self.get_frame()
+ log.info("Start camera {} feed to {}".format(self.device, self.client))
def get_frame(self):
"""Return the current camera frame."""
@@ -65,7 +66,7 @@
BaseCamera.activity_counter.value += 1
BaseCamera.lock.release()
self.set_resolution_high()
- if self.noroc is True:
+ if not self.noroc:
roc.set_mbr(self.key, self.devicegroup, self.mbrhigh)
self.detected = True
self.start_timer()
@@ -78,7 +79,7 @@
if BaseCamera.activity_counter.value <= 0:
BaseCamera.activity_counter.value = 0
self.set_resolution_low()
- if self.noroc is True:
+ if not self.noroc:
roc.set_mbr(self.key, self.devicegroup, self.mbrlow)
BaseCamera.lock.release()