Abstract:
The present disclosure discloses an image recognition method and apparatus, and belongs to the field of computer technologies. The method includes: extracting a local binary pattern (LBP) feature vector of a target image; calculating a high-dimensional feature vector of the target image according to the LBP feature vector; obtaining a training matrix, the training matrix being a matrix obtained by training images in an image library by using a joint Bayesian algorithm; and recognizing the target image according to the high-dimensional feature vector of the target image and the training matrix. The image recognition method and apparatus according to the present disclosure may combine LBP algorithm with a joint Bayesian algorithm to perform recognition, thereby improving the accuracy of image recognition.
Abstract:
The present disclosure discloses an image recognition method and apparatus, and belongs to the field of computer technologies. The method includes: extracting a local binary pattern (LBP) feature vector of a target image; calculating a high-dimensional feature vector of the target image according to the LBP feature vector; obtaining a training matrix, the training matrix being a matrix obtained by training images in an image library by using a joint Bayesian algorithm; and recognizing the target image according to the high-dimensional feature vector of the target image and the training matrix. The image recognition method and apparatus according to the present disclosure may combine LBP algorithm with a joint Bayesian algorithm to perform recognition, thereby improving the accuracy of image recognition.
Abstract:
The present disclosure discloses method and apparatus for lossless image compression, and relates to the field of computer technologies. The method includes: removing ancillary information and redundant information from a picture having a predefined format in a preset manner; decompressing the picture to restore original picture data of the picture; and setting a compression parameter for the original picture data of the picture and compressing the original picture data of the picture into a picture having the same format before the picture decompression using the compression parameter. According to the present disclosure, ancillary data and redundant data in a picture are removed, and after decompression is performed on the picture, the picture is compressed again according to a preset compression parameter, so that based on lossless compression, a compression rate of the picture is increased, and storage space is saved.
Abstract:
The present disclosure provides an image compression method and system. The method includes: receiving, by an access server, an image compression request submitted by a terminal; selecting, by the access server according to the image compression request's time information, an image compression server whose load is lower than a preset threshold, and sending the image compression request to the selected image compression server; compressing, by the selected image compression server, the images according to the image compression request, saving the compressed images, and forwarding URL addresses of the compressed images to the access server; and forwarding, by the access server, the URL addresses to the terminal. In the present disclosure, an image compression system processes an image compression request of a terminal, and performs load balancing automatically according to the load of various image compression servers in the system, thereby implementing automatic processing of mass images of the terminal.
Abstract:
The present disclosure discloses method and apparatus for image compression. The method includes: acquiring a threshold of a similarity score of an image; acquiring a first quality factor of the image, a first similarity score corresponding to the first quality factor, a second quality factor of the image, and a second similarity score corresponding to the second quality factor; obtaining a functional relationship between quality factor and similarity score of the image by means of curve fitting using the first quality factor, the first similarity score, the second quality factor, and the second similarity score; determining an optimum quality factor of the image according to the functional relationship between the quality factor and the similarity score and the threshold of the similarity score; and compressing the image according to the determined optimum quality factor. With the present disclosure, iterations in image compression can be completed in a very short time.