element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Pi Chef Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Pi Chef Design Challenge
  • More
  • Cancel
Pi Chef Design Challenge
Blog PiCA - Pi Chef Challenge Blog #9 : Integration (Part 3)
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: giganggu
  • Date Created: 28 Mar 2018 8:13 AM Date Created
  • Views 592 views
  • Likes 7 likes
  • Comments 1 comment
  • opencv
  • raspberry pi
  • computer vision
  • pichef
Related
Recommended

PiCA - Pi Chef Challenge Blog #9 : Integration (Part 3)

giganggu
giganggu
28 Mar 2018

In this two day before the deadline, I will show you the progress of my project. I think the progress is around 80-90%. So, hopefully, I can finish the remaining 10-20% before the deadline ( maybe in the last minutes). This post shows my progress in finishing the program 2 (the hardest problem), finishing the block set (master and slave) since I made modification and changes in this component, and then the weight estimation based on OpenCV.

 

Modifying and Finishing Block Set

I added the LED light in this block-set to face the condition if the light of the kitchen is not so bright. Moreover, since this system employ the computer visison-image processing, the light condition will affect significantly to the accuracy and precision. Then, I also add some parts to make it neater than before. The figure below shows the final version of block-set both for master and slave machines,

Fig 1. Modification and changes of block-setimage

 

Finishing Program 2 (Check and Order)

After many problems in some installation of library and framework, the program2 has been finished and works and now I am still in the bug fixing and refining the code structure Below is the program codes,

image

Fig 2. Code progress of Program 2

 

Blob Detection/Weight Estimation

The most challenging part of this project is estimating the weight using computer vision. At this stage, I will employ blob detection to extract the remaining material area. Then I estimate the weight using the correlation between blob area-weight/mass of each object. This correlation was made experimentally depend on the observed data. However, for demonstration purpose now I will make a dummy correlation of two materials (material A and B). Below is the flowchart of the program of computer vision in raspberry pi,

Fig 2. Flowchart of Program 1image

 

The estimation of the weight based on blob area assumes that the depth of the material is uniform. Simply, I can say that the uniformity of the dept is used in this approach. Below is the illustration of correlation between the blob area and the weight/mass/volume I used for this project:

 

image

Fig 3. How the correlation between blob area and weight/mass used in this project

 

Then for the object, as a first step, I will use 2D colored object printed on a paper for test the method,

image

Fig 4. Checking the method of weight estimation with the dummy printed object (inside bottle): 80%, 30%

 

image

Fig 4. Checking the method of weight estimation with the dummy printed object (green vegetable) 80%, 30%

 

Of course, this approach has some limitations such as:

- The detected blob is limited to the specific object

- The distance between the object and camera must be constant.

- The assumption that the depth of the object is uniform.

However, for this stage of development, I think it is enough to show the system works. I will extend this approach so that can be more reliable facing unstable environment.

 

Closing Remarks

We have described the recent progress of this project. The next step is bug fixing, refining code/program structure, and algorithm, installation and testing. Hope that there is no any further problems so that we can finish this project before the deadline.

  • Sign in to reply
Parents
  • genebren
    genebren over 7 years ago

    Nice update on your project.  Good luck with completing the remaining portions of your project.

    Gene

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • genebren
    genebren over 7 years ago

    Nice update on your project.  Good luck with completing the remaining portions of your project.

    Gene

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube