Media processing device, media processing method, and program
The media processing device corrects tilted or damaged gift certificates by assessing the need for rotational correction, ensuring accurate image alignment and reducing errors in data management.
Patent Information
- Application Number
- JP2023086693
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-05-26
- Publication Date
- 2024-12-06
AI Technical Summary
Existing media processing devices struggle to correctly orient and process gift certificates that have been partially cut or damaged, leading to inaccuracies in image data acquisition and management.
A media processing device and method that includes a scanner for reading media, a correction determination unit to assess the need for rotational correction, and a display section to output correctly oriented image data, using techniques like affine transformation and morphological conversion to ensure accurate image alignment.
The solution enables accurate orientation and correction of scanned media images, improving data input efficiency and reducing errors in managing gift certificates and other media.
Smart Images

Figure 2024169873000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a media processing device, a media processing method, and a program. [Background technology]
[0002] Currency processing devices, such as teller machines, are known that are installed in the back yard of a store. Currency processing devices manage media such as cash handled at the store. Media handled at stores include cash as well as gift certificates and other vouchers. Information such as voucher numbers, expiration dates, and use dates is written on these media, and the currency processing devices manage this information. Patent Document 1 discloses an inspection device that inspects valuable media. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2019-070892 A Summary of the Invention [Problem to be solved by the invention]
[0004] The currency processing device can manage individual media received by the store by scanning the media and acquiring image data. Some scanner control devices and drivers have a function to correct the tilt of a scanned image, so that the scanner can obtain upright medium image data even if the inserted medium is tilted.
[0005] Here, there are media such as gift certificates that can be used by cutting off a part of the media when trying it out. Some media are designed so that one corner of the media is cut off at an angle. When such media is corrected by a scanner, the cut-off part may be corrected to be parallel to the X-axis of the image.
[0006] An object of the present invention is to provide a media processing device, a media processing method, and a program that can upright image data on a scanned medium. [Means for solving the problem]
[0007] According to a first aspect of the present invention, a media processing device includes a scanner that reads a medium and outputs primary image data, which is media image data that has been rotationally corrected based on the reading result, an acquisition unit that acquires the primary image data from the scanner, a correction determination unit that determines whether or not rotation correction of the primary image data is necessary based on known characteristics of the medium, a correction unit that generates secondary image data, which is media image data that has been rotationally corrected from the primary image data, when it is determined that rotation correction is necessary, and a display unit that displays the media image data.
[0008] According to a second aspect of the present invention, a media processing method includes the steps of acquiring primary image data from a scanner that reads a medium and outputs primary image data, which is media image data that has been rotationally corrected based on the reading results, determining whether or not rotation correction of the primary image data is necessary based on known characteristics of the medium, and if it is determined that rotation correction is necessary, generating secondary image data, which is media image data that has been rotationally corrected from the primary image data, and displaying the media image data.
[0009] According to a third aspect of the present invention, a program causes a computer connected to a scanner that reads a medium and outputs primary image data, which is medium image data that has been rotationally corrected based on the reading results, to execute the following steps: acquiring the primary image data from the scanner; determining whether or not rotation correction of the primary image data is necessary based on known characteristics of the medium; if it is determined that rotation correction is necessary, generating secondary image data, which is medium image data that has been rotationally corrected from the primary image data; and displaying the medium image data. Effect of the Invention
[0010] According to the above aspect, image data of a scanned medium can be uprighted. [Brief description of the drawings]
[0011] [Figure 1] 1 is a diagram showing the configuration of a media processing device according to a first embodiment. [Diagram 2] FIG. 2 is a diagram showing an example of a used gift certificate according to the first embodiment. [Diagram 3] FIG. 4 is a diagram showing an example of primary image data that has been successfully corrected according to the first embodiment. [Figure 4] FIG. 4 is a diagram showing an example of primary image data that has been unsuccessfully corrected according to the first embodiment. [Diagram 5] FIG. 2 is a diagram showing a software configuration of a terminal according to the first embodiment. [Figure 6] 13 is a flowchart (part 1) showing the settlement procedure using a media processing device according to the first embodiment. [Figure 7] 13 is a flowchart (part 2) showing the settlement procedure using the media processing device according to the first embodiment. [Figure 8] 13 is an example of a medium list screen according to the first embodiment. [Figure 9] 4 is an example of a data input screen according to the first embodiment. [Figure 10] FIG. 1 is a schematic block diagram illustrating a configuration of a computer according to at least one embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] First Embodiment Configuration of media processing device 1 Hereinafter, the embodiments will be described in detail with reference to the drawings. 1 is a diagram showing the configuration of a media processing device 1 according to the first embodiment. The media processing device 1 according to the first embodiment includes a teller machine 10 and a scanner 50.
[0013] The teller machine 10 is a device installed in a store and capable of various processes including depositing and dispensing currency. The teller machine 10 includes a banknote processing unit 11 that stores or dispenses banknotes, a coin processing unit 12 that stores or dispenses coins, and a terminal 13 that operates the teller machine 10 and displays its status.
[0014] The terminal 13 accepts operations from an operator and issues operating instructions to the banknote processing unit 11 and the coin processing unit 12. The terminal 13 includes a display unit 131 and an operation unit 132. The display unit 131 includes a display device such as a liquid crystal display. The display unit 131 displays information such as a business menu screen, an operation explanation screen, error processing guidance, device settings, and a maintenance screen for maintenance personnel. The operation unit 132 includes a touch panel, hardware buttons, a keyboard, and the like, and accepts operations performed by the operator using the touch panel and keyboard.
[0015] The terminal 13 manages cash currency and gift certificates handled by the store. The terminal 13 manages cash currency based on the denomination identification and counting results by the banknote processing unit 11 and the coin processing unit 12. The terminal 13 manages the gift certificates by storing medium image data obtained by scanning the gift certificate with the scanner 50 in association with the gift certificate data entered by the operator. The gift certificate is an example of a medium.
[0016] Scanner 50 The scanner 50 accepts the insertion of a sheet medium such as a gift certificate, and generates image data of the inserted sheet medium. Hereinafter, image data obtained by scanning the sheet medium will be referred to as medium image data I. The scanner 50 is equipped with image sensors arranged in a row (not shown). The scanner 50 may be a sheet-fed scanner or a flatbed scanner. A sheet-fed scanner is a scanner that transports the sheet medium in a direction perpendicular to the row of image sensors and scans the sheet medium with the image sensors. A flatbed scanner is a scanner that transports the image sensors in a direction perpendicular to the row and scans the sheet medium with the image sensors.
[0017] A scanner driver 21, which is a driver for the scanner 50, is installed in the terminal 13. The scanner driver 21 communicates with the microcomputer of the scanner 50 to obtain medium image data.
[0018] The microcomputer of the scanner 50 according to the first embodiment has a tilt correction function for the medium image data I obtained from the image sensor. For example, the scanner 50 extracts edges of the raw medium image data I obtained from the image sensor, and performs rotation correction by rotating the image data so that the edges are parallel to the X-axis (horizontal axis) of the image. The scanner 50 then outputs the medium image data I that has been cropped with the smallest circumscribing rectangle that contains the area in which the sheet medium is captured from the image data after the rotation correction. Hereinafter, the medium image data I after the rotation correction by the scanner 50 is referred to as the primary image data I1. Since the gift certificate is rectangular, even if the sheet medium inserted into the scanner 50 is tilted, the scanner 50 can correct the tilt and generate medium image data I in which the medium is upright. In other embodiments, the scanner driver 21 may have the tilt correction function instead of the microcomputer of the scanner 50. Even if the scanner driver 21 has the tilt correction function, the scanner 50 can be said to be a scanner that reads the medium and outputs primary image data, which is medium image data that has been rotationally corrected based on the reading result.
[0019] Some gift certificates have a part cut off and used as proof that they have been used. Figure 2 is a diagram showing an example of a used gift certificate T1 according to the first embodiment. In other words, the used gift certificate T1 is a rectangular unused gift certificate T0 with a corner C cut off. Since the general-purpose scanner 50 is not necessarily designed specifically for reading gift certificates, when a used gift certificate T1 is scanned by the scanner 50, primary image data may be generated that has been rotated and corrected so that the side corresponding to the cut corner C is parallel to the X-axis. FIG. 3 is a diagram showing an example of primary image data I1 that has been successfully corrected according to the first embodiment. FIG. 4 is a diagram showing an example of primary image data I1 that has been unsuccessfully corrected according to the first embodiment. As shown in FIGS. 3 and 4, the image size of the primary image data I1 that has been unsuccessfully corrected is larger than that of the primary image data I1 that has been successfully corrected. In addition, the image of the primary image data I1 that has been unsuccessfully corrected has more blank space than the image of the primary image data I1 that has been successfully corrected.
[0020] When registering a gift certificate, the terminal 13 of the cash dispenser 10 displays the medium image data I acquired from the scanner 50 on the display unit 131, and has the operator input data while referring to the screen of the display unit 131. At this time, if the medium image data I displayed on the display unit 131 is tilted, it will be inconvenient for the operator to input data, so the terminal 13 corrects the tilt so that it is appropriate.
[0021] Terminal 13 Software FIG. 5 is a diagram showing a software configuration of the terminal 13 according to the first embodiment. The terminal 13 includes a scanner driver 21 , an account settlement processing unit 22 , a correction determination unit 23 , a correction unit 24 , a medium determination unit 25 , an input unit 26 , a display control unit 27 , a management database 28 , and a master database 29 .
[0022] The scanner driver 21 communicates with the microcomputer of the scanner 50 to acquire the primary image data I1. The scanner driver 21 is an example of an acquisition unit. The settlement processing unit 22 performs settlement processing for a cash register (not shown) installed in the store.
[0023] The correction determination unit 23 determines whether or not rotation correction of the primary image data I1 acquired from the scanner 50 is necessary. When it is determined that rotation correction of the primary image data I1 is necessary, the correction unit 24 generates secondary image data I2, which is medium image data I obtained by rotation correction of the primary image data I1. The correction unit 24 performs rotation correction, for example, in the following procedure. First, the correction unit 24 performs binarization of the primary image data I1 and noise removal by morphological transformation. The correction unit 24 extracts the contour of the image. The contour is extracted, for example, by the Canny method. The correction unit 24 obtains a circumscribing rectangle that circumscribes the extracted contour and has the smallest area. The correction unit 24 rotates the medium image data I so that the long side of the circumscribing rectangle is parallel to the X-axis. The rotation is performed, for example, by affine transformation.
[0024] The medium determination unit 25 analyzes the medium image data I (primary image data I1 or secondary image data I2) and determines whether or not what is depicted in the medium image data I is a gift certificate. The input unit 26 accepts input of data of the gift certificate depicted in the medium image data I from an operator. The display control unit 27 controls the display of the display unit 131. For example, the display control unit 27 displays the processing result of the settlement processing unit 22 and the medium image data I.
[0025] The management database 28 manages data on media handled at the store. Specifically, the management database 28 stores the number of pieces of each denomination of cash currency handled at the store. The management database 28 also stores the type, face value, voucher number, and medium image data I of gift certificates handled at the store.
[0026] The master database 29 stores image features and a pixel count threshold for determining whether correction is required for each type and face value of the gift certificate. The pixel count threshold is a value smaller than the number of pixels of the medium image data I when the side of the corner C is parallel to the X-axis and larger than the number of pixels of the medium image data I when the long side is parallel to the X-axis. The image features are used by the medium determination unit 25 to determine the degree of similarity for determining the type and face value of the gift certificate. An example of the features is SIFT (Scale-Invariant Feature Transform).
[0027] <<Settlement procedure using media processing device 1>> Fig. 6 is a flowchart (part 1) showing the payment procedure using the media processing device 1 according to the first embodiment. Fig. 7 is a flowchart (part 2) showing the payment procedure using the media processing device 1 according to the first embodiment. When the operator has finished closing the store's cash registers, he or she operates the terminal 13 of the media processing device 1 to start the settlement process. The display control unit 27 of the terminal 13 displays an input screen for the ID of the cash register that is the subject of settlement on the display unit 131. The operator operates the operation unit 132 to input the ID of the cash register that is the subject of settlement. The input unit 26 accepts the operator's input of the cash register ID (step S1). The settlement processing unit 22 receives management data for the media contained in the cash register from the cash register associated with the input ID (step S2).
[0028] Next, the settlement processing unit 22 opens the deposit ports of the banknote handling unit 11 and the coin handling unit 12, and performs a counting process of the cash currency stored in the cash register (step S3). The operator inserts the cash currency stored in the cash register into the banknote handling unit 11 and the coin handling unit 12. The settlement processing unit 22 obtains the counting results from the banknote handling unit 11 and the coin handling unit 12, and determines whether there is a discrepancy with the management data received in step S2 (step S4). If there is a discrepancy with the management data (step S4: YES), the display control unit 27 causes the display unit 131 to display that there is a discrepancy with the cash currency, and ends the process (step S5). On the other hand, if there is no discrepancy with the management data (step S4: NO), the settlement processing unit 22 records the acquired counting result in the management database 28 (step S6). The display control unit 27 causes the display unit 131 to display the counting results of the banknote processing unit 11 and the coin processing unit 12.
[0029] Next, the operator operates the terminal 13 to instruct the start of reading of the gift certificate. When the input unit 26 receives the instruction to start reading, the scanner driver 21 sends a scan instruction to the scanner 50 (step S7). When the scanner 50 receives the instruction from the scanner driver 21, it sequentially scans both sides of the gift certificate set in the scanner 50. The scanner 50 performs rotation correction on each of the medium image data I obtained by scanning, and generates primary image data I1.
[0030] The scanner driver 21 acquires the primary image data I1 from the scanner 50 (step S8). The terminal 13 selects one set of the acquired primary image data I1 each (step S9) and executes the following processing from step S10 to step S12. One set is a set of primary image data I1 of the front side and primary image data I1 of the back side scanned on both sides. The medium determination unit 25 obtains the degree of similarity with the feature values for each type and face value of the gift certificate stored in the master database 29, and determines whether the primary image data I1 is a copy of a gift certificate (step S10). For example, if at least one of the degrees of similarity for each type and face value of the gift certificate exceeds a predetermined threshold, the medium determination unit 25 determines that the primary image data I1 is a copy of a gift certificate associated with the feature value with the highest degree of similarity. If the degree of similarity exceeds a predetermined threshold, the medium determination unit 25 identifies the type and face value of the gift certificate as the determination result. On the other hand, if all of the degrees of similarity for each type and face value of the gift certificate are lower than the threshold, the medium determination unit 25 determines that the primary image data I1 is not a copy of a gift certificate.
[0031] When the medium determination unit 25 determines that the read primary image data I1 is a gift certificate (step S10: YES), the correction determination unit 23 determines whether the number of pixels of the primary image data I1 is greater than the threshold number of pixels associated with the type and face value of the gift certificate in the master database 29 (step S11). When the number of pixels is greater (step S11: YES), the correction determination unit 23 determines that rotation correction of the primary image data I1 is necessary. The correction unit 24 rotates and corrects the primary image data I1 selected in step S7 to generate secondary image data I2 (step S12). Note that the medium determination unit 25 may determine the type and face value of the gift certificate for the secondary image data I2 for confirmation. On the other hand, when the number of pixels is smaller (step S11: NO), the correction determination unit 23 determines that rotation correction of the primary image data I1 is not necessary.
[0032] If the medium determination unit 25 determines that the read primary image data I1 is not a gift certificate (step S10: NO), the correction determination unit 23 does not need to determine whether or not to perform rotation correction because there is no associated threshold. For example, if a default threshold is recorded in the master database 29, the correction determination unit 23 may determine whether or not rotation correction is required based on the default threshold.
[0033] The display control unit 27 causes the display unit 131 to display a medium list screen, and the input unit 26 accepts the selection of the medium for which data is to be edited (step S13). FIG. 8 is an example of the medium list screen according to the first embodiment. The medium list screen displays medium image data I (primary image data I1 or secondary image data I2) of each scanned medium, the determination result by the medium determination unit 25, and a confirmation button. For example, if the determination result by the medium determination unit 25 is incorrect, the operator can correct the error by operating the operation unit 132. Also, for example, if there is an uninputted item such as a ticket number, the operator can operate the operation unit 132 to input the value of the uninputted item.
[0034] The display control unit 27 causes the display unit 131 to display a data input screen for the medium selected in step S13, and the input unit 26 accepts editing of the type, face value, and ticket number of the medium (step S14). FIG. 9 is an example of a data input screen according to the first embodiment. The data input screen displays medium image data I, a front / back button, a 180 degree rotation button, an input form for the type, face value, and ticket number, a data discard button, and a register button. The operator can enter information into the input form while visually checking the medium image data I, and confirm the input contents by pressing the register button. At this time, when the operator presses a portion of the medium image data I that the operator wishes to enlarge, the display control unit 27 enlarges and displays the medium image data I with the pressed point as the center. This allows the operator to, for example, input a ticket number while enlarging and displaying a portion of the medium image data I in which the ticket number appears. If the displayed medium image data I is upside down, the operator can align the upside down of the medium image data I by pressing the 180 degree rotation button. If the displayed medium image data I is upside down, the operator can switch the front and back of the medium image data I by pressing the front and back button. If the selected medium is not a gift certificate that is the subject of settlement, the operator can discard the data of the selected medium by pressing the data discard button.
[0035] The operator checks whether data input for all media is complete (step S15). If data input is not complete (step S15: NO), the process returns to step S13, and the operator selects the media to be edited. On the other hand, if data input for all media is complete (step S15: YES), the operator presses the Confirm button on the media list screen. When the input unit 26 accepts the pressing of the Confirm button, the settlement processing unit 22 determines whether there is a discrepancy between the data input in steps S8 to S14 and the management data received in step S2 (step S16). If there is a discrepancy with the management data (step S16: YES), the display control unit 27 displays the presence of a discrepancy in cash currency on the display unit 131, and ends the process (step S17). If there is no discrepancy with the management data (step S16: NO), the settlement processing unit 22 records the data for each medium in the management database 28 (step S18). At this time, the display control unit 27 may also cause the display unit 131 to display that there is no discrepancy with the cash currency.
[0036] Actions and Effects Thus, according to the first embodiment, the media processing device 1 has the following configuration. The media processing device 1 has a scanner 50, a scanner driver 21 (acquisition unit), a correction determination unit 23, a correction unit 24, and a display unit 131. The scanner 50 reads a medium and outputs primary image data I1, which is medium image data I that has been rotationally corrected based on the reading result. The scanner driver 21 acquires the primary image data I1 from the scanner 50. The correction determination unit 23 determines whether or not rotation correction of the primary image data I1 is necessary based on known characteristics of the medium. The known characteristics of the medium according to the first embodiment are the number of pixels of the primary image data I1 when the image is upright and the number of pixels of the primary image data I1 when it is erroneously rotated. The number of pixels represents the size of the medium image data I. If it is determined that rotation correction is necessary, the correction unit 24 generates secondary image data I2, which is medium image data I that has been rotationally corrected from the primary image data I1. The display unit 131 displays the medium image data I. Note that in the first embodiment, the scanner 50 always performs reading at a predetermined resolution. On the other hand, in another embodiment, when the resolution at which the scanner 50 reads is variable, the master database 29 stores a threshold number of pixels for each resolution. As a result, even if the medium image data I is not rotated appropriately by the scanner 50, the media processing device 1 can correct the medium image data I so that the medium is upright.
[0037] Note that in many cases, the scanner 50 or scanner driver 21 can rotate the medium image data I so that the medium is upright. Furthermore, correction by the scanner 50 or scanner driver 21 has a high processing speed. Therefore, the media processing device 1 enables the correction process by the scanner 50 or scanner driver 21, and then applies further correction only if erroneous rotation occurs, thereby enabling high-speed correction of the medium image data I.
[0038] Other Embodiments Although one embodiment has been described in detail above with reference to the drawings, the specific configuration is not limited to the above, and various design changes are possible. That is, in other embodiments, the order of the above-mentioned processes may be changed as appropriate. Also, some of the processes may be executed in parallel. The terminal 13 in the above-described embodiment may be configured by a single computer, or the configuration of the terminal 13 may be divided and arranged among multiple computers, and the multiple computers may function as the terminal 13 by working together.
[0039] The media processing device 1 according to the first embodiment determines whether rotation correction of the primary image data I1 is necessary based on a pixel count threshold, but this is not limited to the above. For example, the media processing device 1 according to the second embodiment may determine whether rotation correction is necessary based on the aspect ratio of the primary image data I1. The aspect ratio is an example of the size of the medium image data I. For example, the media processing device 1 according to the third embodiment may determine whether rotation correction is necessary based on the data size of the primary image data I1. When determining whether rotation correction is necessary based on the aspect ratio, the master database 29 need only store one determination threshold according to the type and face value, regardless of the pixel count of the scanner 50.
[0040] The media processing device 1 according to the fourth embodiment may determine whether rotation correction is necessary based on the number of pixels in the margins of the primary image data I1. Specifically, when the margins of the scanned media image data I are white, the correction determination unit 23 binarizes the primary image data I1 and determines that rotation correction is necessary when the number of white pixels (the number of pixels of a color that matches the background color) exceeds a predetermined threshold. On the other hand, when the margins of the scanned media image data I are black, the correction determination unit 23 binarizes the primary image data I1 and determines that rotation correction is necessary when the number of black pixels (the number of pixels of a color that matches the background color) exceeds a predetermined threshold. The media processing device 1 according to the fifth embodiment may determine that rotation correction is necessary based on the ratio of the number of white pixels to the number of black pixels. In addition, in other embodiments, for a color image, the number of pixels of a color similar to the background color may be counted instead of the number of pixels of a color that matches the background color. A pixel of a color similar to the background color may be, for example, a pixel whose color difference with the background color (for example, the Euclidean distance between three-dimensional vectors consisting of RGB) is equal to or less than a predetermined threshold.
[0041] Computer Configuration FIG. 10 is a schematic block diagram illustrating a computer configuration according to at least one embodiment. The computer 90 comprises a processor 91, a main memory 92, a storage 93, and an interface 94. The above-mentioned terminal 13 is implemented in a computer 90. The operations of the above-mentioned processing units are stored in the form of a program in a storage 93. The processor 91 reads the program from the storage 93, loads it in a main memory 92, and executes the above-mentioned processes in accordance with the program. The processor 91 also secures storage areas in the main memory 92 corresponding to the above-mentioned storage units in accordance with the program. Examples of the processor 91 include a CPU (Central Processing Unit), a GPU (Graphic Processing Unit), and a microprocessor.
[0042] The program may be for realizing a part of the functions to be performed by the computer 90. For example, the program may be for realizing the functions by combining with other programs already stored in the storage or by combining with other programs implemented in other devices. In another embodiment, the computer 90 may include a custom LSI (Large Scale Integrated Circuit) such as a PLD (Programmable Logic Device) in addition to the above configuration or instead of the above configuration. Examples of PLDs include PAL (Programmable Array Logic), GAL (Generic Array Logic), CPLD (Complex Programmable Logic Device), and FPGA (Field Programmable Gate Array). In this case, a part or all of the functions realized by the processor 91 may be realized by the integrated circuit. Such an integrated circuit is also included in an example of a processor. In another embodiment, the computer 90 may be virtualized on one or more computers.
[0043] Examples of the storage 93 include a magnetic disk, a magneto-optical disk, an optical disk, a semiconductor memory, etc. The storage 93 may be an internal medium directly connected to the bus of the computer 90, or an external medium connected to the computer 90 via the interface 94 or a communication line. In addition, when the program is distributed to the computer 90 via a communication line, the computer 90 that receives the program may load the program into the main memory 92 and execute the above-mentioned processing. In at least one embodiment, the storage 93 is a non-transitory tangible storage medium.
[0044] The program may be for realizing part of the above-mentioned functions. Furthermore, the program may be a so-called differential file (differential program) that realizes the above-mentioned functions in combination with another program already stored in the storage 93. [Explanation of symbols]
[0045] 1...media processing device 10...teller 11...banknote processing unit 12...coin processing unit 13...terminal 131...display unit 132...operation unit 21...scanner driver 22...settlement processing unit 23...correction determination unit 24...correction unit 25...media determination unit 26...input unit 27...display control unit 28...management database 29...master database 50...scanner 90...computer 91...processor 92...main memory 93...storage 94...interface C...angle I...media image data I1...primary image data I2...secondary image data T0...unused gift certificate T1...used gift certificate
Claims
1. a scanner that reads a medium and outputs primary image data that is medium image data that has been rotation-corrected based on the read result; an acquisition unit that acquires the primary image data from the scanner; a correction determination unit that determines whether rotation correction of the primary image data is required based on known characteristics of the medium; a correction unit that generates secondary image data, which is medium image data obtained by performing rotation correction on the primary image data, when it is determined that rotation correction is necessary; a display unit for displaying the medium image data; A media processing device comprising:
2. the medium is a used medium having one corner of a rectangular unused medium cut off; The primary image data is medium image data that has been rotated and corrected based on the side that is generated by the cutout. The media processing device of claim 1 .
3. The medium image data is image data of a minimum circumscribing rectangle that contains an area in which the medium is depicted, The correction determination unit determines that rotation correction is necessary when a size of the primary image data exceeds a threshold value corresponding to the medium. The media processing device according to claim 1 or 2.
4. The medium image data is image data of a minimum circumscribing rectangle that contains an area in which the medium is depicted, The correction determination unit determines that rotation correction is necessary when the amount of pixels similar or matching the color of the margin portion included in the primary image data exceeds a threshold value according to the medium. The media processing device according to claim 1 or 2.
5. acquiring primary image data from a scanner that reads a medium and outputs primary image data that is medium image data that has been rotationally corrected based on the read result; determining whether rotation correction of the primary image data is required based on known characteristics of the media; generating secondary image data, which is medium image data obtained by performing rotation correction on the primary image data, when it is determined that rotation correction is necessary; displaying the medium image data; A media processing method comprising:
6. A computer connected to a scanner that reads the medium and outputs primary image data, which is medium image data that has been rotated and corrected based on the reading result. acquiring the primary image data from the scanner; determining whether rotation correction of the primary image data is required based on known characteristics of the media; generating secondary image data, which is medium image data obtained by performing rotation correction on the primary image data, when it is determined that rotation correction is necessary; displaying the medium image data; A program for executing.
Citation Information
Patent Citations
Sheet medium inspection device
JP2019070892A
