Skip to content

Commit

Permalink
Merge pull request #6 from cospectrum/dev
Browse files Browse the repository at this point in the history
keep image ratio for better results on various inputs
  • Loading branch information
cospectrum authored Jan 4, 2025
2 parents b6cdb1e + ca08d23 commit 41fb09c
Show file tree
Hide file tree
Showing 19 changed files with 367 additions and 255 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ jobs:
name: python
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Set up Python
Expand All @@ -38,11 +36,11 @@ jobs:
python-version-file: ".python-version"
- name: Install the project
run: uv sync --all-extras --locked
- name: pytest
run: uv run pytest
- name: mypy
run: uv run mypy .
- name: ruff check
run: uv run ruff check
- name: ruff format
run: uv run ruff format --check
- name: pytest
run: uv run pytest
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ dist/
wheels/
*.egg-info

# Virtual environments
.venv
.hypothesis

.DS_Store

# Virtual environments
.venv
venv

draw.py
Binary file added assets/data/three_ids.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 added assets/data/two_ids.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 added assets/data/us_card_rotated.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 12 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ readme = "README.md"
license = { text = "Apache-2.0" }
authors = [{ name = "cospectrum", email = "[email protected]" }]
requires-python = ">=3.10"
dependencies = ["numpy>=2.2.0", "onnxruntime>=1.20.1", "pillow>=11.0.0"]
dependencies = [
"numpy>=2.2.0",
"onnxruntime>=1.20.1",
"opencv-python>=4.10.0.84",
"pillow>=11.0.0",
]

[project.urls]
Repository = "https://github.com/cospectrum/microwink"
Expand All @@ -16,4 +21,9 @@ requires = ["hatchling"]
build-backend = "hatchling.build"

[dependency-groups]
dev = ["mypy>=1.13.0", "pytest>=8.3.4", "ruff>=0.8.3"]
dev = [
"hypothesis[numpy]>=6.123.2",
"mypy>=1.13.0",
"pytest>=8.3.4",
"ruff>=0.8.3",
]
Loading

0 comments on commit 41fb09c

Please sign in to comment.