Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2021-010
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2021-010
2021-010
Commits
637bf351
Commit
637bf351
authored
Apr 30, 2021
by
giwi97
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
histogram oriented gradient
parent
0b8eabaa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
4 deletions
+22
-4
ML/.ipynb_checkpoints/fruit_recognition-checkpoint.ipynb
ML/.ipynb_checkpoints/fruit_recognition-checkpoint.ipynb
+11
-2
ML/fruit_recognition.ipynb
ML/fruit_recognition.ipynb
+11
-2
No files found.
ML/.ipynb_checkpoints/fruit_recognition-checkpoint.ipynb
View file @
637bf351
...
...
@@ -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": {
...
...
ML/fruit_recognition.ipynb
View file @
637bf351
...
...
@@ -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": {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment