Image processing apparatus, image reading device, image forming apparatus, and image processing method
By employing a first edge point group detection and feature calculation method, the accuracy of edge detection for damaged documents is improved, addressing the challenge of edge line calculation errors in documents with waving, folding, or curling.
Patent Information
- Application Number
- JP2023068123
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-18
- Publication Date
- 2024-10-30
AI Technical Summary
Existing image processing technologies struggle to accurately detect document edges in documents with damage such as waving, folding, or curling, leading to errors in edge straight line calculations.
The implementation of a first edge point group detection unit, edge point feature calculation unit, distribution calculation section, and edge point selection unit to identify and select edge points with the largest distribution, followed by an edge straight line calculation unit to approximate the selected edge points, thereby improving edge detection accuracy for damaged documents.
This approach enhances edge detection accuracy for documents with damage by correctly identifying and calculating edge straight lines, even in the presence of defects like waving or curling.
Smart Images

Figure 2024154324000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an image processing apparatus, an image reading apparatus, an image forming apparatus, and an image processing method. [Background technology]
[0002] Conventionally, there is known an electronic skew correction technique that corrects document skew and main / sub-registration misalignment during ADF reading by image processing based on the skew angle and registration position detected from an image read by an ADF.
[0003] Patent Document 1 discloses a technique for detecting document edges by excluding points that are far from the median position in the sub-scanning direction as noise, with the aim of improving the accuracy of document edge detection during skew correction. Summary of the Invention [Problem to be solved by the invention]
[0004] In recent years, however, it has become desirable to accurately detect document edges even when the document is damaged, such as wavy, folded, or curled.
[0005] However, according to the technology disclosed in Patent Document 1, points far from the median value of the sub-scanning direction coordinate are removed to extract edge points for use in calculating the straight-line equation, but edge points of damaged areas such as waves, folds, and curls are also used in calculating the straight-line equation, resulting in errors in the edge straight line.
[0006] The present invention has been made in view of the above, and an object of the present invention is to improve the accuracy of edge detection even for damaged documents. [Means for solving the problem]
[0007] In order to solve the above-mentioned problems and achieve the object, the present invention is characterized by comprising a first edge point group detection unit that detects a first edge point group, which is a collection of edge points between a document background region and a document region in a read image of a document output from an imaging means; an edge point feature calculation unit that calculates features from a plurality of edge points in the first edge point group to constitute an edge point feature group; a distribution calculation unit that calculates a distribution of the features of each edge point from the edge point feature group and calculates the feature of maximum distribution; an edge point selection unit that selects the edge point with maximum distribution from the first edge point group using the range of the feature resulting in maximum distribution calculated by the distribution calculation unit to select a second edge point group; and an edge straight line calculation unit that calculates an edge straight line that approximates the second edge point group. Effect of the Invention
[0008] According to the present invention, it is possible to improve the accuracy of edge detection even for a damaged document. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a cross-sectional view illustrating a schematic configuration of an image forming apparatus according to a first embodiment. [Diagram 2] FIG. 2 is a cross-sectional view that illustrates a schematic configuration of the scanner. [Diagram 3] FIG. 3 is a cross-sectional view that illustrates a schematic configuration of the ADF. [Figure 4] FIG. 4 is a diagram showing a schematic configuration in the vicinity of the document reading position. [Diagram 5] FIG. 5 is a block diagram showing a hardware configuration of the image forming apparatus. [Figure 6] FIG. 6 is a block diagram showing the functions of the image processing unit. [Figure 7] FIG. 7 is a flowchart showing the flow of the edge line calculation process. [Figure 8] FIG. 8 is a diagram showing an example of detection of edge points. [Figure 9] FIG. 9 is a diagram illustrating an example of calculation of the feature amount of an edge point. [Figure 10] FIG. 10 is a diagram showing an example of the inclination of each edge point. [Figure 11] FIG. 11 is a diagram showing an example of distribution of feature amounts of edge points. [Figure 12] FIG. 12 is a diagram showing an example of selected edge points. [Figure 13] FIG. 13 is a diagram illustrating an example of detection of edge points by the first edge point group detection unit according to the second embodiment. [Figure 14] FIG. 14 is a diagram showing an example of distribution of a plurality of feature amounts of each edge point. [Figure 15] FIG. 15 is a diagram illustrating an example of calculation of the feature amount distribution of each edge point in the distribution calculation unit according to the third embodiment. [Figure 16] FIG. 16 is a diagram showing an example of a document that is damaged by waving. [Figure 17] FIG. 17 is a block diagram of the functions of the image processing unit according to the fourth embodiment. As shown in FIG. [Figure 18] FIG. 18 is a flowchart showing the flow of the edge straight line calculation process and the skew correction process. [Figure 19] FIG. 19 is a block diagram of the functions of the image processing unit according to the fifth embodiment. As shown in FIG. [Figure 20] FIG. 20 is a flowchart showing the flow of the edge straight line calculation process and the registration correction process. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, embodiments of an image processing apparatus, an image reading apparatus, an image forming apparatus, and an image processing method will be described in detail with reference to the accompanying drawings.
[0011] (First embodiment) 1 is a cross-sectional view showing a schematic configuration of an image forming apparatus 100 according to a first embodiment. The image forming apparatus 100 is a multifunction machine having at least two of a copy function, a printer function, a scanner function, and a facsimile function.
[0012] As shown in FIG. 1, an image forming apparatus 100 includes a paper feed section 103, an apparatus main body 104, a scanner 101 constituting an image reading device, and an automatic document feeder (ADF) 102.
[0013] The image forming apparatus 100 includes a plotter 120, which is an image forming unit, in an apparatus body 104. The plotter 120 includes a tandem imaging unit 105, a registration roller 108 that supplies recording paper from a paper feed unit 103 to the imaging unit 105 via a transport path 107, an optical writing device 109, a fixing unit 110, and a double-sided tray 111.
[0014] In the image forming section 105, four photoconductor drums 112 are arranged in parallel to correspond to four colors, namely, Y (yellow), M (magenta), C (cyan), and K (key plate (black)). Around each photoconductor drum 112, image forming elements including a charger, a developing device 106, a transfer device, a cleaner, and a static eliminator are arranged.
[0015] Between the transfer unit and the photosensitive drum 112, an intermediate transfer belt 113 is disposed, which is sandwiched in the nip between the transfer unit and the photosensitive drum 112 and stretched between a drive roller and a driven roller.
[0016] In the tandem type image forming apparatus 100 configured in this manner, based on an original image read by the scanner 101 from an original as a detection object sent from the ADF 102, an optical writing device 109 optically writes onto photoconductor drums 112 corresponding to each color of Y, M, C, and K, and develops each color of toner in the developing device 106, and primarily transfers the image onto the intermediate transfer belt 113 in the order of Y, M, C, and K, for example. Then, the image forming apparatus 100 secondarily transfers the full-color image in which the four colors are superimposed by the primary transfer onto recording paper supplied from the paper feed unit 103, and then fixes the image in the fixing unit 110 and discharges the paper, thereby forming a full-color image on the recording paper.
[0017] Next, the scanner 101 will be described.
[0018] Fig. 2 is a cross-sectional view showing a schematic configuration of scanner 101. As shown in Fig. 2, scanner 101 includes first carriage 25, second carriage 26, imaging lens 27, and imaging unit 28 serving as imaging means. These components are disposed inside main body frame 101a of scanner 101.
[0019] Furthermore, inside the main body frame 101a of the scanner 101, a first rail and a second rail (not shown) are provided to extend in the sub-scanning direction (left and right direction in FIG. 2). The first rail is made up of two rails arranged at a predetermined interval in the main scanning direction perpendicular to the sub-scanning direction. The second rail has the same configuration as the first rail.
[0020] The first carriage 25 is slidably attached to the first rail, and is configured to be movable back and forth in the sub-scanning direction between the position indicated by the solid line and the position indicated by the dashed line in Fig. 2 by a drive motor (not shown) via a first carriage drive wire (not shown). The first carriage 25 is provided with a light source 24 and a first mirror member 25a.
[0021] The second carriage 26 is slidably attached to the second rail, and is configured to be movable back and forth in the sub-scanning direction between the position indicated by the solid line and the position indicated by the dashed line in Fig. 2 by a drive motor (not shown) via a drive wire for the second carriage (not shown). The second carriage 26 is provided with a second mirror member 26a and a third mirror member 26b.
[0022] Here, the first carriage 25 and the second carriage 26 move in the sub-scanning direction at a speed ratio of 2: 1. Due to this relationship in the moving speeds, even if the first carriage 25 and the second carriage 26 move, the optical path length of the light from the document surface to the imaging lens 27 does not change.
[0023] The imaging lens 27 focuses the reflected light from the original document, which is incident through each mirror member, onto the imaging unit 28. The imaging unit 28 is composed of an imaging element such as a CCD, and performs photoelectric conversion on the reflected light image of the original document, which is imaged through the imaging lens 27, to output an analog image signal that is the read image.
[0024] Next, the ADF 102 mounted on the scanner 101 will be described.
[0025] FIG. 3 is a cross-sectional view that illustrates a schematic configuration of the ADF 102. As shown in FIG.
[0026] As shown in Fig. 3, the ADF 102 includes a document tray 11 on which a document is placed. The document tray 11 includes a movable document table 41 that rotates in the directions a and b in the figure with its base end as a fulcrum, and a pair of side guide plates 42 that position the document in the left-right direction relative to the document feed direction. By rotating the movable document table 41, the front end of the document in the feed direction is adjusted to an appropriate height.
[0027] Further, document length detection sensors 89, 90 for detecting whether the document is oriented vertically or horizontally are provided in the document tray 11 at a distance in the feeding direction. Note that the document length detection sensors 89, 90 may be reflective sensors that perform detection by optical means without contact, or contact-type actuator sensors.
[0028] One side of the pair of side guide plates 42 is slidable in the left-right direction relative to the paper feed direction, and documents of different sizes can be placed on it.
[0029] A set filler 46 that rotates when a document is placed on it is provided on the fixed side of the pair of side guide plates 42. A document set sensor 82 that detects that a document has been placed on the document tray 11 is provided at the bottom of the movement trajectory of the tip of the set filler 46. In other words, the document set sensor 82 detects the presence or absence of a document set in the ADF 102 based on whether the set filler 46 has rotated and come off the document set sensor 82.
[0030] The ADF 102 includes a conveying section 50 including a separation and feeding section 51, a pull-out section 52, a turning section 53, a first reading and conveying section 54, a second reading and conveying section 55, and a paper ejection section 56. Each conveying roller of the conveying section 50 is rotated by one or more conveying motors.
[0031] The separation and feeding section 51 has a pickup roller 61 arranged near a paper feed port 60 for feeding the document, and a paper feed belt 62 and a reverse roller 63 arranged to face each other across the transport path.
[0032] Pickup roller 61 is supported by a support arm member 64 attached to paper feed belt 62, and moves up and down in directions c and d in the figure between a contact position where it contacts the document stack and a separated position away from the document stack via a cam mechanism (not shown). Pickup roller 61 picks up several documents (ideally one document) from the documents loaded on document tray 11 at the contact position.
[0033] The paper feed belt 62 rotates in the feeding direction, and the reverse roller 63 rotates in the opposite direction to the feeding direction. When multiple documents are fed, the reverse roller 63 rotates in the opposite direction to the paper feed belt 62, but when the reverse roller 63 is in contact with the paper feed belt 62 or when only one document is being conveyed, the reverse roller 63 rotates together with the paper feed belt 62 due to the action of a torque limiter (not shown). This prevents multiple documents from being fed.
[0034] The pull-out unit 52 has a pair of pull-out rollers 65 arranged to sandwich the transport path 52a. The pull-out unit 52 performs primary abutment alignment (so-called skew correction) of the sent document by the drive timing of the pull-out roller 65 and the pickup roller 61, and pulls out and transports the document after alignment.
[0035] The turning unit 53 has an intermediate roller 66 and a reading entrance roller 67, which are a pair of rollers arranged to sandwich a conveying path 53a curved from top to bottom. The turning unit 53 turns the document drawn and conveyed by the intermediate roller 66 by conveying it along the curved conveying path, and conveys it by the reading entrance roller 67 with the front surface of the document facing downward to the vicinity of the slit glass 7, which is the reading position (imaging position) of the document.
[0036] Here, the transport speed of the document from the pull-out section 52 to the turn section 53 is set to be faster than the transport speed in the first reading transport section 54. This reduces the transport time of the document transported to the first reading transport section 54.
[0037] The first reading transport section 54 has a first reading roller 68 arranged to face the slit glass 7, and a first reading exit roller 69 arranged on the transport path 55a after reading is completed. The first reading transport section 54 transports the document that has been transported close to the slit glass 7 while bringing the surface of the document into contact with the slit glass 7 by the first reading roller 68. At this time, the document is read by the scanner 101 through the slit glass 7. At this time, the first carriage 25 and the second carriage 26 of the scanner 101 are stopped at the home position. The first reading transport section 54 further transports the document after reading by the first reading exit roller 69.
[0038] 4 is a diagram showing a schematic configuration of the vicinity of the reading position of the document, in which the document is transported from left to right.
[0039] As shown in Fig. 4, the ADF 102 is provided with a background member 92, which serves as an imaging background, at a position facing the slit glass 7. The background member 92 is, for example, a white member that has a uniformly high reflectance in the visible light region, and is used for shading correction. The original is transported between the slit glass 7 and the background member 92. The scanner 101 reads an image at the position of the reading line shown in Fig. 4.
[0040] The second reading conveying section 55 has a second reading section 91 that reads the back side of the document, a second reading roller 70 arranged to face the second reading section 91 across the conveying path 55a, and a second reading exit roller 71 arranged downstream of the second reading section 91 in the conveying direction.
[0041] In the second reading transport section 55, the back side of the document after the front side has been read is read by the second reading section 91. The document after the back side has been read is transported toward the paper discharge outlet by the second reading exit rollers 71. The second reading rollers 70 suppress the document from floating in the second reading section 91, and also serve as a reference white area for acquiring shading data in the second reading section 91. When double-sided reading is not performed, the document passes straight through the second reading section 91.
[0042] The paper discharge unit 56 is provided with a pair of paper discharge rollers 72 in the vicinity of the paper discharge outlet, and discharges the document conveyed by the second reading outlet rollers 71 onto the paper discharge tray 12.
[0043] In addition, the ADF 102 is provided with various sensors along the transport path, such as a bump sensor 84, a registration sensor 81, and a paper discharge sensor 83, which are used for transport control such as the transport distance and transport speed of the document.
[0044] Furthermore, an original width sensor 85 is provided between the pull-out roller 65 and the intermediate roller 66. The length of the original in the transport direction is detected from the motor pulses by reading the leading and trailing ends of the original with an abutment sensor 84 and a registration sensor 81.
[0045] Next, the hardware configuration of the image forming apparatus 100 will be described.
[0046] Fig. 5 is a block diagram showing a hardware configuration of the image forming apparatus 100. As shown in Fig. 5, the image forming apparatus 100 is provided with an image processing unit 200 which is an image processing device that performs predetermined processing on an original image read by a scanner 101 and outputs the processed image to a plotter 120 as image data.
[0047] The image processing unit 200 includes a CPU (Central Processing Unit) 201, a ROM (Read Only Memory) 202, a main memory 205, a chipset 206, an image processing ASIC 207, a controller ASIC 208, a main memory 209, and an I / O ASIC 210. Note that ASIC is an abbreviation for Application Specific Integrated Circuit.
[0048] The CPU 201 is for controlling the image forming apparatus 100. The main memory 205 is used as a work area in which the programs for the CPU 201 to control the image forming apparatus 100 are deployed, and is used to temporarily store image data to be handled (image memory). The chipset 206 is used together with the CPU 201, and controls the access of the controller ASIC 208 and the I / O ASIC 210 to the main memory 205.
[0049] The program executed by image forming apparatus 100 of this embodiment may be configured to be provided by recording it on a computer-readable recording medium such as a CD-ROM, a flexible disk (FD), a CD-R, or a DVD (Digital Versatile Disc) in an installable or executable format file.
[0050] Furthermore, the program executed by image forming apparatus 100 of the present embodiment may be stored on a computer connected to a network such as the Internet and provided by being downloaded via the network. Also, the program executed by image forming apparatus 100 of the present embodiment may be provided or distributed via a network such as the Internet.
[0051] The scanner 101 has a function of reading image data to be copied or output to an external interface. The plotter 120 has a function of printing image data that has been image-processed by the controller ASIC 208.
[0052] The image processing ASIC 207 performs image processing on image data read by the scanner 101 and outputs the image data to the controller ASIC 208. The image processing ASIC 207 also processes image data from the controller ASIC 208 so that the image data can be printed by the plotter 120, and sends the image data in accordance with the printing timing of the plotter 120.
[0053] The controller ASIC 208 rotates and edits image data handled by the image forming apparatus 100 using the main memory 205 via the chipset 206, stores the image data in the HDD 211, and transmits and receives the image data to and from the image processing ASIC 207. The main memory 209 is used as an image memory for the controller ASIC 208 to perform image processing. The HDD (Hard Disk Drive) 211 is used to temporarily store image data that has been subjected to image processing.
[0054] The I / O ASIC 210 is an external interface for providing additional functions to the image forming apparatus 100. For example, the I / O ASIC 210 is equipped with interfaces such as a network interface, a USB, an SD card, an operation unit, SPI, I2C, and a document width sensor 85, a hardware accelerator for accelerating image processing, an encryption processing circuit, and the like.
[0055] Next, the functions performed by the image processing unit 200 will be described.
[0056] 6 is a block diagram showing the functions of the image processing unit 200. Note that, here, among the functions exerted by the image processing unit 200, characteristic functions in this embodiment will be described.
[0057] 6, the image processing unit 200 has a first edge point group detection unit 220, an edge point feature amount calculation unit 230, a distribution calculation unit 240, an edge point selection unit 250, and an edge straight line calculation unit 260. In this embodiment, the controller ASIC 208 has the first edge point group detection unit 220, the edge point feature amount calculation unit 230, the distribution calculation unit 240, the edge point selection unit 250, and the edge straight line calculation unit 260. Note that this is not limited to this, and the first edge point group detection unit 220, the edge point feature amount calculation unit 230, the distribution calculation unit 240, the edge point selection unit 250, and the edge straight line calculation unit 260 may be realized by the CPU 201 executing a program.
[0058] The first edge point group detection unit 220 detects a first edge point group, which is a set of edge points between a document background region and a document region in the read image data of a read document.
[0059] The edge point feature amount calculation section 230 calculates the feature amounts of the edge points at all edge points of the first edge point group detected by the first edge point group detection section 220, and configures an edge point feature amount group.
[0060] The distribution calculation section 240 calculates the distribution of the feature amounts of each edge point from the group of edge point feature amounts calculated by the edge point feature amount calculation section 230, and calculates the feature amount with the maximum distribution.
[0061] The edge point selection unit 250 uses the range of the feature amount with the maximum distribution calculated by the distribution calculation unit 240 to select the edge points with the maximum distribution from the first edge point group, and selects the second edge point group.
[0062] The edge straight line calculation section 260 uses the second edge point group selected by the edge point selection section 250 to find an edge straight line that approximates the second edge point group.
[0063] FIG. 7 is a flowchart showing the flow of the edge line calculation process.
[0064] As shown in FIG. 7, first, the first edge point group detection unit 220 detects a first edge point group, which is a set of edge points between a document background region and a document region of image data including a document read by the scanner 101 (step S1).
[0065] Here, Fig. 8 is a diagram showing an example of edge point detection. As shown in Fig. 8, the first edge point group detection unit 220 also detects edge points (edge points between the document background region and the document region) in damaged parts such as folds.
[0066] Next, the edge point feature amount calculation unit 230 calculates the feature amounts of the edge points at all edge points of the first edge point group detected by the first edge point group detection unit 220 in step S1, and configures an edge point feature amount group (step S2).
[0067] 9 is a diagram showing an example of calculation of the feature amount of an edge point. As shown in FIG. 9, the edge point feature amount calculation unit 230 calculates the feature amount of two consecutive points P n (x n ,y n ),P n+1 (x n+1 ,y n+1 ) slope M n Calculate. M n =(y n+1 -y n ) / (x n+1 -x n )
[0068] Here, Fig. 10 is a diagram showing an example of the inclination of each edge point. In the example shown in Fig. 10, the inclination M of the part perpendicular to the document transport direction is 0, and the inclination M of the part parallel to the document transport direction is ∞. On the other hand, as shown in Fig. 10, the inclination M of the damaged part such as a fold is 0.5.
[0069] Next, the distribution calculation section 240 calculates the distribution of the feature amounts of each edge point from the group of edge point feature amounts calculated by the edge point feature amount calculation section 230 in step S2, and calculates the feature amount with the maximum distribution (step S3).
[0070] Here, Fig. 11 is a diagram showing an example of distribution of feature amounts of each edge point. As shown in Fig. 11, according to the distribution of feature amounts of each edge point shown in Fig. 10, the distribution calculation unit 240 calculates the slope M=0 shown in Fig. 10 as the feature amount of the maximum distribution.
[0071] Next, the edge point selection unit 250 selects the edge points with the maximum distribution from the first edge point group using the range of the feature amount with the maximum distribution calculated by the distribution calculation unit 240, and selects the second edge point group (step S4).
[0072] Here, FIG. 12 is a diagram showing an example of selected edge points. As shown in FIG. 12, the edge point selection unit 250 selects edge points P n The edge point P with the maximum degree of inclination k (M k =0).
[0073] Next, the edge line calculation unit 260 calculates the edge point P k (m k The edge line calculation unit 260 calculates an edge line that is approximate to the second edge line P by using a second edge point group, which is a set of points where P is a vertex, P b , and P c , and ends the process (step S5). k (x k ,y k ) to find the linear equation (y=mx+Y), where m is the slope and Y is the intercept.
[0074]
number
[0075] As described above, according to this embodiment, when detecting edge points to obtain an edge straight line, the edge straight line can be calculated by extracting only edge points that are connected to a correct edge straight line, even for a document that is damaged, such as folded, by using the edge point feature amount calculation unit 230 and the edge point selection unit 250. This makes it possible to improve the accuracy of edge detection even for damaged documents.
[0076] (Second embodiment) Next, a second embodiment will be described.
[0077] The second embodiment differs from the first embodiment in that the edge point feature amount calculation unit 230 calculates a plurality of feature amounts (slope, Y intercept). In the following description of the second embodiment, the description of the same parts as in the first embodiment will be omitted, and only the parts different from the first embodiment will be described.
[0078] The edge point feature amount calculation unit 230 of the image processing unit 200 according to the second embodiment calculates not only the slope of each edge point but also the slope and Y-intercept as the feature amount of the edge point for all points of the edge point group detected by the first edge point group detection unit 220. That is, the edge point feature amount calculation unit 230 calculates a plurality of feature amounts (slope, Y-intercept).
[0079] In addition, the distribution calculation unit 240 of the image processing unit 200 according to the second embodiment calculates the distribution of a plurality of feature amounts (slope, Y-intercept), and calculates the feature amount with the maximum distribution.
[0080] The flow of the edge line calculation process will be described with reference to the flowchart of FIG. 7 shown in the first embodiment.
[0081] In step S1, the first edge point group detection unit 220 detects edge points between a document background region and a document region of image data including a document read by the scanner 101, as in the first embodiment.
[0082] 13 is a diagram showing an example of edge point detection by the first edge point group detection unit 220 of the image processing unit 200 according to the second embodiment. In the example shown in Fig. 13, there is a lot of noise near the edge points detected by the first edge point group detection unit 220, and edge point groups having the same slope but different Y-intercepts are detected.
[0083] In step S2, the edge point feature amount calculation unit 230 calculates the feature amount of the edge point for all points of the edge point group detected by the first edge point group detection unit 220 in step S1. In this embodiment, the edge point feature amount calculation unit 230 calculates feature amount 1 (slope (M n )), feature 2 (Y intercept (Y n ) is calculated (see Table 1). M n =(y n+1 -y n ) / (x n+1 -x n ) Y n =M n *X n +Y n
[0084] [Table 1]
[0085] In step S3, the distribution calculation section 240 calculates the distribution of the feature amounts of each edge point calculated by the edge point feature amount calculation section 230 in step S2, and calculates the feature amount with the maximum distribution.
[0086] Here, FIG. 14 is a diagram showing an example of distribution of multiple feature amounts of each edge point. As shown in FIG. 14, multiple feature amounts (slope (M n ), Y-intercept (Y n According to the distribution of ), the distribution calculation section 240 calculates the slope M=-0.5 to 0.5 and Y=100 to 200 shown in Table 1 as the feature amount of the maximum distribution.
[0087] The distribution calculation unit 240 also calculates feature quantity 1 (slope (M n )) to find the one-dimensional distribution and calculate the maximum distribution, then feature 2 (Y intercept (Y n )) may be used to find the maximum distribution again.
[0088] Steps S4 to S5 are the same processes as those in the first embodiment, and therefore a description thereof will be omitted here.
[0089] Thus, according to this embodiment, the edge point feature calculation unit 230 calculates multiple feature amounts (slope, Y-intercept), so that the edge straight line can be calculated correctly even if there is a lot of noise near the edge points detected by the first edge point group detection unit 220.
[0090] (Third embodiment) Next, a third embodiment will be described.
[0091] The third embodiment differs from the first embodiment in that the distribution calculation unit 240 creates a plurality of distributions of feature quantities. In the following description of the third embodiment, the description of the same parts as in the first embodiment will be omitted, and only the parts different from the first embodiment will be described.
[0092] The distribution calculation unit 240 of the image processing unit 200 according to the third embodiment calculates a plurality of distributions and obtains a plurality of maximum distributions.
[0093] The flow of the edge line calculation process will be described with reference to the flowchart of FIG. 7 shown in the first embodiment.
[0094] In step S1, as in the first embodiment, the first edge point group detection unit 220 detects a first edge point group, which is a collection of edge points between the document background area and the document area of image data including the document read from the scanner 101.
[0095] In step S2, similarly to the first embodiment, the edge point feature calculation unit 230 calculates edge point feature amounts for all edge points of the first edge point group detected by the first edge point group detection unit 220 in step S1, and constructs an edge point feature group.
[0096] In the next step S3, the distribution calculation unit 240 creates multiple distributions of feature amounts of each edge point from the edge point feature amount group calculated by the edge point feature amount calculation unit 230 in step S2, and calculates the feature amount of the maximum distribution. More specifically, the distribution calculation unit 240 calculates the distribution of feature amounts using multiple class widths or ranges.
[0097] 15 is a diagram showing an example of calculation of the feature amount distribution of each edge point in the distribution calculation unit 240 of the image processing unit 200 according to the third embodiment. In the example shown in FIG. 15, the distribution calculation unit 240 calculates the feature amount distribution of two consecutive points P n (x n ,y n ),P n+1 (x n+1 ,y n+1 ) slope M n When calculating the above, a distribution map for an angle width of 1 degree and a distribution map for an angle width of 10 degrees were created.
[0098] Here, Fig. 16 is a diagram showing an example of a document damaged by waving. In a document damaged by waving as shown in Fig. 16, when the distribution of the feature amounts of each edge point calculated by the distribution calculation unit 240 is set to one, for example, as shown in Fig. 15(a), when a distribution map of the feature amounts of each edge point calculated by the distribution calculation unit 240 is created with an angle width of 1 degree, it is not possible to calculate a maximum distribution map correctly.
[0099] On the other hand, in the case where there are two distributions of the feature amounts of each edge point calculated by the distribution calculation unit 240, for example, as shown in FIG. 15(b), when the distribution map of the feature amounts of each edge point calculated by the distribution calculation unit 240 is created with an angle width of 10 degrees, the maximum distribution map can be calculated correctly.
[0100] That is, by preparing multiple distribution maps with different widths and granularities as shown in FIG. 15, the distribution calculation unit 240 can correctly calculate edge straight lines by correcting the range of feature amounts of edge points, even for a document that has damage caused by wavy edges with uneven edge lines as shown in FIG. 16.
[0101] Steps S4 to S5 are the same processes as those in the first embodiment, and therefore a description thereof will be omitted here.
[0102] As described above, according to this embodiment, the distribution calculation unit 240 calculates the distribution of features using multiple class widths or ranges, and thus can correctly calculate edge straight lines even for damaged documents by correcting the range of feature values at edge points.
[0103] (Fourth embodiment) Next, a fourth embodiment will be described.
[0104] The fourth embodiment differs from the first to third embodiments in that a skew correction unit is provided. In the following description of the fourth embodiment, the description of the same parts as the first to third embodiments will be omitted, and only the parts different from the first to third embodiments will be described.
[0105] Here, Fig. 17 is a block diagram showing functions of the image processing unit 200 according to the fourth embodiment. As shown in Fig. 17, the image processing unit 200 includes a first edge point group detection unit 220, an edge point feature amount calculation unit 230, a distribution calculation unit 240, an edge point selection unit 250, an edge straight line calculation unit 260, and a skew correction unit 270. In this embodiment, the controller ASIC 208 has the skew correction unit 270. However, this is not limited to this, and the skew correction unit 270 may be realized by the CPU 201 executing a program.
[0106] The skew correction section 270 corrects the skew of the document based on the edge straight line calculation result by the edge straight line calculation section 260 .
[0107] FIG. 18 is a flowchart showing the flow of the edge straight line calculation process and the skew correction process.
[0108] Steps S1 to S5 are the same processes as those in the first embodiment, and therefore a description thereof will be omitted here.
[0109] The skew correction unit 270 calculates the inclination of the document from the edge straight line calculated in step S5 by the edge straight line calculation unit 260. Then, the skew correction unit 270 rotates the image received as an input in the direction opposite to the inclination of the document, corrects the document edge to be horizontal (step S11), and ends the process.
[0110] As described above, according to this embodiment, by correcting the skew of the document based on the edge straight line calculation result, even a damaged document can be corrected with high accuracy.
[0111] (Fifth embodiment) Next, a fifth embodiment will be described.
[0112] The fifth embodiment differs from the first to third embodiments in that the fifth embodiment includes a resist correction unit. In the following description of the fifth embodiment, the description of the same parts as the first to third embodiments will be omitted, and only the parts different from the first to third embodiments will be described.
[0113] Here, Fig. 19 is a block diagram showing functions of the image processing unit 200 according to the fifth embodiment. As shown in Fig. 19, the image processing unit 200 includes a first edge point group detection unit 220, an edge point feature amount calculation unit 230, a distribution calculation unit 240, an edge point selection unit 250, an edge straight line calculation unit 260, and a registration correction unit 280. In this embodiment, the controller ASIC 208 has the registration correction unit 280. However, this is not limited to this, and the registration correction unit 280 may be realized by the CPU 201 executing a program.
[0114] The registration correction section 280 executes document position correction processing (registration correction) based on the edge straight line calculation result by the edge straight line calculation section 260.
[0115] FIG. 20 is a flowchart showing the flow of the edge straight line calculation process and the registration correction process.
[0116] Steps S1 to S5 are the same processes as those in the first embodiment, and therefore a description thereof will be omitted here.
[0117] The registration correction unit 280 calculates the upper left vertex of the document from the intersection of the edge lines of the upper side and the left side calculated in step S5 by the edge line calculation unit 260. Then, the registration correction unit 280 executes a position correction process (registration correction) of the document so that the position of the upper left of the image received as input is positioned at the upper left of the output image (step S21), and ends the process.
[0118] As described above, according to this embodiment, by correcting the document registration based on the edge straight line calculation result, it is possible to perform position correction processing (registration correction) with high accuracy even for a damaged document.
[0119] In the above embodiments, the boundary between the background area and the document area detected by the edge detection device is used to correct the inclination of the document, but the present invention is not limited to this. The boundary between the background area and the document area detected by the edge detection device may be used for a process of extracting only the document information in the image (trimming).
[0120] In each of the above embodiments, the image forming apparatus of the present invention has been described as an example of an apparatus that forms images by an electrophotographic method, but this is not limited to this, and the apparatus may also form images by an inkjet method.
[0121] In each of the above embodiments, the image forming apparatus of the present invention is described as being applied to a multifunction device having at least two of the functions of a copy function, a printer function, a scanner function, and a facsimile function. However, the image forming apparatus can be applied to any image forming apparatus, such as a copier, printer, scanner device, or facsimile device.
[0122] Although each embodiment of the present invention has been described above, the specific configuration of each unit, the content of processing, the data format, etc. are not limited to those described in the embodiments. In addition, the configurations of the embodiments described above can be combined in any manner as long as they are not mutually contradictory. [Explanation of symbols]
[0123] 28 Imaging means 100 Image forming device 101, 102 Image reading device 120 Image forming section 200 Image processing device 220 First edge point group detection unit 230 Edge point feature amount calculation unit 240 Distribution calculation part 250 Edge point selection section 260 Edge Straight Line Calculation Unit 270 Skew Correction Unit 280 Resist correction unit [Prior art documents] [Patent documents]
[0124] [Patent Document 1] JP 2020-149148 A
Claims
1. a first edge point group detection unit that detects a first edge point group that is a set of edge points between a document background region and a document region in a read image of the document output from the imaging means; an edge point feature amount calculation unit that calculates feature amounts from a plurality of edge points in the first edge point group and configures an edge point feature amount group; a distribution calculation unit that calculates a distribution of feature amounts of each edge point from the edge point feature amount group and calculates a feature amount with a maximum distribution; an edge point selection unit that selects an edge point having a maximum distribution from the first edge point group using the range of feature amounts having a maximum distribution calculated by the distribution calculation unit, and selects a second edge point group; an edge straight line calculation unit that calculates an edge straight line that approximates the second edge point group; An image processing device comprising:
2. The edge point feature amount calculation unit calculates a gradient between two consecutive points as a feature amount.
2. The image processing device according to claim 1,
3. The edge point feature amount calculation unit calculates a slope and a Y intercept between two consecutive points as feature amounts.
2. The image processing device according to claim 1,
4. the distribution calculation unit calculates the distribution of the feature quantity using a plurality of class widths or ranges.
2. The image processing device according to claim 1,
5. a skew correction unit that corrects a skew of an original based on a result of the edge straight line calculation by the edge straight line calculation unit; 2. The image processing device according to claim 1,
6. a registration correction unit that corrects a document registration based on a result of the edge straight line calculation by the edge straight line calculation unit, 2. The image processing device according to claim 1,
7. an imaging means for imaging an image of a document at an imaging position where a background member serves as a background; An image processing device according to any one of claims 1 to 6, An image reading device comprising:
8. An image processing device according to any one of claims 1 to 6, an image forming unit that forms an image processed by the image processing device; An image forming apparatus comprising:
9. a first edge point group detection step of detecting a first edge point group which is a set of edge points between a document background region and a document region in a read image of the document output from the imaging means; an edge point feature value group calculation step of calculating feature values from a plurality of edge points in the first edge point group to configure an edge point feature value group; a distribution calculation step of calculating a distribution of feature amounts of each edge point from the edge point feature amount group and calculating a feature amount of a maximum distribution; an edge point selection step of selecting an edge point having a maximum distribution from the first edge point group using the range of feature amounts having a maximum distribution calculated in the distribution calculation step, and selecting a second edge point group; an edge straight line calculation step of calculating an edge straight line that approximates the second edge point group; 13. An image processing method comprising:
Citation Information
Patent Citations
Image processing apparatus, method for processing image, and image processing program
JP2020149148A
