Skip to main content

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)

Metadata

Release files for moveread-boxes 0.1.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for moveread-boxes 0.1.11
File Size Uploaded
moveread_boxes-0.1.11.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for moveread-boxes 0.1.11
File Interpreter ABI Platform
moveread_boxes-0.1.11-py3-none-any.whl Python 3 none any Details

Total release size: 8.0 kB

Release files / moveread_boxes-0.1.11.tar.gz

Download URL moveread_boxes-0.1.11.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
0e2203b51de9f1c02043d3e32fe686f218848611ea68afdff0f2241d6220ec81
BLAKE2b-256 checksum
How to use checksums
0e4a69e58bdd2164000529014b22e5388228839208f73e9bc8ba26b4e26035fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.6

Release files / moveread_boxes-0.1.11-py3-none-any.whl

Download URL moveread_boxes-0.1.11-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0aa80364154177ff80527a5edea0fd6bddc96769be901ec72d5adcc074711d60
BLAKE2b-256 checksum
How to use checksums
dfa1a5861dcf942bf08ac6fd372b6fe24ad8d32bef6e8a46128703359c5d6a8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.6

Release history Release notifications | RSS feed

This release

0.1.11 This release

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page