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.8.tar.gz
.
File metadata
- Download URL: moveread_pipelines_manual_correct-0.1.8.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 | 04bfe5219501473a036bbc6bba6306736d8de66b42e4353aced686da825430d6 |
|
MD5 | ec689945cda671116c86145f7d30370c |
|
BLAKE2b-256 | 3bac771cc3e8f16734d82f8eae0b259a76c3875424997e55e897d9539ca9f401 |
File details
Details for the file moveread_pipelines_manual_correct-0.1.8-py3-none-any.whl
.
File metadata
- Download URL: moveread_pipelines_manual_correct-0.1.8-py3-none-any.whl
- Upload date:
- Size: 3.8 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 | fe2b70da7dc35151907658b0dc784f397de772c47aad13c8d9e1d6c9436e4ee6 |
|
MD5 | 1ab873babc34bd658f372d3f7d3052c1 |
|
BLAKE2b-256 | cfafc389f4f4a1e3c348efeb9f13462418f68c554981a812c0dbab81a660d0fa |