This commit is contained in:
yadonglu
2024-12-11 14:08:13 -08:00
parent b1996356ca
commit c9ed5cb426
3 changed files with 3 additions and 2 deletions

View File

@@ -73,5 +73,6 @@ async def send_text(item: Item):
import time
start = time.time()
dino_labled_img, parsed_content_list = Omniparser.parse(item.base64_image)
print('time:', time.time() - start)
return {"som_image_base64": dino_labled_img, "parsed_content_list": parsed_content_list}
latency = time.time() - start
print('time:', latency)
return {"som_image_base64": dino_labled_img, "parsed_content_list": parsed_content_list, 'latency': latency}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 189 KiB

After

Width:  |  Height:  |  Size: 627 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 214 KiB

After

Width:  |  Height:  |  Size: 678 KiB