14 lines
355 B
Python
14 lines
355 B
Python
|
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)
|