Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Frank Tjado Ihmels
medienverarbeitung17.projectmood
Commits
4dc49d76
Commit
4dc49d76
authored
Nov 15, 2017
by
Arne Gerdes
Browse files
Merge remote-tracking branch 'origin/master'
parents
95a0fb14
b6aa4577
Changes
1
Show whitespace changes
Inline
Side-by-side
projectmood/experiments.py
View file @
4dc49d76
...
...
@@ -8,12 +8,14 @@ cvhelper.createwindow("Original", original, 0, 0)
gray
=
cv2
.
cvtColor
(
original
,
cv2
.
COLOR_BGR2GRAY
)
hsv
=
cv2
.
cvtColor
(
original
,
cv2
.
COLOR_BGR2HSV
)
plt
.
hist
(
gray
.
ravel
(),
256
,
[
0
,
256
])
plt
.
show
()
ret
,
thresh1
=
cv2
.
threshold
(
gray
,
127
,
255
,
cv2
.
THRESH_BINARY
)
cvhelper
.
createwindow
(
"Gray"
,
gray
,
100
)
cvhelper
.
createwindow
(
"HSV"
,
hsv
,
200
)
cvhelper
.
createwindow
(
"Threshold"
,
thresh1
,
300
)
plt
.
hist
(
gray
.
ravel
(),
256
,
[
0
,
256
])
plt
.
show
()
k
=
cv2
.
waitKey
(
0
)
...
...
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