Get started with clmtrackr CDN
MIT licensed
Clmtrackr: library for hand gesture recognition via webcam or video.
Tags:- track
- face
- array
Stable version
Copied!
How to start using clmtrackr CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with clmtrackr CDN - cdnhub.io</title>
<script src="https://cdn.jsdelivr.net/npm/clmtrackr@1.1.2/clmtrackr.min.js"></script>
<script src="https://cdn.cdnhub.io/clmtrackr/1.1.2/clmtrackr.min.js"></script>
<style>
#landmark-container { border: 1px solid black; }
</style>
</head>
<body>
<canvas id="landmarksCanvas" width="640" height="480"></canvas>
<div id="landmark-container"></div>
<script>
const canvas = document.getElementById('landmarksCanvas');
const context = canvas.getContext('2d');
const container = document.getElementById('landmark-container');
const clm = new clm.tracker({
solution: 'landmarks', // or 'faceolive' or 'face'
singleImage: true,
maxNumOfLandmarks: 10,
context: context,
container: container,
flipHorizontal: false
});
clm.load().then(function () {
const image = new Image();
image.src = 'path/to/your/image.jpg';
image.onload = function () {
clm.process(image);
};
});
</script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!