Skip to main content

Convert images into 3D drawing paths suitable for robotic arms.

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.1.tar.gz (11.4 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.1-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: americodraws-0.1.1.tar.gz
  • Upload date:
  • Size: 11.4 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.1.tar.gz
Algorithm Hash digest
SHA256 b0f40712b8e170f0d3de831a86f94a20834c1a98ce6b2d76711e3d7fe738b698
MD5 989b06e667b88580f0c432bb5b198ec7
BLAKE2b-256 d5d2f0a2780ac392f2ded01d9d64c582915cdd05429c24c5396254c94e3dd550

See more details on using hashes here.

File details

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

File metadata

  • Download URL: americodraws-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 13.6 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dd75cb50b8c83558cf80bb89368c989cf69fe30a86b6dc5d69c73514de3825ea
MD5 fff52adf58f660c16143c9bab8c3710d
BLAKE2b-256 ca3a7093f2b3b813114d9bb588190ef52f3bd58009f4499a125a40aee5d3f096

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