Skip to content

Commit

Permalink
formatting code
Browse files Browse the repository at this point in the history
  • Loading branch information
kalwalt committed Dec 3, 2024
1 parent 99c3658 commit 74d2fcf
Show file tree
Hide file tree
Showing 3 changed files with 474 additions and 418 deletions.
2 changes: 1 addition & 1 deletion src/Workers/WebARKitCVWorkers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class WebARKitCVOrbWorker extends AbstractWebARKitCVWorker {
});
this.worker.onmessage = (ev: any) => {
var msg = ev.data;
console.log(msg)
console.log(msg);
switch (msg.type) {
case "found": {
this.found(msg);
Expand Down
14 changes: 12 additions & 2 deletions src/core/WebARKitCoreCV.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,19 @@ export class WebARKitCoreCV {
//let mat1 = cv.matFromArray(points1.length, 2, cv.CV_32F, points1);
//let mat2 = cv.matFromArray(points2.length, 2, cv.CV_32F, points2); //32FC2

var mat1 = new this.cv.matFromArray(points1.length, 1, this.cv.CV_32FC3, points1.flat());
var mat1 = new this.cv.matFromArray(
points1.length,
1,
this.cv.CV_32FC3,
points1.flat(),
);
//mat1.data32F.set(points1);
var mat2 = new this.cv.matFromArray(points2.length, 1, this.cv.CV_32FC2, points2.flat());
var mat2 = new this.cv.matFromArray(
points2.length,
1,
this.cv.CV_32FC2,
points2.flat(),
);
//mat2.data32F.set(points2);
console.log("mat1: ", mat1, "mat2: ", mat2);

Expand Down
Loading

0 comments on commit 74d2fcf

Please sign in to comment.