Skip to content

Commit

Permalink
same result as old code
Browse files Browse the repository at this point in the history
  • Loading branch information
kalwalt committed May 20, 2024
1 parent b63e7df commit 16f6822
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/webarkitCV.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion src/Workers/Worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ ctx.addEventListener("loaded", (e: any) => {
console.log(e)
ocv = e.detail.CV;
//process(_msg);
ocv.track(_msg);
markerResult= ocv.track(_msg);
ctx.postMessage(markerResult);
});

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

markerResult = ocv.track(msg);
}
console.log(markerResult);


if (markerResult != null) {
ctx.postMessage(markerResult);
Expand Down

0 comments on commit 16f6822

Please sign in to comment.