Skip to content

Commit

Permalink
Merge branch 'main' of github.com:UBC-MDS/hexdropper into feat-docume…
Browse files Browse the repository at this point in the history
…ntation-most-common-rgb
  • Loading branch information
monazhu committed Jan 24, 2024
2 parents afeae3d + c523170 commit 67a1a90
Showing 1 changed file with 55 additions and 11 deletions.
66 changes: 55 additions & 11 deletions docs/example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -52,23 +52,67 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 8,
"metadata": {},
"outputs": [
{
"ename": "TypeError",
"evalue": "'module' object is not callable",
"output_type": "error",
"traceback": [
"\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[1;31mTypeError\u001b[0m Traceback (most recent call last)",
"Cell \u001b[1;32mIn[7], line 1\u001b[0m\n\u001b[1;32m----> 1\u001b[0m image \u001b[38;5;241m=\u001b[39m \u001b[43mread_image\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[38;5;124;43m../tests/images/cropped_image\u001b[39;49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[43m)\u001b[49m\n",
"\u001b[1;31mTypeError\u001b[0m: 'module' object is not callable"
"name": "stdout",
"output_type": "stream",
"text": [
"[[[212 181 8]\n",
" [212 181 8]\n",
" [212 181 8]\n",
" ...\n",
" [212 181 8]\n",
" [212 181 8]\n",
" [212 181 8]]\n",
"\n",
" [[212 181 8]\n",
" [212 181 8]\n",
" [212 181 8]\n",
" ...\n",
" [212 181 8]\n",
" [212 181 8]\n",
" [212 181 8]]\n",
"\n",
" [[212 181 8]\n",
" [212 181 8]\n",
" [212 181 8]\n",
" ...\n",
" [212 181 8]\n",
" [212 181 8]\n",
" [212 181 8]]\n",
"\n",
" ...\n",
"\n",
" [[230 230 230]\n",
" [230 230 230]\n",
" [230 230 230]\n",
" ...\n",
" [230 230 230]\n",
" [230 230 230]\n",
" [230 230 230]]\n",
"\n",
" [[230 230 230]\n",
" [230 230 230]\n",
" [230 230 230]\n",
" ...\n",
" [230 230 230]\n",
" [230 230 230]\n",
" [230 230 230]]\n",
"\n",
" [[230 230 230]\n",
" [230 230 230]\n",
" [230 230 230]\n",
" ...\n",
" [230 230 230]\n",
" [230 230 230]\n",
" [230 230 230]]]\n"
]
}
],
"source": [
"image = read_image('../tests/images/cropped_image')"
"image = read_image.read_image('../tests/images/uncropped_img.png')"
]
},
{
Expand Down

0 comments on commit 67a1a90

Please sign in to comment.