Spaces:
Running
Running
Update black.py
Browse files
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)# 转换为灰度图像
|