add ocr tests
This commit is contained in:
parent
a54192b882
commit
88a17d528b
2 changed files with 44 additions and 2 deletions
|
|
@ -138,13 +138,13 @@ with open(tmp_path, "wb") as f:
|
||||||
|
|
||||||
Через subprocess (рекомендуется):
|
Через subprocess (рекомендуется):
|
||||||
```bash
|
```bash
|
||||||
python3 ~/zeroclaw-bot/recognition.py <tmp_path> --output json
|
python3 ~/.zeroclaw/recognition.py <tmp_path> --output json
|
||||||
```
|
```
|
||||||
|
|
||||||
Через прямой импорт:
|
Через прямой импорт:
|
||||||
```python
|
```python
|
||||||
import sys
|
import sys
|
||||||
sys.path.insert(0, os.path.expanduser("~/zeroclaw-bot"))
|
sys.path.insert(0, os.path.expanduser("~/.zeroclaw"))
|
||||||
from recognition import process_audio
|
from recognition import process_audio
|
||||||
transcript, answers = process_audio(tmp_path, model_size="medium", verbose=False)
|
transcript, answers = process_audio(tmp_path, model_size="medium", verbose=False)
|
||||||
```
|
```
|
||||||
|
|
|
||||||
42
tests/ocr-accuracy.json
Normal file
42
tests/ocr-accuracy.json
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue