GithubHelp home page GithubHelp logo

hwelch-fle / pycarver Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3.83 MB

Python tool for estimating woodcarving time for handcarved leather

License: GNU General Public License v3.0

Python 100.00%

pycarver's Introduction

pycarver

Python tool for estimating woodcarving time for handcarved leather

Usage

Place a black and white image in the samples folder, then load that image using the ImageLoader class

from pycarver_utils.image_loader import ImageLoader

loader = ImageLoader()
images = loader.load_images_from_dir(".\samples")

for image in images:
  cv = Carver(images[image], size=3.0, target_dpi=300.0)
  print(cv)

>>> <Carver:
                Filename: .\samples\Mezcalaria.png
                Image: <PIL.PngImagePlugin.PngImageFile image mode=RGBA size=2019x2017 at 0x214AE75D310>
                Size: 3.0
                Target DPI: 300.0
                Use Image DPI: False
                Scaled Image: <PIL.Image.Image image mode=RGBA size=900x899 at 0x214AE75EE50>
                Quantized Image: <PIL.Image.Image image mode=P size=900x899 at 0x214CF731750>
                Carving Area: 2.415477777777778
>

Where the Carving Area is the total square inches of material that need to be carved to reproduce the image

TODO

Implement the Estimator and Classifier objects to allow for existing projects to be imput to the program to better estimate time. -As of now the only data the program can determine is the area of the carved image

Implement a function in the Carver object to allow for estimation of paint areas by color.

  • Extend this into the Estimator and Classifier objects to allow for the user to estimate carving time, painting time, and paint cost

pycarver's People

Contributors

hwelch-fle avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.