" Your browser does not support the video tag.\n",
" </video>\n",
" \"\"\").format(mime=mime, b64=b64))\n"
]
},
{
{
"cell_type": "markdown",
"cell_type": "markdown",
"metadata": {
"metadata": {
"id": "Ghf-4E5-ZiJn"
"id": "Ghf-4E5-ZiJn"
},
},
"source": [
"source": [
"Write the images to a video file:"
"Convert the images to a video file:"
]
]
},
},
{
{
...
@@ -300,7 +267,31 @@
...
@@ -300,7 +267,31 @@
"id": "2ItoiHyYQGya"
"id": "2ItoiHyYQGya"
},
},
"source": [
"source": [
"The images you downloaded are frames of a movie showing a top view of a coral reef with crown-of-thorns starfish. The movie looks like this:"
"The images you downloaded are frames of a movie showing a top view of a coral reef with crown-of-thorns starfish. Use the `base64` data-URL trick to embed the video in this notebook:"
" Your browser does not support the video tag.\n",
" </video>\n",
" \"\"\").format(mime=mime, b64=b64))\n"
]
]
},
},
{
{
...
@@ -386,7 +377,7 @@
...
@@ -386,7 +377,7 @@
"id": "OvLuznhUa7uG"
"id": "OvLuznhUa7uG"
},
},
"source": [
"source": [
"Here's one test image, how many COTS can you see:"
"Here's one test image; how many COTS can you see?"
]
]
},
},
{
{
...
@@ -683,7 +674,7 @@
...
@@ -683,7 +674,7 @@
"id": "B1q_n1xJLm60"
"id": "B1q_n1xJLm60"
},
},
"source": [
"source": [
"That works well for one frame, but to count the number of COTS in a video you'll need to track the detections from frame to frame. The raw detection indices are not stable, they're just sorted by the detection score. Below both sets of detections are overlaid on the second image with the first frame's detections in white and the second frame's in orange, the indices are not aligned. The positions are shifted because of camera motion between teh two frames:"
"That works well for one frame, but to count the number of COTS in a video you'll need to track the detections from frame to frame. The raw detection indices are not stable, they're just sorted by the detection score. Below both sets of detections are overlaid on the second image with the first frame's detections in white and the second frame's in orange, the indices are not aligned. The positions are shifted because of camera motion between the two frames:"