OmniParser icon indicating copy to clipboard operation
OmniParser copied to clipboard

Update omniparser.py

Open mst-rajatmishra opened this issue 3 months ago • 1 comments

Hii, I tried making some changes,

  • Used logging instead of print statements for better tracking and debugging.
  • Added try-except blocks to handle potential errors during processing and exporting.
  • Implemented a parse_batch method to handle multiple images.
  • Added an export_results method for saving results in JSON format, with a placeholder for CSV export.
  • Wrapped the example usage in an if __name__ == "__main__": block for better practice.

Thank You, RAJAT MISHRA

mst-rajatmishra avatar Oct 28 '24 05:10 mst-rajatmishra