{ "cells": [ { "cell_type": "markdown", "id": "f82d5207", "metadata": {}, "source": [ "## Import libraries" ] }, { "cell_type": "code", "execution_count": 1, "id": "76f76a9c", "metadata": {}, "outputs": [], "source": [ "\"\"\"\n", "%autoreload 0\n", "\n", "Disable automatic reloading.\n", "%autoreload 1\n", "\n", "Reload all modules imported with %aimport every time before executing the Python code typed.\n", "%autoreload 2\n", "\n", "Reload all modules (except those excluded by %aimport) every time before executing the Python code typed.\n", "\"\"\"\n", "%load_ext autoreload\n", "%autoreload 2\n", "%matplotlib inline" ] }, { "cell_type": "code", "execution_count": 2, "id": "bc196813", "metadata": {}, "outputs": [ { "data": { "text/html": [ " \n", " " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "from MLStructFP.db import DbLoader\n", "from MLStructFP.db.image import *\n", "\n", "from matplotlib import pyplot as plt\n", "\n", "import matplotlib.image as mpimg\n", "import plotly.offline as pyo\n", "\n", "pyo.init_notebook_mode()" ] }, { "cell_type": "markdown", "id": "a5edae53", "metadata": {}, "source": [ "### Load a particular FP" ] }, { "cell_type": "code", "execution_count": 3, "id": "e3c4ea59", "metadata": {}, "outputs": [], "source": [ "db = DbLoader('test/data/fp.json')" ] }, { "cell_type": "code", "execution_count": 4, "id": "58e733ec", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
| # | Floor ID | No. rects | Floor image path |
|---|---|---|---|
| 0 | 1058 | 57 | P:\\MLSTRUCT\\MLSTRUCT-FP\\test\\data\\2cb0cff60c42d1df4f4607b2ccb7570b0464f29e.png |
| 1 | 1059 | 50 | P:\\MLSTRUCT\\MLSTRUCT-FP\\test\\data\\e1e91e38488e108879ac7e98ae91a28888acfe9e.png |
| 2 | 1060 | 50 | P:\\MLSTRUCT\\MLSTRUCT-FP\\test\\data\\e1e91e38488e108879ac7e98ae91a28888acfe9e.png |
| 3 | 302 | 80 | P:\\MLSTRUCT\\MLSTRUCT-FP\\test\\data\\f23ccf42b9c42bfe7c37a1fb7a1ea100e3d34596.png |
| 4 | 748 | 39 | P:\\MLSTRUCT\\MLSTRUCT-FP\\test\\data\\7db3095482d5943ce42bcd476a117638d9c875d7.png |
| 5 | 848 | 80 | P:\\MLSTRUCT\\MLSTRUCT-FP\\test\\data\\77843cf5371192ea031e062548dacc674b935257.png |
| 6 | 966 | 28 | P:\\MLSTRUCT\\MLSTRUCT-FP\\test\\data\\8888a588a962b82fc219e30cc33e5a6c8dfce8b2.png |