Methods for handling files, terminals
A technology for processing files and terminals, applied in image data processing, image enhancement, image analysis, etc., can solve problems such as image pixel loss and seriousness, and achieve the effect of improving experience.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0033] In this embodiment, a method for processing files is provided, figure 1 is a flowchart of a method for processing files according to an embodiment of the present invention, such as figure 1 As shown, the process includes the following steps:
[0034] Step S102: collecting the image data of the file to be processed by using the first light to obtain the color value of the pixel in the first image data of the file to be processed and the first coordinate information of the pixel in the first image data in the first image data;
[0035] Step S104: collecting the image data of the file to be processed by using the second light to obtain the first coordinate information of the pixel in the second image data of the file to be processed;
[0036] Step S106: Adjust the pixel points in the second image data corresponding to the coordinate information of the pixel points in the first image data according to the color values of the pixel points in the first image data.
[0037...
Embodiment approach
[0064] Method 1: Adjust the color value of the pixel point corresponding to the coordinate value other than the coordinate value corresponding to the first layer in the multiple layers in the second image data to the color value corresponding to the first layer in the multiple layers. The color values of the layers are consistent; among them, the first layer is the base color layer of the file to be processed.
[0065] In a specific application scenario, this method can be document restoration: take the array X, calculate the D color average value D0 of the background color layer, and modify the color values corresponding to the coordinate values of all annotation layers such as Z1 and Z2 in the array X It is D0, that is, fill the data of layer 1, layer 2 and other comment parts with the color average value of the underlying layer, and get the array A0, then A0 is the restored document. In addition, operations such as character recognition can also be performed.
[00...
Embodiment 2
[0086] In this embodiment, a device for processing files is also provided, and the device is used to implement the above embodiments and preferred implementation modes, and what has been described will not be repeated. As used below, the term "module" may be a combination of software and / or hardware that realizes a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.
[0087] figure 2 is a schematic structural diagram of a device for processing files according to an embodiment of the present invention, such as figure 2 As shown, the device includes:
[0088] The first collection module 22 is configured to collect the image data of the file to be processed by using the first light, and obtain the color value of the pixel in the first image data of the file to be processed and the pixel point of the ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


