From 57f26c8d4afe5a38170f8712c36c5ed5f28d0f36 Mon Sep 17 00:00:00 2001 From: Endre Simo Date: Wed, 6 Feb 2019 13:43:07 +0200 Subject: [PATCH] Small changes --- examples/python/demo.py | 2 +- examples/python/pigo.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/python/demo.py b/examples/python/demo.py index 3343d32..be7b2f3 100644 --- a/examples/python/demo.py +++ b/examples/python/demo.py @@ -51,7 +51,7 @@ cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 480) # Changing the camera resolution introduce a short delay in the camera initialization. # For this reason we should delay the object detection process with a few milliseconds. -time.sleep(0.2) +time.sleep(0.4) while(True): ret, frame = cap.read() diff --git a/examples/python/pigo.go b/examples/python/pigo.go index 9bf06cc..6a267f8 100644 --- a/examples/python/pigo.go +++ b/examples/python/pigo.go @@ -51,7 +51,7 @@ func FindFaces(pixels []uint8) uintptr { s := *(*[]int)(unsafe.Pointer(&det)) p := uintptr(unsafe.Pointer(&s[0])) - // Ensure `det` is not freed by GC. + // Ensure `det` is not freed up by GC prematurely. runtime.KeepAlive(det) // return the pointer address pointCh <- p