Open nathanielrindlaub opened 2 years ago
Some leads here on how we might do this with canvas: https://github.com/tnc-ca-geo/animl-frontend/issues/200
Looks like you can load the canvas API in node with an npm package: https://www.npmjs.com/package/canvas
Would have to draw the bbox on the image and then embed the image as base64 directly into the email.
Example Python code for how they do baked-in bounding box annotations in the MegaDetector repo: https://github.com/microsoft/CameraTraps/blob/5f0a558e3c923b99685ce2efa57d1bc92fc85de8/visualization/visualization_utils.py#L421