You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

constants.js 611B

1234567891011121314151617181920
  1. /**
  2. * Type of message sent from main thread to worker that contain image data and
  3. * will trigger a response message from the worker containing the detected face(s) bounding box if any.
  4. */
  5. export const DETECT_FACE_BOX = 'DETECT_FACE_BOX';
  6. /**
  7. * Type of event sent on the data channel.
  8. */
  9. export const FACE_BOX_EVENT_TYPE = 'face-box';
  10. /**
  11. * Type of message sent from the worker to main thread that contains a face box or undefined.
  12. */
  13. export const FACE_BOX_MESSAGE = 'face-box';
  14. /**
  15. * Miliseconds interval value for sending new image data to the worker.
  16. */
  17. export const SEND_IMAGE_INTERVAL_MS = 100;