Annotating and exporting boxes for Moveread
Project description
Moveread Boxes
Annotating and exporting boxes
Usage
import cv2 as cv
from scoresheet_models import models
import moveread.boxes as bxs
Grid Extraction
ann = bxs.exportable(
bxs.Annotations(grid_coords=bxs.Rectangle(tl=(0.05, 0.195), size=(0.935, 0.66))),
'fcde'
).unsafe()
boxes = bxs.export(fcde_sheet, ann)
# [cv.Mat(...), ...]
bxs.exportable(sheet, ann)
# Left(value=MissingAnnotations(detail='Model parameter required when relying on `grid_coords`'))
bxs.exportable(sheet, ann=Annotations())
# Left(value=MissingAnnotations(detail='No `grid_coords` provided'))
Contour Extraction
import robust_extraction as re
model = 'llobregat23'
res = re.descaled_extract(sheet, model)
ann = bxs.exportable(bxs.Annotations(box_contours=res.contours), model).unsafe()
boxes = bxs.export(res.corr_img, ann)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
moveread_boxes-0.1.11.tar.gz
(3.5 kB
view details)
Built Distribution
File details
Details for the file moveread_boxes-0.1.11.tar.gz
.
File metadata
- Download URL: moveread_boxes-0.1.11.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e2203b51de9f1c02043d3e32fe686f218848611ea68afdff0f2241d6220ec81 |
|
MD5 | 37d39c17dd0da90eca1745d0ee3594ac |
|
BLAKE2b-256 | 0e4a69e58bdd2164000529014b22e5388228839208f73e9bc8ba26b4e26035fc |
File details
Details for the file moveread_boxes-0.1.11-py3-none-any.whl
.
File metadata
- Download URL: moveread_boxes-0.1.11-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0aa80364154177ff80527a5edea0fd6bddc96769be901ec72d5adcc074711d60 |
|
MD5 | c202c421e39d458c02fe8c7f54697a96 |
|
BLAKE2b-256 | dfa1a5861dcf942bf08ac6fd372b6fe24ad8d32bef6e8a46128703359c5d6a8f |