justadudewhohacks / face-api.js

JavaScript API for face detection and face recognition in the browser and nodejs with tensorflow.js
MIT License
16.69k stars 3.71k forks source link

Error when detecting face #647

Open ScottDellinger opened 4 years ago

ScottDellinger commented 4 years ago

Occassionally, we receive an error when attempting to detect a face in a still image, we receive the following error:

Uncaught (in promise) Error: Box.constructor - expected box to be IBoundingBox | IRect, instead have {"left":211.82223243423,"top":188.34445656565,"right":299.35465223232,"bottom":null} at BoundingBox.Box at new BoundingBox at minBbox at FaceLandmarks68.FaceLandmarks.alignMinBbox ...

It appears that it's missing a value for the bottom of a bounding box, but I'm not sure why. Any suggestions?

felipebutcher commented 3 years ago

I was having this error when running the html served in a node environment. Running it from traditional apache works fine.

ha6755ad commented 3 years ago

Hi @ScottDellinger Did you ever manage to find a solution for this issue?

ScottDellinger commented 3 years ago

Hi @ScottDellinger Did you ever manage to find a solution for this issue?

No... I stopped using this library because it's been abandoned and we found the models it was trained with did not perform well on Asian or Middle Eastern faces. There is a more active fork of it, though.

Ghos1ware commented 1 year ago

Hi @ScottDellinger Did you ever manage to find a solution for this issue?

No... I stopped using this library because it's been abandoned and we found the models it was trained with did not perform well on Asian or Middle Eastern faces. There is a more active fork of it, though.

Can you share the link ? Can't seem to find anything active.

ScottDellinger commented 1 year ago

Hi @ScottDellinger Did you ever manage to find a solution for this issue?

No... I stopped using this library because it's been abandoned and we found the models it was trained with did not perform well on Asian or Middle Eastern faces. There is a more active fork of it, though.

Can you share the link ? Can't seem to find anything active.

https://github.com/vladmandic/face-api

Ghos1ware commented 1 year ago

Hi @ScottDellinger Did you ever manage to find a solution for this issue?

No... I stopped using this library because it's been abandoned and we found the models it was trained with did not perform well on Asian or Middle Eastern faces. There is a more active fork of it, though.

Can you share the link ? Can't seem to find anything active.

https://github.com/vladmandic/face-api

Thank you Scott! ;)

rubaiyet-anjum commented 7 months ago

Hi @ScottDellinger Did you ever manage to find a solution for this issue?

No... I stopped using this library because it's been abandoned and we found the models it was trained with did not perform well on Asian or Middle Eastern faces. There is a more active fork of it, though.

Can you share the link ? Can't seem to find anything active.

https://github.com/vladmandic/face-api

Thanks as well ☺️