Skip to content

Commit

Permalink
Merge branch 'docs-update' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
KasHir committed Dec 26, 2023
2 parents 0f5b683 + d81205b commit 66b3724
Show file tree
Hide file tree
Showing 21 changed files with 51 additions and 16 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,12 @@ cython_debug/
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

# Example input/output files
out/*
!out/sample*
!out/zunda*

img_line/*
!img_line/sample*
!img_line/zunda*
34 changes: 30 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,40 @@ Designed for professionals and DIY enthusiasts seeking efficient machining and c

## Installation and Dependencies

To use the flats-raster-vector-converter, follow these steps:
To use the flats-raster-vector-converter, ensure you have Python installed on your system. This tool has been tested on Python 3.11.6. Follow these steps:

1. Clone the repository:

```bash
git clone https://github.com/KasHir/flats-raster-vector-converter
```

2. Navigate to the project directory:

```bash
cd flats-raster-vector-converter
```

Ensure you have Python installed on your system. This tool has been tested on Python 3.11.6.
3. Install the required third-party libraries. While requirements.txt is not yet available, you can manually install the necessary libraries using pip or conda. Here are the commands to install each library with pip:
```bash
pip install opencv-python-headless matplotlib networkx numpy scikit-image svgwrite
```

If you prefer to use conda, you can use the following commands:
```bash
conda install -c conda-forge opencv matplotlib networkx numpy scikit-image svgwrite
```

Note: The library sknw may need to be updated manually for the best results. If you encounter issues with skeletonized graphs, download the latest version of sknw and include it in the ./external/sknw directory of this repository.

4. Ensure you have the OR-Tools library installed, which may require a separate installation step:

With pip:
```bash
pip install ortools
```

Or, if you're using conda, refer to the OR-Tools documentation for the specific installation command, as it may vary depending on your operating system and conda configuration.

A requirements.txt file will be provided in the future to simplify this process.


## Example Use
Expand All @@ -49,6 +68,13 @@ The ideal input is a line-art style raster image, which can be prepared using im
- requirements.txt will be prepared in the future.
- [List any other known issues or limitations here]

## Acknowledgments

Special thanks to the creators of the example images used in this project. These images are instrumental for demonstrating the capabilities of the flats-raster-vector-converter:

- img_line/sample.png: [https://elshaddai.jp/freedeta.html]
- img_line/zunda.png : [https://seiga.nicovideo.jp/seiga/im10788496]

## Contact

For more information, feedback, or questions, feel free to reach out:
Expand Down
Binary file removed img_line/irasutoya.png
Binary file not shown.
Binary file added img_line/sample.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed img_line/simple.png
Binary file not shown.
Binary file removed img_line/simple2.png
Binary file not shown.
2 changes: 0 additions & 2 deletions out/irasutoya_combined.svg

This file was deleted.

2 changes: 0 additions & 2 deletions out/irasutoya_combined_black.svg

This file was deleted.

2 changes: 0 additions & 2 deletions out/irasutoya_optimized_path.svg

This file was deleted.

2 changes: 0 additions & 2 deletions out/irasutoya_optimized_path_invalid.svg

This file was deleted.

2 changes: 2 additions & 0 deletions out/sample_combined.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions out/sample_combined_black.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions out/sample_optimized_path.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions out/sample_optimized_path_invalid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added out/sample_raw_graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion out/zunda_combined.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion out/zunda_combined_black.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified out/zunda_combined_graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion out/zunda_optimized_path.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion out/zunda_optimized_path_invalid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 66b3724

Please sign in to comment.