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:
PAINSTAKINGLY COUNTING RICE Morphology and Object Recognition in Image Processing Franz Parkins and Lamar Davies Mentored by: Dr. Josip Derado ， Ph.D
Morphology The term morphology refers to the form or structure of anything; hence linguistic morphology, Geomorphology, Bio-morphology, Cosmic morphology, etc.
Morphology in Industry and Research Morphology is prolific in industry. A wide variety of unpolished ideas lie at the forefront.
The Ultimate Goal Our focus is on: 1.Detecting objects 2.Enumerating them
Characterization Morphological characterization for object recognition is, put simply, to decipher between the objects and their background.
Complexity of Algorithm The Algorithm has two main parts; CLEANING and COUNTING.
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.
But Wait!!!!! It is an absolute necessity to have quality photos! This it true for two reasons: 1.Clarity prevents “clutter” 2.Standardized distance
Combined Filter Original image Contrast + Circle + Grid Filters
How Do We Actually Count Rice? Area Estimation Border Following Horizontal Layered Scanning (HLS)
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!!
Area Estimation Pros: –Easily implemented –Less complex Cons: –Reliance on average grain size (variance) –Inability to use destructive filters
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.
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.
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.
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
Rice Count Chart (Using Industry Grade Strel Filter w/ HLS) Actual # Number of Rice Counted Accuracy 220.127.116.11.810.096.4% 2021.019.219.419.819.396.7% 3028.029.030.029.429.096.9% 4037.340.339.340.240.098.1% 5048.646.048.251.246.296.1% 6057.852.654.658.857.693.8% 7062.867.465.466.269.494.6% 8071.879.576.074.274.694.0% 9082.481.084.283.886.892.9% 10094.893.495.297.291.094.3%
OVERALL ACCURACY With industry grade strel filter 95% !!!
Rice Count Chart (Using our Circular Filter w/ HLS) Actual # Number of Rice Counted Accuracy 109.5010.009.25 9.7595.50% 2019.5019.7519.0019.2519.7597.25% 3028.7529.2529.7529.2528.2596.83% 4039.2540.7538.2537.2538.7596.38% 5047.5048.5048.0046.2542.7593.20% 6055.0053.0051.5053.5055.2589.42% 7062.25 63.566.2566.0091.50% 8074.0073.7572.2575.7573.5092.31% 9081.0072.0087.5085.6771.0088.26% 10087.2590.7583.3387.6790.0087.80%
OVERALL ACCURACY With our original circular filter 93% !!!
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!!
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.