Commit 637bf351 authored by giwi97's avatar giwi97

histogram oriented gradient

parent 0b8eabaa
......@@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
......@@ -25,7 +25,16 @@
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
"source": [
"def FtrExtractHOG(img):\n",
" #Preprocessing using grayscale and resize\n",
" #img=cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)\n",
" #img=resize(img, (72, 72),anti_aliasing=True)\n",
" #Feature Extraction using HOG\n",
" ftr,_=hog(img, orientations=8, pixels_per_cell=(16, 16),\n",
" cells_per_block=(1, 1), visualize=True, multichannel=False)\n",
" return ftr"
]
}
],
"metadata": {
......
......@@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
......@@ -25,7 +25,16 @@
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
"source": [
"def FtrExtractHOG(img):\n",
" #Preprocessing using grayscale and resize\n",
" #img=cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)\n",
" #img=resize(img, (72, 72),anti_aliasing=True)\n",
" #Feature Extraction using HOG\n",
" ftr,_=hog(img, orientations=8, pixels_per_cell=(16, 16),\n",
" cells_per_block=(1, 1), visualize=True, multichannel=False)\n",
" return ftr"
]
}
],
"metadata": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment