Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to change the circle to square and take the photo by its coordinate? #28

Open
Primtek-Dev opened this issue Jan 8, 2020 · 1 comment

Comments

@Primtek-Dev
Copy link

how to change the circle to square and take the photo by its coordinate?

@VanMesure
Copy link

There is a line of code at "/picojs/examples/webcam.html", line 94
ctx.arc(dets[i][1], dets[i][0], dets[i][2]/2, 0, 2*Math.PI, false);

Replace this line with this:
ctx.strokeRect(dets[i][1] - dets[i][2]/2, dets[i][0] - dets[i][2]/2, dets[i][2], dets[i][2]);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants