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

Add toJSON to DetectedText #47

Closed beaufortfrancois closed 5 years ago

beaufortfrancois commented 5 years ago

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

beaufortfrancois commented 5 years ago

R: @yellowdoge

domenic commented 5 years ago

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

beaufortfrancois commented 5 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.