semvec/pypi-packages huggingface dataset:
yolodetection 1.0.12
Yolo + sahi toolkit
License: MIT
Requires Python: >=3.8

# yolodetection

`yolodetection` is a lightweight wrapper around Ultralytics YOLO + SAHI sliced inference.

Main goals:
- Simple interface
- Handles large images using SAHI slicing
- Exports clean, JSON-ready detections (with centroids)
- Optional saving of prediction JSON + visualization masks to disk

---

## 🔧 Installation

```bash
pip install yolodetection
```

## Usage
```
from yolodetect import YoloInstance

options = {
    "save_json": True,
    "json_output_path": str(Path.cwd() / "exports"),
    "save_masks": True,
    "mask_output_path": str(Path.cwd() / "outputs"),
}

instance = SahiModelInstance("models/best.pt")
instance.predict("path/to/images", options)
```
sphinxcontrib.asciinema 0.4.3
Embed asciinema casts in your Sphinx docs
License: MIT


# sphinxcontrib-asciinema

Easily embed [asciinema](https://asciinema.org/) videos into Sphinx rst docs.

## Installation

Clone and cd into this repository, then:

```shell
pip install .
```

or install from PyPI:

```shell
pip install sphinxcontrib.asciinema
```

##  Usage

Append extension to sphinx `conf.py`:

```python
extensions = ['sphinxcontrib.asciinema']
```

Insert videos into `.rst` docs by embedding them from asciinema.org:

```rst
.. asciinema:: 261648
```

or for a local file with a self-hosted web player:

```rst
.. asciinema:: local_file.cast
```

It is possible to give options as well:

```rst
.. asciinema:: local_file.cast
   :preload: 1
   :theme: solarized-dark
```

You can enter all options from the [asciinema Player Options](https://docs.asciinema.org/manual/player/options/).

Default options can be set in `conf.py`:

```python
sphinxcontrib_asciinema_defaults = {
    'theme': 'solarized-dark',
    'preload': 1,
    'font-size': '15px',
#    'path': 'path/to/castdir'
}
```

The "path" option can be specified to set the default cast file directory. If a
local file path starts with "./", the option is ignored.