此工具专为学生、研究人员、数据科学家或任何想要访问 SICAR 文件的人而设计
This tool is designed for students, researchers, data scientists, or anyone who would like to have access to SICAR files.
Requires Python 3.12+.
Install with uv (recommended):
uv add "SICAR @ git+https://github.com/urbanogilson/SICAR"Or with pip:
pip install "git+https://github.com/urbanogilson/SICAR"Prerequisite:
Google Tesseract OCR (additional info on how to install the engine on Linux, Mac OSX, and Windows).
Optional: PaddleOCR (additional info on how to install the engine on Linux, Mac OSX, and Windows).
If you don't want to install dependencies on your computer or don't know how to install them, we strongly recommend Google Colab.
…Optical character recognition (OCR) drivers are used to recognize characters in a captcha.
We currently have two options for automating the download process.
from SICAR import Sicar, State, Polygon
from SICAR.drivers import Tesseract
# Create Sicar instance using Tesseract OCR
car = Sicar(driver=Tesseract)
# Download a state
car.download_state(State.SP, Polygon.LEGAL_RESERVE, folder="SICAR/SP")Install SICAR including the Paddle dependencies
uv add "SICAR[paddle] @ git+https://github.com/urbanogilson/SICAR"
# or
pip install "SICAR[paddle] @ git+https://github.com/urbanogilson/SICAR"from SICAR import Sicar, State, Polygon
from SICAR.drivers import Paddle
# Create Sicar instance using PaddleOCR
car = Sicar(driver=Paddle)
# Download a state
car.download_state(State.AM, Polygon.CONSOLIDATED_AREA, folder="SICAR/AM")Using Google Colab, you don't need to install the dependencies on your computer and you can save files directly to your Google Drive.
Pull Image from Docker Hub urbanogilson/sicar
docker pull urbanogilson/sicar:latestRun the downloaded Docker Image using an entry point (file) from your machine (host)
…bash git clone https://github.com/urbanogilson/SICAR && cd SICAR uv sync --all-extras pre-commit install
Run the checks and tests:
```bash
uv run ruff check .
uv run ruff format --check .
uv run mypy src
uv run coverage run --rcfile=pyproject.toml -m unittest tests/unit/*.py tests/unit/drivers/*.pyAlternatively, a fully configured development environment is available using Visual Studio Code Dev Containers. Contributions are always welcome!
If you have any feedback, please reach me at [email protected]
暂无开放 Issues,或尚未同步最近议题。