Metadata-Version: 2.4
Name: livepyxel
Version: 0.1.3
Summary: A GUI tool for dataset preparation / annotation (instance segmentation & ML)
Author-email: Uriel Garcilazo Cruz <garcilazo.uriel@gmail.com>
License: LICENSE
Project-URL: Homepage, https://ugarcil.github.io/LivePyxel/
Project-URL: Issues, https://github.com/UGarCil/LivePyxel/issues
Keywords: annotation,computer-vision,opencv,pyqt5,gui
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Environment :: X11 Applications :: Qt
Classifier: Topic :: Scientific/Engineering :: Image Processing
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: PyQt5>=5.15
Requires-Dist: opencv-python>=4.5
Provides-Extra: dev
Requires-Dist: pytest; extra == "dev"
Requires-Dist: ruff; extra == "dev"
Requires-Dist: black; extra == "dev"
Requires-Dist: build; extra == "dev"
Requires-Dist: twine; extra == "dev"
Dynamic: license-file

# LivePyxel

![logo livePyxel](https://raw.githubusercontent.com/UGarCil/LivePyxel/main/documentation/Figures/main_logo.png)

**LivePyxel** is a Python-based GUI for fast pixel annotation of images captured directly from a webcam feed. It’s designed to speed up dataset preparation for instance segmentation and other ML workflows.

---

## Tutorials
- **Getting started**: https://ugarcil.github.io/LivePyxel/tutorials.html

---

## Requirements
- **Python**: 3.9 – 3.12 recommended
- **OS**: Windows, macOS, or Linux
- **Core deps** (installed for you via pip unless using a conda env below):
  - PyQt5 (Qt5)
  - OpenCV (cv2)
  - NumPy

> Tip: If you’re on Windows and prefer Conda, see the **Conda** section; Conda’s Qt/OpenCV packages are very reliable there.

---

## Option A — Quick install from PyPI (recommended for users)

```bash
pip install --upgrade pip
pip install livepyxel
```

Run the app:

```bash
LivePyxel
# or
livepyxel
# or
python -m livepyxel
```

### (Optional) Create a virtual environment first
**Windows (PowerShell / cmd):**
```bash
python -m venv .venv
.\.venv\Scripts\activate
pip install --upgrade pip
pip install livepyxel
LivePyxel
```

**macOS / Linux:**
```bash
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install livepyxel
LivePyxel
```

---

## Option B — Conda environments

You can use Conda to manage Python and heavy binary deps (Qt, OpenCV, NumPy), and then install LivePyxel from PyPI **without** re-installing those deps via pip.

### 1) End users (install the released package)
Run the file **`environment.yml`** at the repo root

This will create a new env called livepyxel-env, then run the app:
```bash
conda activate livepyxel
LivePyxel
```


---

## Option C — From source with pip (no Conda)

For contributors who prefer pure pip/venv:

```bash
git clone https://github.com/UGarCil/LivePyxel.git
cd LivePyxel

python -m venv .venv
.\.venv\Scripts\activate   # Windows
# source .venv/bin/activate  # macOS/Linux

pip install --upgrade pip
pip install -e .            # editable install for development
LivePyxel
```

If you have defined dev extras in `pyproject.toml`, you can do:
```bash
pip install -e ".[dev]"
```

---

## Troubleshooting

- **Command not found**: make sure your virtualenv/conda env is activated before running `LivePyxel`.
- **Black window / missing icons**: ensure you’re on the latest version and that package data is included (it is by default from PyPI). If running from source, verify `livepyxel/icons/` exists.
- **Import errors when running a module directly**: launch via `LivePyxel` or `python -m livepyxel` (not by `python livepyxel/imageAnnotator.py`) so package-relative imports work.
- **OpenCV or Qt conflicts in Conda**: stick to the Conda packages (`pyqt`, `opencv`, `numpy`) and use `pip ... --no-deps` for LivePyxel.
- **Python version**: prefer Python 3.9–3.12. Python 3.13 support is pending upstream wheels for some deps.

---

## License
This project is released under the **MIT License**. See `LICENSE` for details.

---

## Links
- **Docs & Tutorials**: https://ugarcil.github.io/LivePyxel/
- **Issues**: https://github.com/UGarCil/LivePyxel/issues
- **PyPI**: https://pypi.org/project/livepyxel/
