Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
skin_detector
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
人工智能
skin_detector
Commits
9e147c58
Commit
9e147c58
authored
Apr 27, 2015
by
Will Brennan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified main to include new superpixel method!
parent
1fff7085
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
main.py
main.py
+8
-2
No files found.
main.py
View file @
9e147c58
...
...
@@ -11,6 +11,7 @@ import cv2
import
numpy
# Custom Modules
import
scripts
import
SpeedySuperPixels
import
mean_color
...
...
@@ -127,7 +128,7 @@ class SkinDetector(object):
return
self
.
mask
def
process
(
image
,
save
=
False
,
display
=
False
,
args
=
None
):
def
process
(
image
,
save
=
False
,
display
=
False
,
args
=
None
,
segment
=
False
):
assert
isinstance
(
image
,
numpy
.
ndarray
)
if
not
args
:
args
=
scripts
.
gen_args
()
...
...
@@ -136,7 +137,12 @@ def process(image, save=False, display=False, args=None):
args
.
save
=
save
args
.
display
=
display
detector
=
SkinDetector
(
args
)
return
detector
.
process
(
image
)
if
segment
:
slic
=
SpeedySuperPixels
.
contours
=
pass
else
:
return
detector
.
process
(
image
)
if
__name__
==
'__main__'
:
...
...
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