Closed siddmegadeth closed 4 years ago
await faceapi.detectSingleFace(obj, new faceapi.SsdMobilenetv1Options()).withAgeAndGender();
The obj
variable you are passing into the api is not a valid input, it should either be a HTMLImageElement or a Tensor. You are just passing some self assembled javascript object in there in your code example. That's why you receive the error.
If possible can you pls help me out with creating a Obj which can be captured via device camera so that i can upload it to backend via REST API. some documentation would be appreciated for Apache Cordova based system. This Project is such a GEM . We are having limited knowledge in ML and has tried all methods to make it work. Maybe some leads would be appreciated
If your goal is to fetch an image from an URI, take a look at this codesnippet provided by the README.
Module For Face/Age/gender Detection Not Loading In Browser from a URI
Issue : I am not able to load the module correctly for Age/gender detection using Http request. I am using express in the backend and i cannot use 15mb of file all the time. However i only need 1 model for my requirements . Due to less documentation i am not able to identify which model to load on my front end for gender/age detection to minimise bandwidth usage and speed up app.
Please suggest.
Note : I am not using TypeScript . By Making your project in TypeScript is has made transition even harder as we do not require TS for anything. and the validation messsages might have worked when conversion oj Object at JS but due to TS it has made life harder here. We hoped to use Face APi but cannot continue lie this.
Error Message with Multer
Made Some Other Changes But does not work
If possible kindly look into it.