Image identification method and device
An image recognition, image technology, applied in character and pattern recognition, instruments, computer parts and other directions, can solve the problem of unsatisfactory recognition effect, and achieve the effect of high accuracy and precision
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0023] The image recognition method of this embodiment, such as figure 1 shown, including the following steps:
[0024] Step S101 , divide the image, extract the gradient histogram features of each small square after division, and the number of divisions is balanced between the recognition efficiency and recognition accuracy of the image recognition method. Assuming that each image is divided into m small squares, the m small squares are recorded as g i ,i=1,2...m.
[0025] Step S102, establishing a model based on shape estimation that is suitable for the object to be recognized, and the model is composed of various parts. For example, if the entire model consists of k parts, each part is denoted as p k ,k=1,2...K. The local scores corresponding to each part of the model are calculated for each small square according to the gradient histogram features.
[0026] The partial scoring formula is: S k (I, g i ,p k )=w k *φ(I, g i )+b k
[0027] Among them, I represents ...
Embodiment 2
[0039] In order to further improve the recognition results, this embodiment adds the judgment of the position of the object to be recognized on the basis of Embodiment 1. Specifically, after judging that there is an object to be recognized in the image, the middle and small squares are combined according to the small grid with the highest global score. The coordinates of the grid determine the position of the object to be recognized in the image. In this way, the combination of small squares at corresponding positions can be marked in the image as the object to be recognized for reference by the user.
[0040] Other technical features of this embodiment are the same as those of Embodiment 1, and will not be repeated here.
Embodiment 3
[0042] If the size of the image does not match the size of the model, it may cause false recognition consequences. Therefore, in this embodiment, the image can also be down-sampled, and the steps from S101 to S104 are performed on each image after the down-sampling, then each image has a highest global score, and then the highest global score and the highest global score are selected. The threshold value is compared and judged happily. Images of various sizes obtained after downsampling, that is, image pyramids, at least one size of the image matches the size of the model. Therefore, using this embodiment can further increase the accuracy and precision of image recognition.
[0043] For the down-sampling performed in this embodiment, the more stages and the finer the recognition effect, the more accurate the recognition effect, but the recognition efficiency is sacrificed. Therefore, the number of down-sampling stages also depends on requirements, preferably ten stages. In a...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 