Giter Site home page Giter Site logo

face-web-components-samples's Introduction

Table of сontents

  1. About
  2. CDN sample
  3. Webpack sample
  4. React typescript
  5. Angular sample
  6. CodePen samples

About

This repository contains examples of using @regulaforensics/vp-frontend-face-components.

CDN sample

The cdn folder contains an example of using the component when connecting a package via a cdn link.

Adding a package:

Connect the package to your .html file using the CDN link: unpkg.com/:package@:version/:file

<!-- Replace <VERSION> with the package version -->
<script src="https://unpkg.com/@regulaforensics/vp-frontend-face-components@<VERSION>/dist/main.js"></script>

Add the name of the component tag to the html code.

Webpack sample

The webpack folder contains an example of using components with Webpack.

Example installation

Clone this repository then go to the webpack/<component-name> folder and install the dependencies:

npm i

Build a project:

npm run build

The project files will be located in the build folder.

Development mode:

npm run serve

React typescript

The react-ts/<component-name> folder contains an example of using a component with react and typescript.

Example installation

Follow the steps as in Webpack sample.

Angular sample

The angular/<component-name> folder contains an example of using a component with Angular.

Example installation

Follow the steps as in Webpack sample.

CodePen samples

Face detection component

https://codepen.io/regulaforensics/pen/zYdParM

Face liveness component

https://codepen.io/regulaforensics/pen/pordKzd

face-web-components-samples's People

Contributors

aliaksandrsnitko avatar inspector-code avatar ivan-gil avatar sergeyilchenko avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

amyzheng424

face-web-components-samples's Issues

Face capture

hello,

I did some tests using the face capture component and in some cases opening it on my cell phone, the component did not load correctly (the mockup did not appear). Could anyone help me with this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.