CN105430393B - Picture processing method, picture processing device, picture processing platform and storage medium - Google Patents

Picture processing method, picture processing device, picture processing platform and storage medium Download PDF

Info

Publication number
CN105430393B
CN105430393B CN201410484687.0A CN201410484687A CN105430393B CN 105430393 B CN105430393 B CN 105430393B CN 201410484687 A CN201410484687 A CN 201410484687A CN 105430393 B CN105430393 B CN 105430393B
Authority
CN
China
Prior art keywords
picture
format
original
area
original picture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410484687.0A
Other languages
Chinese (zh)
Other versions
CN105430393A (en
Inventor
蔡述雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410484687.0A priority Critical patent/CN105430393B/en
Publication of CN105430393A publication Critical patent/CN105430393A/en
Application granted granted Critical
Publication of CN105430393B publication Critical patent/CN105430393B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention provides a picture processing method and a device and a picture processing platform, wherein the method is to obtain the attribute information of an original picture, firstly, the original picture is compressed without loss aiming at a PNG picture, then the transparent characteristic of the original picture is judged, if no transparent pixel point exists, the area or the picture color value of the original picture is judged, when the picture area is smaller than the area threshold value or the picture color value is smaller than the color threshold value, the picture after lossless compression is compressed, the picture after lossless compression is converted into a JPG format and then compressed, then the obtained two pictures with small volume are compared, the picture is selected as the processed picture, the judgment is carried out by combining the transparent characteristic, the color value and the area of the picture of the PNG picture in the scheme, the original picture information can be better represented by the small picture volume, and the picture representation effect is improved, the cost performance of the volume and the quality of the picture is improved.

Description

Picture processing method, picture processing device, picture processing platform and storage medium
Technical Field
The invention relates to the field of picture processing, in particular to a picture processing method, a picture processing device and a picture processing platform.
Background
With the development and popularization of network information technology and electronic information technology, people often use electronic pictures in daily life, such as mobile phones, digital cameras and the like, which have the function of taking pictures, and the sharing of a lot of image information becomes simple and convenient. In many current network platforms, the network platforms have functions of picture sharing, such as uploading a head portrait, an album, and the like. When a user uses a picture, the user often wants the picture to have good quality and small volume. However, for a picture with a fixed format, the quality and the volume of the picture are generally proportional, and the picture must necessarily satisfy a certain size to obtain a high picture quality, so a trade-off needs to be made between the picture quality and the volume size.
For example, in a network platform, when a user selects to upload a picture, the user drags or clicks to upload a picture in the PNG32 format, the system performs lossy compression according to the actual situation of the picture to enable the picture to meet the size of the image required by the platform, a new picture is returned to the user after compression is completed, and the user can select to download the picture. In addition, the comparison before and after compression can be performed on the picture provided by the user, for example, the user uploads the picture in JPEG format, and performs a certain degree of lossy compression according to the quality and size of the picture, so that the picture meets the requirements of a system platform, and then returns a new picture obtained by compressing the original picture to the user, displays the comparison between the new picture and the original picture, and the user can select to download the picture. In these schemes, the format of uploading the picture is determined by the format of the original picture, and when the format of the original picture is not supported in the system platform, the picture cannot be uploaded.
In order to solve the above problems, chinese patent document CN101808182A discloses a method, a terminal and a system for uploading pictures, where the method for uploading pictures includes obtaining picture information to be uploaded to a picture sharing website, determining whether the picture to be uploaded meets the requirement of the picture sharing website for uploading pictures according to the information, if so, uploading the picture to the picture sharing website, if not, correspondingly converting the picture according to the requirement of the picture sharing website, and then uploading the converted picture to the picture sharing website. According to the scheme, when a user uploads the picture to the picture sharing website through a terminal such as a PC (personal computer), the terminal can automatically convert the format of the uploaded picture which is not supported by the picture sharing website into the format supported by the picture sharing website and then uploads the converted picture to the picture sharing website, and therefore automatic picture uploading can be achieved. However, because the formats of uploaded pictures supported by the current picture sharing website are more and more diversified, and the characteristics of different picture formats are different, the scheme cannot select the optimal picture format from a plurality of picture formats, and cannot perform optimization processing on pictures with different formats.
Disclosure of Invention
Therefore, the technical problem to be solved by the present invention is that in the prior art, only format conversion and data compression can be performed during uploading of pictures, and optimization processing cannot be performed specifically for pictures of different formats, so as to provide a picture processing method and a picture processing device using the method, and to provide a picture processing platform using the picture processing device.
In order to solve the above technical problem, the present invention provides a method for processing an image, including:
determining attribute information of an original picture, wherein the original picture is a PNG format picture, and the attribute information comprises a transparent characteristic, an area and a color value;
carrying out lossless compression on an original picture to obtain an intermediate picture;
judging the transparency characteristic of the original picture, judging the area or color value of the original picture when no transparent pixel point exists, and converting the intermediate picture into a PNG8 format picture if the area of the original picture is smaller than an area threshold value or the color value of the original picture is smaller than a color threshold value; and if not, compressing the intermediate picture, converting the intermediate picture into a JPG format, then compressing, comparing the volumes of the two compressed pictures, and selecting the picture with small volume after compression.
The present invention also provides an image processing apparatus, including:
an attribute extraction module: determining attribute information of an original picture, wherein the original picture is a PNG format picture, and the attribute information comprises a transparent characteristic, an area and a color value;
a lossless compression module: carrying out lossless compression on an original picture to obtain an intermediate picture;
a judgment conversion module: judging the transparency characteristic of the original picture, judging the area or color value of the original picture when no transparent pixel point exists, and converting the intermediate picture into a PNG8 format picture if the area of the original picture is smaller than an area threshold value or the color value of the original picture is smaller than a color threshold value; and if not, compressing the intermediate picture, converting the intermediate picture into a JPG format, then compressing, comparing the volumes of the two compressed pictures, and selecting the picture with small volume after compression.
In addition, the invention also provides an image processing platform which comprises an image processing device and a storage device, wherein the image processing device is used for processing the image, and the storage device is used for storing the processed image.
Compared with the prior art, the technical scheme of the invention has the following advantages,
(1) the invention provides a picture processing method, obtaining the attribute information of an original picture, aiming at a PNG picture, firstly carrying out lossless compression on the original picture, then judging the transparency characteristic of the original picture, if no transparent pixel point exists, judging the area or the picture color value of the original picture, when the picture area is smaller than the area threshold value or the picture color value is smaller than the color threshold value, compressing the picture after lossless compression, converting the picture after lossless compression into a JPG format for recompression, then comparing the obtained pictures with small volume in two pictures, selecting the picture as the processed picture, carrying out picture optimization according to the attribute information of the picture, removing the information without influence on the picture quality through lossless compression, then carrying out judgment according to the transparency characteristic, the color value and the area of the picture, realizing better representing the original picture information with smaller picture volume, the method and the device improve the expression effect of the picture, improve the volume of the picture and the cost performance of the expression effect, are particularly suitable for the uploading, sharing and other processes of the picture, provide an optimized proper picture format for a user, and avoid the problems of overlarge volume of the picture, bandwidth waste and the like caused by improper picture format.
(2) The invention also provides a picture processing device using the picture optimization processing method, which comprises an attribute extraction module and a judgment conversion module, can realize the processing of the PNG picture, and performs optimization processing aiming at the original picture provided by the user by combining the content attribute and the format characteristic of the picture to obtain an optimal format and an expression form, thereby optimizing the expression mode of the picture.
(3) The invention also provides a picture processing platform using the picture processing device, which comprises the picture processing device and the storage equipment, wherein the pictures to be processed are stored in the storage equipment after being processed by the picture processing device, so that the attributes of the pictures are effectively utilized, and the picture sharing quality and the picture uploading speed are improved.
Drawings
In order that the present disclosure may be more readily and clearly understood, reference is now made to the following detailed description of the embodiments of the present disclosure taken in conjunction with the accompanying drawings, in which
FIG. 1 is a diagram illustrating a hardware environment in which a picture processing method operates according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating another hardware environment in which the image processing method operates according to the embodiment of the present invention;
FIG. 3 is a diagram illustrating another hardware environment in which the image processing method according to the embodiment of the present invention is executed
FIG. 4 is a flowchart of a picture processing method according to embodiment 1 of the present invention;
FIG. 5 is a flowchart of a picture processing method according to embodiment 2 of the present invention;
FIG. 6 is a flowchart of a picture processing method according to embodiment 3 of the present invention;
FIG. 7 is a flowchart of a picture processing method according to embodiment 4 of the present invention;
FIG. 8 is a block diagram of a picture processing apparatus according to embodiment 6 of the present invention;
FIG. 9 is a block diagram of a picture processing apparatus according to embodiment 7 of the present invention.
Detailed Description
In a specific embodiment, a plurality of picture processing methods under the inventive concept are provided. The design concept of the invention is to process the picture according to the attribute information of the picture, and carry out targeted processing by combining the format information of the picture with various characteristics such as transparency, picture area, picture volume, color value and the like, thereby reducing the picture volume and ensuring the picture quality. Because different pictures have different contents, for example, some pictures have rich colors and are single in color, some pictures contain transparent parts and the like, different pictures have different characteristics, various picture formats have different characteristics, some picture formats have rich colors and some picture format have small data volume, the invention combines the actual attributes of the pictures and the characteristics of various picture formats for processing by utilizing the characteristics, thereby ensuring the picture effect while reducing the picture volume as much as possible, being particularly suitable for the uploading, sharing and other processes of the pictures, providing proper pictures for users, and avoiding the problems of excessive picture volume, bandwidth waste, poor picture quality and the like caused by improper picture formats.
In this embodiment, the application environment of the method for processing pictures may be a terminal device capable of processing pictures, such as a computer and a mobile phone, as shown in fig. 1 and 2, in these devices, a user may select a picture to process the picture, and the processed picture is stored in these devices. The application environment of the image processing method may also be a website or a server of some application programs, for example, a user may log in the website or a client of the application programs through a mobile phone or a computer, and after the user selects an image, the image is uploaded to the server for processing, as shown in fig. 3, and the server processes and stores the image.
Example 1:
in the embodiment, a device for executing the method is a computer, and program instructions corresponding to the following operations are set in the computer, and the flow of the computer for processing the picture is shown in fig. 4.
The user provides an original picture in JPG format. JPEG format pictures, also called JPG format pictures, are the most common image formats, the file postfile is called ". JPG" or ". JPEG", organized and formulated by a software development union, it is a lossy compression format, JPEG compression technology is very advanced, it removes redundant image data by lossy compression mode, can show very rich and vivid images while obtaining the extremely high compression ratio, can get better image quality with the least disk space.
The process of processing the JPG format pictures provided by the user in this embodiment is as follows, as shown in fig. 4:
firstly, a computer acquires attribute information of an original picture, wherein the attribute information of the picture comprises a picture area and a picture color value. The picture area refers to the product of the length and width of the picture. The picture color value refers to the number of all colors in all pixel points contained in the picture. Generally, each pixel point is represented by a group of numerical values, all the pixel points in the picture are traversed, and if the group of numerical values are completely the same, the same color is represented, and the color is classified into one color; if the color values are different, different colors are represented, and the color values are increased by one, so that all the color values of the picture are obtained.
Then, the computer determines whether the area of the original picture is smaller than an area threshold, where the area threshold is 100 × 100 pixels in this embodiment, and when the area is larger than the area threshold, the original picture is compressed to obtain a JPG format picture 1, the original picture is converted into a PNG format and then compressed to obtain a PNG format picture 2, and then the volume of the JPG format picture 1 and the volume of the PNG format picture 2 are calculated. The volume of the picture refers to the size of a storage space occupied by the picture, for example, the size of the picture is 1k, 1M and the like, and the volume of the picture is comprehensively determined by various factors such as the area, the number of pixel points and the like. After the volume of the JPG format picture 1 and the volume of the PNG format picture 2 are obtained, the difference value of the two volumes is calculated to be used as the volume deviation, and the volume deviation is actually the difference value of the volumes of the two pictures. And if the volume deviation is less than 40K and the color value of the original picture is more than 30000 pictures, selecting the picture 1 in the JPG format as the processed picture, otherwise, selecting the picture with small volume in the picture 1 in the JPG format and the picture 2 in the PNG format as the processed picture.
In the above process, for example, the original picture is compressed to obtain a picture 1 in a JPG format, and the original picture is converted into a PNG format and then compressed to obtain a picture 2 in a PNG format, where the compression is lossy compression. Lossy compression is to reduce the amount of signal according to the characteristics of human eyes (such as time lag), and the signal itself has a certain loss, i.e., the image quality has a loss. The compression ratio in the present embodiment is selected to be 75%, and in other embodiments, 70% to 80% may be selected.
In the above process, after the JPG format picture 1 and the PNG format picture 2 are obtained, since the pictures displayed in the JPG format have rich colors, if the color values are more than 30000 types as in this embodiment, the picture format in the JPG format is preferentially considered, but the size of the pictures cannot be too large, so that the picture 1 in the JPG format is preferentially selected as the processed picture when the volumes of the two obtained pictures are not much different. When the color values are not many, the picture in the JPG format does not need to be selected preferentially, but the picture with small volume is selected, so that the space occupied by the picture is reduced. When the volume difference is large, priority is also given to small volume, so in these cases, a picture with small volume is selected as a processed picture.
In other alternative embodiments, the area threshold may be selected from 500-.
The computer can obtain the processed picture by the processing mode. The method combines the actual attributes of the pictures and the characteristics of the JPG picture format to perform optimization processing, thereby obtaining the picture format and the expression mode which can optimally represent the original picture information, improving the picture expression effect, being particularly suitable for the uploading, sharing and other processes of the pictures, providing the optimized and proper picture format for users, and avoiding the problems of overlarge picture volume, bandwidth waste, poor image quality and the like caused by improper picture format.
Example 2:
in this embodiment, another JPG picture processing method is provided, which can be executed by a mobile phone terminal, where a user stores an original picture in a JPG format in a mobile phone, and the mobile phone has an instruction to execute a processing procedure as follows, so as to complete a processing procedure, as shown in fig. 5, first, the mobile phone reads attributes of the original JPG picture, where the attributes include inherent attributes of the picture, such as format information, area, color value, original compression ratio, volume, and the like, and then, the mobile phone determines the area of the original picture, and if the number of pixels is less than 150 × 150, converts the original picture into a PNG8 format through a program to serve as a processed picture.
If the area of the original picture is not smaller than the threshold value 150 × 150 pixels, the mobile phone performs lossy compression on the original picture through a program to obtain a JPG picture 1, converts the original picture into a PNG24 format (or into a PNG32 format in other embodiments), performs lossy compression to obtain a PNG picture 2, and then calculates the deviation of the volumes of the JPG picture 1 and the PNG picture 2. If the color value of the original picture is more than 20000 and the volume deviation of the compressed JPG picture 1 and the compressed PNG picture 2 is less than 50K, selecting the JPG picture 1 as an optimized picture; and if the color value of the original picture is less than or equal to 20000 or the volume deviation between the compressed JPG picture 1 and the compressed PNG picture 2 is more than or equal to 50K, selecting a picture with a small volume as the processed picture.
In the lossy compression process, a compression ratio, such as 70% or 80%, may be preset in the mobile phone, and the lossy compression is performed according to the compression ratio. In other embodiments, an appropriate compression ratio may be obtained according to the current situation, in which case, an original compression ratio of the original picture needs to be obtained first, and if the original compression ratio is greater than 75%, 75% is used as the compression ratio in the lossy compression; and if the original compression ratio of the original picture is less than 75%, compressing by taking the original compression ratio of the original picture as the compression ratio in the lossy compression.
After the above process is completed, the picture processed by the mobile phone can be used as a final picture, and further processing can be performed by the mobile phone, for example, the obtained processed picture is compared with an original picture, if the format of the processed picture is the same as that of the original picture, the processed picture is directly output and stored in a memory card of the mobile phone; if not, the original picture is compressed to obtain a compressed picture with the format consistent with that of the original picture, and the compressed picture and the processed picture are simultaneously output and stored in a memory card of the mobile phone. Therefore, more choices can be provided for the user, and the diversity requirements of the user are met.
In another preferred implementation manner, after the mobile phone performs the above processing on the picture, the mobile phone may further output a picture in a WEBP format for the original picture, and store the picture in the mobile phone card. Since the WEBP picture format picture is used in some places, outputting such a picture for standby also provides more convenience for the user. In the process of picture output, various types of pictures can be output for a user according to needs, and the user can select the pictures according to needs, so that the use is more convenient.
Example 3:
in this embodiment, an apparatus for executing the method is a server, where an instruction code for executing the following process is stored in the server, a user logs in a website through a mobile phone, the website provides an interface for the user to select a picture, when the user selects a PNG picture to upload, the server obtains information of the picture, and performs the following processing on the picture, and a flowchart is shown in fig. 6:
firstly, the server determines the attribute information of the PNG picture selected by the user, wherein the attribute information comprises a transparent characteristic, an area and a color value.
PNG format pictures, i.e., Portable Network Graphics (PNG), are an image file format. The PNG can provide a lossless compressed image file having a length 30% smaller than the GIF. The PNG format has three forms of 8 bits, 24 bits and 32 bits, wherein the 8 bit PNG supports two different transparent forms (index transparent and alpha transparent), the 24 bit PNG does not support transparent, and the 32 bit PNG adds 8 bit transparent channels on the basis of 24 bits, thereby showing 256 levels of transparency. The numbers following PNG8 and PNG24 are color values that represent the most indexed and stored color values of this PNG format. "8" represents 8 of 2, i.e. 256 colors, while 24 represents approximately 1600 more than ten thousand colors to the 24 th power of 2.
The area and color values of the picture are described in the above embodiments, and are not described herein again. The transparency characteristic of the picture refers to whether transparent pixel points exist in the picture or not, if the transparent pixel points exist in the picture, the picture is considered to be a semitransparent picture, and if the transparent pixel points do not exist in the picture, namely all the pixel points are opaque, the picture is considered not to be the semitransparent picture. Whether a pixel is transparent or not is represented by an Alpha Channel (Alpha Channel).
Because the PNG picture contains more picture information, in order to reduce the size of the picture, the server firstly carries out lossless compression on the original PNG picture, and removes the information which does not influence the display quality of the picture. Lossless compression is to combine and arrange video digital signals, and the signals are not lost. And (4) taking the original picture as a picture for subsequent processing after the original picture is not compressed.
Then, the server further judges the transparency characteristic of the original picture, when no transparent pixel point exists, the area or the picture color value of the picture is judged, and if the picture area is smaller than 100 x 100 pixel points or the picture color value is smaller than 30000 different colors, the PNG picture after lossless compression is converted into a PNG8 format picture; otherwise, namely under the condition that the area of the picture is not less than 100 × 100 pixel points and the color value of the picture is not less than 30000, compressing the PNG picture subjected to lossless compression to obtain one picture, converting the PNG picture subjected to lossless compression into a JPG format, then compressing the PNG picture subjected to lossless compression to obtain another picture, comparing the volumes of the two compressed pictures, selecting the picture with a small volume after compression as the processed picture, and storing the processed picture in a server to provide functions of viewing, downloading and the like for a user.
In other alternative embodiments, the area threshold may also be selected from 500-; the color threshold can be 20000-.
In the picture processing method provided by the embodiment, the original PNG picture selected by the user is processed through the server, the picture is processed according to the attribute information of the picture in the scheme, and the judgment is carried out according to the transparency characteristic, the color value and the area of the picture, so that the original picture information can be better represented by a smaller picture volume, the quality and the volume cost performance of the picture are improved, the method is particularly suitable for the uploading, sharing and other processes of the picture, an optimized and proper picture is provided for the user, and the problems of overlarge picture volume, bandwidth waste and the like caused by improper picture format are solved.
Example 4:
in the present embodiment, another PNG picture processing method is provided, where the original picture format is PNG, and the processing flow here is shown in fig. 2. The device for implementing the method is a tablet computer, a user selects a picture existing in the tablet computer by using the tablet computer, a program instruction for executing the following operation is stored in the tablet computer, and the process of processing the picture selected by the user is completed by running the instruction, and a flow chart is shown in fig. 7.
After the user selects the picture, firstly, the tablet computer executes the instruction of PNG picture processing to obtain the attributes of the picture after lossless compression, including the area, color value and transparency characteristic of the picture and the original compression ratio of the picture. The compression ratio of the picture refers to the compression ratio of the digital size of the image compressed by the encoder and the digital size of the original image. And then, carrying out lossless compression on the original PNG picture to obtain a lossless compressed picture.
And then, calling a program in the image by the tablet personal computer, and judging whether transparent pixel points exist in the original image, wherein if the transparent pixel points exist, the original image is a semitransparent image, and if the transparent pixel points do not exist, the image is not the semitransparent image. In the process, if transparent pixel points exist in the original picture, lossy compression with a compression rate of 75% is performed on the picture after lossless compression, and the picture is converted into a picture with a transparent PNG8 format, wherein the compression rate of 75% is a preferable compression rate, and compression close to the preferable compression rate, such as 70-80%, can also be realized.
If the area is smaller than 150 × 150 pixels or the color value of the picture is smaller than 35000 pixels, converting the lossless compressed picture into a PNG8 format; otherwise, the lossless compressed picture is converted into a JPG format, the converted JPG format picture and the lossless compressed original PNG format picture are respectively subjected to lossy compression, the compression ratio can be set to be 70%, then the volume of the compressed picture is compared, the picture in the format with small volume is selected as the processed picture, and the processed picture is stored in the tablet personal computer.
After the above process is completed, the picture processed by the tablet computer may be stored as a final picture, or may be further processed by the tablet computer, for example, the obtained processed picture is compared with an original picture, and if the format of the processed picture is the same as that of the original picture, the processed picture is directly output and stored in a hard disk of the tablet computer; if not, the original picture is compressed to obtain a compressed picture with the format consistent with that of the original picture, and the compressed picture and the processed picture are simultaneously output and stored in the tablet personal computer for the user to select. Therefore, more choices can be provided for the user, and the diversity requirements of the user are met.
In another preferred implementation manner, after the tablet computer performs the above processing on the picture, the tablet computer may further output a picture in a WEBP format for the original picture, and store the picture in a hard disk of the tablet computer. Because the WEBP picture format picture is already popularized and used, the graph is output for standby, and more convenience is provided for users. In the process of picture output, various types of pictures can be output for a user according to needs, and the user can select the pictures according to needs, so that the use is more convenient.
Example 5:
in the above embodiments 1 and 2, a processing method for a picture in a JPG format is provided, specifically:
acquiring attribute information of an original picture, wherein the original picture is a JPG format picture, and the attribute information of the picture comprises a picture area and a picture color value; judging whether the area of the original picture is smaller than an area threshold value or not, if not, compressing the original picture to obtain a first format picture, converting the original picture into a PNG format and then compressing to obtain a second format picture, calculating the volume deviation of the first format picture and the second format picture, if the volume deviation is smaller than the deviation threshold value and the color value of the original picture is larger than the color threshold value, selecting the first format picture, and otherwise, selecting a picture with a small volume from the first format picture and the second format picture.
In the above embodiments 3 and 4, a processing method for a PNG format picture is given, and the specific method is as follows:
firstly, determining attribute information of an original picture, wherein the original picture is a PNG format picture, and the attribute information comprises a transparent characteristic, an area and a color value; then, carrying out lossless compression on the original picture to obtain an intermediate picture; then, judging the transparency characteristic of the original picture, judging the area or color value of the original picture when no transparent pixel point exists, and converting the intermediate picture into a PNG8 format picture if the area of the original picture is smaller than an area threshold value or the color value of the original picture is smaller than a color threshold value; and if not, compressing the intermediate picture, converting the intermediate picture into a JPG format, then compressing, comparing the volumes of the two compressed pictures, and selecting the picture with small volume after compression.
In this embodiment, a picture processing method is provided, which combines the two picture processing modes, and can automatically select and convert a format, and select a suitable compression algorithm to obtain a processed picture. The hardware environment for realizing the method is a server, the server is connected with a computer of a user, an interface for uploading pictures by the user is arranged on the computer of the user, and the server acquires the pictures selected by the user through the interface and processes the pictures. For the picture uploaded by the user, the server determines whether the picture adopts a PNG (portable network gateway) or JPG (Java network gateway) format according to the picture format and other attribute parameters, and then determines the compression ratio of the volume of the compressed picture according to an algorithm. The process is as follows:
step 1: the user uploads a picture (PNG or JPG format) through an uploading interface in the computer, the server obtains the transparency characteristic, the picture format, the picture color value, the picture area, the picture volume, the picture original compression ratio and other attribute parameters of the picture, and then the operation of the step 2 is carried out. The meaning of these attribute parameters has been described in the above embodiments and will not be described in detail here. .
Step 2: the server judges the format of the picture, firstly carries out lossless compression on the original PNG picture if the picture format is PNG, then judges whether the original PNG picture has transparent pixel points (namely whether the picture is a picture with translucency), if so, executes step 3, and if not, executes step 4. If the picture is not in the PNG format but in the JPG format, go to step 6.
And step 3: the original PNG picture is compressed in a loss mode and is converted into a picture with an alpha transparent PNG8 format, the original picture is the PNG, therefore, when the original picture is compressed in a loss mode, 75% of compression rate is selected, and 75% of the original picture is tested to be a preferred value through a large number of pictures.
And 4, step 4: and (3) the picture is a PNG picture without transparent pixel points, the area of the original picture is judged at the moment, and if the area of the original picture is less than 100 x 100 pixel points or the color value of the picture is less than 30000 types, the picture subjected to lossless compression in the step (2) is converted into a picture in a PNG8 format. If not, go to step 5.
And 5: and 2, converting the PNG picture subjected to lossless compression in the step 2 into a JPG format, then performing lossy compression on the picture in the JPG format, performing lossy compression on the PNG picture subjected to lossless compression, wherein the compression rate is 75%, comparing the volumes of the compressed pictures, outputting the picture with a small volume as a processed picture, and storing the processed picture in a hard disk of a server.
Step 6: the picture is in a JPG format, the original compression ratio of the picture is firstly obtained, if the compression ratio is larger than 75%, the compression ratio of the subsequent lossy compression is designated to be 75%, and if the compression ratio is smaller than 75%, the compression ratio of the subsequent lossy compression is designated to be the original compression ratio of the picture. If the picture area is less than 100 x 100, the picture is converted into a picture in a PNG8 format. If not, go to step 7.
And 7: converting the picture into the PNG format, where the picture can be converted into PNG24 or PNG32 as required, or into PNG32 format in this embodiment, lossy-compressing the original JPG picture to obtain a JPG picture 1, lossy-compressing the PNG-format picture to obtain a PNG picture 2, and compressing the compression ratio according to the compression ratio obtained in step 6. If the color value of the original picture is larger than 30000 and the volume deviation between the JPG picture 1 and the PNG picture 2 is smaller than 50k, adopting the JPG picture 1 as a preferred picture; otherwise, if the picture color value is less than 30000 or the volume deviation between the JPG picture 1 and the PNG picture 2 is greater than or equal to 50k, comparing the picture volumes of the two formats, selecting the picture with the format with the small volume as the processed picture, and storing the processed picture in a hard disk of the server. The volume deviation of the two pictures in this embodiment is actually the difference between the volumes of the two pictures.
And 8: after the steps are executed, the server obtains a picture which is consistent with the original image format or has converted the picture format, if the picture which is different from the original picture format is obtained, the original picture is continuously subjected to lossy compression once to obtain a compressed picture which is the same as the original picture format, the compressed picture and the processed picture with the converted format are simultaneously output and stored in a hard disk of the server, and if the picture which is the same as the picture format is obtained, the compressed picture and the processed picture with the converted format are directly output and stored in the hard disk of the server. In this case, the format of the picture after format conversion may be converted into the format of the original picture, and then the converted picture is output to the hard disk of the server. The type of picture to be output can be selected according to the user's needs and step 9 is performed.
And step 9: a WEBP format picture is output for standby (chrome support) for the original picture and stored in a hard disk of a server.
Step 10: the server can also display all the processed and output pictures in a computer interface of the user for the user to select, and can also recommend one or more of the pictures for the user.
The image processing method in the embodiment can be used for processing the images by the server, and supports user-defined compression rate and batch processing. The method can automatically select a proper picture format for the user, and avoid the problems of overlarge picture volume, bandwidth waste and the like caused by improper picture format.
In addition, for original pictures with other formats, such as bmp, gif, and the like, format conversion and compression optimization can be performed according to the characteristics of the picture formats and the characteristics of other attribute parameters of the pictures under the teaching of the concept of the invention, so that the optimized pictures are obtained.
For example, if the original picture is a dynamic gif picture, no processing is performed, if the original picture is a static gif, the original picture is converted into a picture in a jpg format, and then the volume is compared, because jpg is superior to gif in image quality, but the volume is not necessarily, and finally, a picture with a small volume is selected as an output picture.
Example 6:
in this embodiment, a picture processing apparatus for processing a picture in PNG format is provided, and a block diagram of the structure is shown in fig. 8, which includes
An attribute extraction module: determining attribute information of an original picture, wherein the original picture is a PNG format picture, and the attribute information comprises a transparent characteristic, an area and a color value;
a lossless compression module: carrying out lossless compression on an original picture to obtain an intermediate picture;
a judgment conversion module: judging the transparency characteristic of the original picture, judging the area or color value of the original picture when no transparent pixel point exists, and converting the intermediate picture into a PNG8 format picture if the area of the original picture is smaller than an area threshold value or the color value of the original picture is smaller than a color threshold value; and if not, compressing the intermediate picture, converting the intermediate picture into a JPG format, then compressing, comparing the volumes of the two compressed pictures, and selecting the picture with small volume after compression.
Preferably, the judging and converting module is further configured to, when a transparent pixel exists, compress and convert the intermediate picture into a picture with a transparent PNG8 format.
Further preferably, the compression in the conversion module is determined to be lossy compression.
In this embodiment, the compression ratio of the lossy compression is 75%, the area threshold is 10000 pixel points, and the color threshold is 30000 different colors. In other embodiments, the compression rate of the lossy compression is 70% to 80%, the area threshold is 500 pixels to 22500 pixels, and the color threshold is 20000 to 35000 different colors.
The picture processing device in the embodiment can realize optimization processing of the PNG format picture, and performs optimization processing on the original picture provided by the user by combining the content attribute and the format characteristic of the picture to obtain an optimal format and an expression form, so that the expression mode of the picture is optimized.
Example 7:
in this embodiment, another image processing apparatus is provided for processing an image in a JPG format, and a block diagram of the structure is shown in fig. 9, which includes
An extraction module: acquiring attribute information of an original picture, wherein the original picture is a JPG format picture, and the attribute information of the picture comprises a picture area and a picture color value;
a judging module: and judging whether the area of the original picture is smaller than an area threshold value, if not, compressing the original picture to obtain a first format picture, converting the original picture into a PNG format, compressing to obtain a second format picture, calculating the volume deviation of the first format picture and the second format picture, if the volume deviation is smaller than the deviation threshold value and the color value of the original picture is larger than a color threshold value, selecting the first format picture, otherwise, selecting a picture with a small volume in the first format picture and the second format picture.
Preferably, the judging module is further configured to judge whether the area of the original picture is smaller than an area threshold, and if so, convert the original picture into a PNG8 format picture.
In addition, the compression in the judging module is lossy compression.
In other embodiments, the attribute information further includes an original compression ratio of the original image, and the determining module further includes a compression ratio obtaining sub-module: obtaining the compression ratio of the lossy compression, and if the original compression ratio of the original picture is larger than 75%, taking 75% as the compression ratio of the lossy compression; and if the original compression ratio of the original picture is less than 75%, taking the original compression ratio of the original picture as the compression ratio in the lossy compression.
In this embodiment, the first format picture is a JPG format picture, and the second format picture is a PNG format picture. The area threshold is 10000 pixel points, the color threshold is 30000 different colors, and the volume deviation threshold is 50 k. In other embodiments. The area threshold is 500 pixels to 22500 pixels, the color threshold is 20000-35000 different colors, and the volume deviation threshold can be selected from 20K to 50K.
The image processing device in the embodiment can realize the optimization processing of the JPG format image, and the optimization processing is carried out on the original image provided by the user by combining the content attribute and the format characteristic of the image, so that the optimal format and the expression form are obtained, and the expression mode of the image is optimized.
Example 8:
the present embodiment provides a picture processing platform, which includes the picture processing apparatus and the storage device in embodiments 6 and 7, where the picture processing apparatus is configured to process a picture, and the storage device is configured to store the processed picture, process the picture, and may be used in services such as uploading, sharing, and storing the picture in a website. In other image processing platforms, only one image processing device of embodiments 6 or 7 may be included.
The picture processing platform is an intelligent image platform, which is also called an intelligent image platform. When a user uses a picture, the user often wants the picture to have good quality and small volume, which requires a trade-off between picture quality and volume. The intelligent image platform mashups the image compression requirements of PNG, JPEG and GIF in various formats together, and is more convenient for the operability and selectivity of users.
Meanwhile, the intelligent graph platform is embodied in intelligence. When the user selects the picture format, it is often unclear whether a picture should use the PNG format or the JPEG format, whether the picture should use the PNG32 or the PNG8, or the alpha + PNG8, so the picture processing device in the smart picture platform helps the user to automatically convert the proper and optimal picture format and push the converted picture format as the recommended format to the user. Because the WEBP format pictures are becoming popular nowadays, the smart graphics platform will also convert a WEBP format picture for the user, and the WEBP format picture has a smaller volume and better image quality compared with JPEG.
The used technologies mainly include HTML5File API, imagemap library, PNGCRUSH library, PNGQUANT library, and the picture optimization processing method in the above embodiments. Wherein, HTML5File API: and providing a foreground interface for a user to pull the uploaded picture and click the uploaded picture. ImageMagick provides a picture conversion basis and provides picture conversion methods such as picture compression, picture WEBP and the like. PNGCRUSH implements a PNG lossless compression algorithm library. PNGQUANT implements a PNG lossy compression algorithm library.
In the processing program of the image processing apparatus, the image processing method in the other embodiments is utilized, the format and the attribute of the current image are processed, for example, the original image is JPEG, the attribute of the original image is obtained first, then, according to the attribute of the original image, whether the image is suitable to be converted into the PNG or PNG8 image is determined according to the parameters (color value number, area value, transparency, etc.) of the image, and finally, the volume of the image before and after comparison is performed, and the image is adopted preferentially. The specific methods have been described in detail in the foregoing embodiments, and are not described again.
The specific operation is as follows:
(1) entering a page, the user clicks and uploads a picture or pulls and uploads a picture (the picture format can be PNG, JPEG, GIF)
(2) The picture processing platform automatically selects proper compression quality and recommends proper picture format for the user.
(3) The user can compare the image quality of the new picture and the original picture on the page, and panoramic image comparison and thumbnail image comparison are provided.
(4) If the picture quality volume is not satisfied, the user can select other compression rates to recompress the picture.
(5) The user may download the converted new picture.
(6) And batch uploading and downloading of pictures are supported.
The picture processing platform in the embodiment uploads the pictures to be uploaded or shared after the pictures are processed, so that the quality of the pictures is improved.
It should be understood that the above examples are only for clarity of illustration and are not intended to limit the embodiments. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. And are neither required nor exhaustive of all embodiments. And obvious variations or modifications therefrom are within the scope of the invention.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.

Claims (17)

1. An image processing method, comprising:
judging the format of an original picture, and determining attribute information of the original picture, wherein when the original picture is a PNG format picture, the attribute information of the original picture comprises a transparent characteristic, an area and a color value; when the original picture is a JPG format picture, the attribute information of the original picture comprises a picture area and a picture color value;
when the original picture is a PNG format picture, carrying out lossless compression on the original picture to obtain an intermediate picture; when the transparent characteristic of the original picture indicates that no transparent pixel point exists in the original picture, judging the area or color value of the original picture; if the area of the original picture is smaller than an area threshold value or the color value of the original picture is smaller than a color threshold value, converting the intermediate picture into a PNG8 format picture; if the area of the original picture is not smaller than the area threshold value and the color value of the original picture is not smaller than the color threshold value, compressing the intermediate picture, converting the intermediate picture into a JPG format, compressing the intermediate picture, comparing the volumes of the two compressed pictures, and selecting the picture with a small volume after compression; the method comprises the steps of obtaining an intermediate picture, converting the intermediate picture into a JPG format, and compressing the intermediate picture, wherein the compression ratio of the compression comprises a user-defined compression ratio;
when the original picture is a JPG format picture, judging whether the picture area of the original picture is smaller than an area threshold value or not, if not, compressing the original picture to obtain a first format picture, converting the original picture into a PNG format, then compressing to obtain a second format picture, calculating the volume deviation of the first format picture and the second format picture, if the volume deviation is smaller than the deviation threshold value and the picture color value of the original picture is larger than a color threshold value, selecting the first format picture, otherwise, selecting a picture with a small volume in the first format picture and the second format picture;
comparing the selected picture with the original picture, and if the format of the selected picture is the same as that of the original picture, directly outputting the selected picture; and if the selected picture is different from the original picture in format, compressing the original image to obtain a compressed picture consistent with the original picture in format, and simultaneously outputting the compressed picture and the selected picture for a user to select.
2. The method as claimed in claim 1, wherein the determining the transparency characteristic of the original picture further comprises compressing and converting the intermediate picture into a picture with transparent PNG8 format when transparent pixel points exist.
3. The method as claimed in claim 2, wherein in the process of compressing and converting the intermediate pictures into pictures with transparent PNG8 format, the compression is lossy compression.
4. The method according to claim 1, wherein the compressing is performed after the intermediate picture is compressed and converted into the JPG format, and the compressing is performed after the intermediate picture is compressed, and the compressing is lossy compression.
5. The method according to claim 3 or 4, wherein the lossy compression has a compression ratio of 70-80%.
6. The method of claim 3 or 4, wherein the lossy compression has a compression ratio of 75%.
7. The method of claim 1 or 2 or 3 or 4, wherein the area threshold is 500 to 22500 pixels, and wherein the color threshold is 20000 to 35000 different colors.
8. The method according to any one of claims 1, 2, 3 or 4, wherein the area threshold is 10000 pixels and the color threshold is 30000 different colors.
9. A picture processing apparatus, comprising:
an attribute extraction module: when an original picture is a PNG format picture, determining attribute information of the original picture, wherein the attribute information of the original picture comprises a transparent characteristic, an area and a color value;
an extraction module: when the original picture is a JPG format picture, acquiring attribute information of the original picture, wherein the attribute information of the original picture comprises a picture area and a picture color value;
a lossless compression module: when the original picture is a PNG format picture, carrying out lossless compression on the original picture to obtain an intermediate picture;
a judgment conversion module: when an original picture is a PNG format picture and the transparent characteristic of the original picture indicates that no transparent pixel point exists in the original picture, judging the area or color value of the original picture; if the area of the original picture is smaller than an area threshold value or the color value of the original picture is smaller than a color threshold value, converting the intermediate picture into a PNG8 format picture; if the area of the original picture is not smaller than the area threshold value and the color value of the original picture is not smaller than the color threshold value, compressing the intermediate picture, converting the intermediate picture into a JPG format, compressing the intermediate picture, comparing the volumes of the two compressed pictures, and selecting the picture with a small volume after compression; the method comprises the steps of obtaining an intermediate picture, converting the intermediate picture into a JPG format, and compressing the intermediate picture, wherein the compression ratio of the compression comprises a user-defined compression ratio;
a judging module: when an original picture is a JPG format picture, judging whether the picture area of the original picture is smaller than an area threshold value or not, if not, compressing the original picture to obtain a first format picture, converting the original picture into a PNG format, then compressing to obtain a second format picture, calculating the volume deviation of the first format picture and the second format picture, if the volume deviation is smaller than the deviation threshold value and the picture color value of the original picture is larger than a color threshold value, selecting the first format picture, otherwise, selecting a picture with a small volume in the first format picture and the second format picture;
comparing the selected picture with the original picture, and if the format of the selected picture is the same as that of the original picture, directly outputting the selected picture; and if the selected picture is different from the original picture in format, compressing the original image to obtain a compressed picture consistent with the original picture in format, and simultaneously outputting the compressed picture and the selected picture for a user to select.
10. The apparatus of claim 9, wherein the determining and converting module is further configured to compress and convert the intermediate picture into a picture with transparent PNG8 format when the transparent pixel exists.
11. The apparatus according to claim 9 or 10, wherein the compression in the decision conversion module is lossy compression.
12. The apparatus of claim 11, wherein the lossy compression has a compression ratio of 70% -80%.
13. The apparatus of claim 11, wherein the lossy compression has a compression ratio of 75%.
14. The apparatus of claim 9, 10, 12 or 13, wherein the area threshold is 500 pixels to 22500 pixels, and wherein the color threshold is 20000 to 35000 different colors.
15. The apparatus according to any one of claims 9, 10, 12 or 13, wherein the area threshold is 10000 pixels and the color threshold is 30000 different colors.
16. A picture processing platform, comprising a storage device and a picture processing apparatus according to any one of claims 9 to 15, wherein the picture processing apparatus is configured to process a picture, and the storage device is configured to store the processed picture.
17. A storage medium having computer usable program code stored therein, the computer usable program code when executed implementing a picture processing method as claimed in any one of claims 1 to 8.
CN201410484687.0A 2014-09-19 2014-09-19 Picture processing method, picture processing device, picture processing platform and storage medium Active CN105430393B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410484687.0A CN105430393B (en) 2014-09-19 2014-09-19 Picture processing method, picture processing device, picture processing platform and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410484687.0A CN105430393B (en) 2014-09-19 2014-09-19 Picture processing method, picture processing device, picture processing platform and storage medium

Publications (2)

Publication Number Publication Date
CN105430393A CN105430393A (en) 2016-03-23
CN105430393B true CN105430393B (en) 2020-02-11

Family

ID=55508288

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410484687.0A Active CN105430393B (en) 2014-09-19 2014-09-19 Picture processing method, picture processing device, picture processing platform and storage medium

Country Status (1)

Country Link
CN (1) CN105430393B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107333135B (en) * 2017-06-05 2020-07-10 贵阳朗玛信息技术股份有限公司 Image picture presenting method and device
CN108154542B (en) * 2017-12-22 2021-11-02 上海小度技术有限公司 Method for adding semitransparent property to JPG file
CN110351312B (en) 2018-04-02 2021-10-26 腾讯科技(深圳)有限公司 Picture sharing method and device, computer equipment and storage medium
CN108681449A (en) * 2018-05-17 2018-10-19 北京航空航天大学 Digital satellite load information compresses multiple connection source code artificial intelligence Writing method
CN109271540B (en) * 2018-09-26 2021-05-25 浙江万朋教育科技股份有限公司 Implementation method for combining picture lossy compression and recording transparency information
CN110322381A (en) * 2019-07-30 2019-10-11 江西师范大学 A kind of PS teaching method Internet-based and system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2435728A (en) * 2006-03-01 2007-09-05 Symbian Software Ltd A method for choosing a compression algorithm
KR100736750B1 (en) * 2006-03-07 2007-07-06 케이티하이텔솔루션(주) Mobile magazine offering system and method using thereof
CN102291506B (en) * 2010-06-21 2015-10-07 腾讯科技(深圳)有限公司 The method of picture uploading and device
CN102546899A (en) * 2010-12-10 2012-07-04 上海晨兴希姆通电子科技有限公司 Cell phone and picture processing method of cell phone
CN102957906A (en) * 2011-08-29 2013-03-06 广州九游信息技术有限公司 Method and system for image classifying compression
CN102611823B (en) * 2012-01-13 2014-06-04 百度在线网络技术(北京)有限公司 Method and equipment capable of selecting compression algorithm based on picture content
CN103826028B (en) * 2012-11-19 2017-08-25 腾讯科技(深圳)有限公司 A kind of method and apparatus of Lossless Compression picture

Also Published As

Publication number Publication date
CN105430393A (en) 2016-03-23

Similar Documents

Publication Publication Date Title
CN105430393B (en) Picture processing method, picture processing device, picture processing platform and storage medium
JP7038021B2 (en) Adaptive transfer function for video coding and decoding
US20190342241A1 (en) Systems and methods for manipulating and/or concatenating videos
KR101906834B1 (en) Device and method for selecting resource of application in wireless terminal
KR100501173B1 (en) Method for Displaying High-Resolution Pictures in Mobile Communication Terminal, Mobile Communication Terminal and File Format Converting System of the Pictures therefor
CN106911943B (en) Video display method and device and storage medium
JP2006085681A (en) File conversion and sharing system and method thereof
CN109840879B (en) Image rendering method and device, computer storage medium and terminal
CN105491398B (en) Image processing method, picture processing unit and picture processing platform
KR101843411B1 (en) System for cloud streaming service, method of image cloud streaming service based on transparency of image and apparatus for the same
JP4444623B2 (en) Moving image conversion apparatus and method, moving image distribution apparatus, mail relay apparatus, and program
KR102273141B1 (en) System for cloud streaming service, method of cloud streaming service using still image compression technique and apparatus for the same
KR20160131827A (en) System for cloud streaming service, method of image cloud streaming service using alpha level of color bit and apparatus for the same
KR20160082521A (en) Chroma down-conversion and up-conversion processing
CN112399196B (en) Image processing method and device
CN108933945B (en) GIF picture compression method, device and storage medium
JP2007201935A (en) Control method of image processing apparatus, and image processing apparatus
CN113038179A (en) Video encoding method, video decoding method, video encoding device, video decoding device and electronic equipment
KR102405143B1 (en) System for cloud streaming service, method of image cloud streaming service using reduction of color bit and apparatus for the same
WO2024096931A1 (en) High dynamic range image format with low dynamic range compatibility
EP4392929A1 (en) High dynamic range image format with low dynamic range compatibility
CN105376461A (en) Method and system for transmitting data
CN113870114A (en) Picture splicing method and device
CN115249207A (en) Video super-resolution method and device, video super-resolution model, medium and terminal equipment
JP4723796B2 (en) Moving picture conversion apparatus and method, moving picture distribution apparatus and method, and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant