Adaptive auto meter detection method based on character segmentation and cascade classifier

10922572 ยท 2021-02-16

    Inventors

    Cpc classification

    International classification

    Abstract

    An adaptive automobile meter detection method based on character segmentation cascade classifier which processes threshold segmentation, morphology and connected components analysis on the original image; extracts the pointer based on the contour analysis method, establishes a pointer information list; constructs a character segmentation cascade classifier by combining a HOG/SVM character segmentation classifier, a character filter and a CNN digit classifier. The character segmentation cascade classifiers is used to identify the digit character area of the automobile meter. Region analysis is performed to extract tick marks based on the center of the digit character area. The angular position corresponding to the tick mark is determined. The response value corresponding to the pointer is determined by establishing the Newton interpolation linear description relationship between the pointer angle and the response value and then the meter is classified as pass or fail. The invention is suitable for the field of visual inspection of automobile meter pointers.

    Claims

    1. An adaptive automobile meter detection method based on character segmentation cascade classifier, comprising the steps of: (a) if the input signal value of testing meter is i, collect a color image of an entire dashboard as an original image, preprocessing a ROI image in the original image to obtain a binary image, extracting precise connected components of pointer in the binary image by contour analysis, processing thinning operation and fitting for the pointer image to obtain a fitting line corresponding to a response value of the pointer at a current position and obtaining a pointer angle .sup.j according to the angle of the fitting line; (b) if i is less than equal to a maximum scale value of the testing meter based on i=i+Q, storing the fitting line corresponding to the response value of the pointer at the current position and repeating step (a), if i is not less than equal to a maximum scale value of the testing meter based on i=i+Q, continuing to step (c), where the initial value of i is 0, Q refers to the display difference between adjacent main scales; (c) utilizing a character segmentation cascade classifier to process multi-scale detection of the ROI image such that a digit character area on the testing meter is obtained, the character segmentation cascade classifier is constructed by a cascade combination of a HOG/SVM character segmentation two-class classifier, a character filter and a CNN digit classifier; (d) connecting the rotation center of the pointer to the center of each digit character area and making an extension line, a length of the extension line has a fixed length , defining an end point of each extension line as a search center of a tick mark area corresponding to each digit character area respectively; setting each search center as a center of circle, searching for the main tick marks corresponding to each digit character area in the circle having a radius R, obtaining the main tick marks corresponding to each digit character area; (e) defining the pointer angle as an independent variable, the response value of the pointer as a dependent variable, the angle of the main tick mark and the reading value corresponding to the angle of the main tick mark as an interpolation point, using Newton interpolation polynomial to establish a linear description relationship of Newton interpolation of the testing meter, substituting the pointer angle .sub.j into the linear description relationship of Newton interpolation and obtaining the response value of the pointer corresponding to each of the fitting lines stored in step (b), the angle of the main tick mark is: an angle between a connecting line of the main tick marks and a horizontal axis of a coordinate system along a position direction, the connecting line of the main tick marks is a connecting line between a coordinate of the main tick marks in the coordinate system with the rotation center of the pointer as the coordinate origin and the coordinate origin; (f) calculating the error value between each input signal value and the response value of the pointer corresponding to each input signal value of the testing meter, if the error value is smaller than a standard threshold of error, the testing meter is classified as pass, if the error value is larger than the standard threshold of error, the testing meter is classified as fail.

    2. The adaptive automobile meter detection method based on character segmentation cascade classifier according to claim 1, wherein in the step (a), precise connected component of pointer is obtained by the steps of: processing rough extraction of the pointer for the binary image with the largest area after binarization marking to obtain a rough extracted image of the pointer; extracting the contour of the rough extracted image of the pointer to obtain the contour image; processing fitting line operation of the contour image by Probabilistic Hough Transform algorithm to obtain the contour image with contour fitting line; and searching the contour image with contour fitting line for an inner contour with the largest area and extracting image of the connected components corresponding to the inner contour with the largest area as the precise connected components image of the pointer.

    3. The adaptive automobile meter detection method based on character segmentation cascade classifier according to claim 1, wherein in the step (c), the HOG/SVM character segmentation two-class classifier processes multi-scale detection of ROI image to obtain multiple digit character candidate areas, the character filter processes division of the elements in each of the digit character candidate areas and filtering out non-character elements to obtain character elements in each of the digit character candidate areas, the CNN digit classifier processes identification of the character elements in each of the digit character candidate areas to obtain a reading value of each of the digit character candidate areas, then utilizes the reading value of each of the digit character candidate areas for screening the digit character candidate areas to obtain the plurality of digit character areas.

    4. The adaptive automobile meter detection method based on character segmentation cascade classifier according to claim 3, wherein the HOG/SVM character segmentation two-class classifier is obtained by the steps of: making a training sample set which comprises a positive sample set and a negative sample set, wherein the positive sample set comprises sample images of digit character area in different types of dashboard images; and the negative sample set comprises sample images of pointer image elements, indicator light image elements and tick mark image elements in different types of dashboard images; normalizing a size of all sample images in the training sample set to obtain a training sample set with sample images of the same size; extracting the HOG feature for each of the sample images of the same size in the training sample set, generating a feature vector matrix, and labelling positive sample as 1 and negative sample as 0 to obtain sample labels for all of the sample images; and inputting the feature vector matrix and all of the sample labels into a linear SVM and performing training to obtain the HOG/SVM character segmentation two-class classifier.

    5. The adaptive automobile meter detection method based on character segmentation cascade classifier according to claim 3, the character filter processes a filtering method comprising the steps of: performing threshold segmentation for each of the digit character candidate areas to obtain a plurality of connected components elements; labelling each of the connected components elements and determining a minimum enclosing rectangle for each of the contour of the connected components elements; and screening each of the connected components elements respectively to obtain character elements in each of the digit character candidate areas, wherein screening conditions requires that: each of the connected components elements has a height greater than 12 pixels and smaller than 30 pixels; a pixel ratio of the connected components element to its minimum enclosing rectangle is less than 0.8; and an aspect ratio of the minimum enclosing rectangle of the connected components element is greater than 0.1 and smaller than 0.85.

    6. The adaptive automobile meter detection method based on character segmentation cascade classifier according to claim 3, the CNN digit classifier is obtained by the steps of: building a digit data set of automobile meter, wherein the digit data set comprises a training set and a testing set; labeling each image in the training set and in the testing set respectively to obtain image sets under 10 classification; normalizing an image size in the training set to 28*28 pixel; and then inputting the testing set and the training set into the CNN network and performing training to obtain the CNN digit classifier.

    7. The adaptive automobile meter detection method based on character segmentation cascade classifier according to claim 6, the CNN network employs a LeNet5 framework and has 7 layers, wherein a first layer is an input layer, which is an input layer for images having a size of 28*28 pixel; wherein a second layer is a convolutional layer which comprises 32 convolutional kernels and each of the convolutional kernels has a size of 3*3 pixel, wherein the convolutional layer employs rectified linear units to activate activation function; wherein a third layer is a pooling layer, which uses maximum pooling to reduce feature vectors of convolutional layer outputs and a size of a sampling kernel is 2*2, wherein a fourth layer is a convolutional layer which comprises 64 convolutional kernels and each of the convolutional kernels has a size of 3*3 pixel, wherein the convolutional layer employs rectified linear units to activate activation function; wherein a fifth layer is a pooling layer which has identical construction as the third layer; wherein a sixth layer is a fully connected layer comprising 120 neurons and employing rectified linear units to activate activation function; wherein a seventh layer is a fully connected layers comprising 10 neurons and employing multiple logistic regression to activate activation function.

    8. The adaptive automobile meter detection method based on character segmentation cascade classifier according to claim 3, a method of utilizing the reading value of each of the digit character candidate areas for screening the digit character candidate areas comprises the steps of: comparing the reading value of each of the digit character candidate areas with a digit set of the testing meter, then determining the reading value belonging to the digit set of the testing meter as the digit character area.

    9. The adaptive automobile meter detection method based on character segmentation cascade classifier according to claim 1, wherein the coordinates of the search center of each of the digit character areas are obtained by: combining a line equation and a circle equation to obtain coordinates of the two intersection points, and use the coordinates of the intersection point with a greater distance from the rotation center of the testing meter as coordinates of the search center, wherein the line equation is an equation of connecting the rotation center of the pointer with the center of the digit character area; wherein the circle equation is an equation having a center equal to the center of the digit character area and a radius of .

    10. The adaptive automobile meter detection method based on character segmentation cascade classifier according to claim 1, comprising a method of searching for the main tick marks corresponding to each of the digit character areas which comprises the steps of: searching for a largest connected components in the circle area as an i-th main tick mark of the testing meter, and determining the coordinates of a centroid of the main tick mark in the image coordinate system as an estimated position of the main tick mark.

    11. The adaptive automobile meter detection method based on character segmentation cascade classifier according to claim 2, wherein in the step (c), the HOG/SVM character segmentation two-class classifier processes multi-scale detection of ROI image to obtain multiple digit character candidate areas, p1 the character filter processes division of the elements in each of the digit character candidate areas and filtering out non-character elements to obtain character elements in each of the digit character candidate areas, the CNN digit classifier processes identification of the character elements in each of the digit character candidate areas to obtain a reading value of each of the digit character candidate areas, then utilizes the reading value of each of the digit character candidate areas for screening the digit character candidate areas to obtain the plurality of digit character areas.

    12. The adaptive automobile meter detection method based on character segmentation cascade classifier according to claim 11, wherein the HOG/SVM character segmentation two-class classifier is obtained by the steps of: making a training sample set which comprises a positive sample set and a negative sample set, wherein the positive sample set comprises sample images of digit character area in different types of dashboard images; and the negative sample set comprises sample images of pointer image elements, indicator light image elements and tick mark image elements in different types of dashboard images; normalizing a size of all sample images in the training sample set to obtain a training sample set with sample images of the same size; extracting the HOG feature for each of the sample images of the same size in the training sample set, generating a feature vector matrix, and labelling positive sample as 1 and negative sample as 0 to obtain sample labels for all of the sample images; and inputting the feature vector matrix and all of the sample labels into a linear SVM and performing training to obtain the two-class classifier of HOG/SVM character segmentation two-class classifier.

    13. The adaptive automobile meter detection method based on character segmentation cascade classifier according to claim 12, the character filter processes a filtering method comprising the steps of: performing threshold segmentation for each of the digit character candidate areas to obtain a plurality of connected components elements; labelling each of the connected components elements and determining a minimum enclosing rectangle for each of the contour of the connected components elements; and screening each of the connected components elements respectively to obtain character elements in each of the digit character candidate areas, wherein screening conditions requires that: each of the connected components elements has a height greater than 12 pixels and smaller than 30 pixels; a pixel ratio of the connected components element to its minimum enclosing rectangle is less than 0.8; and an aspect ratio of the minimum enclosing rectangle of the connected components element is greater than 0.1 and smaller than 0.85.

    14. The adaptive automobile meter detection method based on character segmentation cascade classifier according to claim 13, the CNN digit classifier is obtained by the steps of: building a digit data set of automobile meter, wherein the digit data set comprises a training set and a testing set; labeling each image in the training set and in the testing set respectively to obtain image sets under 10 classification; normalizing an image size in the training set to 28*28 pixel; and then inputting the testing set and the training set into the CNN network and performing training to obtain the CNN digit classifier.

    15. The adaptive automobile meter detection method based on character segmentation cascade classifier according to claim 14, the CNN network employs a LeNet5 framework and has 7 layers, wherein a first layer is an input layer, which is an input layer for images having a size of 28*28 pixel; wherein a second layer is a convolutional layer which comprises 32 convolutional kernels and each of the convolutional kernels has a size of 3*3 pixel, wherein the convolutional layer employs rectified linear units to activate activation function; wherein a third layer is a pooling layer, which uses maximum pooling to reduce feature vectors of convolutional layer outputs and a size of a sampling kernel is 2*2, wherein a fourth layer is a convolutional layer which comprises 64 convolutional kernels and each of the convolutional kernels has a size of 3*3 pixel, wherein the convolutional layer employs rectified linear units to activate activation function; wherein a fifth layer is a pooling layer which has identical construction as the third layer; wherein a sixth layer is a fully connected layer comprising 120 neurons and employing rectified linear units to activate activation function; wherein a seventh layer is a fully connected layers comprising 10 neurons and employing multiple logistic regression to activate activation function.

    16. The adaptive automobile meter detection method based on character segmentation cascade classifier according to claim 15, a method of utilizing the reading value of each of the digit character candidate areas for screening the digit character candidate areas comprises the steps of: comparing reading value of each of the digit character candidate areas with a digit set of the testing meter, then determining the reading value belonging to an area of the digit set of the testing meter as the digit character area.

    17. The adaptive automobile meter detection method based on character segmentation cascade classifier according to claim 16, wherein the coordinates of the search center of each of the digit character areas are obtained by: combining a line equation and a circle equation to obtain coordinates of the two intersection points, and use the coordinates of the intersection point with a greater distance from the rotation center of the testing meter as coordinates of the search center, wherein the line equation is an equation of connecting the rotation center of the pointer with the center of the digit character area; wherein the circle equation is an equation having a center equal to the center of the digit character area and a radius of .

    18. The adaptive automobile meter detection method based on character segmentation cascade classifier according to claim 17, comprising a method of searching for the main tick marks corresponding to each of the digit character areas which comprises the steps of: searching for a largest connected components in the circle area as the i-th main tick mark of the testing meter, and determining the coordinates of a centroid of the main tick mark in the image coordinate system as an estimated position of the main tick mark.

    19. The adaptive automobile meter detection method based on character segmentation cascade classifier according to claim 10, wherein in the step (c), the HOG/SVM character segmentation two-class classifier processes multi-scale detection of ROI image to obtain multiple digit character candidate areas, the character filter processes division of the elements in each of the digit character candidate areas and filtering out non-character elements to obtain character elements in each of the digit character candidate areas, the CNN digit classifier processes identification of the character elements in each of the digit character candidate areas to obtain a reading value of each of the digit character candidate areas, then utilizes the reading value of each of the digit character candidate areas for screening the digit character candidate areas to obtain the plurality of digit character areas.

    20. The adaptive automobile meter detection method based on character segmentation cascade classifier according to claim 19, wherein the HOG/SVM character segmentation two-class classifier is obtained by the steps of: making a training sample set which comprises a positive sample set and a negative sample set, wherein the positive sample set comprises sample images of digit character area in different types of dashboard images; and the negative sample set comprises sample images of pointer image elements, indicator light image elements and tick mark image elements in different types of dashboard images; normalizing a size of all sample images in the training sample set to obtain a training sample set with sample images of the same size; extracting the HOG feature for each of the sample images of the same size in the training sample set, generating a feature vector matrix, and labelling positive sample as 1 and negative sample as 0 to obtain sample labels for all of the sample images; and inputting the feature vector matrix and all of the sample labels into a linear SVM and performing training to obtain the HOG/SVM character segmentation two-class classifier, wherein the character filter processes a filtering method comprising the steps of: performing threshold segmentation for each of the digit character candidate areas to obtain a plurality of connected components elements; labelling each of the connected components elements and determining a minimum enclosing rectangle for each of the contour of the connected components elements; and screening each of the connected components elements respectively to obtain character elements in each of the digit character candidate areas, wherein screening conditions requires that: each of the connected components elements has a height greater than 12 pixels and smaller than 30 pixels; a pixel ratio of the connected components element to its minimum enclosing rectangle is less than 0.8; and an aspect ratio of the minimum enclosing rectangle of the connected components element is greater than 0.1 and smaller than 0.85, wherein the CNN digit classifier is obtained by the steps of: building a digit data set of automobile meter, wherein the digit data set comprises a training set and a testing set; labeling each image in the training set and in the testing set respectively to obtain image sets under 10 classification; normalizing an image size in the training set to 28*28 pixel; and then inputting the testing set and the training set into the CNN network and performing training to obtain the CNN digit classifier.

    Description

    BRIEF DESCRIPTION OF THE DRAWINGS

    (1) FIG. 1 is a flowchart of an adaptive automobile meter detection method based on character segmentation cascade classifier according to a preferred embodiment of the present invention;

    (2) FIG. 2 is a schematic diagram of a process of extracting a connected component of pointer component according to embodiment 2 of the present invention;

    (3) FIG. 3 is a schematic diagram of each intermediate image in the process of extracting a connected component of pointer component according to embodiment 2 of the present invention, wherein (a) is a schematic diagram of the contour of the rough image of the extracted pointer, (b) is a schematic diagram of the contour fitting line, (c) is a schematic diagram of the maximum inner contour, and (d) is a schematic diagram of the pointer connected component;

    (4) FIG. 4 is a graphical illustration of fitting pointer line obtained by least squares fitting method in step (3) according to embodiment 1 of the present invention, wherein (a) refers to an instrument pointer image corresponding to a speed signal of 80 km/h, and (b) refers to an instrument pointer image corresponding to a speed signal of 100 km/h;

    (5) FIG. 5 illustrates the character area obtained by cascade classifier with high robustness for a testing tachometer according to embodiment 8 of the present invention;

    (6) FIG. 6 illustrates the character area obtained by cascade classifiers with high robustness for a testing speedometer according to embodiment 8 of the present invention;

    (7) FIG. 7 illustrates the character area obtained by cascade classifiers with high robustness for different types of tachometers in embodiment 8 of the present invention;

    (8) FIG. 8 illustrates the character area obtained by cascade classifiers with high robustness for different types of speedometers according to embodiment 8 of the present invention;

    (9) FIG. 9 is an exemplary illustration of determining a search center in Embodiment 9 of the present invention;

    (10) FIG. 10 an exemplary illustration of search area in Embodiment 9 of the present invention;

    (11) FIG. 11 illustrates a region analysis of searching main tick marks in Embodiment 9 of the present invention;

    (12) FIG. 12 illustrates the main tick marks obtained from extraction in Embodiment 9 of the present invention;

    (13) FIG. 13 illustrates the coordinate system established by using pointer rotation center (x.sub.center, y.sub.center) as the coordinate origin; (x.sub.tick.sup.i, y.sub.tick.sup.i) refers to the coordinates of the i-th tick mark centroid in the image coordinate system, .sup.i refers to the acute angle between the line formed by (x.sub.center, y.sub.center) and (x.sub.tick.sup.i,y.sub.tick.sup.i) in the image coordinate system and the horizontal axis; .sup.i refers to the angle .sup.i in the coordinate system established by using pointer rotation center (x.sub.center,y.sub.center) as the coordinate origin;

    (14) FIG. 14 illustrates an error comparison chart between the algorithm in the literature Automatic Calibration of Analog and Digital Measuring Instruments Using Computer Vision (Chinese translation of Automatic Calibration of Analog and Digital Measuring Instruments Using Computer Vision) and the algorithm of this invention with respect to manual reading of the instrument.

    DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT

    (15) Preferred Embodiment 1: Referring to FIG. 1 and FIG. 4, an adaptive automobile meter detection method based on character segmentation cascade classifier according to this preferred embodiment of the present invention is illustrated. The method comprises the following steps:

    (16) Step 1: if an input signal value of testing meter is i, a meter pointer responses to the input signal and rotate to obtain a response value, then collect a color image of an entire dashboard as an original image, obtain ROI (Region of Interest) image of the testing meter (such as speedometer or tachometer) in the original image, perform gray-scale processing of the ROI image and threshold segmentation by using Ostu algorithm to obtain a binary image, perform binarization marking for each pointer connected components in the binary image and then proceed to Step 2;

    (17) Step 2: perform precise extraction of the meter pointer for the binary image after binarization marking by using contour analysis based method, obtain an image of the pointer connected components and then proceed to Step 3;

    (18) Step 3: process thinning operation for the image of the pointer connected component area to obtain thinning results, fit the fitting results using the least squares line fitting method, obtain a fitting line corresponding to the response value of the pointer at a current position, determine an angle of the fitting line .sup.j based on the fitting line and proceed to Step 4;

    (19) Step 4: adding the signal value i=i+Q, determine if i is less than or equal to a maximum scale value of the testing meter, if yes, then store the fitting line corresponding to the response value of the pointer at the current position and go back to Step (1), if no, then use M number of stored fitting lines to build a meter pointer information list and then execute Step 5, where an initial value of i is 0, M is an positive integer, Q is the difference between adjacent main scales;

    (20) the meter pointer information list includes the following information:

    (21) M number of input signal values, M number of pointer response values, the slope of the fitting line corresponding to each response value in the image coordinate system, M number of angles of the fitting line, more than two intersection points of two intersecting fitting lines and M number of pointer angles, where the pointer angle refers to a corresponding angle of the fitting line in the coordinate system which uses the rotation center of the meter pointer as the origin;

    (22) Step 5: design a character segmentation cascade classifier with strong robustness (strong robustness refers to one classifier can recognize characters in the image of different types of automobile meters), process multi-scale detection of the ROI image and obtain a digit character area on the testing meter, the character segmentation cascade classifier is constructed by a cascade combination of a HOG/SVM character segmentation two-class classifier, a character filter and a CNN (Convolutional Neural Network) digital classifier;

    (23) the HOG/SVM character segmentation two-class classifier is used for multi-scale detection of ROI image to obtain multiple digit character candidate areas,

    (24) the character filter is used to divide the elements in each of the digit character candidate areas and filter out non-character elements to obtain character elements in each of the digit character candidate areas,

    (25) the CNN digital classifier is used to identify the character elements in each of the digit character candidate areas and obtain reading value of each of the digit character candidate areas, then utilize the reading value of each of the digit character candidate areas for screening the digit character candidate areas to obtain digit character areas;

    (26) Step 6: search for the main tick mark of the meter based on the digit character area, connecting a rotation center of the pointer to a center of each digit character area and making an extension line, a length of the extension line has a fixed length , defining an end point of each extension line as a search center of the tick marks area corresponding to each digit character area respectively; setting each search center as a center of circle, searching for the main tick marks corresponding to each digit character area in the circle having a radius R, obtaining the main tick mark of each digit character area digit character;

    (27) Step 7: defining the pointer angle as an independent variable, the response value of the pointer as a dependent variable, the angle of the main tick marks and the display value corresponding to the angle of the main tick mark as an interpolation point, using Newton interpolation polynomial to establish a linear description relationship of Newton interpolation of the testing meter, substituting the pointer angle .sup.j and utilize the linear description relationship to obtain M number of response value of the pointer in the meter pointer information list, the angle of the main tick mark is: an angle between a connecting line of the main tick marks and a horizontal axis of a coordinate system with a position direction, the connecting line of the main tick marks is a connecting line between coordinate of the main tick marks in the coordinate system, whose origin is the rotation center of the pointer, and the coordinate origin;

    (28) Step 8: calculating an error value between each input signal value and the response value of the pointer corresponding to each input signal value of the testing meter respectively, if the error value is smaller than a standard threshold of error, the testing meter is classified as pass, if the error value is bigger than the standard threshold of error, the testing meter is classified as fail. According to this embodiment, the standard threshold of error is set according to GB/T 12548-2016 Automobile Speedometer, Tachometer Inspection and Correction Method.

    (29) M number of pointer positions are corresponding to M number of pointer input signal values, M number of fitting lines and M number of pointer response values. In Step 8, error values of each of the M number of pointer positions, which are corresponding to M the pointer input signal values, and the M number of response values are calculated respectively.

    (30) According to this embodiment, 1) the original image is processed by threshold segmentation, morphological and connected domain analysis; 2) pointer extraction method based on contour analysis is realized and the meter pointer information list is established; 3) the character segmentation cascade classifier is constructed by a cascade combination of a HOG/SVM character segmentation two-class classifier, a character filter and a CNN digit classifier and is capable of obtaining the digit character areas on the testing meter and the these characters' reading value corresponding to the main tick mark in the digit character area; 4) the character segmentation cascade classifier is adopted to identify the digit character areas of the meter; 5) region analysis based on the center of the digit character areas is used to determine the angular position corresponding to the tick mark; 6) a linear Newton interpolation description relationship between the angle of the meter pointer and the response value is established to determine the response value of the pointer. This embodiment is suitable for use in the field of visual inspection for automobile meter pointers.

    (31) Preferred Embodiment 2: Referring to FIG. 2 and FIG. 3 of the drawings, an adaptive automobile meter detection method based on character segmentation cascade classifier according to this embodiment is illustrated. According to this embodiment, the adaptive automobile meter detection method based on character segmentation cascade classifier as described in Embodiment 1 is further explained. According to this embodiment, the step of obtaining the image of the pointer connected components comprises the following steps:

    (32) Process rough extraction of the meter pointer for the binary image with the largest area after binarization to obtain a rough extracted image of the meter pointer;

    (33) Extract a contour of the rough extracted image of the meter pointer to obtain a contour image;

    (34) Process fitting line operation of the contour image by PPHT (Progressive Probabilistic Hough Transform) algorithm to obtain the contour image with contour fitting line; and

    (35) Search the contour image with contour fitting line for an inner contour with the largest area and extracting the connected component corresponding to the inner contour with the largest area as the connected component of the meter pointer.

    (36) Preferred Embodiment 3: Referring to FIG. 4 of the drawings, an adaptive automobile meter detection method based on character segmentation cascade classifier according to this embodiment is illustrated. According to this embodiment, the adaptive automobile meter detection method based on character segmentation cascade classifier as described in Embodiment 1 is further explained. According to this embodiment, in the Step 4, the k number of two intersection points (x.sub.k, y.sub.k) of two intersecting fitting lines is obtained by the following formula:

    (37) { x k = b 2 - b 1 k 1 - k 2 y k = k 1 b 2 - k 2 b 1 k 1 - k 2 ( both of the slopes k 1 and k 2 of the two intersecting fitting lines exist ) { x k = b 2 y k = k 1 b 2 + b 1 ( the slopes k 2 of one of the intersecting fitting lines does not exist )

    (38) Wherein b.sub.1 and b.sub.2 are the intercepts of the two intersecting fitting lines respectively, k.sub.1 and k.sub.2 are the slopes of the two intersecting fitting lines respectively;

    (39) The average of the intersection points of N number of fitting lines is used as the rotation center (x.sub.center, y.sub.center) of the meter pointer, and the rotation center (x.sub.center, y.sub.center) of the meter pointer is obtained by using the following formula:

    (40) ( x center , y center ) = ( .Math. k = 1 N x k N , .Math. k = 1 N y k N )

    (41) Wherein N and k are both positive integer.

    (42) Preferred Embodiment 4: Referring to FIG. 13 of the drawings, an adaptive automobile meter detection method based on character segmentation cascade classifier according to this embodiment is illustrated. According to this embodiment, the adaptive automobile meter detection method based on character segmentation cascade classifier as described in Embodiment 1 is further explained. According to this embodiment, the angle of the fitting line .sup.j corresponding to the position of the j-th pointer is obtained by the following formula:

    (43) j = arc tan ( .Math. k * .Math. ) * 180

    (44) Where k* is the slope of the j-th fitting line;

    (45) The pointer angle .sup.j is obtained by the following formula:

    (46) j = { 90 - j [ ( x line j , y line j ) Quadrant I ] 90 + j [ ( x line j , y line j ) Quadrant II ] 270 - j [ ( x line j , y line j ) Quadrant III ] 270 + j [ ( x line j , y line j ) Quadrant IV ]

    (47) Where (x.sub.line.sup.j, y.sub.line.sup.j) is the coordinates of an arbitrary point on the fitting line, Quadrant is the quadrant.

    (48) Preferred Embodiment 5: According to this embodiment, the adaptive automobile meter detection method based on character segmentation cascade classifier as described in Embodiment 1 is further explained. According to this embodiment, in step 5, the HOG/SVM character segmentation two-class classifier is obtained by the followings:

    (49) Step 5-1: making a training sample set that includes a positive sample set and a negative sample set, the positive sample set comprises sample images of digit character area in different types of dashboard images, the negative sample set comprises sample images of pointer elements, indicator light elements and tick mark elements in different types of dashboard images;

    (50) Step 5-2: normalize the size of all sample images in the training sample set to obtain a training sample set with sample images of the same size;

    (51) Step 5-3: extract the HOG feature for each sample of the same size in the training sample set, generate a feature vector matrix, label positive sample as 1 and negative sample as 0 to obtain labels for all samples;

    (52) Step 5-4: Input the feature vector matrix and the labels for all samples into a linear SVM and perform training to obtain the HOG/SVM character segmentation two-class classifier.

    (53) In practical operation, for tachometers, the sample image size is normalized to 32*32 pixels; for speedometers, the sample image size is normalized to 48*32 pixels. The unit used is pixel unless specified.

    (54) Preferred Embodiment 6: According to this embodiment, the adaptive automobile meter detection method based on character segmentation cascade classifier as described in Embodiment 1 is further explained. According to this embodiment, in the step 5, the character filter employs the following filtering method:

    (55) Perform threshold segmentation for each digit character candidate area to obtain a plurality of connected component elements;

    (56) Perform labelling for each of the connected component elements and find the minimum enclosing rectangle of each of the contour of connected component elements;

    (57) Perform screening for each of the connected component elements respectively to obtain the character elements in each of the digit character candidate areas,

    (58) The screening conditions are as follows:

    (59) Each connected component element has a height greater than 12 pixels and smaller than 30 pixels;

    (60) The pixel ratio of the connected components element to its minimum enclosing rectangle is less than 0.8; and

    (61) The aspect ratio of the minimum enclosing rectangle of the connected component element is greater than 0.1 and smaller than 0.85.

    (62) Preferred Embodiment 7: According to this embodiment, the adaptive automobile meter detection method based on character segmentation cascade classifier as described in Embodiment 1 is further explained. According to this embodiment, in the step 5, the CNN digital classifier is obtained by the followings:

    (63) Build a digit data set of automobile meter, the digit data set includes a training set and a testing set;

    (64) Label each image in the training set and in the testing set respectively to obtain 10 classification image sets;

    (65) Normalize the image size in the training set to 28*28 pixel;

    (66) Input the testing set and the normalized training set into the CNN network and perform training to obtain the CNN digit classifier;

    (67) The CNN network employs a LeNet5 framework and has 7 layers.

    (68) The first layer is the input layer, which is a 28*28 image input layer.

    (69) The second layer is a convolutional layer. The convolutional kernel has a size of 3*3, the number of convolutional kernel is 32. Relu (Rectified Linear Units) is employed to activate activation function.

    (70) The third layer is a pooling layer, which uses max pooling (maximum pooling) to reduce the feature vector of the convolutional layer output. The size of the sampling kernel is 2*2.

    (71) The fourth layer is a convolutional layer. The convolutional kernel has a size of 3*3, the number of convolutional kernels is 64. Relu is employed to activate activation function.

    (72) The fifth layer is a pooling layer, which is the same as the third layer.

    (73) The sixth layer and the seventh layer are both fully connected layers. The sixth layer has 120 neurons and employs Relu to activate activation function. The seventh layer has 10 neurons and employs softmax (multiple logistic regression) for activation.

    (74) According to this embodiment, a back-propagation algorithm is used to update the weights and offsets in the CNN, and the two fully-connected layers adopt the dropout (discarding rate) method to suppress the over-fitting phenomenon in the training CNN network. The dropout rate in the fully connection layer of the sixth layer is 0.5, and the dropout rate in the seventh layer is 0.25. In this embodiment, the number of iterations of the training network is 50, the size of the training set is 10000 images, and the size of the testing set is 2000 images. The final recognition accuracy of the CNN network on the testing set is 99.63%.

    (75) In practical applications, the number 9 is not present in the automobile dashboard. Therefore, the data set in the present embodiment includes nine numeric classifications for the number 0-8 and the tenth classification consists of other non-digit elements in the automobile meters.

    (76) Preferred Embodiment 8: Referring to FIG. 5 to FIG. 8 of the drawings, an adaptive automobile meter detection method based on character segmentation cascade classifier according to this embodiment is illustrated. According to this embodiment, the adaptive automobile meter detection method based on character segmentation cascade classifier as described in Embodiment 1 is further explained. According to this embodiment, in step 5, the specific process of utilizing the reading value of each of the digit character candidate areas for screening the digit character candidate areas is as follows:

    (77) Compare each reading value of the digit character candidate areas with the digit set of the testing meter, use the digit character candidate areas whose reading values belong to the digit set of the meter as the digit character area.

    (78) In practical applications, if the testing meter is a speedometer (as shown in FIG. 6), the digit set corresponding to the meter is {0 km/h,20 km/h, . . . 240 km/h}; if the testing meter is a tachometer (as shown in FIG. 5), the digit set corresponding to the meter is {0, 1, . . . , 8}*1000 r/min. The detected digit character area is labeled by a rectangular frame and the center of the rectangular frame is the center of the particular character area.

    (79) Preferred Embodiment 9: Referring to FIG. 9 to FIG. 13 of the drawings, an adaptive automobile meter detection method based on character segmentation cascade classifier according to this embodiment is illustrated. According to this embodiment, the adaptive automobile meter detection method based on character segmentation cascade classifier as described in Embodiment 1 is further explained. According to this embodiment, in step 6, coordinates of the search center of each digit character area is obtained by the following method:

    (80) Combine the line equation and the circle equation to obtain the coordinates of the two intersection points, and use the coordinates of the intersection point with a greater distance from the rotation center of the meter as coordinates of the search center (x.sub.searchcenter.sup.i, y.sub.searchcenter.sup.i)

    (81) The line equation is an equation connecting the rotation center of the pointer (x.sub.center, y.sub.center) with the center of the digit character area (x.sub.boxcenter.sup.i, y.sub.boxcenter.sup.i) as shown in equation (1).

    (82) The circle equation is an equation in which the center of the digit character area (x.sub.boxcenter.sup.i, y.sub.boxcenter.sup.i) is the center and is the radius, as shown in equation (2).

    (83) { y i - y rcenter y boxcenter i - y rcenter = x i - x rcenter x boxcenter i - x rcenter ( x boxcenter i x rcenter , y boxcenter i y rcenter ) x i = x rcenter ( x boxcenter i = x rcenter ) y i = y rcenter ( y boxcenter i = y rcenter ) ( 1 ) ( x - x boxcenter i ) 2 + ( y - y boxcenter i ) 2 = 2 ( 2 )

    (84) x.sup.i is the independent variable of the linear equation, y.sup.i is the dependent variable of the linear equation, and (x.sub.rcenter, y.sub.rcenter) is the coordinates of the center of the character area;

    (85) in the step 6, a method of searching for the main tick marks corresponding to each digit character area comprises the steps of:

    (86) Searching for the largest connected component in the circle area as the i-th main tick mark of the testing meter, and determining the coordinates (x.sub.tick.sup.i, y.sub.tick.sup.i) of the centroid of the main tick mark in the image coordinate system as the estimated position of the main tick mark;

    (87) The coordinates of the main tick mark are transformed from the image coordinate system to the rectangular coordinate system with the rotation center of the pointer (x.sub.center, y.sub.center) as the coordinate origin. The purpose of the transformation is to make the changes of angle become changes with monotonously increase;

    (88) In the coordinate system with the rotation center of the pointer as the coordinate origin, the angle of the centroid is obtained by:

    (89) i = arc tan ( .Math. y tick i - y center .Math. .Math. x tick i - x center .Math. ) * 180 i = { 90 - i [ ( x tick i , y tick i ) Quadrant I ] 90 + i [ ( x tick i , y tick i ) Quadrant II ] 270 - i [ ( x tick i , y tick i ) Quadrant III ] 270 + i [ ( x tick i , y tick i ) Quadrant IV ]

    (90) Where .sup.i is the acute angle between the line formed by rotation center of the pointer (x.sub.center, y.sub.center) and the equivalent centroid (x.sub.tick.sup.i, y.sub.tick.sup.i), and the horizontal axis in the image coordinate system; if x.sub.tick.sup.i=x.sub.center, .sup.i=90; in the coordinate system with (x.sub.center, y.sub.center) as the coordinate origin, .sup.i is clockwise as positive.

    (91) Preferred Embodiment 10: According to this embodiment, the adaptive automobile meter detection method based on character segmentation cascade classifier as described in Embodiment 1 is further explained. According to this embodiment, in step 7, the specific process of establishing the linear description relationship Newton interpolation of the testing meter is further described as follows:

    (92) The Newton interpolation polynomial is as follows:

    (93) First order difference f[x.sub.i, x.sub.i+1] is:

    (94) f [ x i , x i + 1 ] = f ( x i + 1 ) - f ( x i ) x i + 1 - x i

    (95) Second order difference f[x.sub.i, x.sub.i+1, x.sub.i+2] is:

    (96) f [ x i , x i + 1 , x i + 2 ] = f [ x i + 1 , x i + 2 ] - f [ x i , x i + 1 ] x i + 2 - x i

    (97) x.sub.i is the abscissa of the i-th interpolation point,

    (98) k order difference f[x.sub.0, x.sub.1, . . . x.sub.k is:

    (99) f [ x 0 , x 1 , .Math. , x k ] = f [ x 0 , .Math. , x k - 1 , x k ] - f [ x 0 , .Math. , x k - 1 ] x k - x 0

    (100) x.sub.k is the abscissa of the k-th interpolation point,

    (101) the k-th degree polynomial is:
    N.sub.n(x)=f(x.sub.0)+f[x.sub.0,x.sub.1](xx.sub.0)+ . . . fx_x_ . . . x.sub.nxx_xx_ . . . xx.sub.n_

    (102) where x is the pointer angle, N.sub.n(x) is the response value of the pointer corresponding to the pointer angle; {(x.sub.0, f(x.sub.0)), (x.sub.1, f(x.sub.1)), . . . , (x.sub.n, f(x.sub.n))} is the set of interpolation points participating in the interpolation, n3; {x.sub.0, x.sub.1, . . . , x.sub.n} is the corresponding angle value of the main tick mark of each character area in the coordinate system with the rotation center of the pointer as the coordinate origin, {f(x.sub.0), f(x.sub.1), . . . , f(x.sub.n)} is the number set corresponding to the main tick mark.

    (103) One skilled in the art will understand that the embodiment of the present invention as shown in the drawings and described above is exemplary only and not intended to be limiting. It will thus be seen that the objects of the present invention have been fully and effectively accomplished. Its embodiments have been shown and described for the purposes of illustrating the functional and structural principles of the present invention and is subject to change without departure from such principles. Therefore, this invention includes all modifications encompassed within the spirit and scope of the following claims.