CN110062127B - Job picture processing method and device - Google Patents

Job picture processing method and device Download PDF

Info

Publication number
CN110062127B
CN110062127B CN201910444139.8A CN201910444139A CN110062127B CN 110062127 B CN110062127 B CN 110062127B CN 201910444139 A CN201910444139 A CN 201910444139A CN 110062127 B CN110062127 B CN 110062127B
Authority
CN
China
Prior art keywords
picture
processed
job
size
paper
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
CN201910444139.8A
Other languages
Chinese (zh)
Other versions
CN110062127A (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.)
Yichun Yilian Technology Co ltd
Original Assignee
Yichun Yilian Technology 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 Yichun Yilian Technology Co ltd filed Critical Yichun Yilian Technology Co ltd
Priority to CN201910444139.8A priority Critical patent/CN110062127B/en
Publication of CN110062127A publication Critical patent/CN110062127A/en
Application granted granted Critical
Publication of CN110062127B publication Critical patent/CN110062127B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/387Composing, repositioning or otherwise geometrically modifying originals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/387Composing, repositioning or otherwise geometrically modifying originals
    • H04N1/3877Image rotation
    • H04N1/3878Skew detection or correction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/387Composing, repositioning or otherwise geometrically modifying originals
    • H04N1/393Enlarging or reducing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • H04N23/81Camera processing pipelines; Components thereof for suppressing or minimising disturbance in the image signal generation

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

The application relates to a homework picture processing method, which is used for adjusting the brightness of a to-be-processed homework picture after receiving the to-be-processed homework picture, so that the problem that a picture shot by a student is dark is solved. And the picture inclination adjustment is also carried out on the pictures of the homework to be processed, so that the problem of inclination of the text images on the shot pictures caused by incorrect placement of the student homework is solved. Because the homework pictures uploaded by students may be similar to the size of A3 paper and also similar to the size of A4 paper, the picture size of the homework pictures to be processed is adjusted, the sizes of the homework pictures to be processed are unified to be the second preset size, the convenience of the teacher for checking the homework of the students is improved, and the difficulty of the teacher for checking the homework is reduced.

Description

Job picture processing method and device
Technical Field
The present application relates to the field of image processing, and in particular, to a method and an apparatus for processing job pictures.
Background
In the prior art, a student shoots a homework through a mobile phone APP, and uploads a homework picture for a teacher to check, the student homework generally comprises homework paper with a paper size of a4 or test roll paper with a paper size of A3, the student homework picture with a paper size similar to a4 is uploaded after shooting the homework paper with a paper size of a4, and the student homework picture with a paper size similar to A3 is uploaded after shooting the test roll paper with a paper size similar to A3. However, in the process of taking a picture of a homework, the student may have the situations that the shot picture is dark, the picture size is not standard, the picture text on the shot picture is inclined due to incorrect placement of the homework, and the uploaded homework picture has both a homework picture similar to the size of a4 paper and a homework picture similar to the size of A3 paper, which all increase the difficulty of the teacher in checking.
Disclosure of Invention
In order to overcome the problems in the related art at least to a certain extent, the application provides a job picture processing method and device.
The scheme of the application is as follows:
a job picture processing method comprises the following steps:
receiving a job picture to be processed;
adjusting the job picture to be processed, wherein the adjusting comprises: adjusting brightness, adjusting picture inclination and adjusting picture size;
the picture resizing specifically comprises:
detecting the size of the job picture to be processed, and judging whether the size of the job picture to be processed meets the size of standard job paper;
and if the to-be-processed job picture does not accord with the standard job paper size, adjusting the to-be-processed job picture to the standard job paper size.
The adjusting the to-be-processed job picture to a standard job paper size specifically comprises:
judging the edge part of the to-be-processed job picture exceeding the standard job paper specification;
and cutting off the edge part of the to-be-processed operation picture exceeding the standard operation paper specification.
The step of judging the edge part of the to-be-processed job picture exceeding the standard job paper specification specifically comprises the following steps:
judging the standard operation paper specification closest to the length-width ratio of the operation picture to be processed;
amplifying or reducing the to-be-processed job picture to the size of the nearest standard job paper specification;
judging the edge part of the job picture to be processed exceeding the nearest standard job paper specification;
detecting the size of the adjusted operation picture, and judging the size of the adjusted operation picture;
if the size of the adjusted operation picture is a first preset size, dividing the adjusted operation picture into two operation pictures with second preset sizes, and outputting the divided two operation pictures;
and if the size of the adjusted operation picture is a second preset size, outputting the adjusted operation picture.
Preferably, in an implementable manner of the present application, the adjusting further comprises: adjusting the background color of the picture;
the adjusting of the picture ground color specifically comprises the following steps: and replacing the background color of the operation picture to be processed with the eye-protecting color.
Preferably, in an implementable manner of the present application, the brightness adjustment specifically includes:
performing brightness detection on the job picture to be processed, and comparing the brightness of the job picture to be processed with a preset brightness threshold;
and if the to-be-processed job picture is lower than a preset brightness threshold, the brightness of the to-be-processed job picture is improved until the preset brightness threshold is reached.
Preferably, in an implementation manner of the present application, the comparing the brightness of the job picture to be processed with a preset brightness threshold specifically includes:
partitioning the to-be-processed job picture, comparing the brightness of each region of the partitioned to-be-processed job picture with a preset brightness threshold value respectively, and judging the region in the partitioned to-be-processed job picture, which is lower than the preset brightness threshold value;
the method for improving the brightness of the job picture to be processed until a preset brightness threshold is reached specifically comprises the following steps:
and increasing the brightness of the area which is lower than the preset brightness threshold in the to-be-processed operation picture after the partition until the preset brightness threshold is reached.
Preferably, in an implementable manner of the present application, the picture tilt adjusting specifically includes:
performing image text detection on the job picture to be processed to obtain an image text in the job picture to be processed;
judging whether the image text is inclined relative to the edge straight line of the to-be-processed job picture;
and if the image text is inclined relative to the edge straight line of the to-be-processed operation picture, correcting the image text of the to-be-processed operation picture.
Preferably, in an implementation manner of the present application, the performing image text rectification on the image text of the job picture to be processed specifically includes:
calculating the angle of the image text inclination;
and reversely rotating the image text by a corresponding angle according to the inclined angle of the image text.
A job picture processing apparatus comprising:
the receiving module is used for receiving the job pictures to be processed;
the picture adjusting module is used for adjusting the to-be-processed job picture, and the adjustment comprises the following steps: adjusting brightness, adjusting picture inclination and adjusting picture size;
the picture size adjustment of the picture adjustment module specifically comprises:
if the to-be-processed job picture does not accord with the standard job paper size, adjusting the to-be-processed job picture to the standard job paper size; the method specifically comprises the following steps:
judging the edge part of the to-be-processed job picture exceeding the standard job paper specification specifically comprises: judging the standard operation paper specification closest to the length-width ratio of the to-be-processed operation picture, amplifying or reducing the to-be-processed operation picture to the size of the closest standard operation paper specification, and judging the edge part of the to-be-processed operation picture exceeding the closest standard operation paper specification;
cutting off the edge part of the to-be-processed operation picture exceeding the standard operation paper specification;
the size detection module is used for carrying out size detection on the job picture to be processed and judging whether the size of the job picture to be processed meets the size of standard job paper or not; the device is also used for detecting the size of the adjusted operation picture and judging the size of the adjusted operation picture;
the processing module is used for processing the adjusted operation picture according to the judgment result, and specifically comprises:
if the size of the adjusted operation picture is a first preset size, dividing the adjusted operation picture into two operation pictures with second preset sizes, and outputting the divided two operation pictures;
and if the size of the adjusted operation picture is a second preset size, outputting the adjusted operation picture.
The technical scheme provided by the application can comprise the following beneficial effects: in the application, after receiving the to-be-processed homework picture, the to-be-processed homework picture is subjected to brightness adjustment, so that the problem that the photo shot by a student is darker is solved. And the picture inclination adjustment is also carried out on the pictures of the homework to be processed, so that the problem of image text inclination on the shot pictures caused by incorrect placement of the student homework is solved. Because the homework pictures uploaded by students may be similar to the size of A3 paper or similar to the size of a4 paper, the method and the device further adjust the picture size of the homework pictures to be processed, detect the size of the adjusted homework pictures, judge whether the size of the adjusted homework pictures is a first preset size or a second preset size, divide the adjusted homework pictures into two homework pictures with the second preset size if the size of the adjusted homework pictures is the first preset size, and directly output the adjusted homework pictures with the second preset size if the size of the adjusted homework pictures is the second preset size. The sizes of the to-be-processed work pictures are the second preset sizes, convenience of a teacher in checking student works is improved, and difficulty of checking by the teacher is reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a flowchart of a job picture processing method according to an embodiment of the present application;
fig. 2 is a flowchart illustrating processing of an adjusted job picture according to a determination result in a job picture processing method according to an embodiment of the present application;
fig. 3 is a job image processing apparatus according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
Fig. 1 is a flowchart of a job image processing method according to an embodiment of the present application, and referring to fig. 1 to fig. 2, a job image processing method includes:
s11: receiving a job picture to be processed;
the to-be-processed homework picture is obtained by photographing the homework through the mobile phone APP by the student, and the mobile phone APP capable of uploading the homework picture is a common prior art.
The student homework generally comprises homework paper with the size of A4 paper or test roll paper with the size of A3 paper, and the mobile phone APP can generally select a photographing mode, namely photographing of the A4 homework paper or photographing of the A3 test roll paper. When the image of the job paper with the A4 paper size is shot, the job paper with the A4 paper size is uploaded after the image shooting is finished, and when the image of the test roll paper with the A3 paper size is shot, the job paper with the A3 paper size is uploaded after the image shooting is finished.
The pictures of the jobs to be processed are shot by students manually, but not shot by machines, so that the text inclination of the pictures can not be too large generally.
S12: and adjusting the operation picture to be processed, wherein the adjustment comprises the following steps: adjusting brightness, adjusting picture inclination and adjusting picture size;
the brightness adjustment, the image inclination adjustment and the image size adjustment of the picture respectively aim at the conditions that the picture is dark, the picture size is not standard, the image text on the shot picture is inclined due to improper work placement, and the like.
S13: detecting the size of the adjusted operation picture, and judging the size of the adjusted operation picture;
picture size detection is also a well established prior art. The method is mainly used for solving the problem that the homework pictures uploaded by students have both homework pictures with the paper size similar to A4 paper and homework pictures with the paper size similar to A3 paper. The sizes of the homework pictures uploaded by the students are judged, and the subsequent steps are processed according to the judgment results.
S14: processing the adjusted operation picture according to the judgment result, which specifically comprises:
s141: if the size of the adjusted operation picture is the first preset size, dividing the adjusted operation picture into two operation pictures with second preset sizes, and outputting the two divided operation pictures;
s142: and if the size of the adjusted operation picture is the second preset size, outputting the adjusted operation picture.
In this embodiment, the first predetermined size is A3 paper size, and the second predetermined size is a4 paper size.
Because the job pictures uploaded by students are only similar to the size of A3 paper or the size of A4 paper, even if the size of the uploaded pictures to be processed is irregular, after the picture size adjusting step of S12, the adjusted job pictures are all in the standard A3 size or A4 size, and the picture size detection is convenient.
Because the standard A3 size is twice the standard A4 size, the A3 paper can be divided into two sheets of A4 paper. The A3 paper is generally obtained by combining two A4 paper size single sheets together from left to right, the text content on the two A4 paper size single sheets is generally independent, and the A3 size paper photos are divided to obtain two independent A4 paper size single sheets without damaging the text content on the two independent A4 paper size single sheets.
In the application, after receiving the to-be-processed homework picture, the to-be-processed homework picture is subjected to brightness adjustment, so that the problem that the photo shot by a student is darker is solved. And the picture inclination adjustment is also carried out on the pictures of the homework to be processed, so that the problem of image text inclination on the shot pictures caused by incorrect placement of the student homework is solved. Because the homework pictures uploaded by students may be similar to the size of A3 paper or similar to the size of a4 paper, the method and the device further adjust the picture size of the homework pictures to be processed, detect the size of the adjusted homework pictures, judge whether the size of the adjusted homework pictures is a first preset size or a second preset size, divide the adjusted homework pictures into two homework pictures with the second preset size if the size of the adjusted homework pictures is the first preset size, and directly output the adjusted homework pictures with the second preset size if the size of the adjusted homework pictures is the second preset size. The sizes of the to-be-processed work pictures are the second preset sizes, convenience of a teacher in checking student works is improved, and difficulty of checking by the teacher is reduced.
In the job image processing method in some embodiments, the adjusting further includes: adjusting the background color of the picture;
the adjusting of the background color of the picture specifically comprises the following steps: and replacing the background color of the operation picture to be processed with the eye-protecting color.
The eye protection color is similar to the color of the mung bean paste, the color tone is soft, the irritation to human vision is small, and the common white background color of the student homework paper is softer.
Hue of eye color in this example: 85 parts by weight; saturation degree: 123; brightness: 205;
the RGB values are: r is 199; 237, G is; b, 204;
color code: # C7EDCC
By replacing the background color of the to-be-processed homework picture with the eye-protecting color, the visual fatigue of teachers during examination of student homework is relieved.
Step S12 is explained in detail below.
The brightness adjustment specifically includes:
performing brightness detection on the job picture to be processed, and comparing the brightness of the job picture to be processed with a preset brightness threshold;
and if the to-be-processed operation picture is lower than the preset brightness threshold, the brightness of the to-be-processed operation picture is improved until the preset brightness threshold is reached.
In this embodiment, the preset brightness threshold is 80 candelas per square meter.
The brightness is a physical quantity of the intensity of light emission (reflection) on the surface of a light-emitting body (reflector). The ratio of the intensity of light in a direction in which a human eye observes a light source to the area of the light source "seen" by the human eye is defined as the luminance of the light source unit, i.e., the luminous intensity per unit of projected area. The unit of luminance is candela per square meter (cd/m 2). Luminance is the human perception of the intensity of light. It is a subjective quantity, different from the illuminance.
0 candela/square meter is the darkness. A picture with a luminance of 80 candelas per square meter can be perceived by a person as still bright and clear during the day.
And (3) detecting the brightness of the to-be-processed operation picture, and if the to-be-processed operation picture is lower than 80 candelas per square meter, brightening the to-be-processed operation picture by some software capable of adjusting the brightness of the picture.
In the prior art, the Photoshop and American show software can finish the operation of improving the brightness of the picture.
Further, comparing the brightness of the job picture to be processed with a preset brightness threshold specifically includes:
partitioning the to-be-processed job picture, comparing the brightness of each region of the to-be-processed job picture after partitioning with a preset brightness threshold value respectively, and judging the region in the to-be-processed job picture after partitioning, wherein the region is lower than the preset brightness threshold value;
the method for improving the brightness of the job picture to be processed comprises the following steps until a preset brightness threshold is reached:
and increasing the brightness of the area which is lower than the preset brightness threshold value in the to-be-processed job picture after the partition until the preset brightness threshold value is reached.
Because the possible regional brightness of the to-be-processed operation picture reaches the preset threshold value, and the regional brightness does not reach the preset brightness threshold value, the brightness of the region which does not reach the preset brightness threshold value in the to-be-processed operation picture only needs to be improved.
In this embodiment, the job picture to be processed is partitioned, the brightness of each region of the partitioned job picture to be processed is compared with the preset brightness threshold, the region lower than the preset brightness threshold in the partitioned job picture to be processed is determined, and the brightness of the region lower than the preset brightness threshold in the partitioned job picture to be processed is increased until the preset brightness threshold is reached.
Preferably, the area of each partitioned area is the same.
The area of the subarea can be adjusted according to different conditions. The larger the number of partitions, the smaller the area of each partitioned area.
Preferably, the number of partitions is not less than 24. Namely, the to-be-processed job picture is partitioned according to a format of 4 × 6 at least.
In a feasible scheme of other embodiments, the Photoshop and other software has a function of a polygonal lasso tool, can detect a region which does not reach a preset brightness threshold value in the to-be-processed work picture, selects the region which does not reach the preset brightness threshold value in the to-be-processed work picture by using the function of the polygonal lasso tool, fuses the consistency of the selected region and the background, and can improve the brightness of the region which does not reach the preset brightness threshold value in the selected to-be-processed work picture to the brightness of the region which reaches the preset brightness threshold value in the to-be-processed work picture.
The picture tilt adjustment specifically includes:
carrying out image text detection on the operation picture to be processed to obtain an image text in the operation picture to be processed;
judging whether the image text inclines relative to the edge straight line of the to-be-processed operation picture;
and if the image text is inclined relative to the edge straight line of the to-be-processed operation picture, performing image text correction on the image text of the to-be-processed operation picture.
The image text rotation usually obtains the inclination angle of the image during affine transformation, and realizes the correction of the rotated text by utilizing the transformation relation between the time domain and the frequency domain in Fourier transformation.
Further, the image text correction of the image text of the job picture to be processed specifically includes:
calculating the inclined angle of the image text;
and reversely rotating the image text by a corresponding angle according to the inclined angle of the image text.
The image text rotation usually obtains the inclination angle of the image during affine transformation, and realizes the correction of the rotated text by utilizing the transformation relation between the time domain and the frequency domain in Fourier transformation.
The feature of the rotated text is that there are line intervals, and when the image text is rotated, the spectrum in the frequency domain is also rotated. And calculating the DFT of the image text according to the characteristic, wherein the result of the DFT is that low frequencies are positioned at four corners of the boundary, and high frequencies are concentrated in a central area, so that the low frequencies and the high frequencies are interchanged to realize the movement of the center, further, the frequency spectrum of the image text can be seen to have obvious inclined straight lines, and then, the image correction of the rotating text can be completed by utilizing affine transformation through calculating the inclined angles of the inclined straight lines.
In other embodiments, other methods may be used to perform the image text tilt adjustment, such as hough transform.
In a possible solution of other embodiments, if the to-be-processed picture includes not only the content of the job paper, but also other background content at the edge of the job paper.
The image color detection can be carried out on the image of the job to be processed, and the background color is generally white due to the fact that the image to be processed is job paper. The other background contents of the edge of the job paper and the color of the job paper usually have a certain difference, and accordingly, the edge line of the job paper in the job picture to be processed is judged. Calculating the edge line of the job paper in the job picture to be processed and the job picture to be processed
Judging whether the edge line of the operation paper in the operation picture to be processed is inclined relative to the edge straight line of the operation picture to be processed;
if the edge line of the operation paper in the operation picture to be processed is inclined relative to the edge straight line of the operation picture to be processed, calculating the inclination angle of the edge line of the operation paper in the operation picture to be processed;
and reversely rotating the operation paper in the operation picture to be processed by a corresponding angle according to the inclination angle to finish the inclination adjustment of the picture.
The picture size adjustment specifically includes:
detecting the size of the job picture to be processed, and judging whether the size of the job picture to be processed meets the size of standard job paper;
and if the picture of the job to be processed does not accord with the paper size of the standard job, adjusting the picture of the job to be processed to the paper size of the standard job.
Further, adjusting the to-be-processed job picture to the standard job paper size specifically includes:
judging the edge part of the job picture to be processed exceeding the standard job paper specification;
and cutting off the edge part of the job picture to be processed, which exceeds the standard job paper specification.
The step of judging the edge part of the job picture to be processed exceeding the standard job paper specification specifically comprises the following steps:
judging the standard operation paper specification closest to the length-width ratio of the operation picture to be processed;
amplifying or reducing the to-be-processed job picture to the size of the nearest standard job paper specification;
and judging the edge part of the job picture to be processed beyond the nearest standard job paper specification.
In order to prevent the problems of different models of mobile phones, such as different pixels and the like, the sizes of the shot to-be-processed operation pictures are different, and in the size adjusting step, the standard operation paper specification closest to the length-width ratio of the to-be-processed operation pictures is judged first.
Since the pictures of the homework uploaded by the students may be similar to A3 paper size and may also be similar to a4 paper size, in this embodiment, only standard homework paper of A3 or a4 standard is considered. Namely, whether the length-width ratio of the picture of the job to be processed is closest to the sheet specification of the A3 standard job or the sheet specification of the a4 standard job is judged.
And after the judgment is finished, amplifying or reducing the to-be-processed job picture to the size of the nearest standard job paper specification.
And zooming in or zooming out the job picture to be processed according to the percentage. Rather than individually zooming in or out on one of the edges.
And if the to-be-processed job picture is enlarged, enlarging the to-be-processed job picture until one side of the to-be-processed job picture is the same as the size of the nearest standard job paper specification, and the total size of the to-be-processed job picture is larger than the size of the nearest standard job paper specification.
It can also be understood that the length (width) of the job picture to be processed is enlarged to be the same as the length (width) dimension of the closest standard job paper specification, the width (length) dimension being greater than the width (length) of the closest standard job paper specification.
And if the to-be-processed job picture is reduced, reducing the to-be-processed job picture to one side of the to-be-processed job picture, wherein one side of the to-be-processed job picture is the same as the size of the nearest standard job paper specification, and the total size of the to-be-processed job picture is larger than the size of the nearest standard job paper specification.
It can also be understood that the length (width) of the job picture to be processed is reduced to be the same as the length (width) dimension of the closest standard job paper specification, the width (length) dimension being greater than the width (length) of the closest standard job paper specification.
The length-width ratio of the A3 paper is 297: 420; the length-width ratio of A4 paper is 210: 297.
and after the to-be-processed job picture is enlarged or reduced to the size of the nearest standard job paper specification, judging that the to-be-processed job picture exceeds the edge part of the nearest standard job paper specification, and cutting off the edge part of the to-be-processed job picture exceeding the nearest standard job paper specification.
The picture size is judged, the picture size is adjusted, and the picture cutting is a basic function in most picture modifying software.
In this embodiment, the job picture to be processed is trimmed to the standard A3 size or the standard a4 size, so as to prepare for processing the job picture that is adjusted in S14.
A job picture processing apparatus comprising:
a receiving module 21, configured to receive a job picture to be processed;
the picture adjusting module 22 is configured to adjust a picture of a job to be processed, where the adjustment includes: adjusting brightness, adjusting picture inclination and adjusting picture size;
the size detection module 23 is configured to perform size detection on the adjusted operation picture and determine the size of the adjusted operation picture;
the processing module 24 is configured to process the adjusted job picture according to the determination result, and specifically includes:
if the size of the adjusted operation picture is the first preset size, dividing the adjusted operation picture into two operation pictures with second preset sizes, and outputting the two divided operation pictures;
and if the size of the adjusted operation picture is the second preset size, outputting the adjusted operation picture.
It is understood that the same or similar parts in the above embodiments may be mutually referred to, and the same or similar parts in other embodiments may be referred to for the content which is not described in detail in some embodiments.
It should be noted that, in the description of the present application, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Further, in the description of the present application, the meaning of "a plurality" means at least two unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (7)

1. A job picture processing method is characterized by comprising the following steps:
receiving a job picture to be processed;
adjusting the job picture to be processed, wherein the adjusting comprises: adjusting brightness, adjusting picture inclination and adjusting picture size; the picture resizing specifically comprises:
detecting the size of the job picture to be processed, and judging whether the size of the job picture to be processed meets the size of standard job paper;
if the to-be-processed job picture does not accord with the standard job paper size, adjusting the to-be-processed job picture to the standard job paper size; the method specifically comprises the following steps:
judging the edge part of the to-be-processed job picture exceeding the standard job paper specification specifically comprises: judging the standard operation paper specification closest to the length-width ratio of the to-be-processed operation picture, amplifying or reducing the to-be-processed operation picture to the size of the closest standard operation paper specification, and judging the edge part of the to-be-processed operation picture exceeding the closest standard operation paper specification;
cutting off the edge part of the to-be-processed operation picture exceeding the standard operation paper specification;
detecting the size of the adjusted operation picture, and judging the size of the adjusted operation picture;
processing the adjusted operation picture according to the judgment result, which specifically comprises:
if the size of the adjusted operation picture is a first preset size, dividing the adjusted operation picture into two operation pictures with second preset sizes, and outputting the divided two operation pictures;
and if the size of the adjusted operation picture is a second preset size, outputting the adjusted operation picture.
2. The job picture processing method according to claim 1, wherein the adjusting further comprises: adjusting the background color of the picture;
the adjusting of the picture ground color specifically comprises the following steps: and replacing the background color of the operation picture to be processed with the eye-protecting color.
3. The method for processing job pictures according to claim 1, wherein the brightness adjustment specifically comprises:
performing brightness detection on the job picture to be processed, and comparing the brightness of the job picture to be processed with a preset brightness threshold;
and if the to-be-processed job picture is lower than a preset brightness threshold, the brightness of the to-be-processed job picture is improved until the preset brightness threshold is reached.
4. The method for processing job pictures according to claim 3, wherein the comparing the brightness of the job picture to be processed with a preset brightness threshold specifically comprises:
partitioning the to-be-processed job picture, comparing the brightness of each region of the partitioned to-be-processed job picture with a preset brightness threshold value respectively, and judging the region in the partitioned to-be-processed job picture, which is lower than the preset brightness threshold value;
the method for improving the brightness of the job picture to be processed until a preset brightness threshold is reached specifically comprises the following steps:
and increasing the brightness of the area which is lower than the preset brightness threshold in the to-be-processed operation picture after the partition until the preset brightness threshold is reached.
5. The method for processing job pictures according to claim 1, wherein the picture tilt adjustment specifically comprises:
performing image text detection on the job picture to be processed to obtain an image text in the job picture to be processed;
judging whether the image text is inclined relative to the edge straight line of the to-be-processed job picture;
and if the image text is inclined relative to the edge straight line of the to-be-processed operation picture, correcting the image text of the to-be-processed operation picture.
6. The method according to claim 5, wherein the image text correction of the image text of the job picture to be processed specifically comprises:
calculating the angle of the image text inclination;
and reversely rotating the image text by a corresponding angle according to the inclined angle of the image text.
7. A job picture processing apparatus, comprising:
the receiving module is used for receiving the job pictures to be processed;
the picture adjusting module is used for adjusting the to-be-processed job picture, and the adjustment comprises the following steps: adjusting brightness, adjusting picture inclination and adjusting picture size;
the picture size adjustment of the picture adjustment module specifically comprises:
if the to-be-processed job picture does not accord with the standard job paper size, adjusting the to-be-processed job picture to the standard job paper size; the method specifically comprises the following steps:
judging the edge part of the to-be-processed job picture exceeding the standard job paper specification specifically comprises: judging the standard operation paper specification closest to the length-width ratio of the to-be-processed operation picture, amplifying or reducing the to-be-processed operation picture to the size of the closest standard operation paper specification, and judging the edge part of the to-be-processed operation picture exceeding the closest standard operation paper specification;
cutting off the edge part of the to-be-processed operation picture exceeding the standard operation paper specification;
the size detection module is used for carrying out size detection on the job picture to be processed and judging whether the size of the job picture to be processed meets the size of standard job paper or not; the device is also used for detecting the size of the adjusted operation picture and judging the size of the adjusted operation picture;
the processing module is used for processing the adjusted operation picture according to the judgment result, and specifically comprises:
if the size of the adjusted operation picture is a first preset size, dividing the adjusted operation picture into two operation pictures with second preset sizes, and outputting the divided two operation pictures;
and if the size of the adjusted operation picture is a second preset size, outputting the adjusted operation picture.
CN201910444139.8A 2019-05-27 2019-05-27 Job picture processing method and device Active CN110062127B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910444139.8A CN110062127B (en) 2019-05-27 2019-05-27 Job picture processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910444139.8A CN110062127B (en) 2019-05-27 2019-05-27 Job picture processing method and device

Publications (2)

Publication Number Publication Date
CN110062127A CN110062127A (en) 2019-07-26
CN110062127B true CN110062127B (en) 2020-09-01

Family

ID=67324570

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910444139.8A Active CN110062127B (en) 2019-05-27 2019-05-27 Job picture processing method and device

Country Status (1)

Country Link
CN (1) CN110062127B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012026816A (en) * 2010-07-22 2012-02-09 Hitachi-Ge Nuclear Energy Ltd Dimension measuring method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004289651A (en) * 2003-03-24 2004-10-14 Fuji Xerox Co Ltd Image processing apparatus
JP4758493B2 (en) * 2009-04-03 2011-08-31 シャープ株式会社 Portable terminal device, captured image processing system, control method for portable terminal device, program, and recording medium
JP2015144371A (en) * 2014-01-31 2015-08-06 シャープ株式会社 Printer and printing method
CN108121983A (en) * 2016-11-29 2018-06-05 蓝盾信息安全技术有限公司 A kind of text image method for correcting error based on Fourier transformation

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012026816A (en) * 2010-07-22 2012-02-09 Hitachi-Ge Nuclear Energy Ltd Dimension measuring method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
喷墨打印高精度图案研究进展;邝旻旻等;《化学学报》;20121231(第18期);1889-1896 *

Also Published As

Publication number Publication date
CN110062127A (en) 2019-07-26

Similar Documents

Publication Publication Date Title
US6204858B1 (en) System and method for adjusting color data of pixels in a digital image
CN104717432B (en) Handle method, image processing equipment and the digital camera of one group of input picture
US8184900B2 (en) Automatic detection and correction of non-red eye flash defects
US8103121B2 (en) Systems and methods for determination of a camera imperfection for an image
US7468759B2 (en) Method, apparatus and recording medium for image processing
JP2003189170A (en) Automatic detection method and system
KR101629825B1 (en) Display apparatus and method using high dynamic range for vehicle
US20150002704A1 (en) Ghost artifact detection and removal in hdr image processing using multi-scale normalized cross-correlation
US8310499B2 (en) Balancing luminance disparity in a display by multiple projectors
JP5659623B2 (en) Exposure attribute setting method and computer-readable storage medium
US20050286793A1 (en) Photographic image processing method and equipment
KR101631012B1 (en) Image processing apparatus and image processing method
JP2006121713A (en) Enhancing contrast
CN110784701B (en) Display apparatus and image processing method thereof
US20070103483A1 (en) Adaptive alpha blending
US9848478B2 (en) Automatic light adjusting method and related camera
US9064314B2 (en) Robust automatic determination and location of MacBeth color checker charts
JP2006345513A (en) Method and apparatus for red-eye detection and correction
JP2003248822A (en) Device and method for image processing, medium where image processing program is recorded, and the image processing program
CN103208107A (en) Terminal and method and device for repairing image
EP3026662A1 (en) Display apparatus and method for controlling same
CN110062127B (en) Job picture processing method and device
US20050073719A1 (en) Color image processor
TWI768614B (en) Projection system and method for selecting number of images captured used for image blending
CN106791736B (en) Trapezoidal correction method and projector

Legal Events

Date Code Title Description
PB01 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