Skip to content

Commit

Permalink
添加视频对象提取文档
Browse files Browse the repository at this point in the history
  • Loading branch information
vipstone committed Jun 2, 2018
1 parent 25af434 commit 59fb30d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
1. 性别识别
1. 表情识别(生气、厌恶、恐惧、开心、难过、惊喜、平静等七种情绪)
2. 视频对象提取
3. 图片修复(适用去除水印
3. 图片修复(可用于水印去除
4. 图片自动上色
3. 眼动追踪(待完善)
3. 换脸(待完善)
Expand Down Expand Up @@ -52,7 +52,7 @@

[表情识别](doc/emotion.md)

视频对象提取
[视频对象提取](https://github.com/vipstone/faceai/blob/master/doc/hsv-opencv.md)

图片修复

Expand Down
2 changes: 2 additions & 0 deletions faceai/opencv/hsv.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@

mask = cv2.inRange(hsv, np.array(lowerHSV), np.array(upperHSV))

#使用位“与运算”提取颜色部分
res = cv2.bitwise_and(frame, frame, mask=mask)
#使用高斯模式优化图片
res = cv2.GaussianBlur(res, (5, 5), 1)

cv2.imshow('frame', frame)
Expand Down

0 comments on commit 59fb30d

Please sign in to comment.