cvi42py is a Python tool that allows you to convert XML files generated by cvi42 software into pickle files, extracting contour data for further analysis or processing. This README provides detailed information on how to use cvi42py and explains its functionality.
cvi42py can be easily set up using Docker. Ensure you have Docker installed on your system before proceeding.
-
Clone the repository to your local machine:
git clone https://github.com/MPR-UKD/cvi42py.git
-
Change to the project directory:
cd cvi42py -
Build the Docker image:
docker build -t cvi42py .
To convert a cvi42 XML file to a pickle file, follow these steps:
-
Place your cvi42 XML file in the same directory as the Dockerfile or specify the file path accordingly.
-
Run the Docker container, providing the necessary volume mapping for input and output files. Replace
<xml_file>and<output_file>with your file names:docker run -v /path/to/your/xml_file.xml:/usr/src/app/xml_file.xml -v /path/to/your/output_file.pkl:/usr/src/app/output_file.pkl cvi42py
Replace
/path/to/your/xml_file.xmlwith the path to your input XML file and/path/to/your/output_file.pklwith the desired path for the output pickle file. -
After running the container, the cvi42py tool will process the XML file and save the extracted contour data in the specified pickle file.
The cvi42py repository has the following file structure:
cvi42py/
│
├── Dockerfile
├── README.md
└── src/
├── cvi42py.py
└── requirements.txt
Dockerfile: Defines the Docker image for cvi42py, specifying its dependencies and how to run the tool.README.md: This file, providing instructions and information about cvi42py.src/: Contains the Python source code and requirements.cvi42py.py: The main Python script that performs the XML to pickle conversion.requirements.txt: Specifies Python package dependencies.
Contributions to cvi42py are welcome! If you have any improvements, bug fixes, or new features to add, please open an issue or submit a pull request on the GitHub repository.
This project is licensed under the MIT License - see the LICENSE file for details.