Skip to content

Commit 16f6822

Browse files
committed
same result as old code
1 parent b63e7df commit 16f6822

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

dist/webarkitCV.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Workers/Worker.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ ctx.addEventListener("loaded", (e: any) => {
4545
console.log(e)
4646
ocv = e.detail.CV;
4747
//process(_msg);
48-
ocv.track(_msg);
48+
markerResult= ocv.track(_msg);
49+
ctx.postMessage(markerResult);
4950
});
5051

5152
const process = (msg: any) => {
@@ -57,6 +58,8 @@ const process = (msg: any) => {
5758

5859
markerResult = ocv.track(msg);
5960
}
61+
console.log(markerResult);
62+
6063

6164
if (markerResult != null) {
6265
ctx.postMessage(markerResult);

0 commit comments

Comments
 (0)