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
938fa25a
Commit
938fa25a
authored
Sep 21, 2017
by
WillBrennan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
travis cleanup
parent
1eb5c122
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
26 deletions
+15
-26
.travis.yml
.travis.yml
+7
-18
requirements.txt
requirements.txt
+3
-0
__init__.py
skin_detector/__init__.py
+2
-2
scripts.py
skin_detector/scripts.py
+1
-4
skin_detector.py
skin_detector/skin_detector.py
+2
-2
No files found.
.travis.yml
View file @
938fa25a
language
:
python
matrix
:
include
:
-
python
:
"
2.7"
before_install
:
# update aptitude
-
sudo apt-get update
-
sudo apt-get install -y python-opencv
# help python importing cv and/or cv2
-
export PYTHONPATH=$PYTHONPATH:/usr/lib/pymodules/python$TRAVIS_PYTHON_VERSION
# verify all requirements were met
-
INSTALLDIR=$(python -c "import os; import numpy; import cv; import cv2; print(os.path.dirname(cv2.__file__))")
python
:
-
"
2.7"
-
"
3.4"
-
"
3.5"
-
"
3.6"
install
:
-
make install
-
make install
script
:
-
make test
\ No newline at end of file
requirements.txt
View file @
938fa25a
wheel
pytest
sphinx
numpy
opencv-python
\ No newline at end of file
skin_detector/__init__.py
View file @
938fa25a
...
...
@@ -2,8 +2,8 @@
# -*- coding: utf-8 -*-
__author__
=
'willbrennan'
from
skin_detector
import
*
from
scripts
import
display
from
.
skin_detector
import
*
from
.
scripts
import
display
__all__
=
[
"process"
,
"display"
,
"get_hsv_mask"
,
"get_rgb_mask"
,
"get_ycrcb_mask"
,
"grab_cut_mask"
,
"grab_cut_mask"
,
"closing"
...
...
skin_detector/scripts.py
View file @
938fa25a
...
...
@@ -2,13 +2,10 @@
# -*- coding: utf-8 -*-
__author__
=
'Will Brennan'
# Built-in Modules
# Standard Modules
import
cv2
import
numpy
# Custom Modules
def
display
(
title
,
img
,
max_size
=
200000
):
assert
isinstance
(
img
,
numpy
.
ndarray
),
'img must be a numpy array'
...
...
skin_detector/skin_detector.py
View file @
938fa25a
...
...
@@ -2,11 +2,11 @@
# -*- coding: utf-8 -*-
__author__
=
'Will Brennan'
# Built-in Modules
import
logging
import
cv2
import
numpy
import
scripts
from
.
import
scripts
logger
=
logging
.
getLogger
(
'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