tnc-ca-geo / animl-api

Backend for https://animl.camera
Other
4 stars 0 forks source link

bake bboxes into images in alert emails #49

Open nathanielrindlaub opened 2 years ago

nathanielrindlaub commented 2 years ago

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

nathanielrindlaub commented 3 months 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