Skip to content

Added Face detection Module - #1597

Draft
ataata107 wants to merge 6 commits into
publiclab:mainfrom
ataata107:face-detection
Draft

Added Face detection Module#1597
ataata107 wants to merge 6 commits into
publiclab:mainfrom
ataata107:face-detection

Conversation

@ataata107

@ataata107 ataata107 commented Jan 29, 2020

Copy link
Copy Markdown

Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!
ezgif com-video-to-gif

This Module doesn't make the use of opencv as discussed

  • tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR -- or run tests locally with npm run test-all
  • code is in uniquely-named feature branch and has no merge conflicts
  • PR is descriptively titled
  • ask @publiclab/is-reviewers for help, in a comment below
  • Insert-step functionality is working correct as expected.

We're happy to help you get this ready -- don't be afraid to ask for help, and don't be discouraged if your tests fail at first!

If tests do fail, click on the red X to learn why by reading the logs.

Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software
Please make sure to get at least two reviews before asking for merging the PR as that would make the PR more reliable on our part
Thanks!

@ataata107
ataata107 requested a review from jywarren January 29, 2020 14:46
@ataata107

Copy link
Copy Markdown
Author

@publiclab/is-reviewers

@rishabhshuklax

Copy link
Copy Markdown
Member

@ataata107 why are the tests failing?

color = 'rgba(20,20,20,1)';
color = color.substring(color.indexOf('(') + 1, color.length - 1); // Extract only the values from rgba(_,_,_,_)
color = color.split(',');
fetch(cascadeurl).then(function(response) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe because of this the tests are failing, also does it work in node?
You could either install fetch for node from npm or use axios.
why is this used anyways?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ya this could be the reason, I will try to fetch it locally rather than from internet. It is used to fetch the trained model file which would be used to infer the face location

@gitpod-io

gitpod-io Bot commented Jul 7, 2020

Copy link
Copy Markdown

@codecov

codecov Bot commented Jul 7, 2020

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 31.25000% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 65.21%. Comparing base (853e719) to head (0ce0894).
⚠️ Report is 387 commits behind head on main.

Files with missing lines Patch % Lines
src/modules/FaceDetection/Module.js 26.66% 11 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1597      +/-   ##
==========================================
- Coverage   66.67%   65.21%   -1.47%     
==========================================
  Files         130      134       +4     
  Lines        2686     2757      +71     
  Branches      433      438       +5     
==========================================
+ Hits         1791     1798       +7     
- Misses        895      959      +64     
Files with missing lines Coverage Δ
src/Modules.js 100.00% <ø> (ø)
src/modules/FaceDetection/index.js 100.00% <100.00%> (ø)
src/modules/FaceDetection/Module.js 26.66% <26.66%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@harshkhandeparkar
harshkhandeparkar marked this pull request as draft July 27, 2021 21:24
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

Successfully merging this pull request may close these issues.

3 participants