GithubHelp home page GithubHelp logo

ratatouille-robotics / ingredient_validation Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 662.44 MB

This repository contains the ROS Node to validate the ingredient and publish the information into a topic.

License: Apache License 2.0

CMake 22.53% Python 77.47%

ingredient_validation's Introduction

Ingredient Validation Pipeline

This repository contains the ROS Service that validates the ingredient using an RGB image. If the ingredient is visually ambiguous (such as salt, sugar, oregano or black pepper), it is validated using its spectral absorbance reading. Finally, the identified ingredient name is sent as a response to the caller.

To run the service:

rosrun ingredient_validation validate_ingredient_service.py

To call the service via a client:

  1. RGB Mode:
rospy.wait_for_service('ingredient_validation')
service_call = rospy.ServiceProxy('ingredient_validation', ValidateIngredient)
response = service_call(mode='rgb')
  1. Spectral Mode:
rospy.wait_for_service('ingredient_validation')
service_call = rospy.ServiceProxy('ingredient_validation', ValidateIngredient)
response = service_call(mode='spectral', ingredient_name="no_ingredient")

To run data collection:

  1. Create a folder named data in ingredient_validation package.
  2. Modify line 40 in the script with the name of the ingredient whose image data is being collected.
  3. Run the script with the command: rosrun ingredient_validation data_collection.py
  4. Type s to draw the bounding box around the object that has to be tracked across frames and press enter.

ingredient_validation's People

Contributors

shruthibalaji2307 avatar nevalsar 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.