init
This commit is contained in:
14
Test102.py
Normal file
14
Test102.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from api.doubao_client import DoubaoClient
|
||||
from core.ocr_service import OCRService
|
||||
|
||||
_doubao_client = DoubaoClient()
|
||||
_ocr_service = OCRService(_doubao_client)
|
||||
|
||||
image_path = r'D:\ocr\QQ截图20250814150018.jpg'
|
||||
|
||||
ocr_result = _ocr_service.get_ocr(image_path)
|
||||
|
||||
print(ocr_result)
|
||||
|
||||
with open("QvqResult.txt", "w", encoding='utf-8') as f:
|
||||
f.write(ocr_result)
|
Reference in New Issue
Block a user