Skip to content

Instantly share code, notes, and snippets.

@leoimpett
Created August 21, 2022 15:53
Show Gist options
  • Save leoimpett/2ec1a1753232aa55ab2c46b14c05de92 to your computer and use it in GitHub Desktop.
Save leoimpett/2ec1a1753232aa55ab2c46b14c05de92 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":{"e001367b-46c9-4ddb-b453-b049cc73490f":{"id":"e001367b-46c9-4ddb-b453-b049cc73490f","position":{"x":405,"y":232},"type":"loadDropboxFolder","ports":{"port1":{"id":"port1","type":"bottom","properties":{"type":"imL"},"position":{"x":24,"y":107}}},"properties":{"text":"Loads a Dropbox folder (it should end in ?dl=0). This should be a folder which includes some images in standard formats (jpg, png, etc)","form":"string","innerDefault":"https://www.dropbox.com/s/qxdfncdakdzm9yu/BHRBuildingSamples.zip?dl=0","innerValue":"https://www.dropbox.com/s/qxdfncdakdzm9yu/BHRBuildingSamples.zip?dl=0"}},"4a932008-a4d6-4e3c-97e7-164fd5adb71b":{"id":"4a932008-a4d6-4e3c-97e7-164fd5adb71b","position":{"x":696,"y":542},"type":"scatterImages","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 an x-y grid. ","form":"none"}},"839e105d-5e35-4d5a-a0d8-20a63e86c93c":{"id":"839e105d-5e35-4d5a-a0d8-20a63e86c93c","position":{"x":765,"y":364},"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":60}},"port3":{"id":"port3","type":"bottom","properties":{"type":"fL"},"position":{"x":90,"y":60}},"port4":{"id":"port4","type":"bottom","properties":{"type":"fL"},"position":{"x":156,"y":60}}},"properties":{"text":"Extracts the average R, G, B color values for each image given. ","form":"none"}}},"selected":{"type":"node","id":"4a932008-a4d6-4e3c-97e7-164fd5adb71b"},"links":{"a9e5c4ae-6c58-4f0e-a114-70179ffdb53a":{"id":"a9e5c4ae-6c58-4f0e-a114-70179ffdb53a","from":{"nodeId":"839e105d-5e35-4d5a-a0d8-20a63e86c93c","portId":"port2"},"to":{"nodeId":"4a932008-a4d6-4e3c-97e7-164fd5adb71b","portId":"port2"}},"03a42b8d-eb34-4680-9a66-b95f7a61fe58":{"id":"03a42b8d-eb34-4680-9a66-b95f7a61fe58","from":{"nodeId":"839e105d-5e35-4d5a-a0d8-20a63e86c93c","portId":"port3"},"to":{"nodeId":"4a932008-a4d6-4e3c-97e7-164fd5adb71b","portId":"port3"}},"2a464a3c-3e3d-49a8-b080-f18dd651dde5":{"id":"2a464a3c-3e3d-49a8-b080-f18dd651dde5","from":{"nodeId":"e001367b-46c9-4ddb-b453-b049cc73490f","portId":"port1"},"to":{"nodeId":"839e105d-5e35-4d5a-a0d8-20a63e86c93c","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": [ " !pip install -q -U git+https:\/\/github.com\/leoimpett\/pyimagegraph\nimport imagegraph as ig\nimL00 = ig.loadDropboxFolder(\"https:\/\/www.dropbox.com\/s\/qxdfncdakdzm9yu\/BHRBuildingSamples.zip?dl=0\")\nfL01,fL02,fL03 = ig.getRGB(imL00) " ], "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