Metadata-Version: 2.4
Name: rcap-core
Version: 2.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/rcap-core
Project-URL: Documentation, https://github.com/mahdi-marjani/rcap-core
Project-URL: Repository, https://github.com/mahdi-marjani/rcap-core.git
Project-URL: Issues, https://github.com/mahdi-marjani/rcap-core/issues
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy<3,>=2.2.6
Requires-Dist: onnxruntime<2,>=1.20
Requires-Dist: pillow<13,>=10
Requires-Dist: requests<3,>=2.32.5
Requires-Dist: tqdm<5,>=4.67.1
Dynamic: license-file

# rcap-core

Core AI engine for solving reCAPTCHA v2 image challenges.

## Install

```bash
pip install rcap-core
````

## Quick example

```python
from rcap_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]
```
