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
2b7a12ef
Commit
2b7a12ef
authored
Apr 05, 2015
by
WillBrennan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed extended to scripts
parent
f169e38d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
__init__.py
__init__.py
+2
-2
main.py
main.py
+5
-5
scripts.py
scripts.py
+0
-0
No files found.
__init__.py
View file @
2b7a12ef
...
...
@@ -7,4 +7,4 @@ __author__ = 'Will Brennan'
# Standard Modules
# Custom Modules
from
main
import
*
import
extended
\ No newline at end of file
import
scripts
\ No newline at end of file
main.py
View file @
2b7a12ef
...
...
@@ -10,7 +10,7 @@ import argparse
import
cv2
import
numpy
# Custom Modules
import
extended
import
scripts
class
SkinDetector
(
object
):
...
...
@@ -140,7 +140,7 @@ class SkinDetector(object):
def
process
(
image
,
save
=
False
,
display
=
False
,
args
=
None
):
assert
isinstance
(
image
,
numpy
.
ndarray
)
if
not
args
:
args
=
extended
.
gen_args
()
args
=
scripts
.
gen_args
()
else
:
assert
isinstance
(
args
,
argparse
.
Namespace
),
'args must be an argparse.Namespace'
args
.
save
=
save
...
...
@@ -150,9 +150,9 @@ def process(image, save=False, display=False, args=None):
if
__name__
==
'__main__'
:
args
=
extended
.
get_args
()
logger
=
extended
.
get_logger
(
quite
=
args
.
quite
,
debug
=
args
.
debug
)
args
.
image_paths
=
extended
.
find_images
(
args
.
image_paths
[
0
])
args
=
scripts
.
get_args
()
logger
=
scripts
.
get_logger
(
quite
=
args
.
quite
,
debug
=
args
.
debug
)
args
.
image_paths
=
scripts
.
find_images
(
args
.
image_paths
[
0
])
for
image_path
in
args
.
image_paths
:
img_col
=
cv2
.
imread
(
image_path
,
1
)
img_msk
=
process
(
img_col
,
args
=
args
)
...
...
extended
.py
→
scripts
.py
View file @
2b7a12ef
File moved
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