Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions nbs/color_yuv420_to_rgb.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
}
],
"source": [
"(y, uv) = read_frame(\"foreman_qcif.yuv\", 0) # using compression classic foreman\n",
"y, uv = read_frame(\"foreman_qcif.yuv\", 0) # using compression classic foreman\n",
"plt.imshow((y.numpy()[0, 0, :, :] * 255.0).astype(np.uint8), cmap=\"gray\")\n",
"plt.figure()\n",
"plt.imshow(((uv.numpy()[0, 0, :, :] + 0.5) * 255.0).astype(np.uint8), cmap=\"gray\")\n",
Expand Down Expand Up @@ -254,8 +254,8 @@
"import cv2\n",
"\n",
"loftr = kornia.feature.LoFTR(\"outdoor\")\n",
"(y0, uv0) = read_frame(\"foreman_qcif.yuv\", 175)\n",
"(y1, uv1) = read_frame(\"foreman_qcif.yuv\", 185)\n",
"y0, uv0 = read_frame(\"foreman_qcif.yuv\", 175)\n",
"y1, uv1 = read_frame(\"foreman_qcif.yuv\", 185)\n",
"rgb0 = kornia.color.yuv420_to_rgb(y0, uv0)\n",
"rgb1 = kornia.color.yuv420_to_rgb(y1, uv1)\n",
"\n",
Expand Down
6 changes: 2 additions & 4 deletions nbs/image_registration.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -436,13 +436,11 @@
"data_url = \"data:video/mp4;base64,\" + b64encode(mp4).decode()\n",
"\n",
"\n",
"HTML(\n",
" f\"\"\"\n",
"HTML(f\"\"\"\n",
"<video width=400 controls>\n",
" <source src=\"{data_url}\" type=\"video/mp4\">\n",
"</video>\n",
"\"\"\"\n",
")"
"\"\"\")"
]
},
{
Expand Down
Loading