Device and method for performing optical character recognition
First Claim
1. A method of performing character isolation in an optical character recognition process, the method comprising:
- receiving image data representing one or more character columns;
determining a respective number of black pixels in each column in the one or more character columns of the image data;
defining a vertical separation threshold which is a maximum number of black pixels in a column;
dividing the character columns into different pixel groups and groups of excluded columns by excluding any column with the respective number of black pixels below the vertical separation threshold; and
identifying the pixel group representing a left most character column in the image data, further comprising;
identifying a left most group of excluded columns;
determining that a pixel group immediately to a right side of the left most group of excluded columns is below a minimum digit width threshold; and
excluding the pixel group immediately to the right side of the left most group of excluded columns.
1 Assignment
0 Petitions
Accused Products
Abstract
A method of performing character isolation in an optical character recognition process, the method comprising receiving image data representing one or more character columns, determining a number of black pixels in each column of the image data, defining a vertical separation threshold which is a maximum number of black pixels in a column, dividing the columns into different pixel groups and groups of excluded columns by excluding any columns with a number of black pixels below the vertical separation threshold, identifying the pixel group representing the left most character column in the image data, determining whether there are one or two pixel groups representing character columns in the image data and, if it is determined that there are two pixel groups representing character columns, using a predetermined width value for a right most character column in order to identify a right hand boundary of the right most character column.
-
Citations
20 Claims
-
1. A method of performing character isolation in an optical character recognition process, the method comprising:
-
receiving image data representing one or more character columns; determining a respective number of black pixels in each column in the one or more character columns of the image data; defining a vertical separation threshold which is a maximum number of black pixels in a column; dividing the character columns into different pixel groups and groups of excluded columns by excluding any column with the respective number of black pixels below the vertical separation threshold; and identifying the pixel group representing a left most character column in the image data, further comprising; identifying a left most group of excluded columns; determining that a pixel group immediately to a right side of the left most group of excluded columns is below a minimum digit width threshold; and excluding the pixel group immediately to the right side of the left most group of excluded columns. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. A processor for performing character isolation in an optical character recognition process, the processor configured to:
-
receive image data representing one or more character columns; determine a respective number of black pixels in each column in the one or more character columns of the image data; define a vertical separation threshold which is a maximum number of black pixels in a column; divide the character columns into different pixel groups and groups of excluded columns by excluding any column with the respective number of black pixels below the vertical separation threshold; and identify the pixel group representing a left most character column in the image data by; identifying a left most group of excluded columns; determining that a pixel group immediately to a right side of the left most group of excluded columns is below a minimum digit width threshold; and excluding the pixel group immediately to the right side of the left most group of excluded columns. - View Dependent Claims (13, 14, 15, 16)
-
-
17. A supplemental device for attachment to an injection device, the supplemental device comprising:
-
an optical sensor configured to capture an image of one or more numbers present on a moveable component of the injection device; and a processor configured to; receive image data representing one or more character columns; determine a respective number of black pixels in each column in the one or more character columns of the image data; define a vertical separation threshold which is a maximum number of black pixels in a column; divide the character columns into different pixel groups and groups of excluded columns by excluding any column with the respective number of black pixels below the vertical separation threshold; and identify the pixel group representing a left most character column in the image data by; identifying a left most group of excluded columns; determining that a pixel group immediately to a right side of the left most group of excluded columns is below a minimum digit width threshold; and excluding the pixel group immediately to the right side of the left most group of excluded columns. - View Dependent Claims (18, 19, 20)
-
Specification