OmniParser
OmniParser copied to clipboard
Update omniparser.py
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