Skip to content

Commit

Permalink
check if homography is valid
Browse files Browse the repository at this point in the history
  • Loading branch information
kalwalt committed May 15, 2024
1 parent f864d03 commit 7821a1b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
12 changes: 7 additions & 5 deletions dist/src/Workers/Worker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/src/Workers/Worker.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/webarkitCV.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/Workers/Worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,10 @@ const track = async (msg: any) => {
if (template_keypoints.length >= ValidPointTotal) {
var homography = cv.findHomography(templateMat, frameMat, cv.RANSAC);
var valid;

valid = homographyValid(homography);
console.log(valid);

if (homographyValid(homography) === true) {
var out = fill_output(cv, homography, valid);
console.log("output from", out);
Expand Down

0 comments on commit 7821a1b

Please sign in to comment.