Skip to content

Commit

Permalink
fix: depth image does not have to be same type than raw image
Browse files Browse the repository at this point in the history
  • Loading branch information
Maximvdw committed Nov 28, 2023
1 parent b04f729 commit a0383ff
Show file tree
Hide file tree
Showing 10 changed files with 7,460 additions and 3,862 deletions.
2 changes: 2 additions & 0 deletions examples/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
common/*
!common/.gitkeep
Empty file added examples/common/.gitkeep
Empty file.
23 changes: 23 additions & 0 deletions examples/web/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<title>@openhps/video - Basic Example</title>
</head>
<body>
<script type="module">
import { ModelBuilder, DataSerializer, DataObject } from '../common/openhps-core.es.js';
import { CameraObject } from '../common/openhps-video.es.js';

ModelBuilder.create()
.from()
.to()
.build().then(model => {
console.log(model);
const abc = new DataObject("test");
console.log(abc);
const object = new CameraObject("test");
console.log(DataSerializer.serialize(object));
}).catch(console.error);
</script>
</body>
</html>

0 comments on commit a0383ff

Please sign in to comment.