Manual perspective correction pipeline for Moveread
Project description
Manual Correct
Pipeline interface for a Manual Correction API
TL; DR
- Input (
Qin
): basically an image URL - Output (
Qout
):Corrected
: perspective corners, orRotated
: angle of rotation (in 90º increments)
Usage
import moveread.pipelines.manual_correct as corr
Qin = Queue[tuple[corr.Task, State]] = ...
Qout = Queue[tuple[corr.Result, State]] = ...
api = corr.CorrectAPI(Qin, Qout)
await api.items().sync()
await api.correct('id', Corners(tl=[0, 0], tr=[0, 1], br=[1, 1], bl=[1, 0]))
await api.rotate('id', 90)
- Run demo.ipynb for a full example
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file moveread_pipelines_manual_correct-0.1.6.tar.gz
.
File metadata
- Download URL: moveread_pipelines_manual_correct-0.1.6.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a72c25b028a1cd796f9f73ed899aec0eb20802c1e4bc8640ce2a5baf9e3e06ab |
|
MD5 | 9e9ceeba78f54e701cd65d2050f5d322 |
|
BLAKE2b-256 | 6852ac896b1b3873b590e00013588026ca2aeca0e3f021a9f3e7eaad983e600c |
Provenance
File details
Details for the file moveread_pipelines_manual_correct-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: moveread_pipelines_manual_correct-0.1.6-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b23c38c8f5ce0a54efa53838ed61231a1ef72e60ec99ef573db01023445bc700 |
|
MD5 | 2b9c55eed528d3f736d8fcd4522e43e3 |
|
BLAKE2b-256 | 6af1055c7437d54d32548c188f9c435f10303990c7a792b1a2f189e90947b809 |