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
  Art Project including face detection, screenshot and Face TEXTURE MAP ecaillerose 1 772 Oct-15-2024, 01:55 PM
Last Post: DPaul
  Face detector project? korenron 5 3,549 Jul-24-2024, 08:32 AM
Last Post: jamesmartinsjtdd
  python not detected on computer adriennn 3 5,052 Nov-18-2023, 02:46 PM
Last Post: snippsat
  Using .pb saved model for object detection hobbyist 2 1,945 Aug-03-2022, 05:55 AM
Last Post: hobbyist
  (OpenCV) Help to improve code for object detection and finding center of it saoko 0 2,052 May-14-2022, 05:34 PM
Last Post: saoko
  How to zoom on/follow MOUTH in FACE? (OPENCV Face Detection) buzzdarkyear 2 2,610 Jan-12-2022, 12:31 AM
Last Post: buzzdarkyear
  How to crop eyes/nose/mouth in the face only? [OpenCV] buzzdarkyear 0 3,173 Jan-11-2022, 01:41 PM
Last Post: buzzdarkyear
  Improves performance on socket multi-threaded servers for object detection pennant 1 2,668 Aug-31-2021, 08:43 AM
Last Post: Larz60+
  My .exe made using Python being detected as a virus 100grassfed 2 4,192 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 7,609 May-02-2021, 03:45 PM
Last Post: Anldra12

Forum Jump:

User Panel Messages

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