Trial library for nesting and laser cutting
Project description
Modules for Laser Cutting
This is a repository containing certain modules required for laser cutting. The code is completely written in python.
Following are the modules currently present:
1. Formation of Shapes
2. Detection of shapes from a .DXF and .svg file or any image(.png, .jpeg or .tiff) file format
3. Nesting of Shapes
Following are the modules to be added:
4. Path-planning & the options of lead-in and lead-out
5. Conversion of machine code
Brief:
1. Formation of Shapes:
i) The dimensions of shapes are to be entered as the input in the code.
ii) The code forms the shape by doing simple mathematical calculations and gives the output in the form of coordinates.
2. Processing of .DXF file:
i) Shapes from the drawing file will be extracted by detecting the individual entities like Polyline, Line, Arc, Circle.
ii) Coordinates are extracted by geometrical calculation on the shapes.
3. Detection of shapes from a .svg file or any image(.png, jpeg or tiff) file format
i) An image is to be provided as the input to let the code detect the shapes. If the file is in ".svg" format, it is first converted to ".png" format. The edges of the shapes are detected using canny operator.
ii) After the detection of shapes from an image, the coordinates of the detected shapes are fetched.
4. Nesting of Shapes:
i) The shapes get automatically nested once we provide the coordinates of the shapes which are entered. More about the nesting is available below in the form of a flowchart.
ii) Nesting is a combination of the following approaches:
a) Bottom-Left approach b) DJD Heuristic approach
These are the images of nested shapes from the Drawing file(.DXF) as file source:
Here are the images of nested shapes from the image as file source:
These are the images depicting contour detection in the cases of images given as inputs:
Flowchart for the modules created presently:
1) Flow chart for extraction of coordinates and/or creation of shapes:
2) Flow chart for nesting of the extracted coordinates from image as file source:
3) Flow Chart for Contour Detection from an image to extracting shape coordinates:
NOTE: Following packages need to be installed for proper usage of this nesting module: 1. ezDXF 2. cv2 2. matplotlib 4.svglib 5.reportlab 6.math 7.time
To-do list:
- Optimisation of nesting by adding more functions for distances
- Creating the library for the nesting code
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 nestle-mynest-2.6.1.tar.gz.
File metadata
- Download URL: nestle-mynest-2.6.1.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
926d35cd97318fea3718aa03335b272eba9b58ad1fbff1db12e209b0781e56c4
|
|
| MD5 |
182da945cdaffe57594f3e70ac30dd52
|
|
| BLAKE2b-256 |
e62b099d9c932b311640e10eb426d224b79563693d7f0787dd66951310ec2721
|
File details
Details for the file nestle_mynest-2.6.1-py3-none-any.whl.
File metadata
- Download URL: nestle_mynest-2.6.1-py3-none-any.whl
- Upload date:
- Size: 14.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6edaf4c88d6ed5c203777c185b7ef0bf1cad9830a20040885df56a5675d730e
|
|
| MD5 |
72610769e7b8b4ab04bdd8e45f41831b
|
|
| BLAKE2b-256 |
df974c37768b7725859ac711e6a412360a0c87bc505102d24d8f84e61e514cb5
|