WICG / shape-detection-api

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

Add toJSON to DetectedText #47

Closed beaufortfrancois closed 6 years ago

beaufortfrancois commented 6 years ago

This PR makes DetectedText interface serializable so that it can easily be transferred from workers.

beaufortfrancois commented 6 years ago

R: @yellowdoge

domenic commented 6 years ago

This is incorrect; JSON serialization is unrelated to structured serialization.

beaufortfrancois commented 6 years ago

You're right. I've learnt this today. I'm in the process of writing a CL to make Detected{Text,Face,Barcode} serializable for real.