diff --git a/README.md b/README.md index 0f2afe2..2a2de12 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,8 @@ img.show() ## Examples -![alt-text-1](https://github.com/johnathanchiu/recursive-segmentation/blob/main/examples/outputs/apple_output.jpg "title-1") ![alt-text-2](https://github.com/johnathanchiu/recursive-segmentation/blob/main/examples/outputs/dell_output.jpg "title-2") +![Image 1](https://raw.githubusercontent.com/johnathanchiu/recursive-segmentation/main/examples/outputs/apple_output.jpg) +![Image 2](https://raw.githubusercontent.com/johnathanchiu/recursive-segmentation/main/examples/outputs/dell_output.jpg) See `main.py` or `ex.ipynb` for examples on how to draw the images. diff --git a/main.py b/main.py index 7ea0b43..2980d69 100644 --- a/main.py +++ b/main.py @@ -1,7 +1,7 @@ from PIL import Image, ImageDraw import pdfplumber -from segmentor.document.segment import segment_pdf_page, segment_pdf_image +from xyseg.document.segment import segment_pdf_page, segment_pdf_image pdf_file = "examples/pdfs/san-jose-pd-firearm-sample.pdf" diff --git a/pyproject.toml b/pyproject.toml index e34063f..954406c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [project] -name = "xy-segmentation" +name = "xyseg" version = "0.0.1" description = "Recursive Segmentation Algorithm" readme = "README.md" @@ -22,6 +22,9 @@ packages = [] requires = ["hatchling"] build-backend = "hatchling.build" +[tool.hatch.build.targets.wheel] +include = ["xyseg/**/*.py", "LICENSE", "README.md"] + [project.urls] Homepage = "https://github.com/johnathanchiu/recursive-segmentation" Issues = "https://github.com/johnathanchiu/recursive-segmentation/issues" \ No newline at end of file diff --git a/segmentor/document/div.py b/xyseg/document/div.py similarity index 100% rename from segmentor/document/div.py rename to xyseg/document/div.py diff --git a/segmentor/document/image.py b/xyseg/document/image.py similarity index 100% rename from segmentor/document/image.py rename to xyseg/document/image.py diff --git a/segmentor/document/pdf.py b/xyseg/document/pdf.py similarity index 100% rename from segmentor/document/pdf.py rename to xyseg/document/pdf.py diff --git a/segmentor/document/segment.py b/xyseg/document/segment.py similarity index 100% rename from segmentor/document/segment.py rename to xyseg/document/segment.py