Skip to content

Instantly share code, notes, and snippets.

@antoinecourtin
Created January 13, 2022 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antoinecourtin/662e7b82d063d2be9743e9368b4ad0b1 to your computer and use it in GitHub Desktop.
Save antoinecourtin/662e7b82d063d2be9743e9368b4ad0b1 to your computer and use it in GitHub Desktop.
Autogenerated from www.imagegraph.cc, My sketch title
{"caption":"My sketch title","offset":{"x":0,"y":0},"nodes":{"b8568e2f-c48d-4434-9ac8-d452fb7305a2":{"id":"b8568e2f-c48d-4434-9ac8-d452fb7305a2","position":{"x":535,"y":133},"type":"loadIIIFManifest","ports":{"port1":{"id":"port1","type":"bottom","properties":{"type":"imL"},"position":{"x":24,"y":106}}},"properties":{"text":"Loads a IIIF manifest. Paste in any IIIF manifest URL, which you can get from most libraries. ","form":"string","innerDefault":"https://iiif.bodleian.ox.ac.uk/iiif/manifest/e32a277e-91e2-4a6d-8ba6-cc4bad230410.json","viewer":"https://universalviewer.io/uv.html?manifest=","innerValue":"https://iiif.bodleian.ox.ac.uk/iiif/manifest/e32a277e-91e2-4a6d-8ba6-cc4bad230410.json"}},"89a49a2a-bf08-4ada-aef3-0d3a3dd428d8":{"id":"89a49a2a-bf08-4ada-aef3-0d3a3dd428d8","position":{"x":335,"y":247},"type":"detectFaces","ports":{"port1":{"id":"port1","type":"top","properties":{"type":"imL"},"position":{"x":24,"y":-12}},"port2":{"id":"port2","type":"bottom","properties":{"type":"imL"},"position":{"x":24,"y":59}}},"properties":{"text":"Uses the DLIB face detector to extract images of faces. ","form":"none"}},"910ac9c3-fefa-4f7e-a7a6-1a5c4c8b1eb6":{"id":"910ac9c3-fefa-4f7e-a7a6-1a5c4c8b1eb6","position":{"x":778,"y":363},"type":"radialScatterImages","ports":{"port1":{"id":"port1","type":"top","properties":{"type":"imL"},"position":{"x":24,"y":-12}},"port2":{"id":"port2","type":"top","properties":{"type":"fL"},"position":{"x":90,"y":-12}},"port3":{"id":"port3","type":"top","properties":{"type":"fL"},"position":{"x":156,"y":-12}}},"properties":{"text":"A *direct visualization* of an image list on radial axes. ","form":"none"}},"5ac0464d-61b7-4863-8165-2c921e8181f5":{"id":"5ac0464d-61b7-4863-8165-2c921e8181f5","position":{"x":486,"y":362},"type":"showAllImages","ports":{"port1":{"id":"port1","type":"top","properties":{"type":"imL"},"position":{"x":24,"y":-12}}},"properties":{"text":"Show a 3x3 grid of images. ","form":"none"}}},"selected":{"type":"node","id":"89a49a2a-bf08-4ada-aef3-0d3a3dd428d8"},"links":{"8292273c-da41-4422-8068-2e7bc48ba008":{"id":"8292273c-da41-4422-8068-2e7bc48ba008","from":{"nodeId":"b8568e2f-c48d-4434-9ac8-d452fb7305a2","portId":"port1"},"to":{"nodeId":"89a49a2a-bf08-4ada-aef3-0d3a3dd428d8","portId":"port1"}},"32705f9b-014f-4bad-9dd8-8db0e2f3ed74":{"id":"32705f9b-014f-4bad-9dd8-8db0e2f3ed74","from":{"nodeId":"89a49a2a-bf08-4ada-aef3-0d3a3dd428d8","portId":"port2"},"to":{"nodeId":"910ac9c3-fefa-4f7e-a7a6-1a5c4c8b1eb6","portId":"port1"}},"0f09d190-b6ca-4c8c-858a-1bde3f445e40":{"id":"0f09d190-b6ca-4c8c-858a-1bde3f445e40","from":{"nodeId":"89a49a2a-bf08-4ada-aef3-0d3a3dd428d8","portId":"port2"},"to":{"nodeId":"5ac0464d-61b7-4863-8165-2c921e8181f5","portId":"port1"}}},"hovered":{}}
Display the source blob
Display the rendered blob
Raw
{ "nbformat": 4, "nbformat_minor": 0, "metadata": { "colab": { "name": "ImageGraph.ipynb", "version": "0.3.2", "provenance": [], "collapsed_sections": [] }, "kernelspec": { "name": "python3", "display_name": "Python 3" } }, "cells": [ { "cell_type": "code", "metadata": { "id": "gsUbIGfNqSjV", "colab_type": "code", "colab": { "base_uri": "https://localhost:8080/", "height": 34 }, "outputId": "a306f9c8-c721-4280-fba4-f175cffa7090" }, "source": [ " # Remember to install the imagegraph Python library thus:\n!pip install git+https:\/\/github.com\/leoimpett\/pyimagegraph\nimport imagegraph as ig\nimL00 = ig.loadIIIFManifest(\"https:\/\/iiif.bodleian.ox.ac.uk\/iiif\/manifest\/e32a277e-91e2-4a6d-8ba6-cc4bad230410.json\") \nimL01 = ig.detectFaces(imL00) \n_ = ig.showAllImages(imL01) " ], "execution_count": 0, "outputs": [ { "output_type": "stream", "text": [ " " ], "name": "stdout" } ] } ]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment