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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file americodraws-0.1.2.tar.gz.
File metadata
- Download URL: americodraws-0.1.2.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7abceaa2a1fd1a1bed3dfa9dc94eacf8947aa6f1c57bf3935cfefb44fbecd3a6
|
|
| MD5 |
1a3dfd2a65992f072a313b234a7587ba
|
|
| BLAKE2b-256 |
104930cf80c907d6e1e4b69f704ab75b94600ec573ebe0d946198dbfd7702b22
|
File details
Details for the file americodraws-0.1.2-py3-none-any.whl.
File metadata
- Download URL: americodraws-0.1.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43ef0ee378420c0c1b47a68b9ea9f5ab352cc5c047c0aa229e2293472f468050
|
|
| MD5 |
e12c5338a92019e23e2bae269652cd17
|
|
| BLAKE2b-256 |
e6d15f58350055e1d7ac0950d38fe450f2632e226a9ca946c21e6d55bac60c09
|