rogerxavier
commited on
Commit
•
a745359
1
Parent(s):
00eafc9
Update 3mergeDialogToVideo.py
Browse files- 3mergeDialogToVideo.py +3 -0
3mergeDialogToVideo.py
CHANGED
@@ -26,6 +26,9 @@ azure_speech_key = os.getenv('azure_speech_key')
|
|
26 |
azure_service_region = os.getenv('azure_service_region')
|
27 |
my_openai_key = os.getenv('my_openai_key')
|
28 |
|
|
|
|
|
|
|
29 |
|
30 |
#通过去水印完整漫画图片->获取相应的对话框图片->获取对话框文字->返回对话框文字
|
31 |
def get_image_copywrite(image_path:"图片路径(包含后缀)",dialog_cut_path:"对话框切割路径")->"返回漫画关联对话框识别后得到的文案str(原文即可),也可能是none":
|
|
|
26 |
azure_service_region = os.getenv('azure_service_region')
|
27 |
my_openai_key = os.getenv('my_openai_key')
|
28 |
|
29 |
+
print("azure key是",azure_speech_key)
|
30 |
+
print("azure_service_region是",azure_service_region)
|
31 |
+
print("my_openai_key",my_openai_key)
|
32 |
|
33 |
#通过去水印完整漫画图片->获取相应的对话框图片->获取对话框文字->返回对话框文字
|
34 |
def get_image_copywrite(image_path:"图片路径(包含后缀)",dialog_cut_path:"对话框切割路径")->"返回漫画关联对话框识别后得到的文案str(原文即可),也可能是none":
|