WICG / shape-detection-api

Detection of shapes (faces, QR codes) in images
https://wicg.github.io/shape-detection-api
Other
303 stars 35 forks source link

Need `getSupportedLandmarks` function for FaceDetector #55

Closed tomayac closed 5 years ago

tomayac commented 5 years ago

Similar to supportedFormats in BarcodeDetector, I would like to motivate a similar feature tentatively named getSupportedLandmarks for the FaceDetector to communicate to the developer whether or not landmarks like eyes, mouth, nose, etc. are detectable; and if so, which of them.

As motivated in https://github.com/WICG/shape-detection-api/issues/54, it should actually be a static method.

tomayac commented 5 years ago

(Based on discussions with @surma and @reillyeon).

surma commented 5 years ago

Additionally: Android currently gives you a point for eyes, nose, mouth etc, while MacOS seems* to give you the actual outline. Would be great if I knew this information ahead of time as it might require me to load different code.

(* Not 100% sure as it’s currently broken in Chrome Canary)

tomayac commented 5 years ago

Oops, this is actually a duplicate of https://github.com/WICG/shape-detection-api/issues/53. Not sure how I overlooked it, sorry.