Sign inSign up

urbanogilson/sicar

By urbanogilson

•Updated about 2 months ago

Image
0

1.6K

urbanogilson/sicar repository overview

⁠SICAR⁠ (Docker)

This tool is designed for students, researchers, data scientists, or anyone who would like to have access to SICAR⁠ files.

⁠Badges

Open In Collab made-with-python Code style: black Docker Pulls Coverage Status interrogate

⁠Features

  • Download polygon
  • Download state
  • Download the entire country
  • Tesseract, and PaddleOCR (Optional) drivers to automatically detect captcha
⁠Run with Docker

Pull Image from Docker Hub urbanogilson/sicar⁠

docker pull urbanogilson/sicar:latest

Run the downloaded Docker Image using an entry point (file) from your machine (host)

docker run -i -v $(pwd):/sicar urbanogilson/sicar:latest -<./examples/docker.py

Note: Update the entry point file examples/docker.py⁠ or create a new one to download data based on your needs.

or pass a script through STDIN

docker run -i -v $(pwd):/sicar urbanogilson/sicar:latest -<<EOF
from SICAR import Sicar, State, Polygon
from SICAR.drivers import Paddle

car = Sicar(driver=Paddle)

car.download_state(state='MG', polygon=Polygon.CONSOLIDATED_AREA, folder='MG')
EOF

Note: Using $(pwd) the container will save the download data into the current folder.

Optional: Make an external directory to store the downloaded data and use a volume parameter in the run command to point to it.

Tag summary

Content type

Image

Digest

sha256:df784a03f…

Size

588.9 MB

Last updated

about 2 months ago

docker pull urbanogilson/sicar