MARKSON, CHRISTOPHER R.,SHAH, PRITESH J.,LAHMUTH, CHRISTOPHER G.,LEHMUTH, CHRISTOPHER G.
申请号:
CA3082561
公开号:
CA3082561A1
申请日:
2018.11.21
申请国别(地区):
CA
年份:
2019
代理人:
摘要:
A method includes capturing a first image of medication held by a receptacle. The method includes creating a second image based on the first image. The method includes determining a first subset of pixels of the second image that are more likely to correspond to the receptacle. The method includes processing the second image along a first axis by, for each point: defining a line perpendicularly intersecting the first axis at the point and counting how many of the pixels located along the line are in the first subset. The method includes determining first and second local maxima of the counts. The method includes estimating positions of first and second edges of the receptacle based on positions of the local maxima. The method includes defining an ellipse based on the first and second edges and excluding areas of the first image outside the defined ellipse from further processing.