face-recognition-javascript's People
Forkers
umarabdullahi bananaborane mehamasum likejean kolimar rsandagon logiticks-github manloeng wenh123 aravindumasankar sagarb96 davidcorney will-nickson dds-nakamura rihananan mciver joeblaze-1996 houcy nnd-ev sheland seattleacademy josephcheok swapnilei medjawad vishalshinde-tangibletech waqar300 iamsouravgolui marceluphd isaac-rabin needfulthings fiantinangon iroshranasinghe jayanprabodha roykrish983 wantero bikramswain1992 ct3huang xuanph riyaz0001 saibabanadh stephanberger ztymcr leemyung-dev peter-khmz pratikmehta1729 cha53c annminn100 ericbashir cd10anil mebon uwon0625 amitagarwalaa57 zaw-hlaing-bwar zuhairnaqi anik-datta dodziraynard tdnghia020 sebacampos hatskier gianlucacerutti vinhnotes merritt212 floreadm sahabudin wwluo-1024 ozaki149 samkhan360 dhanushkaf chris113377 tejas-code mirceadani stanleytorres antoniaksander trivedisorabh f3dration nlgrf bagginz khamdan pheephee volumetric depjoti alanbaban91 neetansharma19 stillbad nypli sanoj-v adesignsm vikitaotiz huukhoa1412 jorgegam charlie8888 gameintasin305 biranchi2018 rahilshaikhji coder135792468 kburaky fortheskyking amolsangar mlsmadrid qazi112face-recognition-javascript's Issues
detections.lenght is undefined
After loading the photo, and using the document.body.append(detections.lenght)
it returns undefined
Weight map to be a tensor 4d
How do I run this app?
I installed all the packages and dependencies with sudo npm install -g nodemon
. Then when I want to run the project with node script.js
, this is what I get:
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /Users/username/Downloads/Face-Recognition-JavaScript-master/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/Users/username/Downloads/Face-Recognition-JavaScript-master/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/username/.npm/_logs/2020-08-24T06_01_03_368Z-debug.log
username@Users-MBP Face-Recognition-JavaScript-master % node script.js
/Users/username/Downloads/Face-Recognition-JavaScript-master/script.js:1
const imageUpload = document.getElementById('imageUpload')
^
ReferenceError: document is not defined
at Object.<anonymous> (/Users/username/Downloads/Face-Recognition-JavaScript-master/script.js:1:21)
at Module._compile (internal/modules/cjs/loader.js:1133:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
at Module.load (internal/modules/cjs/loader.js:977:32)
at Function.Module._load (internal/modules/cjs/loader.js:877:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
at internal/main/run_main_module.js:18:47
How do I run this app?
Download returned Image
@WebDevSimplified Is it possible to combine the image and the detection canvas together? I have tried to use multiple libraries, however, not been able to figure out a solution.
Goal: Download returned image that contains the image as well the detections
Cannot read property 'descriptor' of undefined
Hii,
I added new folder name
const labels = ['Black Widow', 'Captain America', 'Captain Marvel', 'Hawkeye', 'Jim Rhodes', 'Thor', 'Tony Stark','Bhaiya']
It has 2 images 1.jpg
, 2.jpg
After adding this in labels, page is showing error in console.log
script.js:46 Uncaught (in promise) TypeError: Cannot read property 'descriptor' of undefined at script.js:46 at async Promise.all (/tensorflow-web/index 7) at async start (script.js:13)
what is wrong i am doing, here is the entire function-
function loadLabeledImages() {
const labels = ['Black Widow', 'Captain America', 'Captain Marvel', 'Hawkeye', 'Jim Rhodes', 'Thor', 'Tony Stark','Bhaiya']
return Promise.all(
labels.map(async label => {
const descriptions = []
for (let i = 1; i <= 2; i++) {
const img = await faceapi.fetchImage(`labeled_images/${label}/${i}.jpg`)
const detections = await faceapi.detectSingleFace(img).withFaceLandmarks().withFaceDescriptor()
descriptions.push(detections.descriptor)
}
return new faceapi.LabeledFaceDescriptors(label, descriptions)
})
)
}
error running app
fantastic job overall. videos look great and code is quite readable!
but when i try to run your code as is, it gives me an error on loading the mode-weight-manifest. any ideas how to solve this or what can be the issue?
this blocks both examples of webcam as well as this example copy and run.
faceapi.detectAllFaces(...).withFaceLandmarks(...).withFaceDescripitors is not a function
I choose a image,then chrome say:
faceapi.detectAllFaces(...).withFaceLandmarks(...).withFaceDescripitors is not a function.
Is there something wrong.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.