Customization Options for Older Versions (before 1.0.1)

To set your own look-and-feel options, use the style section in the Ozliveness.open method. Here is what you can change:

  • faceFrame – the color of the frame around a face:

    • faceReady – the frame color when the face is correctly placed within the frame;

    • faceNotReady – the frame color when the face is placed improperly and can't be analyzed.

  • centerHint – the text of the hint that is displayed in the center.

    • textSize – the size of the text;

    • color – the color of the text;

    • yPosition – the vertical position measured from top;

    • letterSpacing – the spacing between letters;

    • fontStyle – the style of font (bold, italic, etc.).

  • closeButton – the button that closes the plugin:

    • image – the button image, can be an image in PNG or dataURL in base64.

  • backgroundOutsideFrame – the color of the overlay filling (outside the frame):

    • color – the fill color.

Example:

OzLiveness.open({
  // ...
  style: {
        // the backward compatibility block
    doc_color: "", 
    face_color_success: "",
    face_color_fail: "", 
	// the current customization block
    faceFrame: {
      faceReady: "",
      faceNotReady: "",
    },
    centerHint: {
      textSize: "",
      color: "",
      yPosition: "",
      letterSpacing: "", 
      fontStyle: "", 
    },
    closeButton: {
      image: "",
    },
    backgroundOutsideFrame: {
      color: "", 
    },
  },
  // ...
});

Last updated