Abstract:
The present disclosure relates to an image processing device and method. The device includes: an acquiring unit for acquiring an image containing an object image; a calculating unit for calculating one or more candidate object image areas based on color and edge characteristics of the image; a selecting unit for selecting a candidate object image area with the maximal similarity to a predetermined color model as a first object image area from the one or more candidate object image areas; a determining unit for determining other of the one or more candidate object image areas as a non-object image area or a second object image area with the first object image area; a creating unit for creating an adaptive color model; and a detecting unit for detecting, based on the adaptive color model, an area containing the object image in the each of the first and second object image areas.
Abstract:
A method and apparatus for smoothing an image representing foreground or background. The method comprises: dividing the image in a specified granularity; for a block divided containing a blank pixel and a non-blank pixel, modifying a value of the blank pixel to a value obtained from a value of the non-blank pixel to obtain a filled block; obtaining the block smoothed by performing singular value decomposition on a matrix of pixels of the filled block, wherein values in the matrix of pixels of the block smoothed is calculated as a product of the obtained singular value, a left singular vector, and a transpose of a right singular vector; and for each of the non-blank pixels in the block smoothed, restoring the values of the non-blank pixels to initial values before the filling step, so as to obtain a reconstructed block.
Abstract:
The present invention discloses a method and apparatus for correcting a corner point of an image and an image processing device. The method includes: determining first candidate corner points of an initial corner point in a first local region; obtaining information related to the image in a second local region; selecting, among the first candidate corner points of the initial corner point, the first candidate corner points meeting a predetermined condition, as second candidate corner points of the initial corner point according to the information; and correcting the initial corner point using the second candidate corner points of the initial corner point. The apparatus is configured to perform the processes of the method. The image processing device includes the apparatus for correcting a corner point of an image. With the technology, a roughly detected corner point can be corrected.
Abstract:
Embodiments of the present invention provide a device and method for correcting a document image and a scanner. Wherein the device includes: an extracting unit configured to extract boundaries in a first direction of the document image and extract lines in the first direction according to a content of the document image, a filtering unit configured to filter the extracted lines, a constructing unit configured to extend and adjust the filtered lines and construct a correcting mesh, and a correcting unit configured to perform correcting according to the correcting mesh. An accurate correcting model can be constructed by taking document boundaries and document contents into account in constructing the correcting model and constructing a correcting mesh after filtering, extending and adjusting the extracted lines, thereby effectively eliminating distortion in the document image.
Abstract:
An image processing method and apparatus is provided. The image processing method includes steps of: generating a first scale binary image from an image, wherein the first scale is smaller than the original scale of the image; detecting at least one text line in the image based on the first scale binary image; generating a second scale binary image from the image, wherein the second scale is larger than the first scale; for each text line, calculating a similarity between corresponding sections in the first scale binary image and the second scale binary image, and removing the text line for which the similarity is lower than a predetermined level; for one or more of the remaining text line(s), performing OCR on corresponding section(s) in the second scale binary image to determine character orientation(s) of corresponding text line(s); and determining the orientation of the image according to the determined character orientation(s).
Abstract:
A method and apparatus of accelerating deep learning, and a deep neural network are provided. The method comprises: randomly initializing weights and biases of a deep neural network as n-bit fixed-point numbers; reducing data in a plurality of layers in the deep neural network that have calculation amounts are greater than a first predetermined threshold as m-bit fixed-point numbers, where m and n are integers and m
Abstract:
The present disclosure relates to methods for estimating an accuracy and robustness of a model and devices thereof. According to an embodiment of the present disclosure, the method comprises calculating a parameter representing a possibility that a sample in the first dataset appears in the second dataset; calculating an accuracy score of the model with respect to the sample in the first dataset; calculating a weighted accuracy score of the model with respect to the sample in the first dataset, based on the accuracy score, by taking the parameter as a weight; and calculating, as the estimation accuracy of the model with respect to the second dataset, an adjusted accuracy of the model with respect to the first dataset according to the weighted accuracy score.
Abstract:
A method and apparatus of open set recognition, and a computer-readable storage medium are disclosed. The method comprises acquiring auxiliary data and training data of known categories for open set recognition, training a neural network alternately using the auxiliary data and the training data, until convergence; extracting a feature of data to be recognized for open set recognition, using the trained neural network; and recognizing a category of data to be recognized, based on the feature of the data to be recognized.
Abstract:
A device for testing a blockchain network is provided. The device includes a processor. The processor is configured to calculate a matching degree between a configuration of the blockchain network and a template configuration corresponding to application scenario of the blockchain network; calculate performance of the blockchain network; calculate a health degree for the blockchain network; and determine whether the blockchain network is in a stable state based on the matching degree, the performance and the health degree.
Abstract:
Disclosed are a method and apparatus for managing effectiveness of an information processing task in a decentralized data management system. The method comprising: sending requests for multiple information processing tasks by a client to multiple execution subjects, transmitting information processing tasks in a sequential information processing task list in an order to the multiple execution subjects; caching the requested information processing tasks to a task cache queue, caching the sequential information processing task list as a whole to the task cache queue; judging whether each information processing task in the task cache queue satisfies a predetermined conflict condition; moving the information processing task to a conflict task queue if it is determined that the task satisfies the predetermined conflict condition, deleting the task from the conflict task queue and caching the task to the task cache queue when the predetermined conflict condition is not satisfied.