Created
January 13, 2022 19:45
-
-
Save antoinecourtin/d057e6964bb5e014911708a664901c7e to your computer and use it in GitHub Desktop.
Autogenerated from www.imagegraph.cc, My sketch title
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"caption":"My sketch title","offset":{"x":0,"y":0},"nodes":{"81000df6-506b-4187-8009-2627a6171b20":{"id":"81000df6-506b-4187-8009-2627a6171b20","position":{"x":362,"y":203},"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"}},"b880d68c-e354-4432-ad22-c52921787ae6":{"id":"b880d68c-e354-4432-ad22-c52921787ae6","position":{"x":673,"y":184},"type":"getRGB","ports":{"port1":{"id":"port1","type":"top","properties":{"type":"imL"},"position":{"x":24,"y":-12}},"port2":{"id":"port2","type":"bottom","properties":{"type":"fL"},"position":{"x":24,"y":59}},"port3":{"id":"port3","type":"bottom","properties":{"type":"fL"},"position":{"x":90,"y":59}},"port4":{"id":"port4","type":"bottom","properties":{"type":"fL"},"position":{"x":156,"y":59}}},"properties":{"text":"Extracts the average R, G, B color values for each image given. ","form":"none"}},"8cba927f-3c60-4a9c-b339-eb506ea410e3":{"id":"8cba927f-3c60-4a9c-b339-eb506ea410e3","position":{"x":784,"y":325},"type":"scatterPlot","ports":{"port1":{"id":"port1","type":"top","properties":{"type":"fL"},"position":{"x":24,"y":-12}},"port2":{"id":"port2","type":"top","properties":{"type":"fL"},"position":{"x":156,"y":-12}}},"properties":{"text":"A simple x-y plot. ","form":"none"}}},"selected":{"type":"node","id":"b880d68c-e354-4432-ad22-c52921787ae6"},"links":{"e5f7f889-0b7d-4e6e-afad-b74a9ba05ec6":{"id":"e5f7f889-0b7d-4e6e-afad-b74a9ba05ec6","from":{"nodeId":"81000df6-506b-4187-8009-2627a6171b20","portId":"port1"},"to":{"nodeId":"b880d68c-e354-4432-ad22-c52921787ae6","portId":"port1"}},"35a16cd3-0032-4eec-8a0e-ed1dd54fa72a":{"id":"35a16cd3-0032-4eec-8a0e-ed1dd54fa72a","from":{"nodeId":"b880d68c-e354-4432-ad22-c52921787ae6","portId":"port1"},"to":{"position":{"x":764,"y":243}}},"90097778-2426-45bf-adb5-dc42b722b3ec":{"id":"90097778-2426-45bf-adb5-dc42b722b3ec","from":{"nodeId":"b880d68c-e354-4432-ad22-c52921787ae6","portId":"port2"},"to":{"nodeId":"8cba927f-3c60-4a9c-b339-eb506ea410e3","portId":"port1"}},"0a00fcb6-74bd-45f5-a0e7-ab9e536a8672":{"id":"0a00fcb6-74bd-45f5-a0e7-ab9e536a8672","from":{"nodeId":"b880d68c-e354-4432-ad22-c52921787ae6","portId":"port3"},"to":{"nodeId":"8cba927f-3c60-4a9c-b339-eb506ea410e3","portId":"port2"}}},"hovered":{}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ "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\") \nfL01,fL02,fL03 = ig.getRGB(imL00) \n_ = ig.scatterPlot(fL01,fL02) " ], "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