Skip to content

Conversation

@SyedaAnshrahGillani
Copy link

Refactored run_dpsk_ocr.py to accept command-line arguments for image_file, output_path, and CUDA_VISIBLE_DEVICES using argparse. This improves the script's usability and flexibility, allowing users to easily configure inputs and device selection without modifying the code. Added basic error handling for missing image files and ensured output directory creation.

Refactored run_dpsk_ocr.py to accept command-line arguments for image_file, output_path, and CUDA_VISIBLE_DEVICES using argparse. This improves the script's usability and flexibility, allowing users to easily configure inputs and device selection without modifying the code. Added basic error handling for missing image files and ensured output directory creation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant