Skip to content

Commit

Permalink
rename package, fix README, pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
johnathanchiu committed Oct 7, 2024
1 parent 5e5ec8b commit 2fe2371
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
@@ -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"

Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
name = "xy-segmentation"
name = "xyseg"
version = "0.0.1"
description = "Recursive Segmentation Algorithm"
readme = "README.md"
Expand All @@ -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"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 2fe2371

Please sign in to comment.