Improved and Updated README.md
This commit is contained in:
31
README.md
31
README.md
@ -37,14 +37,41 @@ pip install -r requirements.txt
|
|||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
Run the script with the path to the image you want to split as an argument:
|
|
||||||
|
|
||||||
|
### As Windows Executable
|
||||||
|
You can run the program with either the path to a single image you want to split or a directory containing multiple images.
|
||||||
|
|
||||||
|
#### Single Image Mode
|
||||||
```sh
|
```sh
|
||||||
python main.py path_to_your_image.jpg
|
main.exe --image_path path_to_your_image.jpg
|
||||||
|
```
|
||||||
|
The program will create two new images in the "left" and "right" directories with the suffixes _left and _right added to the original file name.
|
||||||
|
|
||||||
|
#### Directory Mode
|
||||||
|
```sh
|
||||||
|
main.exe --directory path_to_your_directory
|
||||||
```
|
```
|
||||||
|
|
||||||
|
The program will iterate over all images in the directory, and for each image, it will create two new images in the "left" and "right" directories with the suffixes _left and _right added to the original file name.
|
||||||
|
|
||||||
|
### As a Python Script
|
||||||
|
You can run the script with either the path to a single image you want to split or a directory containing multiple images.
|
||||||
|
|
||||||
|
To split a single image:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
python main.py --image_path path_to_your_image.jpg
|
||||||
|
```
|
||||||
The script will create two new images in the "left" and "right" directories with the suffixes _left and _right added to the original file name.
|
The script will create two new images in the "left" and "right" directories with the suffixes _left and _right added to the original file name.
|
||||||
|
|
||||||
|
To split all images in a directory:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
python main.py --directory path_to_your_directory
|
||||||
|
```
|
||||||
|
|
||||||
|
The script will iterate over all images in the directory, and for each image, it will create two new images in the "left" and "right" directories with the suffixes _left and _right added to the original file name.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
This project is licensed under the terms of the MIT license.
|
This project is licensed under the terms of the MIT license.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user