Metadata-Version: 2.4
Name: capx-core
Version: 1.0.0
Summary: Core AI engine for solving reCAPTCHA image challenges
Author-email: Mahdi Marjani <mahdi.marjani.dev@gmail.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/mahdi-marjani/capx-core
Project-URL: Documentation, https://github.com/mahdi-marjani/capx-core
Project-URL: Repository, https://github.com/mahdi-marjani/capx-core.git
Project-URL: Issues, https://github.com/mahdi-marjani/capx-core/issues
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy==2.2.6
Requires-Dist: opencv-python==4.12.0.88
Requires-Dist: requests==2.32.5
Requires-Dist: ultralytics==8.3.241
Requires-Dist: tqdm==4.67.1
Dynamic: license-file

# capx-core

Core AI engine for solving reCAPTCHA v2 image challenges.

## Install

```bash
pip install capx-core
````

## Quick example

```python
from capx_core.detector import detect_cells
import numpy as np

# image as numpy array (H, W, 3)
image = np.zeros((300, 300, 3), dtype=np.uint8)

cells = detect_cells(
    image=image,
    grid="3x3",        # "3x3" or "4x4"
    target_text="cars"
)

print(cells)  # e.g. [1, 3, 7]
```
