diff --git a/Accueil/1b674e61a80ffba4551514e3c3bd21f6.jpeg b/Accueil/1b674e61a80ffba4551514e3c3bd21f6.jpeg new file mode 100644 index 0000000..45be31b Binary files /dev/null and b/Accueil/1b674e61a80ffba4551514e3c3bd21f6.jpeg differ diff --git a/Accueil/2e3eaf15f5167789e672d3903cb5c741.jpeg b/Accueil/2e3eaf15f5167789e672d3903cb5c741.jpeg new file mode 100644 index 0000000..fceea8e Binary files /dev/null and b/Accueil/2e3eaf15f5167789e672d3903cb5c741.jpeg differ diff --git a/Accueil/3b8688fcd0cfdecf3264be8eab83d823.jpeg b/Accueil/3b8688fcd0cfdecf3264be8eab83d823.jpeg new file mode 100644 index 0000000..91134b0 Binary files /dev/null and b/Accueil/3b8688fcd0cfdecf3264be8eab83d823.jpeg differ diff --git a/Accueil/eb0604bf94cf18d3c1e9301cec881dcd.jpeg b/Accueil/eb0604bf94cf18d3c1e9301cec881dcd.jpeg new file mode 100644 index 0000000..5cccdba Binary files /dev/null and b/Accueil/eb0604bf94cf18d3c1e9301cec881dcd.jpeg differ diff --git a/Catégorie Portrait/2ca9bd75e1584ec763d565d448675a76.jpeg b/Catégorie Portrait/2ca9bd75e1584ec763d565d448675a76.jpeg new file mode 100644 index 0000000..207ab21 Binary files /dev/null and b/Catégorie Portrait/2ca9bd75e1584ec763d565d448675a76.jpeg differ diff --git a/Catégorie Portrait/bc275d82a7a748296ebccb69af5844c3.jpeg b/Catégorie Portrait/bc275d82a7a748296ebccb69af5844c3.jpeg new file mode 100644 index 0000000..9122c4b Binary files /dev/null and b/Catégorie Portrait/bc275d82a7a748296ebccb69af5844c3.jpeg differ diff --git a/Catégorie Portrait/chemin 1/v1.png b/Catégorie Portrait/chemin 1/v1.png new file mode 100644 index 0000000..9f82d6c Binary files /dev/null and b/Catégorie Portrait/chemin 1/v1.png differ diff --git a/Catégorie Portrait/chemin 1/v1.xcf b/Catégorie Portrait/chemin 1/v1.xcf new file mode 100644 index 0000000..579c20e Binary files /dev/null and b/Catégorie Portrait/chemin 1/v1.xcf differ diff --git a/Catégorie Portrait/chemin 1/v2.png b/Catégorie Portrait/chemin 1/v2.png new file mode 100644 index 0000000..4ba3b29 Binary files /dev/null and b/Catégorie Portrait/chemin 1/v2.png differ diff --git a/Catégorie Portrait/chemin 1/v2.xcf b/Catégorie Portrait/chemin 1/v2.xcf new file mode 100644 index 0000000..b69b16a Binary files /dev/null and b/Catégorie Portrait/chemin 1/v2.xcf differ diff --git a/Catégorie Portrait/chemin 1/v3.png b/Catégorie Portrait/chemin 1/v3.png new file mode 100644 index 0000000..93698ca Binary files /dev/null and b/Catégorie Portrait/chemin 1/v3.png differ diff --git a/Catégorie Portrait/chemin 1/v3.xcf b/Catégorie Portrait/chemin 1/v3.xcf new file mode 100644 index 0000000..58d7bcb Binary files /dev/null and b/Catégorie Portrait/chemin 1/v3.xcf differ diff --git a/Catégorie Portrait/chemin 1/v4.png b/Catégorie Portrait/chemin 1/v4.png new file mode 100644 index 0000000..ce3c3d7 Binary files /dev/null and b/Catégorie Portrait/chemin 1/v4.png differ diff --git a/Catégorie Portrait/chemin 1/v4.xcf b/Catégorie Portrait/chemin 1/v4.xcf new file mode 100644 index 0000000..80cd6d0 Binary files /dev/null and b/Catégorie Portrait/chemin 1/v4.xcf differ diff --git a/Catégorie Portrait/chemin 1/v5.png b/Catégorie Portrait/chemin 1/v5.png new file mode 100644 index 0000000..7b95645 Binary files /dev/null and b/Catégorie Portrait/chemin 1/v5.png differ diff --git a/Catégorie Portrait/chemin 1/v5.xcf b/Catégorie Portrait/chemin 1/v5.xcf new file mode 100644 index 0000000..b8452f3 Binary files /dev/null and b/Catégorie Portrait/chemin 1/v5.xcf differ diff --git a/Catégorie Portrait/chemin 1/v6.png b/Catégorie Portrait/chemin 1/v6.png new file mode 100644 index 0000000..7066716 Binary files /dev/null and b/Catégorie Portrait/chemin 1/v6.png differ diff --git a/Catégorie Portrait/chemin 1/v6.xcf b/Catégorie Portrait/chemin 1/v6.xcf new file mode 100644 index 0000000..1c6b51d Binary files /dev/null and b/Catégorie Portrait/chemin 1/v6.xcf differ diff --git a/Catégorie Portrait/chemin2/.ipynb_checkpoints/Untitled-checkpoint.ipynb b/Catégorie Portrait/chemin2/.ipynb_checkpoints/Untitled-checkpoint.ipynb new file mode 100644 index 0000000..286dcb3 --- /dev/null +++ b/Catégorie Portrait/chemin2/.ipynb_checkpoints/Untitled-checkpoint.ipynb @@ -0,0 +1,6 @@ +{ + "cells": [], + "metadata": {}, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Catégorie Portrait/chemin2/.ipynb_checkpoints/Untitled1-checkpoint.ipynb b/Catégorie Portrait/chemin2/.ipynb_checkpoints/Untitled1-checkpoint.ipynb new file mode 100644 index 0000000..d560e3f --- /dev/null +++ b/Catégorie Portrait/chemin2/.ipynb_checkpoints/Untitled1-checkpoint.ipynb @@ -0,0 +1,117 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "import numpy as np\n", + "import matplotlib.pyplot as plt\n", + "from scipy import ndimage as ndi\n", + "\n", + "from skimage import feature\n", + "from scipy import misc\n", + "fimg = misc.imread(\"contourV1.png\")\n", + "\n", + "from skimage import measure" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "from skimage import color\n", + "gimg = color.colorconv.rgb2grey(fimg)\n", + "edges1 = feature.canny(gimg)\n", + "edges2 = feature.canny(gimg, sigma=5.5)" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "fig, (ax1, ax2, ax3) = plt.subplots(nrows=1, ncols=3, figsize=(8, 3))\n", + "\n", + "ax1.imshow(gimg, cmap=plt.cm.jet)\n", + "ax1.axis('off')\n", + "ax1.set_title('noisy image', fontsize=20)\n", + "\n", + "ax2.imshow(edges1, cmap=plt.cm.gray)\n", + "ax2.axis('off')\n", + "ax2.set_title('Canny filter, $\\sigma=1$', fontsize=20)\n", + "\n", + "ax3.imshow(edges2, cmap=plt.cm.gray)\n", + "ax3.axis('off')\n", + "ax3.set_title('Canny filter, $\\sigma=5$', fontsize=20)\n", + "\n", + "fig.subplots_adjust(wspace=0.02, hspace=0.02, top=0.9,\n", + " bottom=0.02, left=0.02, right=0.98)\n", + "\n", + "plt.show()" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "contours = measure.find_contours(gimg, 0.8)" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "fig2, ax2 = plt.subplots()\n", + "ax2.imshow(gimg, interpolation='nearest', cmap=plt.cm.gray)\n", + "\n", + "for n, contour in enumerate(contours):\n", + " ax2.plot(contour[:, 1], contour[:, 0], linewidth=2)\n", + "\n", + "ax2.axis('image')\n", + "ax2.set_xticks([])\n", + "ax2.set_yticks([])\n", + "plt.show()" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.10" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Catégorie Portrait/chemin2/Untitled.ipynb b/Catégorie Portrait/chemin2/Untitled.ipynb new file mode 100644 index 0000000..5f942e1 --- /dev/null +++ b/Catégorie Portrait/chemin2/Untitled.ipynb @@ -0,0 +1,146 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 18, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "from scipy import misc" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "fimg = misc.imread(\"contourV1.png\")" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "from skimage import color" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "gimg = color.colorconv.rgb2grey(fimg)" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "from skimage import measure\n", + "contours = measure.find_contours(gimg, 0.8)" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "import matplotlib.pyplot as plt\n", + " \n", + "for n, contour in enumerate(contours):\n", + " plt.plot(contour[:, 1], contour[:, 0], linewidth=2)" + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "[]" + ] + }, + "execution_count": 24, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "from skimage.draw import ellipse\n", + "from skimage.measure import find_contours, approximate_polygon, subdivide_polygon\n", + " \n", + "contour = contours[0]\n", + "new_s = contour.copy()\n", + "appr_s = approximate_polygon(new_s, tolerance=0.8)\n", + " \n", + "fig, (ax1, ax2) = plt.subplots(ncols=2, figsize=(9, 4))\n", + "ax2.plot(contour[:, 0], contour[:, 1])\n", + "ax1.plot(appr_s[:, 0], appr_s[:, 1])" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "plt.show()\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.10" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Catégorie Portrait/chemin2/Untitled1.ipynb b/Catégorie Portrait/chemin2/Untitled1.ipynb new file mode 100644 index 0000000..ecafb9b --- /dev/null +++ b/Catégorie Portrait/chemin2/Untitled1.ipynb @@ -0,0 +1,117 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "import numpy as np\n", + "import matplotlib.pyplot as plt\n", + "from scipy import ndimage as ndi\n", + "\n", + "from skimage import feature\n", + "from scipy import misc\n", + "fimg = misc.imread(\"contourV1.png\")\n", + "\n", + "from skimage import measure" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "from skimage import color\n", + "gimg = color.colorconv.rgb2grey(fimg)\n", + "edges1 = feature.canny(gimg)\n", + "edges2 = feature.canny(gimg, sigma=5.5)" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "fig, (ax1, ax2, ax3) = plt.subplots(nrows=1, ncols=3, figsize=(8, 3))\n", + "\n", + "ax1.imshow(gimg, cmap=plt.cm.jet)\n", + "ax1.axis('off')\n", + "ax1.set_title('noisy image', fontsize=20)\n", + "\n", + "ax2.imshow(edges1, cmap=plt.cm.gray)\n", + "ax2.axis('off')\n", + "ax2.set_title('Canny filter, $\\sigma=1$', fontsize=20)\n", + "\n", + "ax3.imshow(edges2, cmap=plt.cm.gray)\n", + "ax3.axis('off')\n", + "ax3.set_title('Canny filter, $\\sigma=5$', fontsize=20)\n", + "\n", + "fig.subplots_adjust(wspace=0.02, hspace=0.02, top=0.9,\n", + " bottom=0.02, left=0.02, right=0.98)\n", + "\n", + "plt.show()" + ] + }, + { + "cell_type": "code", + "execution_count": 26, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "contours = measure.find_contours(gimg, 0.9)" + ] + }, + { + "cell_type": "code", + "execution_count": 27, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "fig2, ax2 = plt.subplots()\n", + "ax2.imshow(gimg, interpolation='nearest', cmap=plt.cm.gray)\n", + "\n", + "for n, contour in enumerate(contours):\n", + " ax2.plot(contour[:, 1], contour[:, 0], linewidth=2)\n", + "\n", + "ax2.axis('image')\n", + "ax2.set_xticks([])\n", + "ax2.set_yticks([])\n", + "plt.show()" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.10" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Catégorie Portrait/chemin2/contourV1.png b/Catégorie Portrait/chemin2/contourV1.png new file mode 100644 index 0000000..9a5a87d Binary files /dev/null and b/Catégorie Portrait/chemin2/contourV1.png differ diff --git a/Catégorie Portrait/chemin2/contourV2.png b/Catégorie Portrait/chemin2/contourV2.png new file mode 100644 index 0000000..250658e Binary files /dev/null and b/Catégorie Portrait/chemin2/contourV2.png differ diff --git a/Catégorie Portrait/description.csv b/Catégorie Portrait/description.csv new file mode 100644 index 0000000..5c43fff --- /dev/null +++ b/Catégorie Portrait/description.csv @@ -0,0 +1,4 @@ +Numéro d'inventaire Artiste Culture Titre Date de production Technique d'expression Dimensions Lieu de production Sujet Description Collection Département Catégorie Objet Nombre d'objets Mention MAJ des informations +1989.295.08 "Éditions internationales Alain Stanké ltée +Lemieux, Jean Paul" Canadienne; Québécoise François Paradis, du livre illustré Jean Paul Lemieux retrouve Maria Chapdelaine 1981 Photolithographie, 2522/5000 45,8 x 30,6 cm (papier); 35 x 28 cm (image) Montréal (Québec), Canada Portrait Costumes civils accessoires couvre-chef chapeau, vêtements gilet veston; Personnages groupes humains jeune homme héros du roman (1913) de l'écrivain québécois d'origine française Louis Hémon (1880-1913) et amoureux de Maria Chapdelaine, métiers et professions coureur des bois, portrait en buste de face; Géographie physique accidents géographiques champ, phénomènes naturels neige, saison : hiver; Localisation : Péribonka, Lac Saint-Jean Ouest, Québec, Canada Collection permanente Art contemporain (1950-2000) Arts graphiques Estampe (livre illustré) 1 Legs Marcel Carbotte 02-juil-15 + diff --git a/Catégorie Portrait/description.xlsx b/Catégorie Portrait/description.xlsx new file mode 100644 index 0000000..645c0b4 Binary files /dev/null and b/Catégorie Portrait/description.xlsx differ diff --git a/Catégorie Portrait/eb0604bf94cf18d3c1e9301cec881dcd.jpeg b/Catégorie Portrait/eb0604bf94cf18d3c1e9301cec881dcd.jpeg new file mode 100644 index 0000000..5cccdba Binary files /dev/null and b/Catégorie Portrait/eb0604bf94cf18d3c1e9301cec881dcd.jpeg differ diff --git a/Catégorie Portrait/ef8995e1267ccf533240de87620e3deb.jpeg b/Catégorie Portrait/ef8995e1267ccf533240de87620e3deb.jpeg new file mode 100644 index 0000000..7eedb16 Binary files /dev/null and b/Catégorie Portrait/ef8995e1267ccf533240de87620e3deb.jpeg differ