Skip to main content

A library for processing images for robotic drawing

Project description

AmericoDraws

A Python library for processing images and converting them into robotic arm drawing paths.

Installation

pip install robotic-drawer

Or install from source:

git clone https://github.com/yourusername/robotic_drawer.git
cd robotic_drawer
pip install -e .

Dependencies

  • Python 3.7+
  • NumPy
  • Matplotlib
  • OpenCV
  • Pillow
  • scikit-learn
  • NetworkX
  • rembg (for background removal)

Usage

Basic Usage

from robotic_drawer.image_processor import process_image_for_robot

# Process an image and get robot movement points
points = process_image_for_robot(
    "input_image.jpg",
    output_dir="output",
    save_intermediate_steps=True
)

# The points can be used to control a robotic arm
# Each point is [x, y, z, a, e, r] for position and orientation

Command Line Example

The library includes a simple command-line example:

python -m examples.simple_drawing input_image.jpg --output-dir output --scale 1.2

Features

  • Background Removal: Automatically removes background from images
  • Contour Extraction: Detects edges and extracts contours
  • Path Optimization: Optimizes drawing paths for efficiency
  • 3D Visualization: Visualizes the robot path in 3D
  • Pen Up/Down Control: Intelligently controls pen movements

Documentation

For detailed documentation of all functions and classes, refer to the docstrings in the code.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

americodraws-0.1.0.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

americodraws-0.1.0-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file americodraws-0.1.0.tar.gz.

File metadata

  • Download URL: americodraws-0.1.0.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for americodraws-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4b41273f03e566844e9be09b1924a5809d0064efdbe46e8735c90487c6038bab
MD5 e6f6765d99b35125c121c3e4227d8dc7
BLAKE2b-256 0d4bffdf932542872d1fe271ab9ee000f76d61b19df8cc6df72986a7e37c92ab

See more details on using hashes here.

File details

Details for the file americodraws-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: americodraws-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for americodraws-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 60df281c18e2558f13870bb357344eb7855928641c7f9051e4e6b9b5cd3e041b
MD5 2b7bd43790bdc73ea87e6aca4048fd5c
BLAKE2b-256 1b6d04989967dfefc6a69b9f7ad42982bcd8fc82d08f497a42e285ee96fb8673

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page