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
eb7c58fe
Commit
eb7c58fe
authored
Jan 18, 2017
by
WillBrennan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added outline of tests
parent
1f6ece42
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
5 deletions
+25
-5
test_unit.py
tests/skin_detector/test_unit.py
+25
-5
test_image.png
tests/test_image.png
+0
-0
No files found.
tests/skin_detector/test_unit.py
View file @
eb7c58fe
import
unittest
import
cv2
import
numpy
class
BasicTestSuite
(
unittest
.
TestCase
):
def
test_get_hsv_mask
(
):
def
test_dummy
(
self
):
img
=
cv2
.
imread
(
"../test_image.png"
)
assert
True
assert
True
if
__name__
==
'__main__'
:
def
test_get_rgb_mask
():
unittest
.
main
()
img
=
cv2
.
imread
(
"../test_image.png"
)
assert
True
def
test_get_ycrcb_mask
():
img
=
cv2
.
imread
(
"../test_image.png"
)
assert
True
def
test_grab_cut_mask
():
img
=
cv2
.
imread
(
"../test_image.png"
)
assert
True
def
test_closing
():
img
=
cv2
.
imread
(
"../test_image.png"
)
assert
True
def
test_process
():
img
=
cv2
.
imread
(
"../test_image.png"
)
assert
True
\ No newline at end of file
tests/test_image.png
0 → 100644
View file @
eb7c58fe
545 KB
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