Image forming method and device and storage medium
By obtaining and cropping the complete images of multiple cards and forming images according to preset or custom typesetting methods, the waste of electricity and cumbersome operations when copying multiple cards is solved, and the user experience is improved.
Patent Information
- Application Number
- CN202510431108.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-07
- Publication Date
- 2025-07-08
AI Technical Summary
In the prior art, multiple cards need to be copied one by one, which wastes electricity and makes users cumbersome operations, which affects the experience.
By acquiring the first and second complete images of multiple cards, cropping and obtaining the images of each surface, and typesetting and image forming according to preset or custom typesetting methods, achieving a copy of multiple cards at one time.
Reduces the number of user operations, saves electricity and paper, and improves the user experience.
Smart Images

Figure CN120281852A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of image forming technology, and particularly to an image forming method, apparatus, and storage medium. Background Art
[0002] In real life, when people handle many businesses, they need to use copies of ID cards, bank cards, or other cards, which requires the use of a photocopier.
[0003] In the related art, a user places a card in the scanning area of a photocopier, and the photocopier presents the information of the card on a piece of paper to obtain a copy of the card.
[0004] However, the above-mentioned photocopier can only scan one card at a time, correct the deviation of one card for copying, and obtain a copy of one card. When a user needs to copy multiple cards, they need to copy the multiple cards one by one, which not only wastes electric energy but also requires the user to operate repeatedly, affecting the user experience.
[0005] It should be noted that the information disclosed in the background art part of this application is only intended to deepen the understanding of the general background art of this application, and should not be regarded as an admission or any form of implication that this information constitutes the prior art known to those skilled in the art. Summary of the Invention
[0006] In view of this, this application provides an image forming method, apparatus, and storage medium to facilitate solving the problem in the prior art that when a user needs to copy multiple cards, they need to copy the multiple cards one by one, which not only wastes electric energy but also requires the user to operate repeatedly, affecting the user experience.
[0007] In a first aspect, an embodiment of this application provides an image forming method, including: Obtaining a first complete image and a second complete image corresponding to n cards, where the first complete image includes n first-side images corresponding to the n cards, and the second complete image includes n second-side images corresponding to the n cards. Wherein, each card corresponds to one first-side image and one second-side image, and n≥2; Cropping n first-side images from the first complete image; Cropping n second-side images from the second complete image; Typesetting the n first-side images and the n second-side images according to a preset layout method; Performing an image forming operation on the typeset n first-side images and n second-side images.
[0008] In an embodiment of the present application, a first complete image and a second complete image corresponding to n cards are directly obtained. The first complete image and the second complete image are cropped to obtain n first-side images and n second-side images corresponding to the n cards. The n first-side images and the n second-side images are re-typeset and an image forming operation is performed, so as to obtain copy documents of the n cards at one time. It can be understood that the user can place n cards on the scanning area at one time, and during the process of copying the n cards, the user only needs to turn the n cards over once, without the need for the user to operate repeatedly, which improves the user experience. In addition, in the present application, the information of the n cards can be presented on one piece of paper, which saves both electricity and paper.
[0009] In a possible implementation manner, after obtaining the first complete image and the second complete image corresponding to n cards, the method further includes: Recording n first position information corresponding to n first-side images in the first complete image and n second position information corresponding to n second-side images in the second complete image; Obtaining n first feature information corresponding to the n first-side images and n second feature information corresponding to the n second-side images, where each of the first-side images corresponds to one of the first feature information, and each of the second-side images corresponds to one of the second feature information; Adjusting the positions of the n first-side images and the n second-side images so that the first feature information corresponding to each of the first position information matches the first preset feature information, and the second feature information corresponding to each of the second position information matches the second preset feature information.
[0010] In an embodiment of the present application, n first feature information and n first position information corresponding to n first-side images are obtained from the first complete image, and n second feature information and n second position information corresponding to n second-side images are obtained from the second complete image. By comparing each first preset feature information with the first feature information and each second preset feature information with the second feature information, the positions of the first-side images and the second-side images are adjusted so that the positions of the first-side images and the second-side images are correct. It can be understood that the user can preset the preset feature information corresponding to each position information. By adjusting the positions of the first-side images and the second-side images, the arrangement of the first-side images and the second-side images can meet the user's expectations, and finally present the effect expected by the user, improving the user experience.
[0011] In a possible implementation manner, the first position information and the second position information are recorded by number information, where one number information corresponds to one of the first position information or one of the second position information.
[0012] In an embodiment of the present application, the first position information and the second position information are recorded by number information. It can be understood that the number information is simpler than the position information, and using the number information to record the position information is more convenient for indexing.
[0013] In a possible implementation manner, the method further includes: Judging whether the first surface image and the second surface image corresponding to the card are the same according to the first feature information and the second feature information corresponding to each card; If the first surface image and the second surface image corresponding to any one of the cards are the same, output a first interaction interface, where the first interaction interface is used to prompt the user that the first surface image and the second surface image are the same, and obtain a scanning control instruction selected by the user; If the scanning control instruction indicates canceling the rescan, perform typesetting on the n first surface images and the n second surface images.
[0014] In an embodiment of the present application, it is determined whether the first surface image and the second surface image are the same through the first feature information and the second feature information. If the first surface image and the second surface image are the same, a first interaction interface is output to remind the user that the same side is scanned twice, and a scanning control instruction selected by the user is obtained. And the scanning control instruction is used to control whether the image forming device performs a rescan. If the scanning control instruction indicates canceling the rescan, continue to adjust the positions of the first surface image and the second surface image. It can be understood that when the first surface image is the same as the second surface image, it is confirmed whether to perform a rescan through the scanning control instruction. When the user selects to cancel the rescan, there will be no rescan, and the positions of the existing first surface image and the second surface image are adjusted. Then, even if the user wants to present two identical sides of the card on the paper, the personalized needs of the user can be met.
[0015] In a possible implementation manner, the method further includes: If the scanning control instruction indicates a rescan, delete the second surface image corresponding to any one of the cards; Obtain a new second surface image corresponding to any one of the cards.
[0016] In an embodiment of the present application, if the scanning control instruction selected by the user indicates a rescan, delete the second surface image that is the same as the first surface image, and after the user places the card, obtain a new second surface image. It can be understood that when the user needs to rescan the second surface image, the second surface image is deleted and a new second surface image is obtained, so as to update the second surface image and make the scanning result more in line with the user's expectations.
[0017] In a possible implementation, after obtaining a first complete image and a second complete image corresponding to n cards, the method further includes: Determine whether the n first-side images and the n second-side images corresponding to the n cards are located within n corresponding preset placement ranges, where each card corresponds to one preset placement range; If the first-side image or the second-side image corresponding to any one of the cards is located outside the preset placement range, output a prompt message for prompting the user to adjust the placement position of the card; Delete the first-side image or the second-side image corresponding to any one of the cards; Obtain a new first-side image or a new second-side image corresponding to any one of the cards.
[0018] In the embodiments of the present application, a preset placement range corresponding to each card is set in advance. If the first-side image or the second-side image corresponding to any one card is located outside the preset placement range, a prompt message is output to prompt the user to adjust the placement position of the card, and the first-side image or the second-side image corresponding to the card is deleted and a new first-side image or a new second-side image is obtained. It can be understood that when the user adjusts the position of the card, a new first-side image or a new second-side image is obtained and the old first-side image or the old second-side image is overwritten, so as to obtain a more accurate first-side image or second-side image.
[0019] In a possible implementation, the arranging the n first-side images and the n second-side images according to a preset layout method includes: Output a second interaction interface for displaying various layout methods and obtain the target layout method selected by the user; Arrange the n first-side images and the n second-side images according to the target layout method.
[0020] In the embodiments of the present application, through the second interaction interface, the layout method selected by the user from the fixed layouts is obtained, and the layout is performed according to the layout method selected by the user. It can be understood that providing some fixed layouts for the user to choose can save the user's time and obtain a layout method that better meets the user's expectations, thereby improving the user experience.
[0021] In a possible implementation, the arranging the n first-side images and the n second-side images according to a preset layout method includes: Arrange the n first-side images and the n second-side images according to the custom layout method input by the user.
[0022] In the embodiments of the present application, the first-side images and the second-side images are typeset according to the custom typesetting method input by the user. It can be understood that the user can customize the typesetting method. When the typesetting method required by the user is relatively special, the embodiments of the present application can also implement this typesetting method, which is beneficial to improving the user experience.
[0023] In a possible implementation manner, the typesetting of the n first-side images and the n second-side images according to a preset typesetting method includes: According to the image formation mode selected by the user, the n first-side images and the n second-side images are typeset so that the n first-side images and the n second-side images are presented on m image formation media, where each image formation media includes at least one of the first-side images and / or at least one of the second-side images, and m≥1.
[0024] In the embodiments of the present application, according to the image formation mode selected by the user, the first-side images and the second-side images are typeset so that the first-side images and the second-side images are presented on m image formation media, and each image formation media includes at least one first-side image and / or at least one second-side image, and m≥1. It can be understood that if the image formation mode selected by the user is single-sided copying, the n first-side images and the n second-side images are both typeset and presented on one image formation media. If the image formation mode selected by the user is multi-page printing, the first-side images and the second-side images are typeset and presented on multiple image formation media. When the user copies multiple cards, it may be necessary to present different cards on different image formation media. At this time, the user only needs to scan the multiple cards twice, saving the user time and improving the user experience. In a second aspect, the embodiments of the present application provide an image forming apparatus, including: A complete image acquisition module, configured to acquire a first complete image and a second complete image corresponding to n cards, where the first complete image includes n first-side images corresponding to the n cards, and the second complete image includes n second-side images corresponding to the n cards, where each card corresponds to one first-side image and one second-side image, and n≥2; A first-side image acquisition module, configured to crop and obtain n first-side images from the first complete image; A second-side image acquisition module, configured to crop and obtain n second-side images from the second complete image; A typesetting module, configured to typeset the n first-side images and the n second-side images according to a preset typesetting method; An image formation module, configured to perform an image formation operation on the typeset n first-side images and n second-side images.
[0025] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, characterized in that the computer-readable storage medium includes a stored program, wherein when the program runs, it controls the device where the computer-readable storage medium is located to execute the method described in any one of the first aspects.
[0026] It can be understood that the image forming apparatus provided in the above second aspect and the computer-readable storage medium provided in the third aspect are both used to execute the method provided in the present application. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method, and will not be elaborated here. Brief Description of the Drawings
[0027] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the accompanying drawings required for use in the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other accompanying drawings can be obtained based on these drawings without creative efforts.
[0028] Figure 1 It is a schematic diagram of an application scenario provided by an embodiment of the present application; Figure 2 It is a schematic flowchart of an image forming method provided by an embodiment of the present application; Figure 3 It is a schematic diagram of a first complete image provided by an embodiment of the present application; Figure 4 It is a schematic diagram of the cropping of a first complete image provided by an embodiment of the present application; Figure 5A It is a schematic diagram of the layout of a single card provided by an embodiment of the present application; Figure 5B It is another schematic diagram of the layout of a single card provided by an embodiment of the present application; Figure 5C It is another schematic diagram of the layout of a single card provided by an embodiment of the present application; Figure 5D It is another schematic diagram of the layout of a single card provided by an embodiment of the present application; Figure 6A It is a schematic diagram of the layout of multiple cards provided by an embodiment of the present application; Figure 6B It is another schematic diagram of the layout of multiple cards provided by an embodiment of the present application; Figure 6C It is another schematic diagram of the layout of multiple cards provided by an embodiment of the present application; Figure 7 It is a schematic diagram of a multi-page layout provided by an embodiment of the present application; Figure 8 Another multi-page layout schematic diagram provided by an embodiment of the present application; Figure 9 Another multi-page layout schematic diagram provided by an embodiment of the present application; Figure 10 A flowchart schematic diagram of another image forming method provided by an embodiment of the present application; Figure 11 A flowchart schematic diagram of another image forming method provided by an embodiment of the present application; Figure 12 A structural schematic diagram of an image forming apparatus provided by an embodiment of the present application. Detailed implementation manners
[0029] In order to better understand the technical solution of the present application, the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0030] It should be clear that the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts belong to the scope of protection of the present application.
[0031] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms of "a", "said", and "the" used in the embodiments of the present application and the appended claims are also intended to include the plural forms, unless the context clearly indicates otherwise.
[0032] It should be understood that the term " / and" used herein is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " herein generally represents an "or" relationship between the associated objects before and after.
[0033] In real life, people need to use copies of ID cards, bank cards, or other cards when handling many businesses, which requires the use of a photocopier.
[0034] For ease of understanding, the following first gives an exemplary description of a specific application scenario.
[0035] See Figure 1 , an application scenario schematic diagram provided by an embodiment of the present application. As Figure 1As shown, an image forming apparatus 101, a first card 102, and a second card 103 are shown in this application scenario. Among them, the image forming apparatus 101 includes a scanning area 1011, a display area 1012, and a control panel 1013. The upward-facing side of the first card 102 is the first side of the card, and the upward-facing side of the second card 103 is the second side of the card. When a user needs to copy the content on both sides of any card, the user needs to first place the first side of the card on the scanning area 1011, and then place the second side of the card on the scanning area 1011 by turning the card over, so as to scan the first side and the second side of the card and present the content of the first side and the second side of the card on the image forming medium.
[0036] It should be noted that Figure 1 the image forming apparatus 101, the first card 102, and the second card 103 shown in [[ ]] are only exemplary illustrations and should not be regarded as a limitation on the protection scope of this application. The image forming apparatus 101 includes but is not limited to printers, copiers, fax machines, multi-functional image production and copying devices, electrophotographic devices, and any other similar devices, and the layout of each area of the image forming apparatus 101 (that is, Figure 1 the scanning area 1011, the display area 1012, and the control panel 1013 shown in [[ ]]) are only exemplary illustrations. In addition, in addition to bank cards, the first card 102 and the second card 103 can also be cards such as identity cards and social security cards, and the number of cards can be any number in addition to 2.
[0037] In the related art, as Figure 1 shown, Figure 1 the currently scanned side of the first card 102 in [[ ]] is the second side of the card, and the currently scanned side of the second card 103 is the first side of the card. If the user needs copies of 2 cards, the user needs to first place the second side of the first card 102 on the scanning area 1011. After the second side of the first card 102 is scanned, the user turns the first card 102 over so that the first side of the first card 102 faces the scanning area 1011, and then performs a second scan to obtain the double-sided information of the first card 102. Then, open the cover of the image forming apparatus 101, place the first side of the second card 103 on the scanning area 1011. After the first side of the second card 103 is scanned, the user turns the second card 103 over so that the second side of the second card 103 faces the scanning area 1011, and then performs a second scan to obtain the double-sided information of the second card 103.
[0038] The above copier can only scan one card at a time, correct the deviation of the copied image of one card, and obtain a copy of one card. Obviously, when the user needs to copy multiple cards, the user needs to copy multiple cards one by one. Each time a card is replaced, the user needs to open the cover once, and each card needs to be turned over at least once, which not only wastes electric energy but also requires the user to operate repeatedly, affecting the user experience.
[0039] In view of the above problems, the embodiments of the present application provide an image forming method. The user can place n cards in the scanning area at one time, and during the process of copying n cards, the user only needs to open the cover once and turn over the n cards once, without the need for the user to operate repeatedly, thus improving the user experience. In addition, in the present application, the information of n cards can be presented on one piece of paper, which saves both electricity and paper. Specifically, it will be described in detail below in conjunction with the accompanying drawings and specific embodiments.
[0040] See Figure 2 , which is a schematic flowchart of an image forming method provided by an embodiment of the present application. This method can be applied to Figure 1 the application scenario shown in Figure 2 as shown, and it mainly includes the following steps.
[0041] Step S201: Obtain a first complete image and a second complete image corresponding to n cards.
[0042] Specifically, obtain a first complete image and a second complete image corresponding to n cards. Among them, the first complete image includes n first side images corresponding to n cards, and the second complete image includes n second side images corresponding to n cards, and each card corresponds to a first side image and a second side image, n≥2.
[0043] The complete image is the image of the entire scanning area 1011. During the process of obtaining the first complete image and the second complete image, the user places the first sides of n cards in the scanning area and controls the image forming device to start scanning. The image forming device scans and obtains the first complete image of the entire scanning area 1011. After the image forming device finishes scanning, it outputs a turning-over prompt to prompt the user to turn over the cards. According to this prompt, the user places the second sides of n cards in the scanning area and controls the image forming device to start scanning. The image forming device scans and obtains the second complete image of the entire scanning area 1011. After the image forming device finishes scanning, it outputs a scanning complete prompt. At this time, the user can take away the cards and wait for the image forming device to print the image.
[0044] In a possible implementation, the first-side image is marked as the front image of the card in the image forming apparatus, and the second-side image is marked as the back image of the card in the image forming apparatus. Of course, this is only one embodiment. In practical applications, those skilled in the art can set the first-side image as the back image of the card and the second-side image as the front image of the card. The embodiments of the present application do not make specific limitations thereto. Additionally, the front and back sides of the card can be preset by the user. For example, the user can set the portrait side of the ID card as the front of the card, or can also set the national emblem side of the ID card as the front of the card. The embodiments of the present application do not make specific limitations thereto, and will be described below by the front and back of the card.
[0045] In practical applications, n is any value greater than or equal to 1. The embodiments of the present application take n = 3 as an example to elaborate on the first complete image and the second complete image in detail.
[0046] See Figure 3 , which is a schematic diagram of a first complete image provided by the embodiments of the present application. As shown in a of Figure 3 , the first complete image 300 includes 3 images, namely the front of card 1, the front of card 2, and the front of card 3. It can be understood that when the user needs to copy 3 cards simultaneously, the 3 cards are placed in the scanning area of the image forming apparatus at the same time. As shown in a of Figure 3 , the 3 cards are placed side by side in the scanning area, and the first complete image 300 is the image obtained after the image forming apparatus scans the fronts of the 3 cards at the same time. Among them, the placement direction of the cards depends on the placement direction of the cards placed by the user. In a possible implementation, the card placement position and placement direction are marked in the scanning area, and the user can directly place the cards according to the prompts. Figure 3 In the illustrated embodiment, the 3 cards are all placed horizontally because the prompt information in the scanning area prompts the user to place the 3 cards horizontally. As shown in b of Figure 3 , the placement positions of the three cards (i.e., the positions shown by the placement position of card 1, the placement position of card 2, and the placement position of card 3 shown in b of Figure 3 ) are prompted in the scanning area 1011 of the image forming apparatus.
[0047] Similarly, the second complete image also includes 3 images, namely the back of card 1, the back of card 2, and the back of card 3. And in the embodiments of the present application, the arrangement manner of the cards in the second complete image is the same as that of the cards in the first complete image, that is, when the user places the front of the card, the user places it according to the prompt information shown in b of Figure 3 , and when the user places the back of the card, the user also places it according to the prompt information shown in b of Figure 3The prompt information shown in b in [reference] is placed in the same area. Of course, the placement method on the back of the card can also be set to other methods. For example, other areas for placing the card can be additionally set in the scanning area, and the embodiments of the present application do not make specific limitations on this.
[0048] In addition, it should be noted that Figure 3 The number of cards shown in [reference] is 3, and the prompt information displayed in the scanning area is the placement range of the 3 cards. However, the number of cards that the user needs to copy is not necessarily 3. When the number of cards that the user needs to copy is 2, 2 areas can be arbitrarily selected from the 3 areas to place the cards. Of course, in a possible implementation manner, the 3 placement areas are respectively marked with "Card 1 Placement Position", "Card 2 Placement Position", and "Card 3 Placement Position". At this time, if the number of cards that the user needs to copy is 2, the 2 cards are respectively placed in the placement areas corresponding to "Card 1 Placement Position" and "Card 2 Placement Position"; similarly, if the number of cards that the user needs to copy is 1, the 1 card is placed in the placement area corresponding to "Card 1 Placement Position".
[0049] In the embodiments of the present application, when the image forming apparatus displays the placement range of the card, it prompts the user to place the card. When the user places the card, the user can select the number of cards through the control panel, so that the image forming apparatus can set different scanning methods according to the number of cards, making the scanning method correspond to the number of cards. In a possible implementation manner, when the number of cards is less than 3, the scanning range of the image forming apparatus can be reduced. Exemplarily, if the number of cards is 1 and the scanning direction is from left to right, the image forming apparatus is controlled to stop scanning when scanning from left to right to a position between the "Card 1 Placement Position" and the "Card 2 Placement Position".
[0050] In addition, as Figure 3 shown in a and b in [reference], the card placement range prompted in the scanning area 1011 is slightly larger than the size of the card, so as to facilitate the user to place the card. In a possible implementation manner, the length and width of the range size of the placement position of each card in the scanning area 1011 should both be the diagonal length of the card plus 2 cm, that is, the range of the card placement position = (diagonal length of the card + 2 cm) × (diagonal length of the card + 2 cm). Of course, the range of the card placement position is only an exemplary description, and the embodiments of the present application do not make specific limitations on this. It can be understood that the user does not need to strictly align the card with the prompt range, and only needs to place the card within the prompt range. On the premise of ensuring that the cards are arranged in order, the user can quickly complete the placement of the cards and improve work efficiency.
[0051] However, since the card placement range is slightly larger than the card size, when the user places the card, the angle of the card may not be correct. At this time, in order to ensure the final effect presented on the image forming medium, it is necessary to correct the angles of each first-side image and second-side image, which will be described in detail below and will not be elaborated here.
[0052] Step S202: Crop n first-side images from the first complete image.
[0053] Specifically, since the first complete image includes n first-side images, it is necessary to crop n first-side images from the first complete image. The image forming device identifies the edges of the n first-side images through intelligent algorithms (such as edge detection, threshold judgment, etc.) to facilitate the cropping of the n first-side images.
[0054] See Figure 4 , which is a schematic diagram of cropping a first complete image provided by an embodiment of the present application. As Figure 4 shown, the 3 images (front of card 1, front of card 2, and front of card 3) in the first complete image 300 are located on the same image. After cropping the first complete image 300, three independent images, namely the front of card 1, the front of card 2, and the front of card 3, are obtained respectively.
[0055] It can be understood that cropping the first complete image to obtain independent images of n first-side images is more conducive to subsequent correction of the orientation of the first-side images and typesetting the first-side images according to a preset typesetting method.
[0056] Step S203: Crop n second-side images from the second complete image.
[0057] Specifically, since the second complete image includes n second-side images, it is necessary to crop n second-side images from the second complete image. The image forming device identifies the edges of the n second-side images through intelligent algorithms (such as edge detection, threshold judgment, etc.) to facilitate the cropping of the n second-side images.
[0058] Similar to step S202, the second complete image includes n second-side images, and the n second-side images in the second complete image are an integral whole. In the embodiment of the present application, the n images in the second complete image are cropped to obtain n independent second-side images.
[0059] It can be understood that cropping the second complete image to obtain independent images of n second-side images is more conducive to subsequent correction of the orientation of the second-side images and typesetting the second-side images according to a preset typesetting method.
[0060] Step S204: Typeset the n first-side images and the n second-side images according to a preset typesetting method.
[0061] Specifically, after obtaining the independent images of n first-side images and n second-side images, the n first-side images and the n second-side images are typeset according to a preset typesetting method. Since the independent images of the n first-side images and the n second-side images are scattered and disordered, in order to ensure the orderliness of the first-side images and the second-side images in the finally output image, it is necessary to typeset the first-side images and the second-side images, so as to achieve the typesetting effect expected by the user.
[0062] In the related art, since the image forming apparatus can only copy one card at a time, there are only several fixed typesetting methods for the front image and the back image of one card. For example, the front image of the card and the back image of the card are both located in the upper half of the A4 paper, and are placed side by side or vertically; or the front image of the card and the back image of the card are respectively centered in the upper half and the lower half of the A4 paper; or the front image of the card and the back image of the card are respectively centered in the left half and the right half of the A4 paper. This will be described in detail below with reference to the accompanying drawings.
[0063] See Figure 5A , which is a typesetting schematic diagram of one card provided by an embodiment of the present application. As Figure 5A shown, both the front image of card 1 and the back image of card 1 are located in the upper half of the A4 paper, and the two images are placed side by side.
[0064] See Figure 5B , which is another typesetting schematic diagram of one card provided by an embodiment of the present application. As Figure 5B shown, both the front image of card 1 and the back image of card 1 are located in the upper half of the A4 paper, and the two images are placed vertically.
[0065] See Figure 5C , which is another typesetting schematic diagram of one card provided by an embodiment of the present application. As Figure 5C shown, the front image of card 1 and the back image of card 1 are respectively centered in the upper half and the lower half of the A4 paper.
[0066] See Figure 5D , which is another typesetting schematic diagram of one card provided by an embodiment of the present application. As Figure 5D shown, the front image of card 1 and the back image of card 1 are respectively centered in the left half and the right half of the A4 paper.
[0067] Of course, the above typesetting schematic diagrams are only exemplary descriptions, and should not be regarded as a limitation of the protection scope of the present application. In practical applications, those skilled in the art can set other typesetting methods for one card according to actual needs. For example, the front image of card 1 and the back image of card 1 in the above embodiments can be typeset by swapping.
[0068] However, this typesetting method can only typeset the front and back images of one card and cannot meet the user's need to copy multiple cards simultaneously.
[0069] Therefore, in the embodiments of the present application, a second interaction interface is output. This second interaction interface is used to display multiple typesetting methods, obtain the target typesetting method selected by the user, and typeset n first-side images and n second-side images according to the target typesetting method.
[0070] It can be understood that the user can view multiple typesetting methods through the display area of the control panel and select a typesetting method that meets the expectations.
[0071] For ease of understanding, the embodiments of the present application also provide schematic diagrams of multiple typesetting methods for multiple cards.
[0072] See Figure 6A , which is a schematic diagram of a typesetting method for multiple cards provided by the embodiments of the present application. As Figure 6A shown, the front images of 3 cards are all located on the left half page of the paper, from top to bottom are the front of card 1, the front of card 2, and the front of card 3, and the back images of 3 cards are all located on the right half page of the paper, from top to bottom are the back of card 1, the back of card 2, and the back of card 3.
[0073] Of course, the front images and back images of the 3 cards can be reversed, as shown in the following figure.
[0074] See Figure 6B , which is another schematic diagram of a typesetting method for multiple cards provided by the embodiments of the present application. As Figure 6B shown, the back images of 3 cards are all located on the left half page of the paper, from top to bottom are the back of card 1, the back of card 2, and the back of card 3, and the front images of 3 cards are all located on the right half page of the paper, from top to bottom are the front of card 1, the front of card 2, and the front of card 3.
[0075] In some possible implementation manners, the user may only scan 2 cards. For this situation, the embodiments of the present application also provide a typesetting method for 2 cards.
[0076] See Figure 6C , which is another schematic diagram of a typesetting method for multiple cards provided by the embodiments of the present application. As Figure 6C shown, the back images of 2 cards are all located on the left half page of the paper, with the back of card 1 on the upper side and the back of card 2 on the lower side, and the front images of 2 cards are all located on the right half page of the paper, with the front of card 1 on the upper side and the front of card 2 on the lower side, and all 4 images are relatively close to the upper edge of the paper.
[0077] Of course, the layout of the above-mentioned multiple cards is only an exemplary illustration and should not be regarded as a limitation of the protection scope of this application. For example, the layout of multiple cards also includes: the six images corresponding to three cards can be unevenly placed, and the four images corresponding to two cards can be closer to the lower edge of the paper, etc.
[0078] It can be understood that providing a fixed layout for the user to choose from can enable the user to quickly select a layout that meets expectations and improve work efficiency.
[0079] However, the above embodiments are all fixed layout methods. The user can only select a layout that is more in line with expectations from a limited number of layout methods. For some special needs of the user, the above layout methods may not be able to meet. Therefore, in the embodiments of this application, the n first-side images and the n second-side images can be typeset according to the custom layout input by the user.
[0080] Specifically, the image forming device displays the cropped n first-side images and n second-side images on the screen, and the user can freely typeset the n first-side images and n second-side images. If the control panel of the image forming device is a touch screen, the user can move the corresponding images by touching the screen, thereby realizing custom typesetting; if the control panel of the image forming device needs to be controlled by buttons, the user can select the corresponding images through the buttons, thereby realizing custom typesetting.
[0081] It can be understood that providing a choice of custom typesetting for the user can enable the user to obtain a layout that is more in line with expectations and enhance the user experience.
[0082] Step S205: Perform an image forming operation on the typeset n first-side images and n second-side images.
[0083] Specifically, according to the positions of the typeset n first-side images and n second-side images, an image forming operation is performed on the n first-side images and n second-side images, so that the n first-side images and n second-side images are presented on the image forming medium. The image forming operation includes but is not limited to image forming operations such as printing, copying, and scanning.
[0084] In real life, a user may copy the certificates of multiple people at the same time. At this time, the certificates of each person need to be presented on a separate piece of paper respectively. If the user scans the certificates of each person separately, the cover needs to be opened multiple times. Exemplarily, assume that a user needs to copy the certificates of 3 people, and the certificates of each person need to be presented on a separate piece of paper. Then the user needs to open the cover at least 6 times, wasting electric energy, and the user operation is cumbersome, affecting the user experience.
[0085] In view of this problem, the image forming method provided by the embodiments of the present application can obtain the first side images of 3 cards by one-time scanning. When the user turns over the 3 cards, the image forming device can obtain the second side images of the 3 cards by one-time scanning. The image forming device arranges the images corresponding to the 3 cards, and finally presents the images of the 3 cards on 3 image forming media. That is to say, during the scanning of the 3 cards, the user only needs to open the cover once to present the images of the 3 cards on 3 image forming media respectively. This not only saves electric energy but also simplifies the operation process of the user and improves the user experience.
[0086] Specifically, according to the image forming mode selected by the user, n first side images and n second side images are arranged so that the n first side images and n second side images are presented on m image forming media, where each image forming media includes at least one first side image and / or at least one second side image, and m≥1.
[0087] It can be understood that when m = 1, the n first side images and n second side images are arranged and presented on 1 image forming media, as specifically described in the above embodiments and will not be elaborated here. When m>1, the n first side images and n second side images are arranged and presented on multiple image forming media.
[0088] When multiple cards are arranged in multiple pages, the image forming device can provide multiple fixed arrangements for the user to choose from. Hereinafter, taking 3 cards as an example, a detailed description will be given with reference to the accompanying drawings.
[0089] See Figure 7 , which is a schematic diagram of a multi-page layout provided by the embodiments of the present application. As Figure 7 shown, Figure 7 in a is a schematic diagram of the layout of the front and back images corresponding to card 1, Figure 7 in b is a schematic diagram of the layout of the front and back images corresponding to card 2, Figure 7 in c is a schematic diagram of the layout of the front and back images corresponding to card 3. As can be seen from Figure 7 , the layout methods of card 1, card 2, and card 3 are the same. The front images and the back images are both located in the upper half of the paper, and the front images and the back images are placed side by side, but are presented on different image forming media.
[0090] The embodiments of the present application also provide another multi-page layout method.
[0091] See Figure 8 , which is another schematic diagram of a multi-page layout provided by the embodiments of the present application. As Figure 8 shown, Figure 8 in a is a schematic diagram of the layout of the front and back images corresponding to card 1,Figure 8 In b, it is a layout schematic diagram of the front image and the back image corresponding to Card 2. Figure 8 In c, it is a layout schematic diagram of the front image and the back image corresponding to Card 3. As can be seen from Figure 8 , the layout methods of Card 1, Card 2, and Card 3 are the same. The front image and the back image are both located in the upper half of the paper, and the front image and the back image are placed vertically, but are presented on different image-forming media.
[0092] The embodiment of the present application also provides another multi-page layout method.
[0093] Refer to Figure 9 , which is another multi-page layout schematic diagram provided by the embodiment of the present application. As shown in Figure 9 , Figure 9 In a, it is a layout schematic diagram of the front image and the back image corresponding to Card 1. Figure 9 In b, it is a layout schematic diagram of the front image and the back image corresponding to Card 2. Figure 9 In c, it is a layout schematic diagram of the front image and the back image corresponding to Card 3. As can be seen from Figure 9 , the layout methods of Card 1, Card 2, and Card 3 are the same. The front image and the back image are respectively centered in the upper half of the paper and the lower half of the paper, but are presented on different image-forming media.
[0094] In the above embodiments, Card 1, Card 2, and Card 3 are respectively placed on different image-forming media. However, in actual applications, any several of the multiple cards can be combined. For example, Card 1 and Card 2 can be placed on the same image-forming media, or Card 2 and Card 3 can be placed on the same image-forming media, or Card 1 and Card 3 can be placed on the same image-forming media. The embodiment of the present application does not specifically limit the layout method of multi-page layout.
[0095] It can be understood that providing a fixed layout method for users to choose can enable users to quickly select a layout method that meets expectations and improve work efficiency.
[0096] However, the above embodiments are all fixed layout methods. Users can only select a layout method that more meets expectations from limited layout methods. For some special needs of users, the above layout methods may not be able to meet. Therefore, in the embodiment of the present application, n first-side images and n second-side images can be typeset according to the custom layout method input by the user. The user can freely choose the layout of the images on the current page. When the image-forming device copies the current page, only the images selected by the user will be copied. Exemplarily, when copying Page 1, the user selects Image 1 and Image 2 from 6 images and typesets these two images. Then, only Image 1 and Image 2 are in the image-forming medium corresponding to Page 1.
[0097] Specifically, the image forming apparatus displays the n first-side images and the n second-side images after cropping on the screen, and the user can freely typeset the n first-side images and the n second-side images. If the control panel of the image forming apparatus is a touch screen, the user can move the corresponding image by touching the screen, thereby realizing custom typesetting; if the control panel of the image forming apparatus needs to be controlled by buttons, the user can select the corresponding image by pressing the buttons, thereby realizing custom typesetting.
[0098] It can be understood that providing the user with an option for custom typesetting can enable the user to obtain a typesetting method that better meets expectations and enhance the user experience.
[0099] Some image forming apparatuses with higher configurations can directly display the first-side image (similar to 102 in Figure 1 and the second-side image (similar to 103 in Figure 1 on the screen. However, some ordinary image forming apparatuses can only display schematic diagrams of images on the screen. For example, the front side of Card 1, the back side of Card 1, the front side of Card 2, and the back side of Card 2, as shown in Fig. 5- Figure 9 shown. This type of image forming apparatus requires the user to set in advance the correspondence between the names of the front and back sides of the card and the actual images. Exemplarily, the front side of Card 1 corresponds to the first-side image of the first card, and the back side of Card 1 corresponds to the second-side image of the first card. When the user adjusts the position of "the front side of Card 1", the position of the first-side image of the first card corresponding to "the front side of Card 1" is adjusted accordingly.
[0100] Since the correspondence between the names of the front and back sides of the card and the actual images is fixed, and the image forming apparatus defaults that the images scanned for the first time are all first-side images, when the user puts the card in the reverse direction during the first scan, the names of the front and back sides of the card do not match the actual images. Exemplarily, the user pre-sets that the front side of Card 1 corresponds to the first-side image of the first card, and the back side of Card 1 corresponds to the second-side image of the first card. If the user puts Card 1 in the reverse direction during the first scan, the image actually obtained by the image forming apparatus is the second-side image of Card 1. At this time, the front side of Card 1 actually corresponds to the second-side image of Card 1. In this way, the positions of the first-side image and the second-side image obtained after performing the image forming operation on the image are opposite, which obviously does not meet the user's expectations and affects the user experience.
[0101] In view of the above problems, the embodiments of the present application provide another image forming method. After obtaining the first-side image and the second-side image, the first feature information corresponding to the first-side image and the second feature information corresponding to the second-side image are extracted, and it is confirmed whether the obtained image is actually the first-side image or the second-side image through the first feature information and the second feature information, so as to ensure that the actual images corresponding to the front and back names of the card are correctly matched. The following will be described in detail with reference to the accompanying drawings.
[0102] See Figure 10 , which is a schematic flowchart of another image forming method provided by the embodiments of the present application. As Figure 10 shown, this method further includes the following steps on the basis of the embodiment shown in Figure 2 .
[0103] Step S1001: Record the n first position information corresponding to the n first-side images in the first complete image and the n second position information corresponding to the n second-side images in the second complete image.
[0104] Specifically, the n first position information corresponding to the n first-side images in the first complete image and the n second position information corresponding to the n second-side images in the second complete image are recorded through intelligent algorithms (such as edge detection, portrait recognition, card number recognition, etc.). Since the range of the card placement position displayed in the scanning area in the embodiments of the present application is relatively large, and within this placement range, the user can place the card at any angle, the image forming device cannot predict the specific position where the user places the card in advance. Therefore, it is necessary to identify the positions of the four fixed points of the card through intelligent algorithms, and then determine the first position information and the second position information of the n cards.
[0105] In a possible implementation manner, the first position information is the coordinate information of the corresponding first-side image in the first complete image. Similarly, the second position information is the coordinate information of the corresponding second-side image in the second complete image.
[0106] Since there is a lot of other information for each card in addition to the coordinate information, and there is a large amount of card information stored in the same image forming device, it is not convenient to perform operations such as indexing one by one. Therefore, in the embodiments of the present application, the information corresponding to each card is stored together to generate a value. However, because the storage capacity of this value is relatively large, a number information is set for each image, and the corresponding value can be indexed through the number information. Then, through a designed calculation method, the position information of each image can be calculated through this value.
[0107] Exemplarily, the position information corresponding to the front image of Card 1 (i.e., the first position information corresponding to Card 1) is numbered 1, the position information corresponding to the front image of Card 2 (i.e., the first position information corresponding to Card 2) is numbered 2, the position information corresponding to the front image of Card 3 (i.e., the first position information corresponding to Card 3) is numbered 3, the position information corresponding to the back image of Card 1 (i.e., the second position information corresponding to Card 1) is numbered 4, the position information corresponding to the back image of Card 2 (i.e., the second position information corresponding to Card 2) is numbered 5, and the position information corresponding to the back image of Card 3 (i.e., the second position information corresponding to Card 3) is numbered 6.
[0108] Of course, the numbered information can also correspond to the cards one by one, that is, the front image and the back image of the same card both correspond to the same numbered information. For example, Card 1 can correspond to the number 1, then the position information of the front image and the back image of Card 1 both correspond to the number 1. That is to say, through the index number 1, the first position information and the second position information corresponding to Card 1 can be obtained. The embodiment of the present application does not specifically limit the correspondence between the cards and the numbered information.
[0109] It can be understood that recording the position information through the numbered information is more convenient for finding the position information of the image. Exemplarily, when it is necessary to view the first position information of Card 1, only the number 1 needs to be searched to obtain the first position information of Card 1.
[0110] Step S1002: Obtain n first feature information corresponding to n first-side images and n second feature information corresponding to n second-side images.
[0111] Specifically, n first feature information corresponding to n first-side images and n second feature information corresponding to n second-side images are obtained through intelligent algorithms (such as threshold judgment, character recognition, portrait recognition, etc.). Among them, each first-side image corresponds to one first feature information, and each second-side image corresponds to one second feature information. The first feature information in the embodiment of the present application is used to characterize the content feature of the first-side image, and the second feature information is used to characterize the content feature of the second-side image. Exemplarily, the first feature information or the second feature information may include: the portrait side of the ID card, the national emblem side of the ID card, the magnetic stripe side of the bank card, the card number side of the bank card, and so on.
[0112] Because the user has preset the preset feature information corresponding to each position, by identifying the feature information of the current image, it can be determined whether the current image is the front of the card or the back of the card, and further determine whether the placement position of the image meets the user's expectations.
[0113] Step S1003: Adjust the positions of n first-side images and n second-side images.
[0114] Specifically, according to the preset feature information and the feature information corresponding to each position, adjust the positions of the n first-side images and the n second-side images, so that the first feature information corresponding to each first position information matches the first preset feature information, and the second feature information corresponding to each second position information matches the second preset feature information.
[0115] As an example in step S1001, the user can preset that number 1 is the front of card 1, and card 1 is an ID card. The front of the ID card is the national emblem side. Therefore, the first preset feature information corresponding to number 1 is the national emblem side of the ID card. Number 4 is the back of card 1, that is, the portrait side of the ID card. Therefore, the second preset feature information corresponding to number 4 is the portrait side of the ID card. However, the user may be negligent for a moment and place the ID card backwards during the first scan and the second scan, resulting in the image obtained by the image forming device in the first scan being the back of the ID card, and the image obtained in the second scan being the front of the ID card. That is, the actual image corresponding to number 1 is the back of the ID card, and the actual image corresponding to number 4 is the front of the ID card. This obviously does not meet the user's expectations and will also waste paper when photocopying.
[0116] In this case, through the method provided in the embodiments of the present application, the actual image corresponding to number 1 and the actual image corresponding to number 4 can be swapped, so that number 1 corresponds to the front of the ID card and number 4 corresponds to the back of the ID card, thereby obtaining an image that meets the user's expectations.
[0117] In practical applications, before the second scan, the user needs to flip the card. When the number of cards is large, the user may miss one of the cards, resulting in the same first-side image and second-side image corresponding to the same card, which does not meet the user's expectations. Therefore, in the embodiments of the present application, when the image forming device finds that the first-side image and the second-side image are the same, it outputs an interactive interface, prompts the user, and at the same time obtains the user's scan control instruction, and determines whether to continue to adjust the position of the image according to the user's scan control instruction.
[0118] Specifically, if the first-side image and the second-side image corresponding to any card are the same, then output a first interactive interface, which is used to prompt the user that the first-side image and the second-side image are the same, and obtain the scan control instruction selected by the user; if the scan control instruction indicates canceling the rescan, the image forming device continues to adjust the positions of the n first-side images and the n second-side images that have been obtained.
[0119] In a possible implementation, the first interaction interface includes: The two scanning results of Card 1 are both the same side. Please confirm whether to rescan the second side. If the user selects to cancel, it may be that the user wants to obtain two images of the same side of the same card. Then, the image forming device does not need to perform additional operations and can directly perform subsequent adjustments on the currently obtained n first-side images and n second-side images, that is, continue to adjust the positions of the n first-side images and n second-side images.
[0120] In a possible implementation, if the scanning control instruction selected by the user indicates a rescan, delete the second-side image corresponding to the corresponding card, and prompt the user to re-place the second side of the card, and scan to obtain a new second-side image, that is, perform a third scan to obtain a new second-side image. Thus, the second-side image is updated to make the scanning result more in line with the user's expectations.
[0121] In the embodiment of the present application, when prompting the user to place the card, a card placement range is set. This placement range is for the card, that is, both the first side and the second side of the same card are placed within the same range. However, when the user places the card, it may happen that the placement position of the card is outside the preset placement position (i.e., the above-mentioned card placement range), which will affect the image forming device's recognition and typesetting of the image.
[0122] Therefore, after the embodiment of the present application obtains one first complete image and one second complete image corresponding to n cards, it determines whether the n first-side images and n second-side images corresponding to the n cards are located within the corresponding n preset placement ranges. If the first-side image or the second-side image corresponding to any card is outside the preset placement range, a prompt message is output to prompt the user to adjust the placement position of the card, delete the corresponding image, and obtain a new image.
[0123] Exemplarily, when the user places Card 1 and places the front side of Card 1 outside the preset placement range, resulting in the position information corresponding to the front-side image of Card 1 exceeding the preset placement range, a prompt message is output, prompting the user to adjust the placement position of the front side of Card 1 and rescan. Before the image forming device obtains the new front-side image of Card 1, the old front-side image corresponding to Card 1 is destroyed. Similarly, when the user places Card 2 and places the back side of Card 2 outside the preset placement range, resulting in the position information corresponding to the back-side image of Card 2 exceeding the preset placement range, a prompt message is output, prompting the user to adjust the placement position of the back side of Card 2 and rescan. Before the image forming device obtains the new back-side image of Card 2, the old back-side image corresponding to Card 2 is destroyed.
[0124] In the embodiments of the present application, it is possible to accurately prompt the user which specific card is placed out of bounds (i.e., beyond the preset placement range), so as to facilitate the user to adjust the placement position of the corresponding card. That is to say, the user can only adjust the placement position of one card and only rescan one card. While prompting the user to re-place the card, the preset placement range corresponding to the card is displayed, avoiding the user blindly adjusting the position of the card, improving the user experience, and improving work efficiency.
[0125] Corresponding to the above embodiments, the present application also provides another image forming method.
[0126] See Figure 11 , which is a schematic flowchart of another image forming method provided by the embodiments of the present application. This method can be applied to Figure 1 the application scenario shown in Figure 11 As shown, it mainly includes the following steps.
[0127] Step S1101: Start card copying.
[0128] Step S1102: Prompt the user to place the first side of the card.
[0129] Step S1103: Pre-scan and record the first complete image, the first position information, and the number information.
[0130] Step S1104: Determine whether there is a card out of bounds.
[0131] Specifically, if there is a card out of bounds, step S1105 is executed; if there is no card out of bounds, step S1107 is executed.
[0132] Step S1105: Prompt the user which card is placed out of bounds, display the preset placement range corresponding to the card, and prompt the user to re-place and scan.
[0133] Step S1106: Destroy the data, the first position information, and the number information of the first side of the corresponding card.
[0134] Step S1107: Save the first complete image and identify the first feature information through an intelligent algorithm.
[0135] Step S1108: Prompt the user to place the second side of the card.
[0136] Step S1109: Pre-scan and record the second complete image, the second position information, and the number information.
[0137] Step S1110: Determine whether there is a card out of bounds.
[0138] Specifically, if there is a card out of bounds, step S1111 is executed; if there is no card out of bounds, step S1113 is executed.
[0139] Step S1111: Prompt the user which card is placed out of bounds, display the preset placement range corresponding to the card, and prompt the user to place it again and scan.
[0140] Step S1112: Destroy the data, second position information, and number information on the second side of the corresponding card.
[0141] Step S1113: Save the second complete image and identify the second feature information through an intelligent algorithm.
[0142] Step S1114: Determine whether the two scans are of the same side.
[0143] Specifically, if the two scans are of the same side, then execute Step S1115; if the two scans are not of the same side, then execute Step S1116.
[0144] Step S1115: Prompt the user that the two scans are of the same side and determine whether the second side needs to be rescanned.
[0145] Specifically, if the scan control instruction selected by the user indicates rescanning, then execute Step S1112; if the scan control execution selected by the user indicates canceling the scan, then execute Step S1116.
[0146] Step S1116: Crop the image and correspond the single image with the number information one by one.
[0147] The single image in the embodiment of the present application includes a first-side image and a second-side image.
[0148] Step S1117: Perform angle detection, direction correction, front and back judgment on each image and save the judgment information.
[0149] Step S1118: Obtain the typesetting method.
[0150] Specifically, if the user selects a custom typesetting method, then execute Step S1121; if the user selects a fixed typesetting method, then execute Step S1119.
[0151] Step S1121: The user selects a custom typesetting method.
[0152] Step S1122: Prompt the user to customize the typesetting order according to the image numbers.
[0153] Step S1123: Typeset and splice the corrected images according to the typesetting method customized by the user.
[0154] Step S1119: The user selects a fixed typesetting method.
[0155] Step S1120: Obtain the fixed layout method selected by the user.
[0156] Step S1124: Output the typeset image.
[0157] For the specific content involved in the embodiments of the present application, reference may be made to the descriptions in the above Figures 2 - 10 illustrated embodiments. For the sake of brevity of description, it will not be elaborated herein.
[0158] Corresponding to the above embodiments, the present application also provides an image forming apparatus.
[0159] Refer to Figure 12 , which is a schematic structural diagram of an image forming apparatus provided by an embodiment of the present application. As Figure 12 shown, the image forming apparatus may include: a complete image acquisition module 1201, a first side image acquisition module 1202, a second side image acquisition module 1203, a layout module 1204, and an image forming module 1205. These components communicate through one or more buses. Those skilled in the art can understand that the structure of the electronic device shown in the figure does not constitute a limitation on the embodiments of the present application. It may be a bus structure, a star structure, and may also include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0160] Among them, the complete image acquisition module 1201 is used to acquire a first complete image and a second complete image corresponding to n cards. The first complete image includes n first side images corresponding to the n cards, and the second complete image includes n second side images corresponding to the n cards. Wherein, each card corresponds to one of the first side image and one of the second side image, and n≥2; The first side image acquisition module 1202 is used to crop n first side images from the first complete image; The second side image acquisition module 1203 is used to crop n second side images from the second complete image; The layout module 1204 is used to layout the n first side images and the n second side images according to a preset layout method; The image forming module 1205 is used to perform an image forming operation on the n first side images and the n second side images after layout.
[0161] In a specific implementation, an embodiment of the present application further provides a computer storage medium. The computer storage medium can store a program, and when the program is executed, it may include some or all of the steps in the embodiments of the simulation scenario generation method provided by the embodiments of the present application. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM), etc.
[0162] In the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent the case where A exists alone, A and B exist simultaneously, or B exists alone. Where A and B may be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" and its similar expressions refer to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, and c may represent: a, b, c, a - b, a - c, b - c, or a - b - c, where a, b, and c may be single or multiple.
[0163] Those of ordinary skill in the art can realize that the various units and algorithm steps described in the embodiments disclosed herein can be implemented by a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. A professional technician can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0164] Those skilled in the art can clearly understand that for the convenience and conciseness of description, the specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments, and will not be described herein again.
[0165] In several embodiments provided by the present application, if any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memory (ROM for short), random access memory (RAM for short), magnetic disks, or optical discs that can store program codes.
[0166] The same or similar parts among the various embodiments in this specification can be referred to each other. In particular, for the device embodiments and the terminal embodiments, since they are basically similar to the method embodiments, they are described relatively simply, and the relevant parts can be referred to the descriptions in the method embodiments.
Claims
1. An image forming method, characterized in that, Including: Obtaining a first complete image and a second complete image corresponding to n cards, where the first complete image includes n first side images corresponding to the n cards, and the second complete image includes n second side images corresponding to the n cards. Wherein, each card corresponds to one first side image and one second side image, and n≥2; Cropping n first side images from the first complete image; Cropping n second side images from the second complete image; Typesetting the n first side images and the n second side images according to a preset layout method; Performing an image forming operation on the typeset n first side images and n second side images.
2. The method according to claim 1, wherein After obtaining the first complete image and the second complete image corresponding to n cards, the method further includes: Recording n first position information corresponding to the n first side images in the first complete image and n second position information corresponding to the n second side images in the second complete image; Obtaining n first feature information corresponding to the n first side images and n second feature information corresponding to the n second side images, where each first side image corresponds to one first feature information, and each second side image corresponds to one second feature information; Adjusting the positions of the n first side images and the n second side images so that the first feature information corresponding to each first position information matches the first preset feature information, and the second feature information corresponding to each second position information matches the second preset feature information.
3. The method according to claim 2, wherein Recording the first position information and the second position information through numbering information, where one numbering information corresponds to one first position information or one second position information.
4. The method according to claim 2, characterized in that The method further includes: Judging whether the first side image and the second side image corresponding to each card are the same through the first feature information and the second feature information corresponding to each card; If the first side image and the second side image corresponding to any one of the cards are the same, outputting a first interaction interface, where the first interaction interface is used to prompt the user that the first side image and the second side image are the same, and obtaining a scanning control instruction selected by the user; If the scanning control instruction indicates canceling the rescan, typesetting the n first side images and the n second side images.
5. The method according to claim 4, wherein The method further includes: If the scanning control instruction indicates a rescan, deleting the second side image corresponding to any one of the cards; Obtaining a new second side image corresponding to any one of the cards.
6. The method according to claim 1, wherein After obtaining the first complete image and the second complete image corresponding to n cards, the method further includes: Judging whether the n first side images and the n second side images corresponding to the n cards are located in n corresponding preset placement ranges, where each card corresponds to one preset placement range; If the first-side image or the second-side image corresponding to any one of the cards is located outside the preset placement range, a prompt message is output, and the prompt message is used to prompt the user to adjust the placement position of the card; Delete the first-side image or the second-side image corresponding to any one of the cards; Obtain a new first-side image or a new second-side image corresponding to any one of the cards.
7. The method according to claim 1, wherein The typesetting of the n first-side images and the n second-side images according to a preset typesetting method includes: Output a second interaction interface, where the second interaction interface is used to display multiple typesetting methods and obtain the target typesetting method selected by the user; Typeset the n first-side images and the n second-side images according to the target typesetting method.
8. The method according to claim 1, characterized in that, The typesetting of the n first-side images and the n second-side images according to a preset typesetting method includes: Typeset the n first-side images and the n second-side images according to the custom typesetting method input by the user.
9. The method according to claim 1, wherein The typesetting of the n first-side images and the n second-side images according to a preset typesetting method includes: According to the image formation mode selected by the user, typeset the n first-side images and the n second-side images so that the n first-side images and the n second-side images are presented on m image formation media, where each image formation medium includes at least one first-side image and / or at least one second-side image, and m≥1.
10. An image forming apparatus, characterized in that, Includes: A complete image acquisition module, configured to acquire a first complete image and a second complete image corresponding to n cards, where the first complete image includes n first-side images corresponding to n cards, and the second complete image includes n second-side images corresponding to n cards, where each card corresponds to one first-side image and one second-side image, and n≥2; A first-side image acquisition module, configured to crop and obtain n first-side images from the first complete image; A second-side image acquisition module, configured to crop and obtain n second-side images from the second complete image; A typesetting module, configured to typeset the n first-side images and the n second-side images according to a preset typesetting method; An image formation module, configured to perform an image formation operation on the typeset n first-side images and n second-side images.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, where, when the program runs, it controls the device where the computer-readable storage medium is located to execute the method according to any one of claims 1 to 9.