diff --git a/notebooks/4_parameterselection.ipynb b/notebooks/4_parameterselection.ipynb index 71ec9aa..27faccd 100644 --- a/notebooks/4_parameterselection.ipynb +++ b/notebooks/4_parameterselection.ipynb @@ -22,7 +22,21 @@ "from birdwatcher.plotting import imshow_frame # birdwatcher has vizualization tools\n", "\n", "import matplotlib.pyplot as plt\n", - "%matplotlib inline" + "%matplotlib inline\n", + "\n", + "import warnings\n", + "# Suppress FutureWarning messages, seaborn generates very many when creating plots based on pandas\n", + "warnings.simplefilter(action='ignore', category=FutureWarning)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "001e134f", + "metadata": {}, + "outputs": [], + "source": [ + "bw.__version__" ] }, { @@ -459,7 +473,9 @@ "cell_type": "code", "execution_count": null, "id": "bb2dcde0-156b-4588-86bd-d12a90b40397", - "metadata": {}, + "metadata": { + "scrolled": false + }, "outputs": [], "source": [ "rows = 'blur'\n", @@ -488,7 +504,9 @@ "cell_type": "code", "execution_count": null, "id": "53698f3d-70e7-4739-9937-3fbc2d77c6e5", - "metadata": {}, + "metadata": { + "scrolled": false + }, "outputs": [], "source": [ "params.batch_plot_parameters(default_values)" @@ -621,6 +639,7 @@ "outputs": [], "source": [ "# or, save as video with circles superimposed\n", + "frames, colorspecs = params.draw_multiple_circles(settings)\n", "vfs_circles = frames.tovideo(f'{params.path}/multicircles.mp4', framerate=params.vfs.avgframerate)" ] }, @@ -650,14 +669,6 @@ "source": [ "Also, repeat these steps with a second short representative videofragment to make sure the same parameter-value combinations provide the best results. After that, you could use these settings to run movement detection on all your videos. For this, have a look at the next notebook!" ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "ae23c7d4-6284-4d92-bbfe-84523146f707", - "metadata": {}, - "outputs": [], - "source": [] } ], "metadata": {