Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keep image ratio for better results on various inputs #6

Merged
merged 4 commits into from
Jan 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 = "severinalexeyv@gmail.com" }]
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
Loading