Skip to content

How to improve detections per second #106

Answered by vladmandic
Nekronik asked this question in Q&A
Discussion options

You must be logged in to vote
  • make sure that everything you don't need is disabled:
    body, hand, object, face.iris, face.description, face.emotion
  • try using smaller detector model
    `face.detector.modelPath = 'blazeface-front.json'
  • since there is only one face in video, you can be very aggressive with caching
    face.detector.skipFrames = 50
  • increase score thresholds as that can reduces some math:
    face.detector.scoreThreshold = 0.6
  • reduce input resolution:
    you could do it by setting filter.width and filter.height or even faster (by a tiny bit)
    you could completely disable filter and reduce size of input video to start with by setting constraints
    and then initializing video stream using navigator.mediaDevices.getUserMedia(c…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@Nekronik
Comment options

Answer selected by Nekronik
Comment options

You must be logged in to vote
5 replies
@Nekronik
Comment options

@vladmandic
Comment options

@Nekronik
Comment options

@vladmandic
Comment options

@vladmandic
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants