Python Forum
Object Detection that records the number of secs the face is not detected
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Object Detection that records the number of secs the face is not detected
#1
Hello can someone help me in coding,

I don't know how I can create a program that will record the number of seconds that the object is not detected.
Reply
#2
import time
import recognition # ...I guess?

start = time.time()
face = recognition.Facial()

while not face.detected():
   time.sleep(0.01)

print("It took {0} seconds.".format(time.time() - start))
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  python not detected on computer adriennn 3 1,321 Nov-18-2023, 02:46 PM
Last Post: snippsat
  Using .pb saved model for object detection hobbyist 2 1,269 Aug-03-2022, 05:55 AM
Last Post: hobbyist
  (OpenCV) Help to improve code for object detection and finding center of it saoko 0 1,299 May-14-2022, 05:34 PM
Last Post: saoko
  How to zoom on/follow MOUTH in FACE? (OPENCV Face Detection) buzzdarkyear 2 1,894 Jan-12-2022, 12:31 AM
Last Post: buzzdarkyear
  How to crop eyes/nose/mouth in the face only? [OpenCV] buzzdarkyear 0 2,273 Jan-11-2022, 01:41 PM
Last Post: buzzdarkyear
  Improves performance on socket multi-threaded servers for object detection pennant 1 2,021 Aug-31-2021, 08:43 AM
Last Post: Larz60+
  My .exe made using Python being detected as a virus 100grassfed 2 3,171 Jun-16-2021, 04:41 AM
Last Post: buran
  TypeError: int() argument must be a string, a bytes-like object or a number, not 'Non Anldra12 2 5,419 May-02-2021, 03:45 PM
Last Post: Anldra12
  Face detector project? korenron 2 2,213 Mar-24-2021, 03:43 PM
Last Post: korenron
  Object detection on ground via the use of geo/sat UAV images hobbyist 2 2,198 Jan-23-2021, 11:57 PM
Last Post: hobbyist

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020