Skip to content

Commit 2fe2371

Browse files
committed
rename package, fix README, pyproject.toml
1 parent 5e5ec8b commit 2fe2371

File tree

7 files changed

+7
-3
lines changed

7 files changed

+7
-3
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ img.show()
2929

3030
## Examples
3131

32-
![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")
32+
![Image 1](https://raw.githubusercontent.com/johnathanchiu/recursive-segmentation/main/examples/outputs/apple_output.jpg)
33+
![Image 2](https://raw.githubusercontent.com/johnathanchiu/recursive-segmentation/main/examples/outputs/dell_output.jpg)
3334

3435
See `main.py` or `ex.ipynb` for examples on how to draw the images.
3536

main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from PIL import Image, ImageDraw
22
import pdfplumber
33

4-
from segmentor.document.segment import segment_pdf_page, segment_pdf_image
4+
from xyseg.document.segment import segment_pdf_page, segment_pdf_image
55

66
pdf_file = "examples/pdfs/san-jose-pd-firearm-sample.pdf"
77

pyproject.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[project]
2-
name = "xy-segmentation"
2+
name = "xyseg"
33
version = "0.0.1"
44
description = "Recursive Segmentation Algorithm"
55
readme = "README.md"
@@ -22,6 +22,9 @@ packages = []
2222
requires = ["hatchling"]
2323
build-backend = "hatchling.build"
2424

25+
[tool.hatch.build.targets.wheel]
26+
include = ["xyseg/**/*.py", "LICENSE", "README.md"]
27+
2528
[project.urls]
2629
Homepage = "https://github.com/johnathanchiu/recursive-segmentation"
2730
Issues = "https://github.com/johnathanchiu/recursive-segmentation/issues"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)