iiif_stuff

Face detection

This uses the excellent Annotorious annotation tool from Recogito in combination with face-api.js to detect faces in IIIF images in the browser.

Implementation Notes

Annotorious integrates into Openseadragon which is one of the IIIF Image API viewers.

The face-api.js uses a JavaScript version of tenserflow and in this version a Single Shot Multibox Detector machine learning model to identify faces and return x,y,width,heigh in the image. My code then converts them to W3C annotations and passes them to Annotorious to draw them on to Openseadragon.

Try a IIIF Image

Try your own IIIF Image URL (URL should end with info.json):

Examples

This isn’t a perfect solution but does work on the following images:

The results for the following are not so great: