Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


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

1 PAINSTAKINGLY COUNTING RICE Morphology 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: 1.Detecting objects 2.Enumerating them

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

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

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: 1.Clarity prevents “clutter” 2.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

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) Actual # Number of Rice Counted Accuracy % % % % % % % % % %

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

30 Rice Count Chart (Using our Circular Filter w/ HLS) Actual # Number of Rice Counted Accuracy % % % % % % % % % %

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, Seriously given 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?


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

Similar presentations


Ads by Google