WICG / shape-detection-api

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

Change detection result types to dictionaries #86

Closed reillyeon closed 4 years ago

reillyeon commented 4 years ago

As shape detection results are data without behavior they do not need to be interfaces. The advantage of dictionary types is that they are automatically serializable, thus reducing implementation burden. They also don't pollute the global namespace with useless types.

This ends up resolving #65 by making all the other types match Landmark.


Preview | Diff