YANGYYYY commited on
Commit
3bb6450
1 Parent(s): a59311c

Update black.py

Browse files
Files changed (1) hide show
  1. black.py +2 -0
black.py CHANGED
@@ -1,3 +1,5 @@
 
 
1
  def to_black(image, transfer_style):
2
  if transfer_style == "Hayao":
3
  output = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)# 转换为灰度图像
 
1
+ import cv2
2
+
3
  def to_black(image, transfer_style):
4
  if transfer_style == "Hayao":
5
  output = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)# 转换为灰度图像