Commit ecd7f8bc authored by zhougaofeng's avatar zhougaofeng
Browse files

Update ocr_vllm_client.py

parent 935d07d6
......@@ -108,7 +108,7 @@ def unparse_text(parsed_text):
return unparsed_text
def compress_image(image_path, max_size=(512, 512)):
def compress_image(image_path, max_size=(2048, 2048)):
img = Image.open(image_path)
width, height = img.size
aspect_ratio = width / height
......@@ -188,4 +188,4 @@ def main():
if __name__ == "__main__":
main()
\ No newline at end of file
main()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment