1 / 34

PAINSTAKINGLY COUNTING RICE Morphology and Object Recognition in Image Processing

PAINSTAKINGLY COUNTING RICE Morphology and Object Recognition in Image Processing. Franz Parkins and Lamar Davies Mentored by: Dr. Josip Derado , Ph.D. Morphology.

artan
Download Presentation

PAINSTAKINGLY COUNTING RICE Morphology and Object Recognition in Image Processing

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. PAINSTAKINGLY COUNTING RICEMorphology and Object Recognition in Image Processing Franz Parkins and Lamar Davies Mentored by: Dr. Josip Derado, Ph.D

  2. Morphology • The term morphology refers to the form or structure of anything; hence linguistic morphology , Geomorphology, Bio-morphology, Cosmic morphology, etc.

  3. Morphology in Industry and Research • Morphology is prolific in industry. • A wide variety of unpolished ideas lie at the forefront.

  4. The Ultimate Goal • Our focus is on: • Detecting objects • Enumerating them

  5. Characterization Morphological characterization for object recognition is, put simply, to decipher between the objects and their background.

  6. The Algorithm has two main parts; CLEANING and COUNTING. Complexity of Algorithm

  7. Cleaning Rice This step doesn’t involve a tiny broom. Metaphorically however, it is oddly appropriate, as we must somehow ‘sweep away’ all of the non-relevant data that will prevent an accurate rice count.

  8. But Wait!!!!! It is an absolute necessity to have quality photos! This it true for two reasons: • Clarity prevents “clutter” • Standardized distance

  9. Humble Beginnings(The Lego Contraption)

  10. Second Attempt(Crude but Effective)

  11. Base Image

  12. Basic Contrast Cleaning Method

  13. Grid Filter Cleaning

  14. Strel Filter Method(Mathworks Image Filter)

  15. Circular Filter Cleaning

  16. Combined Filter Original image Strel + Contrast + Grid Filters

  17. Combined Filter Original image Contrast + Circle + Grid Filters

  18. How Do We Actually Count Rice? • Area Estimation • Border Following • Horizontal Layered Scanning (HLS)

  19. Area Estimation The idea behind area estimation is simply to count the number of rice pixels in the image and then divide by the number of pixels in an average single rice grain. 2,694 pixels!!

  20. Area Estimation • Pros: • Easily implemented • Less complex • Cons: • Reliance on average grain size (variance) • Inability to use destructive filters

  21. Border Following The intention is to define the border and starting pixel of each rice grain, then follow each border around to the starting point, thus circling the rice grain and marking it as counted before moving on to the next.

  22. Border-defined Image 1 2 3 4 5 6 7 8 9 10

  23. Border Following • Pros • Very accurate and easy to filter “false” rice • Cons • Algorithm exceeds limits of Matlab unless used in conjunction with a very small image (approx 200x200 pixels). • Difficult to differentiate rice in close proximity.

  24. Horizontal Layered Scanning HLS scans the image one row at a time while comparing to the previous row. The amount of rice scanned in each row is tracked, tallied, and counted accordingly.

  25. Horizontal Layered Scanning [1, 0] [2, 0] [1,1] [0, 2] [1, 2] [0, 3]

  26. Horizontal Layered Scanning • Pros • Easily implemented and accurate • Does not rely on massively looping algorithms, making it more efficient • Cons • Accuracy is greatly dependent on quality cleaning • Consecutive line errors

  27. Solving Consecutive Line Errors

  28. Rice Count Chart(Using Industry Grade Strel Filter w/ HLS)

  29. OVERALL ACCURACY With industry grade strel filter 95% !!!

  30. Rice Count Chart(Using our Circular Filter w/ HLS)

  31. OVERALL ACCURACY With our original circular filter 93% !!!

  32. Progression • Given more time, we would use this program to bring about world peace, and of course count the amount of rice it takes to cure world hunger…. By hand… and then have our program tell us that we are a couple of grains short of a bushel!!

  33. No, Seriouslygiven more time… • Refine the border program with switches. • Tracking rice centers instead of averaging counts on multiple scans. • Better recognition of multiple-rice image segments. • Reconstruction of overlapping rice.

  34. THANK YOU FOR YOUR TIME! ANY QUESTIONS?

More Related