Giter Site home page Giter Site logo

camruler's Introduction

camruler

cam ruler with openCV to measure metal plate cutouts.

Explanation of Changes:

## Save Presets:
    save_presets(filename): This function retrieves the current positions of all trackbars and saves them to a JSON file. It is triggered by pressing the 's' key.

## Load Presets:
    load_presets(filename): This function reads the slider values from a JSON file and sets the sliders to these values. It is called at the start of the main function.

## Trackbar Initialization:
    create_trackbar_window(): Initializes the trackbars for all the adjustable parameters.

## Trigger Save and Load:
    In the main loop, pressing 's' saves the current slider settings to a file.

How to Use:

Run the script. Adjust the sliders as needed.
Press 's' to save the current settings to presets.json.
The next time you run the script, it will load the saved presets automatically.

This setup allows you to easily save and load your preferred configurations, making it convenient to switch between different setups.

Source idea/initial code: https://www.youtube.com/watch?v=1CVmjTcSpIw Another source: https://github.com/alexyev/ObjectSizeEstimation https://www.youtube.com/watch?v=2oTUd2cN37k&t=25s ==> demo video https://medium.com/@alexanderyevchenko/building-a-virtual-ruler-82694d821d61 ==> Explanation

COLOR COUNT: https://github.com/codegiovanni/Counting_by_color

#OpenCV package proposed to use in this project:

  • pip install opencv-contrib-python

#para listar cams en linux

  • ls -la /dev/

#use gopro with openCV

#Mas info

#PROCEDIMIENTO

  • leer codigo
  • traer espesor db
  • tomar foto

camruler's People

Contributors

agustinabdala avatar

Stargazers

 avatar  avatar Guillermo A. Robiglio avatar

Watchers

Kostas Georgiou avatar  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.