From 2f173ad5fc4c51d8944c763886267a708c298092 Mon Sep 17 00:00:00 2001 From: Rahul Kumar <98277620+rir7890@users.noreply.github.com> Date: Sat, 19 Aug 2023 18:09:54 +0530 Subject: [PATCH] Update hog.ipynb I am changing the mutichannel property of hog with channel_axis which is used in current version --- machine-learning/hog-feature-extraction/hog.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/machine-learning/hog-feature-extraction/hog.ipynb b/machine-learning/hog-feature-extraction/hog.ipynb index 0b6c2852..8158380a 100644 --- a/machine-learning/hog-feature-extraction/hog.ipynb +++ b/machine-learning/hog-feature-extraction/hog.ipynb @@ -69,7 +69,7 @@ "source": [ "#creating hog features\n", "fd, hog_image = hog(resized_img, orientations=9, pixels_per_cell=(8, 8),\n", - " \tcells_per_block=(2, 2), visualize=True, multichannel=True)\n", + " \tcells_per_block=(2, 2), visualize=True, channel_axis=2)\n", "print(fd.shape)\n", "plt.axis(\"off\")\n", "plt.imshow(hog_image, cmap=\"gray\")" @@ -94,4 +94,4 @@ "source": [] } ] -} \ No newline at end of file +}