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.2.tar.gz
.
File metadata
- Download URL: moveread_pipelines_manual_correct-0.1.2.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e7426fdbb06cc89d1b263263d2b97404698d613fac800de4310067f190e2dc4 |
|
MD5 | 4eeca642d72c032a97ea4d95fffb50d6 |
|
BLAKE2b-256 | 02f6344bec37c3a7a66809bc5c238b6c7cd26dcb4a8a2ab38856da5b5d9322da |
Provenance
File details
Details for the file moveread_pipelines_manual_correct-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: moveread_pipelines_manual_correct-0.1.2-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 | 9c54e210139e1e9719a10e9b53b677b2148cbd742a035e7caa59ecfebc265139 |
|
MD5 | 88008155887066a3f7906c601c2d8156 |
|
BLAKE2b-256 | f6efa7f2ab665f02637c01f66a9e48030824a90439689c85237e282a80bb8ce7 |