WO2022083246A1 - 图像处理方法及装置 - Google Patents

图像处理方法及装置 Download PDF

Info

Publication number
WO2022083246A1
WO2022083246A1 PCT/CN2021/112166 CN2021112166W WO2022083246A1 WO 2022083246 A1 WO2022083246 A1 WO 2022083246A1 CN 2021112166 W CN2021112166 W CN 2021112166W WO 2022083246 A1 WO2022083246 A1 WO 2022083246A1
Authority
WO
WIPO (PCT)
Prior art keywords
page
scanned
double
picture
list
Prior art date
Application number
PCT/CN2021/112166
Other languages
English (en)
French (fr)
Inventor
商云鹰
胡东成
余涵
Original Assignee
珠海奔图电子有限公司
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 珠海奔图电子有限公司 filed Critical 珠海奔图电子有限公司
Priority to EP21881665.0A priority Critical patent/EP4206894A4/en
Publication of WO2022083246A1 publication Critical patent/WO2022083246A1/zh
Priority to ZA2023/05181A priority patent/ZA202305181B/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/40Document-oriented image-based pattern recognition
    • G06V30/41Analysis of document content
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • G06F3/1204Improving or facilitating administration, e.g. print management resulting in reduced user or operator actions, e.g. presetting, automatic actions, using hardware token storing data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1241Dividing a job according to job requirements, e.g. black/white and colour pages, covers and body of books, tabs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1253Configuration of print job parameters, e.g. using UI at the client
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/60Rotation of whole images or parts thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • 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/04Scanning arrangements, i.e. arrangements for the displacement of active reading or reproducing elements relative to the original or reproducing medium, or vice versa
    • H04N1/203Simultaneous scanning of two or more separate pictures, e.g. two sides of the same sheet
    • H04N1/2036Simultaneous scanning of two or more separate pictures, e.g. two sides of the same sheet of a plurality of pictures corresponding to a single side of a plurality of media
    • 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/32Circuits or arrangements for control or supervision between transmitter and receiver or between image input and image output device, e.g. between a still-image camera and its memory or between a still-image camera and a printer device
    • H04N1/32358Circuits or arrangements for control or supervision between transmitter and receiver or between image input and image output device, e.g. between a still-image camera and its memory or between a still-image camera and a printer device using picture signal storage, e.g. at transmitter
    • H04N1/32459Circuits or arrangements for control or supervision between transmitter and receiver or between image input and image output device, e.g. between a still-image camera and its memory or between a still-image camera and a printer device using picture signal storage, e.g. at transmitter for changing the arrangement of the stored data
    • H04N1/32464Changing the arrangement of pages or documents, e.g. for producing pages to be bound
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • G06T2207/10008Still image; Photographic image from scanner, fax or copier
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the present application relates to an image processing method, and in particular, to an image processing method and device for scanning and sorting after splitting a booklet or book.
  • the main purpose of the present application is to provide an image processing method and device capable of automatically splitting and sorting scanned images and having high efficiency.
  • the application provides an image processing method, and the image processing method includes:
  • the single-page scanned pictures are sorted according to the page order of the scanned pages, wherein the page order is one of left-to-right, right-to-left, top-to-bottom, and bottom-to-top.
  • splitting the double-page scanned picture to obtain a single-page scanned picture includes:
  • the double-page scan picture is evenly split into two single-page scan pictures of equal width;
  • the double-page scanned picture is evenly divided into two single-page scanned pictures of equal height.
  • sorting the single-page scanned pictures according to the page order of the scanned pages includes:
  • the single-page scanned pictures with the page numbers from the 1st page to the n/2th page are put into the first list, and the single-page scanned pictures with the page numbers from the n/2+1th page to the nth page are placed into the first list. into said second list; wherein n represents the total number of pages of the booklet or book, and n is an even number;
  • the single-page scanned pictures in the first list and the second list are sorted in forward order or reverse order according to the page order.
  • sorting the single-page scanned pictures according to the page order of the scanned sheet includes:
  • the double-page scanned picture is a first-side scanned picture, wherein the first-side scanned picture is a scanned picture obtained by scanning the side of the scanned page facing the cover;
  • the single-page scanned pictures saved in the second list are reordered in forward or reverse order according to the page order.
  • saving the single-page scanned picture in the first list or the second list includes:
  • the image processing method includes the steps of:
  • the single-page scanned image or the double-page scanned image is rotated according to the placement mode of the scanned pages and the page sequence or the text direction of the scanned image, so as to conform to the user's reading habit.
  • the present application also discloses an image processing device, the image processing device comprising:
  • an obtaining unit configured to obtain a double-page scanned picture, wherein the double-page scanned picture is obtained by performing double-sided scanning on the scanned page;
  • splitting unit for splitting the double-page scanned picture to obtain a single-page scanned picture
  • a sorting unit configured to sort the single-page scanned pictures according to the page order of the scanned pages, wherein the page order is from left to right, from right to left, from top to bottom, and from bottom to top one of the.
  • the splitting unit includes:
  • a determining unit for obtaining the width and height of the double-page scanned picture, and determining the relationship between the width and height of the double-page scanned picture
  • the splitting subunit is configured to split the double-page scanned picture into two single-page scanned pictures of equal width when it is determined that the width of the double-page scanned picture is greater than the height; When the height is greater than the width, the double-page scanned picture is evenly divided into two single-page scanned pictures of equal height.
  • the sorting unit includes:
  • a saving unit configured to put the single-page scanned pictures with the page numbers from the 1st page to the n/2th page into the first list according to the page sequence, and put the page numbers from the n/2+1th page to the nth page
  • the single-page scanned pictures of are placed in the second list; wherein, n represents the total number of pages of the booklet or book, and n is an even number;
  • a sorting subunit configured to sort the single-page scanned pictures in the first list and the second list in forward or reverse order according to the page order.
  • the sorting unit further includes a judging unit, wherein:
  • the judging unit is used to judge whether the double-page scanned picture is a first-side scanned picture, wherein the first-side scanned picture is a scanned picture obtained by scanning the side of the scanned page facing the cover;
  • the saving unit is configured to determine, according to the judgment result, to save the single-page scanned picture in the first list or the second list;
  • the sorting subunit is used to reorder the single-page scanned pictures saved in the first list in the forward or reverse order according to the page order;
  • the above page order can be reordered in forward or reverse order.
  • the preservation unit is specifically used for:
  • the image processing device further includes a rotation unit, which is configured to rotate the single-page scanned image or the double-page image according to the placement method of the scanned page and the page sequence or the text direction of the scanned image.
  • the scanned image of the page is rotated to conform to the user's reading habits.
  • the present application also provides a storage medium, where the storage medium includes a stored program, wherein the stored program controls a device where the storage medium is located to execute the above-mentioned image processing method when the stored program is executed.
  • the double-page scanned picture is split to obtain a single-page scanned picture, and then the single-page scanned picture is automatically sorted according to the scanned page.
  • the page order of the paper is sorted, so that the scanned image obtained by scanning is consistent with the page number sequence of the scanned original booklet or book, without manual splitting or sorting, which saves time and effort and improves efficiency.
  • FIG. 1( a ) and FIG. 1( b ) are schematic diagrams when the page to be scanned is placed on the scanning device when the binding line is on the left side of the original document.
  • FIG. 1( c ) and FIG. 1( d ) are schematic diagrams when the page to be scanned is placed on the scanning device when the binding line is on the right side of the original document.
  • FIG. 1(e) and FIG. 1(f) are schematic diagrams when the page to be scanned is placed on the scanning device when the binding line is on the upper side of the original document.
  • Figures 1(g) and 1(h) are schematic diagrams when the pages to be scanned are placed on the scanning device when the binding line is on the lower side of the original document.
  • FIG. 2 is a flowchart of an image processing method provided by the present application.
  • FIG. 3 is a flowchart of an image processing method provided by an embodiment of the present application.
  • FIG. 4 is a block diagram of modules of an image processing apparatus provided by an embodiment of the present application.
  • connection can be a fixed connection, a detachable connection, or an integral Connection, or electrical connection; either directly or indirectly through an intermediary.
  • the binding of books or booklets is generally divided into several situations. Taking a bi-folded booklet as an example, the binding methods of a double-folded booklet generally include the following situations: The first is that the binding line is located on the left side of the booklet. The second type is that the binding line is located on the right side of the booklet, the third type is that the binding line is located on the upper side of the booklet, and the fourth type is that the binding line is located on the lower side of the booklet.
  • the placement method on the scanning device can be as shown in Figure 1(a) and Figure 1(b)
  • the placement method on the scanning device can be as shown in Figure 1(c) and Figure 1(d)
  • the placement method on the scanning device As shown in Figure 1(e) and Figure 1(f);
  • its placement on the scanning device may be as shown in Figure 1(g) and Figure 1(h). It should be noted that, for the same booklet or book, each page to be scanned needs to be placed in the same manner on the scanning device.
  • the binding modes of the scanned originals correspond to different page sequences.
  • the binding mode on the left corresponds to the page sequence from right to left.
  • the page with page number 1 is on the right;
  • the binding mode on the right corresponds to the page sequence from right to left.
  • the page order from left to right, as shown in Figure 1(c), the page with page number 1 is on the left;
  • the upper binding method corresponds to the page order from bottom to top, as shown in Figure 1(f), the page number 1 is shown in Figure 1(f).
  • the page is at the bottom;
  • the bottom binding method corresponds to the page order from top to bottom, as shown in Figure 1(h), the page with page number 1 is at the top.
  • this application does not need the user to set the placement method, and allows the user to put the scanned original into the flatbed scanner according to the order of splitting, whether it is placed horizontally, vertically or upside down, the image processing method provided in this application can make scanning
  • the pictures are sorted according to the page order set by the user to match the page order of the booklet or book, so as to facilitate the user to archive and browse.
  • the present application discloses an image processing method, and the image processing method is used for scanning and sorting processing of bifold bound books or booklets. Specifically, the image processing method includes the steps:
  • the double-page scanned picture can be recognized by the text method. If it is recognized that the text is reversed and not in line with the reading habit, the double-page scanned picture can be rotated according to the angle that conforms to the user's reading habit.
  • the user when the user scans, no matter which binding mode is used, the user chooses to place it horizontally. Then when the booklet's binding line is located on the left or right side of the booklet, that is, when the scanned pages are placed on the printing device as shown in Figure 1(a) and Figure 1(c), the scanned image obtained after scanning No need to rotate; when the booklet's binding line is located on the upper or lower side of the booklet, that is, when the scanned pages are placed on the printing device as shown in Figure 1(e) and Figure 1(g), the scanned image Scanned pictures need to be rotated 90° or 270°.
  • the user when scanning, the user is allowed to select vertical placement (or vertical placement) for the scanned pages.
  • the scanned image obtained after scanning does not need to be rotated;
  • the scanned image obtained after scanning needs to be rotated by 90° or 270°.
  • this embodiment can rotate the double-page scanned picture according to the text direction in the recognized scanned image, or according to the user's selection and placement of the scanned original.
  • the selection of the page order of the scanned image (including four options of right to left, left to right, bottom to top and top to bottom) to rotate the scanned double-page scanned image, of course, by identifying the text direction
  • the way to rotate can save the time for users to set parameters, and it will be more convenient for users to scan.
  • the width and height of the double-page scanned picture obtain the width and height of the double-page scanned picture, and determine the relationship between the width and height of the double-page scanned picture; when it is determined that the width of the double-page scanned picture is greater than the height, the average of the double-page scanned picture is divided into two A single-page scanned image of equal width; when it is determined that the height of the double-page scanned image is greater than its width, the double-page scanned image is evenly divided into two single-page scanned images of equal height.
  • sorting the single-page scanned pictures according to the page order of the scanned pages includes:
  • the scanning method is flatbed scanning, it is judged whether the double-page scanned picture is the first-side scanned picture, and the single-page scanned picture is determined to be saved in the first list or the second list according to the judgment result; Page Order Reorders the single-page scanned pictures saved in the first list in forward or reverse order, and reorders the single-page scanned pictures saved in the second list in forward or reverse order according to the page order of the scanned pages.
  • the scanning sheet 4 is placed on the glass surface 2 of the scanning device body 1 , the scanned image on the first side is the scanned image obtained by scanning the side of the scanning sheet 4 facing the cover 3 .
  • the double-page scanned picture is the first-side scanned picture
  • the single-page scanned picture located on one side of the double-page scanned picture after being rotated before splitting is stored in the first list
  • the double-page scanned picture after being rotated before splitting is stored in the first list.
  • the single-page scanned image on the other side of the scanned image is saved in the second list; when the double-page scanned image is not the scanned image on the first side, the single-page scanned image on one side of the double-page scanned image after being rotated before splitting is saved in the second list.
  • the single-page scanned image located on the other side of the double-page scanned image after being rotated before splitting is stored in the first list.
  • one side is the right side of the rotated double-page scanned image that meets the user's reading habits
  • the other side is the rotated double-page scanned image that meets the user's reading habits.
  • the left side of the user taking the page order as an example from bottom to top, one side is the lower side (or the lower end) of the double-page scanned image that is rotated to meet the user's reading habits when facing the user, and the other side is rotated to meet the user's reading habits.
  • the upper side (or the upper end) of the double-page scanned picture of the user's reading habit faces the user.
  • the scanning method is the ADF paper feeding scanning method
  • the booklet has n pages, and the result of splitting is to store single-page scanned images of pages 1 to n/2 in one document, and single-page scanned images of pages n/2+1 to n into another.
  • the step of rotating the scanned image precedes the step of splitting. It can be understood that, in other embodiments, the step of rotating the scanned image may also be located after the step of splitting. If it is split and then rotated, the rotation is a single-page scan of the image, so it will be faster and easier to process.
  • the scanning method is taken as an example of platform scanning, and when the user selects the horizontal placement method, as shown in Figures 1(a), 1(c), 1 (e), 1 (g), the image processing method specifically comprises the steps:
  • step S204 When the judgment result is yes, go to step S204, then go to step 205, and when the judgment result is no, go to step S207;
  • S204 Determine whether the page order of the scanned sheets is top-to-bottom or bottom-to-top. Here it is judged from the page order set by the user on the panel of the scanning device or on the scanning application.
  • step S205 When it is judged as YES, it goes to step S205, and when it is judged as NO, it goes to step S206.
  • S206 Save the single-page scanned picture on the left side of the double-page scanned picture before splitting in the first list, and save the single-page scanned picture on the right side of the double-page scanned picture before splitting in the second list.
  • step S301 If the judgment result is YES, go to step S301, and if the judgment result is NO, return to step S203.
  • the single-page scanned pictures saved in the first list are reordered in the reverse order of the saving order
  • the single-page scanned pictures saved in the second list The scanned images of the pages are reordered in the positive order of the saving order; if the page order of the scanned pages is from left to right or bottom to top, the single-page scanned pictures saved in the first list are reordered in the positive order of the saving order. Sorting, reordering the single-page scanned pictures saved in the second list in the reverse order of the saving order.
  • FIG. 3 shows the user's practice when all the scanned originals are placed horizontally.
  • Steps 204 and 207 will determine whether the page order of the scanned pages is left-to-right or right-to-left.
  • steps 206 and 209 it will be determined whether the single-page scanned image is located at the upper end or the lower end of the double-page scanned image before splitting. Put them into different lists, and then reorder the single-page scanned pictures in the list in forward or reverse order according to different page orders. Other execution steps are similar and will not be described repeatedly.
  • the user places the split scanned pages on the glass surface of the scanning device in the correct split order, then selects booklet scan, and selects the corresponding original document page order scan option, and then scans the original document. to scan.
  • the computer After the scanned image obtained after scanning is uploaded to the computer, the computer automatically splits and sorts the scanned image according to the booklet splitting and original document page order scanning options set by the user, so that the page number order of the final scanned image is the same as the page number of the original document.
  • the order is consistent, which saves the user's time for splitting and sorting, and facilitates the user to scan and process the original document of the booklet type.
  • the present application can also only select the page order scanning option of the original document by the user, so that the user can place the original document on the glass surface of the scanning device according to the correct splitting sequence, and after selecting the booklet to scan, the image processing method of the present invention can scan the original document.
  • Recognition of the text direction of the scanned image Rotates and splits the scanned image, and sorts the split scanned image on each page according to the page order selected by the user, which can be automatically sorted according to the page order of the booklet, which can save the user's parameters Set up steps to scan easier and faster.
  • the image processing method of the present application is also suitable for scanners with ADF.
  • the user For the scanning of booklets, the user needs to put the scanned originals into the paper input tray according to the splitting order and preview habits, and perform two front and back scans on the scanned originals.
  • Two-sided scanning can be performed in the second paper feed, or the front and back sides of a page can be scanned in one paper feed due to the setting of two scanning heads.
  • the image obtained after scanning the text direction is recognized and the image is rotated, so that the output image conforms to the user's reading habits, and it can automatically sort the double-page image into a single-page image by splitting, so that the final scanned image can be sorted automatically.
  • the page number order of the pictures is consistent with the page number order of the original document, which saves the user's time for splitting and sorting, and facilitates the user to scan and process the original booklet type document.
  • the present application also discloses an image processing device, which may be a software device of a PC or a scanner itself, which uses the above image processing method to sort the scanned pictures.
  • the image processing apparatus includes an acquisition unit 100 , a splitting unit 200 and a sorting unit 300 .
  • the acquiring unit 100 is used to acquire a double-page scanned picture, wherein the double-page scanned picture is obtained by performing double-sided scanning on the scanned sheet;
  • the splitting unit 200 is used to split the double-page scanned picture to obtain a single-page scanned picture;
  • the sorting unit 300 is used for sorting the scanned pictures of a single page according to the page order of the scanned pages.
  • the page sequence is one of from left to right, from right to left, from top to bottom, and from bottom to top.
  • the image processing apparatus may be a scanning device, or may be a computer that executes the above-mentioned image processing method. Therefore, the acquisition unit 100 may be a hardware scanning unit of a scanning device, or may be a component of a scanning application program or a driver module on a computer.
  • the splitting unit 200 includes a determining unit and a splitting subunit, the determining unit is used for obtaining the width and height of the double-page scanned picture, and determining the width and height of the double-page scanning picture, and the splitting subunit is used for determining the double-page scanning picture
  • the determining unit is used for obtaining the width and height of the double-page scanned picture, and determining the width and height of the double-page scanning picture
  • the splitting subunit is used for determining the double-page scanning picture
  • the sorting unit 300 includes a setting unit, a saving unit and a sorting sub-unit, the setting unit is used for setting the first list and the second list, and the saving unit is used for sorting the pages numbered from the 1st page to the n/2th page according to the page order.
  • the scanned images of the pages are placed in the first list, and the scanned images of single pages with page numbers from n/2+1 to n are placed in the second list; where n represents the total number of pages of the booklet or book, and n is an even number; the sorting subunit is used to sort the single-page scanned pictures in the first list and the second list in positive or reverse order according to the page order.
  • the sorting unit further includes a judging unit, wherein: the judging unit is used for judging whether the double-page scanned picture is the first side scanned picture, and the first side scanned picture is the scanned page by the scanning page.
  • the scanned picture obtained by scanning the side of the paper facing the cover body;
  • the saving unit is used to determine to save the scanned picture of a single page in the first list or the second list according to the judgment result;
  • the single-page scanned pictures in one list are reordered according to the forward or reverse order of the saving order;
  • the single-page scanned pictures saved in the second list are reordered according to the forward or reverse order of the saving order according to the page order.
  • the preservation unit is specifically used to store the single-page scanned picture on one side of the double-page scanned picture before splitting in the first list, and the single-page scanned picture on the other side of the double-page scanned picture before splitting when the judgment result is yes.
  • the single-page scan picture is stored in the second list; when the judgment result is no, the single-page scan picture located on the side of the double-page scan picture before the split is stored in the second list, and the split
  • the single-page scanned picture located on the other side of the double-page scanned picture before division is stored in the first list.
  • the image processing device also includes a rotating unit, and the rotating unit is used to rotate the single-page scanned picture or the double-page scanned picture according to the placement mode and page sequence of the scanned sheet or the text direction of the scanned picture ( For example, rotate 90° or 270°) to match the user's reading habits.
  • the rotating unit is used to scan the scanned The scanned image is rotated 270° clockwise.
  • the page order is from right to left, as shown in Figure 1(d)
  • the page order is from left to right, and the rotating unit will scan the scanned images in order The hour hand rotates 90°.
  • the present application also discloses a storage medium, the storage medium includes a stored program, wherein when the stored program runs, the device where the storage medium is located is controlled to perform the following steps:
  • the double-page scanned picture is obtained by scanning the scanned pages on both sides; the page order is one of from left to right, from right to left, from top to bottom, and from bottom to top.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Artificial Intelligence (AREA)
  • Geometry (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Facsimiles In General (AREA)

Abstract

本申请公开了一种图像处理方法及装置,该图像处理方法包括:对扫描页纸进行双面扫描得到双页扫描图片;对所述双页扫描图片进行拆分得到单页扫描图片;将所述单页扫描图片按照所述扫描页纸的页面顺序进行排序。本申请在对扫描页纸进行双面扫描得到双页扫描图片后,再将双页扫描图片进行拆分得到单页扫描图片,再自动将单页扫描图片按照扫描页纸的页面顺序进行排序,以使扫描得到的扫描图片与扫描的原册子或书籍的页码顺序一致,而无需人工进行拆分或排序,省时省力,提高了效率。

Description

图像处理方法及装置
本申请要求于2020年10月22日提交中国专利局、申请号为202011140527.6、申请名称为“图像处理方法及装置”的中国专利申请的优先权,其全部内容通过引用在本申请中。
技术领域
本申请涉及图像处理方法,具体涉及一种用于小册子或书籍拆分后的扫描排序的图像处理方法及装置。
背景技术
现有技术中,将双折装订的书本或小册子拆分后,对每一页纸进行扫描时,得到的扫描图片,其页面顺序与原书籍或小册子的页面顺序不对应,且每两张页面位于同一张扫描图片上,需要用户自己整理及裁剪,操作麻烦且效率低。
申请内容
为了克服上述现有技术存在的问题,本申请的主要目的在于提供一种能够自动对扫描图片进行拆分、排序、且效率高的图像处理方法及装置。
为了实现上述目的,本申请具体采用以下技术方案:
本申请提供了一种图像处理方法,该图像处理方法包括:
获取双页扫描图片,其中,所述双页扫描图片通过对扫描页纸进行双面扫描得到;
对所述双页扫描图片进行拆分得到单页扫描图片;
将所述单页扫描图片按照所述扫描页纸的页面顺序进行排序,其中,所述页面顺序为从左到右、从右到左、从上到下、从下到上中的一种。
优选地,对所述双页扫描图片进行拆分得到单页扫描图片包括:
获取所述双页扫描图片的宽度和高度;
确定所述双页扫描图片的宽度和高度的关系;
在确定所述双页扫描图片的宽度大于高度时,将所述双页扫描图片平 均拆分成两个等宽的单页扫描图片;
在确定所述双页扫描图片的高度大于宽度时,将所述双页扫描图片平均拆分成两个等高的单页扫描图片。
优选地,将所述单页扫描图片按照所述扫描页纸的页面顺序进行排序包括:
设置第一个列表和第二个列表;
依据所述页面顺序将页码为第1页到第n/2页的单页扫描图片放入所述第一列表中,将页码为第n/2+1页到第n页的单页扫描图片放入所述第二列表中;其中,n表示小册子或书本的总页数,并且n为偶数;
按照所述页面顺序对所述第一列表和所述第二列表中的单页扫描图片进行正序或者倒序排序。
优选地,当对扫描页纸为平台扫描时,将所述单页扫描图片按照所述扫描页纸的页面顺序进行排序包括:
判断所述双页扫描图片是否为第一面扫描图片,其中,所述第一面扫描图片为由所述扫描页纸面对盖体的一面扫描得到的扫描图片;
根据所述判断结果确定将所述单页扫描图片保存至所述第一列表中或所述第二列表中;
将保存于所述第一列表中的单页扫描图片按照所述页面顺序进行正序或倒序重新排序;
将保存于所述第二列表中的单页扫描图片按照所述页面顺序进行正序或倒序重新排序。
优选地,根据所述判断结果确定将所述单页扫描图片保存至第一列表中或第二列表中包括:
在判断结果为是时,将拆分前位于所述双页扫描图片一侧的所述单页扫描图片保存于所述第一列表中,将拆分前位于所述双页扫描图片另一侧的所述单页扫描图片保存于所述第二列表中;
在判断结果为否时,将拆分前位于所述双页扫描图片一侧的所述单页扫描图片保存于所述第二列表中,将拆分前位于所述双页扫描图片另一侧的所述单页扫描图片保存于所述第一列表中。
优选地,所述图像处理方法包括步骤:
根据所述扫描页纸的放置方式和所述页面顺序或者扫描图片的文字 方向对所述单页扫描图片或所述双页扫描图片进行旋转,以符合用户的阅读习惯。
相应地,本申请还公开了一种图像处理装置,该图像处理装置包括:
获取单元,用于获取双页扫描图片,其中,所述双页扫描图片通过对扫描页纸进行双面扫描得到;
拆分单元,用于对所述双页扫描图片进行拆分得到单页扫描图片;
排序单元,用于将所述单页扫描图片按照所述扫描页纸的页面顺序进行排序,其中,所述页面顺序为从左到右、从右到左、从上到下、从下到上中的一种。
优选地,拆分单元包括:
确定单元,用于获取所述双页扫描图片的宽度和高度,并确定所述双页扫描图片的宽度和高度的关系;
拆分子单元,用于在确定所述双页扫描图片的宽度大于高度时,将所述双页扫描图片平均拆分成两个等宽的单页扫描图片;在确定所述双页扫描图片的高度大于宽度时,将所述双页扫描图片平均拆分成两个等高的单页扫描图片。
优选地,排序单元包括:
设置单元,用于设置第一个列表和第二个列表;
保存单元,用于依据所述页面顺序将页码为第1页到第n/2页的单页扫描图片放入所述第一列表中,将页码为第n/2+1页到第n页的单页扫描图片放入所述第二列表中;其中,n表示小册子或书本的总页数,并且n为偶数;
排序子单元,用于依据所述页面顺序对所述第一列表和所述第二列表中的单页扫描图片进行正序或者倒序排序。
优选地,当对扫描页纸为平台扫描时,排序单元还包括判断单元,其中:
所述判断单元用于判断所述双页扫描图片是否为第一面扫描图片,其中,所述第一面扫描图片为由所述扫描页纸面对盖体的一面扫描得到的扫描图片;
所述保存单元用于根据所述判断结果确定将所述单页扫描图片保存至第一列表中或第二列表中;
所述排序子单元用于将保存于所述第一列表中的单页扫描图片按照所述页面顺序进行正序或倒序重新排序;将保存于所述第二列表中的单页扫描图片按照所述页面顺序进行正序或倒序重新排序。
优选地,保存单元具体用于:
在判断结果为是时,将拆分前位于所述双页扫描图片一侧的所述单页扫描图片保存于所述第一列表中,将拆分前位于所述双页扫描图片另一侧的所述单页扫描图片保存于所述第二列表中;
在判断结果为否时,将拆分前位于所述双页扫描图片一侧的所述单页扫描图片保存于所述第二列表中,将拆分前位于所述双页扫描图片另一侧的所述单页扫描图片保存于所述第一列表中。
优选地,所述图像处理装置还包括旋转单元,所述旋转单元用于根据所述扫描页纸的放置方式和所述页面顺序或者扫描图片的文字方向对所述单页扫描图片或所述双页扫描图片进行旋转,以符合用户的阅读习惯。
相应地,本申请还提供了一种存储介质,所述存储介质包括存储程序,其中,所述存储程序运行时控制所述存储介质所在设备执行上述的图像处理方法。
相比于现有技术,本申请在对扫描页纸进行双面扫描得到双页扫描图片后,再将双页扫描图片进行拆分得到单页扫描图片,再自动将单页扫描图片按照扫描页纸的页面顺序进行排序,以使扫描得到的扫描图片与扫描的原册子或书籍的页码顺序一致,而无需人工进行拆分或排序,省时省力,提高了效率。
附图说明
图1(a)、图1(b)为装订线在原稿的左侧时待扫描页纸放置于扫描设备时的示意图。
图1(c)、图1(d)为装订线在原稿的右侧时待扫描页纸放置于扫描设备时的示意图。
图1(e)、图1(f)为装订线在原稿的上侧时待扫描页纸放置于扫描设备时的示意图。
图1(g)、图1(h)为装订线在原稿的下侧时待扫描页纸放置于扫描设备时的示意图。
图2为本申请提供的图像处理方法的流程图。
图3为本申请实施例提供的图像处理方法的流程图。
图4为本申请实施例提供的图像处理装置的模块框图。
附图说明:
1、扫描设备本体;2、玻璃面;3、盖体;4、扫描页纸。
具体实施方式
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
在本申请的描述中,除非另有明确的规定和限定,术语“第一”、“第二”仅用于描述的目的,而不能理解为指示或暗示相对重要性;除非另有规定或说明,术语“多个”是指两个或两个以上;术语“连接”、“固定”等均应做广义理解,例如,“连接”可以是固定连接,也可以是可拆卸连接,或一体地连接,或电连接;可以是直接相连,也可以通过中间媒介间接相连。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本发明中的具体含义。
本说明书的描述中,需要理解的是,本申请实施例所描述的“上”、“下”等方位词是以附图所示的角度来进行描述的,不应理解为对本申请实施例的限定。此外,在上下文中,还需要理解的是,当提到一个元件连接在另一个元件“上”或者“下”时,其不仅能够直接连接在另一个元件“上”或者“下”,也可以通过中间元件间接连接在另一个元件“上”或者“下”。
书本或小册子的装订一般分为几种情况,以双折的小册子为例,双折的小册子的装订方式一般包括以下几种情况:第一种为装订线位于小册子的左侧,第二种为装订线位于小册子的右侧,第三种为装订线位于小册子的上侧,第四种为装订线位于小册子的下侧。对于平台扫描,上述每种装订方式,拆分后的每页待扫描页纸在玻璃面上的放置方式至少包括8种,具体为,例如对于一个共8页的小册子,当第1页、第8页面对于盖体3时,其横放、竖放、正放、倒放共四种方式,如图1(a)所示为左侧装订时,对扫描原稿的横放和正放,图1(b)所示为左侧装订时,对扫描原稿的竖放和正放,图1(f)为上侧装订时,对扫描原稿的竖放和正放,图1 (e)为上侧装订时,对扫描原稿的横放和正放;当第2页、第7页面对于盖体3时,也有横放、竖放、正放、倒放共四种方式。所以对于一张待扫描页纸,其在玻璃面2上的放置方式至少共有8种(因为还可以斜着放)。针对以上的每一种装订方式,下面以其中一种摆放方式给出图示,上述第一种装订方式,其在扫描设备上的放置方式可以如图1(a)、图1(b)所示;对于上述第二种装订方式,其在扫描设备上的放置方式可以如图1(c)、图1(d)所示;对于第三种装订方式,其在扫描设备上的放置方式可以如图1(e)、图1(f)所示;对于第四种装订方式,其在扫描设备上的放置方式可以如图1(g)、图1(h)所示。需要说明的是,对于同一个小册或书籍,其每页待扫描页纸在扫描设备上的放置方式需要一致。
进一步地,扫描原稿的装订方式对应不同的页面顺序,比如,左边装订方式对应从右到左的页面顺序,如图1(a)所示,页码为1的页面在右边;右边装订方式对应从左到右的页面顺序,如图1(c)所示,页码为1的页面在左边;上侧装订方式对应从下到上的页面顺序,如图1(f)所示,页码为1的页面在下端;下侧装订方式对应从上到下的页面顺序,如图1(h)所示,页码为1的页面在上端。在扫描设备的面板上或者计算机上的扫描应用程序或扫描驱动设置相应的原文档页面顺序扫描选项(包括从右到左、从左到右、从下到上及从上到下四种选项),然后用户依据浏览习惯将扫描原稿放入到扫描平台进行扫描或者让用户再选择放置方式(可以让用户选择横放、竖放中的一种和正放、倒放中的一种,同时也可以默认正放的情况下,只让用户选横放或竖放)。当然本申请可以不用用户设置放置方式,可以让用户依据拆分先后顺序将扫描原稿放入平板扫描仪,不管是横放竖放或者倒放正放,本申请提供的图像处理方法都可以使扫描出来的图片按照依据用户设置的页面顺序对图片进行排序,以符合小册子或者书本的页码顺序排序,以方便用户存档浏览。
参照图2所示,本申请公开了一种图像处理方法,该图像处理方法用于双折装订书本或小册子扫描排序处理。具体地,该图像处理方法包括步骤:
S11、获取双页扫描图片,其中,所述双页扫描图片通过对扫描页纸进行双面扫描得到;
S12、根据扫描页纸的放置方式、页面顺序或者扫描图片的文字方向 对双页扫描图片进行旋转,以符合用户的阅读习惯。
第一种情况,当用户执行平台扫描方式对小册子扫描时,不需要限制用户的放置方式(如横放竖放或者倒放正放),对于扫描原稿的扫描顺序是按照小册子的拆分顺序或者浏览习惯、浏览顺序放置扫描原稿到扫描仪的玻璃平台时,如图1(a)所示,用户把左侧装订方式的每张原稿按照先后顺序进行扫描,则不需要旋转双页扫描图片或单页扫描图像,但是当出现用户对扫描原稿任意横放竖放或者倒放正放时,扫描到的双页扫描图片不符合用户的阅读习惯,文字会颠倒,就会需要旋转图像。这时候可以依据对双页扫描图片进行文字方式的识别,如果识别出文字颠倒不符合阅读习惯,可以把双页扫描图片依据符合用户阅读习惯的角度进行旋转。
第二种情况,用户在扫描时,不管对于哪种装订方式,用户均选择为横放。则当小册子的装订线位于小册子的左侧或右侧时,即扫描页纸在打印设备上的放置方式如图1(a)和图1(c)时,其扫描后得到的扫描图片无需旋转;当小册子的装订线位于小册子的上侧或下侧时,即扫描页纸在打印设备上的放置方式如图1(e)和图1(g)时,其扫描后得到的扫描图片需要旋转90°或270°。
第三种情况,在进行扫描时,允许用户对扫描页纸选择竖放(或叫纵放)。当纵放时,对于上述第三种和第四种装订方式,当其摆放方式如图1(f)、图1(h)时,其扫描后得到的扫描图片无需旋转;对于上述第一种和第二种装订方式,当其摆放方式如图1(b)、图1(d)时,其扫描后得到的扫描图片需要旋转90°或270°。
上述情况只是具体示例,如果在不限制用户的放置方式时,本实施例可以按照识别扫描到的图像中的文字方向对双页扫描图片旋转,也可以按照用户对扫描原稿的放置方式的选择和扫描图像的页面顺序的选择(包括右到左、从左到右、从下到上及从上到下四种选项)来对扫描到的双页扫描图片进行旋转设置,当然,通过识别文字方向的方式来旋转可以节省用户设置参数的时间,会更方便用户扫描。
S13、对双页扫描图片进行拆分得到单页扫描图片;
具体地,获取双页扫描图片的宽度和高度,并确定双页扫描图片的宽度和高度的关系;在确定双页扫描图片的宽度大于高度时,将双页扫描图片的平均拆分成两个等宽的单页扫描图片;在确定双页扫描图片的高度大 于宽度时,将双页扫描图片平均拆分成两个等高的单页扫描图片。
S14、将单页扫描图片按照扫描页纸的页面顺序进行排序。
其中,将单页扫描图片按照扫描页纸的页面顺序进行排序包括:
设置第一个列表和第二个列表,依据页面顺序将第1页到第n/2页的单页扫描图片放入第一列表中,将n/2+1到第n页的单页扫描图片放入第二列表中,对第一列表和第二列表中的单页扫描图片按照扫描原稿的页面顺序进行正序或者倒序排序;其中,n表示小册子或书本的总页数,并且n为偶数。
具体地,当扫描方式是平台扫描时,判断双页扫描图片是否为第一面扫描图片,根据判断结果确定将单页扫描图片保存至第一列表中或第二列表中;根据扫描页纸的页面顺序将保存于第一列表中的单页扫描图片进行正序或倒序重新排序,根据扫描页纸的页面顺序将保存于第二列表中的单页扫描图片进行正序或倒序重新排序。其中,在平台扫描下,当扫描页纸4放置于扫描设备本体1的玻璃面2上时,第一面扫描图片为由扫描页纸4面对盖体3的一面扫描得到的扫描图片。
进一步地,在双页扫描图片是第一面扫描图片时,将拆分前旋转后位于双页扫描图片一侧的单页扫描图片保存于第一列表中,将拆分前旋转后位于双页扫描图片另一侧的单页扫描图片保存于第二列表中;在双页扫描图片不是第一面扫描图片时,将拆分前旋转后位于双页扫描图片一侧的单页扫描图片保存于第二列表中,将拆分前旋转后位于双页扫描图片另一侧的单页扫描图片保存于第一列表中。以页面顺序为从右到左为例,一侧为旋转后符合用户阅读习惯的双页扫描图片面对用户时的右侧,另一侧为旋转后符合用户阅读习惯的双页扫描图片面对用户时的左侧,以页面顺序为从下到上举例,一侧为旋转后符合用户阅读习惯的双页扫描图片面对用户时的下侧(或叫下端),另一侧为旋转后符合用户阅读习惯的双页扫描图片面对用户时的上侧(或叫上端)。
如果扫描方式是ADF进纸扫描方式,那么需要依据不同的扫描机型和走纸方式对获取到的双页扫描图片进行正反面的区分,并把正反面的双面扫描图像进行拆分,如果小册子有n页,拆分的结果是把页数为1到n/2的单页扫描图像存入一个文档中,页数为n/2+1到n的单页扫描图像存入另一个文档中,并对两个文档依据页面顺序分别以正序或者倒序进行排序 获取到符合小册子页码顺序的排序,然后将这两个文档中的单页扫描图像合并成一个文件,如PDF,以供用户存档或者阅读。
在本实施例中,对扫描图片进行旋转的步骤位于拆分步骤之前。可以理解,在其他实施例中,对扫描图片进行旋转的步骤也可以位于拆分步骤之后。如果是拆分后再旋转,那么旋转时是单页扫描图片因此会速度更快,处理过程更简单。
本申请公开了一种具体实施方式,在本实施例中,以扫描方式为平台扫描为例,且用户都选了横放的放置方式时,如图1(a)、1(c)、1(e)、1(g),该图像处理方法具体包括步骤:
S201、对扫描页纸进行双面扫描得到双页扫描图片;
S202、对双页扫描图片进行拆分得到单页扫描图片;
S203、判断单页扫描图片是否为第一面扫描图片;
在判断结果为是时,进行步骤S204,之后进行步骤205,在判断结果为否时,进行步骤S207;
S204、判断扫描页纸的页面顺序是否为从上到下或从下到上。这里从用户在扫描设备的面板上或者在扫描应用程序上设置的页面顺序来判断。
在判断为是时,进行步骤S205,在判断为是否时,进行步骤S206。
S205、根据扫描页纸的页面顺序旋转单页扫描图片90°或270°。
S206、将拆分前位于双页扫描图片左侧的单页扫描图片保存于第一列表中,将拆分前位于双页扫描图片右侧的单页扫描图片保存于第二列表中。
S207、判断扫描页纸的页面顺序是否为从上到下或从下到上。
S208、根据扫描页纸的页面顺序旋转单页扫描图片90°或270°。
209、将拆分前位于双页扫描图片左的单页扫描图片保存于第二列表中,将拆分前位于双页扫描图片右的单页扫描图片保存于第一列表中。因为本方法是针对用户对扫描原稿的放置都是横放且默认用户正放,无论是哪种装订方式,用户放入首张扫描原稿到扫描平台的方式如图1(a)、1(c)、1(e)、1(g),因此扫描后得到的双页扫描图片拆分后,得到左侧的单页扫描图片和右侧的单页扫描图片,依据页面顺序对单页扫描图片进行旋转,以符合用户的阅读习惯。例如,如果用户按照图1(e)方式放置每张扫描原稿,对扫描到的双面扫描原稿,对于是第一面扫描图片的双面扫描原稿进行拆分,则左侧和右侧的单页扫描图片需要顺时针旋转270° 才符合用户阅读习惯;
S300、判断扫描页纸是否为最后一张。
若判断结果为是时,进行步骤S301、若判断结果为否时,返回步骤S203。
S301、将保存于第一列表中或第二列表中的单页扫描图片按照页面顺序进行正序或倒序重新排序。
其中,若扫描页纸的页面顺序为从右到左或从上到下时,将保存于第一列表中的单页扫描图片按照保存顺序的倒序重新排序,将保存于第二列表中的单页扫描图片按照保存顺序的正序重新排序;若扫描页纸的页面顺序为从左到右或从下到上时,将保存于第一列表中的单页扫描图片按照保存顺序的正序重新排序,将保存于第二列表中的单页扫描图片按照保存顺序的倒序重新排序。
上述图3为用户横放所有扫描原稿时的做法,当用户对扫描原稿进行纵放时,如图1(b)、1(d)、1(f)、1(h),图3中的步骤204和207就会判断扫描页纸的页面顺序是否为左到右或者右到左,在步骤206和209中,会判断拆分前单页扫描图片是位于双页扫描图片的上端还是下端来放入不同的列表,然后依据不同页面顺序对列表中的单页扫描图片进行正序或倒序的重新排序,其他执行步骤类似不作重复描述。
用户在具体扫描操作时,将拆分后的扫描页纸按照正确的拆分顺序放置于扫描设备的玻璃面,再选择小册子扫描,并选择相应的原文档页面顺序扫描选项,然后对原文档进行扫描。扫描后得到的扫描图片上传到计算机后,计算机依据用户设置的小册子拆分及原文档页面顺序扫描选项对扫描图片进行自动拆分排序,使最终得到的扫描图片的页码顺序与原文档的页码顺序一致,节省了用户的拆分及排序时间,方便用户对小册子类型原文档的扫描处理。
另外,本申请也可以仅依据用户选择原文档页面顺序扫描选项,让用户按照正确的拆分顺序方式把原稿放置于扫描设备的玻璃面,选择小册子扫描后,本发明的图像处理方法可以对扫描图片的文字方向的识别对扫描图片旋转和拆分,并对每页拆分后的扫描图片依据用户选择的页面顺序进行排序,能够自动按照小册子的页码顺序排序,可以节省了用户的参数设置步骤,扫描更简单快速。进一步,本申请的图像处理方法也适用于具备 ADF的扫描仪,针对小册子的扫描,用户需要按照拆分顺序和预览习惯把扫描原稿放入进纸盒,并对扫描原稿执行正反面的两次走纸执行双面扫描或者因设置两个扫描头可以一次走纸就执行一页的正反面扫描。依据扫描后得到的图片进行文字方向的识别对图片进行旋转处理,使输出的图片符合用户阅读习惯,并能够通过拆分把双页图片变成单页图片后进行自动排序,使最终得到的扫描图片的页码顺序与原文档的页码顺序一致,节省了用户的拆分及排序时间,方便用户对小册子类型原文档的扫描处理。
相应地,本申请还公开了一种图像处理装置,该图像处理装置即可以是PC的软件装置,也可以是扫描仪本身,其采用上述图像处理方法进行对扫描图片排序。该图像处理装置包括获取单元100、拆分单元200和排序单元300。获取单元100用于获取双页扫描图片,其中,所述双页扫描图片通过对扫描页纸进行双面扫描得到;拆分单元200用于对双页扫描图片进行拆分得到单页扫描图片;排序单元300用于将单页扫描图片按照扫描页纸的页面顺序进行排序。其中,所述页面顺序为从左到右、从右到左、从上到下、从下到上中的一种。图像处理装置可以为扫描设备,或者可以是执行上述图像处理方法的计算机。因此,获取单元100可以为扫描设备的硬件扫描单元,也可以是计算机上的扫描应用程序或驱动模块的组成部分。
具体地,拆分单元200包括确定单元和拆分子单元,确定单元用于获取双页扫描图片的宽度和高度,确定双页扫描图片的宽度和高度,拆分子单元用于在确定双页扫描图片的宽度大于高度时,将双页扫描图片平均拆分成两个等宽的单页扫描图片;在确定双页扫描图片的高度大于宽度时,将双页扫描图片平均拆分成两个等高的单页扫描图片。
排序单元300包括设置单元、保存单元和排序子单元,设置单元用于设置第一个列表和第二个列表,保存单元用于依据页面顺序将页码为第1页到第n/2页的单页扫描图片放入第一列表中,将页码为第n/2+1页到第n页的单页扫描图片放入第二列表中;其中,n表示小册子或书本的总页数,并且n为偶数;排序子单元用于对第一列表和第二列表中的单页扫描图片按照页面顺序进行正序或者倒序排序。
进一步地,当扫描方式为平台扫描时,排序单元还包括判断单元,其中:判断单元用于判断双页扫描图片是否为第一面扫描图片,所述第一面 扫描图片为由所述扫描页纸面对盖体的一面扫描得到的扫描图片;保存单元用于根据判断结果确定将单页扫描图片保存至第一列表中或第二列表中;排序子单元用于依据页面顺序将保存于第一列表中的单页扫描图片按照保存顺序的正序或倒序重新排序;依据页面顺序将保存于第二列表中的单页扫描图片按照保存顺序的正序或倒序重新排序。
进一步地,保存单元具体用于在判断结果为是时,将拆分前位于双页扫描图片一侧的单页扫描图片保存于第一列表中,将拆分前位于双页扫描图片另一侧的所述单页扫描图片保存于所述第二列表中;在判断结果为否时,将拆分前位于双页扫描图片一侧的所述单页扫描图片保存于第二列表中,将拆分前位于双页扫描图片另一侧的所述单页扫描图片保存于所述第一列表中。
更进一步地,该图像处理装置还包括旋转单元,旋转单元用于根据扫描页纸的放置方式和页面顺序或者扫描图片的文字方向对所述单页扫描图片或所述双页扫描图片进行旋转(例如旋转90°或270°),以符合用户的阅读习惯。例如,在扫描页纸为横放,如图1(e)所示,且页面顺序为从下到上或如图1(g)的页面顺序从上到下时,旋转单元用于将扫描得到的扫描图片顺时针旋转270°。或者,如纵放时,如图1(b)所示,页面顺序为从右到左,如图1(d)所示,页面顺序为从左到右,旋转单元将扫描得到的扫描图片顺时针旋转90°。
相应地,本申请还公开了一种存储介质,该存储介质包括存储程序,其中,在存储程序运行时控制存储介质所在设备执行以下步骤:
获取双页扫描图片,根据扫描页纸的放置方式、页面顺序或者扫描图片的文字方向对双页扫描图片进行旋转,以符合用户的阅读习惯;对双页扫描图片进行拆分得到单页扫描图片;将单页扫描图片按照扫描页纸的页面顺序进行排序。其中,所述双页扫描图片通过对扫描页纸进行双面扫描得到;所述页面顺序为从左到右、从右到左、从上到下、从下到上中的一种。
以上所述,仅为本申请较佳的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应该以权利要求的保护范围为准。

Claims (11)

  1. 一种图像处理方法,其特征在于,包括:
    获取双页扫描图片,其中,所述双页扫描图片通过对扫描页纸进行双面扫描得到;
    对所述双页扫描图片进行拆分得到单页扫描图片;
    将所述单页扫描图片按照所述扫描页纸的页面顺序进行排序,其中,所述页面顺序为从左到右、从右到左、从上到下、从下到上中的一种。
  2. 根据权利要求1所述的图像处理方法,其特征在于,对所述双页扫描图片进行拆分得到单页扫描图片包括:
    获取所述双页扫描图片的宽度和高度;
    确定所述双页扫描图片的宽度和高度的关系;
    在确定所述双页扫描图片的宽度大于高度时,将所述双页扫描图片平均拆分成两个等宽的单页扫描图片;
    在确定所述双页扫描图片的高度大于宽度时,将所述双页扫描图片平均拆分成两个等高的单页扫描图片。
  3. 根据权利要求1所述的图像处理方法,其特征在于,将所述单页扫描图片按照所述扫描页纸的页面顺序进行排序包括:
    设置第一个列表和第二个列表;
    依据页面顺序将页码为第1页到第n/2页的单页扫描图片放入所述第一列表中,将页码为第n/2+1页到第n页的单页扫描图片放入所述第二列表中;其中,n表示小册子或书本的总页数,并且n为偶数;
    按照所述页面顺序对所述第一列表和所述第二列表中的单页扫描图片进行正序或者倒序排序。
  4. 根据权利要求3所述的图像处理方法,其特征在于,当对扫描页纸为平台扫描时,将所述单页扫描图片按照所述扫描页纸的页面顺序进行排序包括:
    判断所述双页扫描图片是否为第一面扫描图片,其中,所述第一面扫描图片为由所述扫描页纸面对盖体的一面扫描得到的扫描图片;
    根据所述判断结果确定将所述单页扫描图片保存至所述第一列表或所述第二列表中;
    将保存于所述第一列表中的单页扫描图片按照所述页面顺序进行正序或倒序重新排序;
    将保存于所述第二列表中的单页扫描图片按照所述页面顺序进行正序或倒序重新排序。
  5. 根据权利要求4所述的图像处理方法,其特征在于,根据所述判断结果确定将所述单页扫描图片保存至第一列表中或第二列表中包括:
    在判断结果为是时,将拆分前位于所述双页扫描图片一侧的所述单页扫描图片保存于所述第一列表中,将拆分前位于所述双页扫描图片另一侧的所述单页扫描图片保存于所述第二列表中;
    在判断结果为否时,将拆分前位于所述双页扫描图片一侧的所述单页扫描图片保存于所述第二列表中,将拆分前位于所述双页扫描图片另一侧的所述单页扫描图片保存于所述第一列表中。
  6. 根据权利要求1所述的图像处理方法,其特征在于,所述图像处理方法还包括步骤:
    根据所述扫描页纸的放置方式和所述页面顺序或者扫描图片的文字方向对所述单页扫描图片或所述双页扫描图片进行旋转,以符合用户的阅读习惯。
  7. 一种图像处理装置,其特征在于,包括:
    获取单元,用于获取双页扫描图片,其中,所述双页扫描图片通过对扫描页纸进行双面扫描得到;
    拆分单元,用于对所述双页扫描图片进行拆分得到单页扫描图片;
    排序单元,用于将所述单页扫描图片按照所述扫描页纸的页面顺序进行排序,其中,所述页面顺序为从左到右、从右到左、从上到下、从下到上中的一种。
  8. 根据权利要求7所述的图像处理装置,其特征在于,拆分单元包括:
    确定单元,用于获取所述双页扫描图片的宽度和高度,并确定所述双页扫描图片的宽度和高度的关系;
    拆分子单元,用于在确定所述双页扫描图片的宽度大于高度时,将所述双页扫描图片平均拆分成两个等宽的单页扫描图片;在确定所述双页扫描图片的高度大于宽度时,将所述双页扫描图片平均拆分成两个等高的单 页扫描图片。
  9. 根据权利要求7所述的图像处理装置,其特征在于,排序单元包括:
    设置单元,用于设置第一个列表和第二个列表;
    保存单元,用于依据所述页面顺序将页码为第1页到第n/2页的单页扫描图片放入所述第一列表中,将页码为第n/2+1页到第n页的单页扫描图片放入所述第二列表中;其中,n表示小册子或书本的总页数,并且n为偶数;
    排序子单元,用于依据所述页面顺序对所述第一列表和所述第二列表中的单页扫描图片进行正序或者倒序排序。
  10. 根据权利要求7所述的图像处理装置,其特征在于,所述图像处理装置还包括旋转单元,所述旋转单元用于根据所述扫描页纸的放置方式和所述页面顺序或者扫描图片的文字方向对所述单页扫描图片或所述双页扫描图片进行旋转,以符合用户的阅读习惯。
  11. 一种存储介质,其特征在于,所述存储介质包括存储程序,其中,所述存储程序运行时控制所述存储介质所在设备执行权利要求1~6任一项所述的图像处理方法。
PCT/CN2021/112166 2020-10-22 2021-08-12 图像处理方法及装置 WO2022083246A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP21881665.0A EP4206894A4 (en) 2020-10-22 2021-08-12 IMAGE PROCESSING METHOD AND DEVICE
ZA2023/05181A ZA202305181B (en) 2020-10-22 2023-05-10 Image processing method and apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011140527.6A CN112199058B (zh) 2020-10-22 2020-10-22 图像处理方法及装置
CN202011140527.6 2020-10-22

Publications (1)

Publication Number Publication Date
WO2022083246A1 true WO2022083246A1 (zh) 2022-04-28

Family

ID=74010829

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/112166 WO2022083246A1 (zh) 2020-10-22 2021-08-12 图像处理方法及装置

Country Status (4)

Country Link
EP (1) EP4206894A4 (zh)
CN (1) CN112199058B (zh)
WO (1) WO2022083246A1 (zh)
ZA (1) ZA202305181B (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112199058B (zh) * 2020-10-22 2023-05-26 珠海奔图电子有限公司 图像处理方法及装置

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100002935A1 (en) * 2008-07-03 2010-01-07 zkimmer Inc System and method for displaying digital editions of periodicals and publications
CN102625013A (zh) * 2011-01-28 2012-08-01 兄弟工业株式会社 图像读取系统
CN103209284A (zh) * 2013-02-26 2013-07-17 中国科学院自动化研究所 一种文档扫描图像的亮度补偿方法
CN108171110A (zh) * 2017-11-28 2018-06-15 苏州市东皓计算机系统工程有限公司 一种计算机的图书录入系统
US20190230246A1 (en) * 2018-01-25 2019-07-25 Kyocera Document Solutions Inc. Image forming apparatus
CN112199058A (zh) * 2020-10-22 2021-01-08 珠海奔图电子有限公司 图像处理方法及装置

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0583496A (ja) * 1991-09-20 1993-04-02 Mita Ind Co Ltd ページ連写画像形成装置
JP2010119063A (ja) * 2008-11-14 2010-05-27 Sharp Corp 書類画像データの入力システム
FR2950446B1 (fr) * 2009-09-23 2011-11-11 Milibris Terminal mobile a ecran tactile
JP5803063B2 (ja) * 2010-07-21 2015-11-04 株式会社リコー 画像処理システム、画像処理装置、画像処理プログラム及び画像処理方法
JP5671906B2 (ja) * 2010-09-17 2015-02-18 富士ゼロックス株式会社 画像処理装置、画像処理システム、プログラム
CN104503712B (zh) * 2014-12-01 2019-02-01 珠海赛纳打印科技股份有限公司 一种计算机、打印机及双面打印方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100002935A1 (en) * 2008-07-03 2010-01-07 zkimmer Inc System and method for displaying digital editions of periodicals and publications
CN102625013A (zh) * 2011-01-28 2012-08-01 兄弟工业株式会社 图像读取系统
CN103209284A (zh) * 2013-02-26 2013-07-17 中国科学院自动化研究所 一种文档扫描图像的亮度补偿方法
CN108171110A (zh) * 2017-11-28 2018-06-15 苏州市东皓计算机系统工程有限公司 一种计算机的图书录入系统
US20190230246A1 (en) * 2018-01-25 2019-07-25 Kyocera Document Solutions Inc. Image forming apparatus
CN112199058A (zh) * 2020-10-22 2021-01-08 珠海奔图电子有限公司 图像处理方法及装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4206894A4

Also Published As

Publication number Publication date
ZA202305181B (en) 2023-12-20
CN112199058B (zh) 2023-05-26
EP4206894A4 (en) 2024-02-21
EP4206894A1 (en) 2023-07-05
CN112199058A (zh) 2021-01-08

Similar Documents

Publication Publication Date Title
US9319547B2 (en) Document scanning method, system, and device having sets of parallel lines as background
US8184908B2 (en) Image processing system, image processing method, and program
US20090103135A1 (en) Usb print
US9521279B2 (en) Image reproducing method and digital processing machine using such method
WO2022083246A1 (zh) 图像处理方法及装置
KR20070055320A (ko) 화상 판독 장치 및 제어 방법
US7995248B2 (en) Associating preview images with destination addresses
US7391527B2 (en) Method and system of using a multifunction printer to identify pages having a text string
US20190098170A1 (en) System and method for converting a multi-object scan into discrete documents
JP2007110521A (ja) 画像読み取り方法、画像読み取り装置及び制御装置
KR101101827B1 (ko) 복합기 및 그 제어방법
US20050024681A1 (en) Systems and methods for scanning multiple objects
JP2007206939A (ja) 名刺管理システム、はがき管理システム、名刺管理方法およびはがき管理方法
US10469684B2 (en) Electronic device for aligning orientations of scanning images and method thereof
JP2016010094A (ja) 画像読取装置
US20050198558A1 (en) Method and apparatus for proofing a scan job
JP2021069015A (ja) 情報処理装置、情報処理プログラム、及び、情報処理方法
KR101511818B1 (ko) 화상 처리 장치, 그 제어 방법 및 기억 매체
JPH09200461A (ja) 画像読み取り装置
US11985282B2 (en) Image reading system, image reading method, and non-transitory computer-readable storage medium storing program
JP5215113B2 (ja) 画像読取装置
US11290604B2 (en) Image processing apparatus, image processing method, and storage medium
JP2008263275A (ja) 画像読取システム及び画像読取システムの制御方法
RU2653282C2 (ru) Использование встроенного в сканер программного обеспечения для экономии времени за счет отказа от повторного сканирования
US20060197965A1 (en) Digital copying apparatus with a smart fitting function and copy method thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21881665

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2021881665

Country of ref document: EP

Effective date: 20230330

NENP Non-entry into the national phase

Ref country code: DE