Image processing apparatus
By dividing and comparing feature distances in image processing, the device accurately detects regional differences in drawings, enhancing precision and simplifying data processing.
Patent Information
- Application Number
- JP2023021740
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-15
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2043-02-15
AI Technical Summary
Existing image processing methods struggle to accurately detect differences between regions due to variations in similarity calculation methods, leading to inconsistent difference detection accuracy.
The image processing device divides drawing data into partial areas, extracts feature quantities, and compares distances using machine learning to detect differences based on threshold distances, ensuring precise matching and detection.
This approach enables high-precision detection of differences between regions, reducing data processing complexity and facilitating easy identification of changes in drawings.
Smart Images

Figure 2024115864000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an image processing device. [Background technology]
[0002] A technique is known in which the similarity between the images of each page of two drawing data to be subjected to difference detection is calculated, a pair of pages for which difference detection is to be performed is specified based on the similarity, and difference detection is performed between the two drawing data for which the pair of pages has been specified. Also known is a technique in which, when an area for which difference detection is to be performed is specified within one page, difference detection is performed between the specified areas for each of the areas (see, for example, Patent Document 1). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2016-045564 A Summary of the Invention [Problem to be solved by the invention]
[0004] Incidentally, when detecting differences between regions, the similarity between multiple components that each region has may be used to detect the differences. The multiple components may be, for example, average pixel values or a histogram of pixel values. However, even if the similarity between the components is high, it may not be possible to detect the differences between the regions with high accuracy.
[0005] For example, depending on the similarity calculation method used for difference detection, a high similarity may be calculated, or a low similarity may be calculated. This may cause the accuracy of difference detection to vary. For this reason, there is room for improvement in the detection of differences between regions.
[0006] SUMMARY OF THE PRESENT EMBODIMENTS Accordingly, an object of the present invention is to provide an image processing device that detects differences between regions with high accuracy. [Means for solving the problem]
[0007] The image processing device according to the present invention has a control unit that executes a division process of dividing first drawing data from a first region representing an image of one page of the first drawing data into a plurality of first partial regions and dividing second drawing data from a second region representing an image of one page of the second drawing data into a plurality of second partial regions; an extraction process of extracting a first feature amount of each of the plurality of first partial regions and a second feature amount of each of the plurality of second partial regions; a first comparison process of comparing a first distance between any of the first feature amounts and the second feature amount closest to any of the first feature amounts and a second distance between any of the first feature amounts and the second feature amount next closest to any of the first feature amounts; a second comparison process of selecting at least two or more of the second feature amounts in order of closest distance to any of the first feature amounts and comparing a sum of each distance between any of the first feature amounts and the selected second feature amount with a first threshold distance; and a detection process of detecting a difference between the first partial region and the second partial region based on a first comparison result of the first distance and the second distance and a second comparison result of the sum and the first threshold distance.
[0008] In the aforementioned configuration, the first comparison process may compare the first distance with a specific second distance obtained by multiplying the second distance by a predetermined value that shortens the second distance.
[0009] In the above configuration, the second comparison process may compare an average distance based on the sum and the number of selected second features with a second threshold distance, and the detection process may detect the difference between the first partial region and the second partial region based on the first comparison result and a second comparison result between the average distance and the second threshold distance.
[0010] In the above configuration, the detection process may detect the difference between the first partial region and the second partial region based on a first feature point possessed by the first partial region, a second feature point possessed by the second partial region, and a predetermined feature point matching method using machine learning. Effect of the Invention
[0011] According to the present invention, it is possible to detect differences between regions with high accuracy. [Brief description of the drawings]
[0012] [Figure 1] 2 is an example of a hardware configuration of an image processing device. [Diagram 2] 2 is an example of a functional configuration of an image processing device. [Diagram 3] 1A is an example of the first medium data, and FIG. 1B is an example of the second medium data. [Figure 4] 10 is a flowchart illustrating an example of a process executed by a control unit. [Diagram 5] (a) is an example of a difference image, and (b) is another example of a difference image. [Figure 6] 13 is a flowchart illustrating an example of a matching process. [Figure 7] (a) is an example of pairing subregions based on the number of features, and (b) is an example of pairing subregions based on the distance of the features. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
[0014] First, a hardware configuration of an image processing device 100 will be described with reference to Fig. 1. The image processing device 100 includes a CPU (Central Processing Unit) 100A as a processor, and a RAM (Random Access Memory) 100B and a ROM (Read Only Memory) 100C as memories. The image processing device 100 includes a network I / F (Interface) 100D and a HDD (Hard Disk Drive) 100E. Instead of the HDD (Hard Disk Drive) 100E, a SSD (Solid State Drive) may be adopted.
[0015] The image processing device 100 may include at least one of an input I / F 100F, an output I / F 100G, an input / output I / F 100H, and a drive device 100I, as necessary. The CPU 100A to the drive device 100I are connected to each other via an internal bus 100J. In other words, the image processing device 100 can be realized by a computer.
[0016] An input device 11 is connected to the input I / F 100F. Examples of the input device 11 include a keyboard, a mouse, and a touch panel. A display device 12 is connected to the output I / F 100G. Examples of the display device 12 include an LCD display. A semiconductor memory 13 is connected to the input / output I / F 100H. Examples of the semiconductor memory 13 include a USB (Universal Serial Bus) memory and a flash memory. The input / output I / F 100H reads a predetermined program stored in the semiconductor memory 13. The input I / F 100F and the input / output I / F 100H each include a USB port, for example. The output I / F 100G includes a display port, for example.
[0017] A portable recording medium 14 is inserted into the drive device 100I. The portable recording medium 14 may be a removable disk such as a CD (Compact Disc)-ROM or a DVD (Digital Versatile Disc). The drive device 100I reads a predetermined program recorded on the portable recording medium 14. The network I / F 100D includes, for example, a LAN (Local Area Network) port and a communication circuit.
[0018] A predetermined program stored in at least one of the ROM 100C, the HDD 100E, and the semiconductor memory 13 is temporarily stored in the RAM 100B by the CPU 100A. A predetermined program recorded in the portable recording medium 14 is temporarily stored in the RAM 100B by the CPU 100A. By executing the stored predetermined program, the CPU 100A realizes various functions described later and executes various processes described later. The predetermined program may correspond to a flowchart described later.
[0019] The functional configuration of the image processing device 100 will be described with reference to Figures 2 and 3. Note that Figure 2 shows the main functional parts of the image processing device 100.
[0020] As shown in Fig. 2, the image processing device 100 includes a storage unit 110, a control unit 120, an input unit 130, and an output unit 140. The storage unit 110 can be realized by the above-mentioned RAM 100B, HDD 100E, etc. The control unit 120 can be realized by the above-mentioned CPU 100A. The input unit 130 can be realized by the above-mentioned input I / F 100F. The output unit 140 can be realized by the above-mentioned output I / F 100G. Therefore, the storage unit 110, the control unit 120, the input unit 130, and the output unit 140 are connected to each other.
[0021] Here, the storage unit 110 includes a first medium storage unit 111, a second medium storage unit 112, and a display drawing storage unit 113. At least one of the first medium storage unit 111, the second medium storage unit 112, and the display drawing storage unit 113 may be provided in an information processing device (not shown) different from the image processing device 100. In this case, the image processing device 100 may access the information processing device and refer to the storage contents of the first medium storage unit 111, the second medium storage unit 112, etc.
[0022] The first medium storage unit 111 stores first medium data. The first medium data is a data file or an electronic file of an information transmission medium. The information transmission medium includes documents such as reports and instructions. In this embodiment, as shown in FIG. 3(a), the first medium data 50 is a document created on multiple pages, but may be a document created on a single page. When the first medium data 50 is a document created on multiple pages, each document includes drawing data 51, 52. The drawing data 51, 52 are, for example, design drawings of finished products or parts. The shapes of the drawing data 51, 52 are different from each other.
[0023] The second medium storage unit 112 stores the second medium data. Like the first medium data 50, the second medium data is also a data file or an electronic file of an information transmission medium. In this embodiment, as shown in FIG. 3(b), the second medium data 60 is also a document created with multiple pages, but it may be a document created with a single page. The number of pages of the second medium data 60 may be the same as or different from the number of pages of the first medium data 50. When the second medium data 60 is a document created with multiple pages, each document includes drawing data 61, 62. The drawing data 61, 62 include, for example, design drawings of finished products or parts. The shapes of the drawing data 61, 62 are different from each other.
[0024] The above-mentioned first medium data 50 is stored in the first medium storage unit 111 based on an operation on the input device 11. The second medium data 60 is similarly stored in the second medium storage unit 112. In this embodiment, the first medium data 50 represents a comparison source for the second medium data 60, and the second medium data 60 represents a comparison destination or comparison target for the first medium data 50. Therefore, hereinafter, the drawing data 51, 52 will be referred to as base drawings 51, 52 as comparison sources, and the drawing data 61, 62 will be referred to as new drawings 61, 62 as comparison destination or comparison target.
[0025] The display drawing storage unit 113 stores an image of a drawing to be displayed on the display device 12. Although details will be described later, the display drawing storage unit 113 stores an image of a drawing in which a base drawing image corresponding to the above-mentioned base drawing 51 and a new drawing image corresponding to either one of the new drawings 61 and 62 corresponding to this base drawing image are superimposed, and a portion corresponding to the difference is expressed in a different color. The display drawing storage unit 113 also stores an image of a drawing in which a base drawing image corresponding to the above-mentioned base drawing 52 and a new drawing image corresponding to the other of the new drawings 61 and 62 corresponding to this base drawing image are superimposed, and a portion corresponding to the difference is expressed in a different color. The base drawing image is an example of the first drawing data, and the new drawing image is an example of the second drawing data. Both the base drawing image and the new drawing image are image data.
[0026] Returning to FIG. 2, the control unit 120 includes an image generating unit 121, an image processing unit 122, and a display unit 123.
[0027] The image generating unit 121 acquires the first medium data 50 from the first medium storage unit 111, and images the first medium data 50. That is, the image generating unit 121 generates a first medium image representing the first medium data 50 from the acquired first medium data 50. If the first medium data 50 is a document created with a plurality of pages, the first medium image also includes a plurality of page images. The plurality of page images included in the first medium image include the above-mentioned base drawing image.
[0028] Similarly, the image generating unit 121 acquires the second medium data 60 from the second medium storage unit 112, and images the second medium data 60. That is, the image generating unit 121 generates a second medium image representing the second medium data 60 from the acquired second medium data 60. If the second medium data 60 is a document created with a plurality of pages, the second medium image also includes a plurality of page images. The plurality of page images included in the second medium image include the above-mentioned new drawing image.
[0029] The image processing unit 122 executes various image processes on the first medium image, the second medium image, the base drawing image, and the new drawing image. Details of the image processing unit 122 will be described later, but for example, the image processing unit 122 compares a plurality of page images included in the first medium image with a plurality of page images included in the second medium image, and identifies page images that are similar to each other. In addition, the image processing unit 122 divides an area representing a page image into a plurality of unit partial areas (hereinafter simply referred to as partial areas), and identifies partial areas that correspond to each other based on a known feature point matching method using machine learning.
[0030] For example, as shown in FIG. 3(a), the image processing unit 122 divides an area representing the entire page image included in the first medium image into a plurality of partial areas 71, 72, etc. Also, as shown in FIG. 3(b), the image processing unit 122 divides an area representing the entire page image included in the second medium image into a plurality of partial areas 81, 82, etc. The shape of the partial areas may be rectangular or may be a shape other than rectangular (e.g., circular, etc.). Also, the number of partial areas corresponding to each other may be the same or different. In addition, the image processing unit 122 monochromeizes (specifically, monochrome binarizes) each of the base drawing image and the new drawing image, and assigns different colors to each of the base drawing image and the new drawing image.
[0031] As a known feature point matching method, for example, the following documents 1 and 2 can be referred to. Reference 1: PF Alcantarilla, A. Bartoli, and AJ Davison. “KAZE features”, ECCV, (2012), pp.214?227. Document 2: P. F, Alcantarilla, J. Nuevo, A. Bartoli, “Fast Explicit Diffusion for Accelerated Features in Nonlinear Scale Spaces”, BMVC, (2013), pp.13.1-13.11.
[0032] The display unit 123 acquires an image of the drawing stored in the display drawing storage unit 113, and displays the acquired drawing on the display device 12. As described above, the display drawing storage unit 113 stores, for example, an image of the drawing in which the parts corresponding to the differences between the base drawing image and the new drawing image are expressed in different colors. Therefore, the display unit 123 acquires and displays this drawing.
[0033] Next, the process executed by the control unit 120 will be described with reference to FIGS.
[0034] 4, the image generating unit 121 images the medium data (step S1). More specifically, the image generating unit 121 acquires the first medium data 50 from the first medium storage unit 111 and generates a first medium image. The image generating unit 121 also acquires the second medium data 60 from the second medium storage unit 112 and generates a second medium image.
[0035] Once the medium data has been imaged, the image processing unit 122 identifies similar pages (step S2). Specifically, the image processing unit 122 compares the multiple page images included in the first medium image with the page images included in the second medium image for each page image to calculate the similarity between the page images. After calculating the similarity, the image processing unit 122 identifies the page images with the highest calculated similarity as similar pages. This allows similar pages to be uniquely identified. In this embodiment, for example, page images including the characters "FIG. 1" are identified as similar pages (see FIGS. 3(a) and (b)).
[0036] When a similar page is identified, the image processing unit 122 divides one region into partial regions (step S3). That is, the image processing unit 122 divides each of the two page images identified as similar pages into a plurality of partial regions from a region corresponding to the entire page image. After region division, the image processing unit 122 executes a matching process between the two page images identified as similar pages (step S4). The matching process is a process of identifying a correspondence between a partial region included in one page image and a partial region included in the other page image using the feature point matching method described above. The matching process will be described in detail later.
[0037] After the matching process is completed, the image processor 122 moves one of the partial regions for which the corresponding relationship has been identified to the other, thereby aligning the positions of the base drawing image and the new drawing image (step S5). After aligning the positions of the base drawing image and the new drawing image, the image processor 122 converts the base drawing image to a monochrome image and assigns green color alone (step S6). Green is one of the three primary colors of light, and can be expressed as (R, G, B) = (0, 255, 0) in the color expression of brightness classified into 256 gradations in the RGB format. In the brightness classified into 256 gradations, the numerical data "255" represents the brightest brightness. The processing of step S6 allows the base drawing image to be expressed in green.
[0038] When the process of step S6 is completed, the image processing unit 122 converts the new drawing image to monochrome and assigns red color alone (step S7). Red is one of the three primary colors of light, and can be expressed as (R, G, B) = (255, 0, 0) in RGB color expression. The process of step S7 allows the new drawing image to be expressed in red. Note that green may be assigned to the new drawing image, and red may be assigned to the base drawing image.
[0039] When the process of step S7 is completed, the image processing unit 122 superimposes the base drawing image and the new drawing image on a blue background (step S8). Blue is one of the three primary colors of light, and can be expressed as (R, G, B) = (0, 0, 255) in the RGB color expression. When the base drawing image and the new drawing image are superimposed on a blue background, (R, G, B) = (255, 255, 255) is obtained, and therefore white can be expressed.
[0040] In this way, the part of the background that is white and has only the green base drawing image can be expressed in magenta including pink because (R,G,B)=(255,255,255)-(0,255,0)=(255,0,255). Also, the part of the background that is white and has only the red new drawing image can be expressed in cyan including light blue because (R,G,B)=(255,255,255)-(255,0,0)=(0,255,255). Also, the part of the background that is white and has only the green base drawing image and the red new drawing image overlap can be expressed in blue because (R,G,B)=(255,255,255)-(0,255,0)-(255,0,0)=(0,0,255).
[0041] When the process of step S8 is completed, the image processing unit 122 stores such an image of the drawing in the display drawing storage unit 113. When the image of the drawing is stored in the display drawing storage unit 113, the display unit 123 displays the image of the drawing on the display device 12 (step S9), and ends the process. As a result, as shown in Figures 5(a) and (b), the base drawing image and the new drawing image are superimposed, and an image of the drawing partially expressed in different colors appears on the display device 12.
[0042] For example, as shown in Fig. 5(a), the difference between a base drawing image corresponding to the base drawing 51 and a new drawing image corresponding to the new drawing 62 appears on the display device 12 as difference images P1 and P2 of different colors. At this time, the difference image P1, which is a part of the base drawing image, is displayed in magenta, and the difference image P2, which is a part of the new drawing image, is displayed in cyan. And, the superimposed image P3, which is the superimposed portion of the base drawing image and the new drawing image, is displayed in blue.
[0043] Also, as shown in FIG. 5(b), the difference between the base drawing image corresponding to the base drawing 52 and the new drawing image corresponding to the new drawing 61 appears on the display device 12 as a difference image Q1 of a different color. At this time, the difference image Q1, which is a part of the base drawing image, is displayed in magenta. However, the new drawing image is superimposed in its entirety on the base drawing image. Therefore, the new drawing image is displayed as a blended image in blue as a superimposed image Q3.
[0044] In this way, the image processing device 100 according to the present embodiment can extract the difference between the base drawing image and the new drawing image based on the color difference using the three primary colors of light. Therefore, the amount of data processing can be reduced compared to the case of performing data processing that does not depend on the color difference using the three primary colors of light. In addition, the image of the drawing that appears on the display device 12 allows, for example, a person in charge of checking the old and new drawings to easily distinguish the difference between the drawings.
[0045] Next, the above-mentioned matching process will be described in detail with reference to Fig. 6 and Fig. 7. As described above, when the process of step S3 is completed, the image processing unit 122 starts the matching process. Note that the order of the process of step S12 and the process of step S13 described later is not particularly limited, and either step S12 or S13 may be performed first (i.e., the process order may be reversed).
[0046] First, as shown in Fig. 6, the image processing unit 122 extracts a feature amount (step S11). More specifically, the image processing unit 122 extracts a feature amount of each of a plurality of partial regions of a comparison source and a feature amount of each of a plurality of partial regions of a comparison destination as a first feature amount and a second feature amount, respectively. For example, if any of the partial regions of the comparison source has a plurality of points (e.g., pixels, or local or minute regions including a plurality of pixels as elements) A, X, etc., the image processing unit 122 extracts a first feature amount of the points A, X, etc. Also, if any of the partial regions of the comparison destination has a plurality of points B, C, Y, etc., the image processing unit 122 extracts a second feature amount of the points B, C, Y, etc.
[0047] Each of the points A, X, etc. has multiple components (e.g., lightness, saturation, brightness, average pixel value (or RGB value), variance of pixel values, histogram of pixel values, etc.) as a first feature amount. Similarly, the points B, C, Y, etc. also have multiple components as a second feature amount. Therefore, the points A and X may be called first feature points, and the points B, C, Y may be called second feature points. For example, the point X has lightness as a component x1, saturation as a component x2, ..., component x n The points A, B, C, and Y are basically the same as the point X, so detailed description will be omitted.
[0048] When the process of step S11 is completed, the image processing unit 122 compares the distances as a first comparison process (step S12). More specifically, first, the image processing unit 122 calculates a first distance between any of the first feature amounts and a second feature amount that is closest to any of the first feature amounts. Next, the image processing unit 122 calculates a second distance between any of the first feature amounts and a second feature amount that is next closest to any of the first feature amounts. Then, the image processing unit 122 compares the first distance with the second distance.
[0049] For example, the image processing unit 122 calculates the distance L(A,B) between points A and B as the first distance, and calculates the distance L(A,C) between points A and C as the second distance. Here, the image processing unit 122 can calculate, for example, the distance L(X,Y) by the following calculation formula. Similarly, the image processing unit 122 can calculate the distance L(A,B) and the distance L(A,C) by this calculation formula. By the distance L(X,Y), the image processing unit 122 can determine the similarity between the feature amount of point X and the feature amount of point Y. Similarly, the image processing unit 122 can determine the similarity between the feature amount of point A and the feature amount of point B, and the similarity between the feature amount of point A and the feature amount of point C, by the distance L(A,B) and the distance L(A,C). <Calculation formula> Distance L(X,Y)={(x1-y1) 2 +(x2-y2) 2 +···+(x n -y n ) 2}} 0.5
[0050] After calculating the distances L(A,B) and L(A,C), the image processing unit 122 uses the number of pairs of elements of the partial region having unique features (hereinafter referred to as element pairs) to select partial region candidates (hereinafter referred to as pairing candidates) for identifying a correspondence relationship (pairing). Specifically, the image processing unit 122 selects partial regions with the largest number of point pairs in which the features of points within the partial region match as pairing candidates. The image processing unit 122 determines that the features match when the distance L between the two points is the smallest compared to the distance L between other two points.
[0051] In addition, an element pair having a unique feature is required to satisfy the following inequality, which compares, for example, the distance L(A,B) between point A and point B, which is the smallest distance and is a candidate for a pair of point A, with the distance L(A,C) between point A and point C, which is the second smallest distance after point B, which is a candidate for a pair of point A. If the distance L(A,B) between point A in the comparison source partial area and point B in the comparison destination partial area is the shortest, the feature values of point A and point B are very similar. Therefore, the image processing unit 122 can determine that the feature values match. For the predetermined value, a positive number less than 1.0 that shortens the second distance, such as 0.5 or 0.6, can be set as a threshold value. <Inequalities> Distance L(A,B)<predetermined value x distance L(A,C)
[0052] As a result, as shown in FIG. 7(a), the image processing unit 122 can select pairing candidates of a plurality of corresponding partial regions (described as areas in FIG. 7(a)) #1 to #5. For example, the candidates of partial regions corresponding to the partial region #3 of the base drawing image are the candidates of partial regions #2 and #3 of the new drawing image. Here, the number of point pairs in which the feature amounts of the points of the partial region #3 of the base drawing image and the partial region #2 of the new drawing image match is 80. On the other hand, the number of point pairs in which the feature amounts of the points of the partial region #3 of the base drawing image and the partial region #3 of the new drawing image match is 40. Therefore, the image processing unit 122 determines the partial region #3 of the base drawing image and the partial region #2 of the new drawing image, which have a large number of point pairs, as pairing candidates of partial regions.
[0053] When the process of step S12 is completed, the image processing unit 122 compares the distance sum with the threshold distance as a second comparison process (step S13). For example, the image processing unit 122 selects several to a dozen (for example, at least two or more, such as five, ten, or fifteen) point pairs in ascending order of distance L, and compares the distance sum, which is the sum of the distances L of the selected point pairs, with the first threshold distance. Then, the image processing unit 122 selects a pairing candidate if the distance sum is less than the first threshold distance. As the first threshold distance, a numerical value of several hundred, such as a threshold distance of "300" or a threshold distance of "500", is set.
[0054] On the other hand, the image processing unit 122 may select pairing candidates when the average distance obtained by dividing the sum of the distances L of the selected point pairs by the number of the selected point pairs is less than the second threshold distance. Here, when several tens of numerical values such as the threshold distance "30" or the threshold distance "50" are set as the second threshold distance, the image processing unit 122 can select pairing candidates of corresponding multiple partial areas (described as areas in FIG. 7(b)) #1 to #5 as shown in FIG. 7(b). For example, the candidates of partial area #2 and partial area #3 of the new drawing image are applicable to the candidates of partial area corresponding to partial area #3 of the base drawing image.
[0055] Here, the average value of the distance L between the points in the partial region #3 of the base drawing image and the points in the partial region #2 of the new drawing image is "10". On the other hand, the average value of the distance L between the points in the partial region #3 of the base drawing image and the points in the partial region #3 of the new drawing image is "13". Therefore, the image processing unit 122 determines the partial region #3 of the base drawing image and the partial region #2 of the new drawing image, which have a short average distance of the distance L, as partial region pairing candidates. In this way, in the second comparison process, the image processing unit 122 determines partial region pairing candidates that identify the correspondence relationship by using the shortness of the distance between the feature amounts of the elements of the partial regions.
[0056] When the process of step S13 is completed, the image processing unit 122 detects the difference between the partial regions (step S14) and ends the matching process. More specifically, the image processing unit 122 finally determines a pair of a partial region of a comparison source and a partial region of a comparison destination based on each pairing candidate determined in each process of steps S12 and S13, and detects the difference between the partial regions. Therefore, as shown in Figures 7(a) and (b), the image processing unit 122 pairs, for example, partial region #1 of the base drawing image with partial region #1 of the new drawing image as partial regions having a corresponding relationship.
[0057] As shown in FIG. 7(a), the image processing unit 122 selects the partial region #5 of the base drawing image and the partial region #5 of the new drawing image as pairing candidates, but as shown in FIG. 7(b), the partial region #5 of the base drawing image and the partial region #5 of the new drawing image are excluded from the selection of pairing candidates. This is because the average distance of the distance L of the partial region #5 of the base drawing image and the partial region #5 of the new drawing image exceeds the second threshold distance. In this case, the image processing unit 122 may determine that the partial region #5 has been deleted from the base drawing image and added to the new drawing image. In this way, the image processing unit 122 can detect the difference between the partial region in the base drawing image and the partial region in the new drawing image based on each pairing candidate that is the comparison result determined in each process of steps S12 and S13.
[0058] As described above, the image processing unit 122 pairs partial regions with each other and detects the difference between the partial regions with high accuracy by the matching process including the first comparison process and the second comparison process. Note that, although the partial regions of the drawing have been described as an example, the image processing unit 122 may also identify the partial regions of characters in the same way as the drawing and specify the correspondence relationship.
[0059] Thus, the image processing device 100 according to this embodiment includes the control unit 120, and the control unit 120 includes the image processing unit 122. In the process of step S3, the image processing unit 122 executes a division process of dividing each of the two page images identified as similar pages into a plurality of partial regions from one region corresponding to the entire page image. Next, in the process of step S11, the image processing unit 122 executes an extraction process of extracting the feature amount of each of the plurality of partial regions of the comparison source and the feature amount of each of the plurality of partial regions of the comparison destination as first feature amounts and second feature amounts, respectively.
[0060] After that, in the process of step S12, the image processing unit 122 executes a first comparison process to compare the first distance with the second distance. The first distance is the distance between any one of the first feature amounts and a second feature amount that is closest to any one of the first feature amounts. The second distance is the distance between any one of the first feature amounts and a second feature amount that is second closest to any one of the first feature amounts.
[0061] Furthermore, in the process of step S13, the image processing unit 122 selects at least two or more second feature amounts in order of the distance closest to any one of the first feature amounts. After selecting the second feature amount, the image processing unit 122 executes a second comparison process in which the sum of the distances between any one of the first feature amounts and the selected second feature amount is compared with the first threshold distance. Alternatively, the image processing unit 122 executes a second comparison process in which the average distance based on the sum of the distances and the number of the selected second feature amounts is compared with the second threshold distance.
[0062] Then, in the process of step S14, the image processing unit 122 executes a detection process to detect the difference between the partial regions based on a first comparison result of the first distance and the second distance and a second comparison result of the distance sum and the first threshold distance. Alternatively, the image processing unit 122 executes a detection process to detect the difference between the partial regions based on this first comparison result and a second comparison result of the average distance and the second threshold distance. These processes enable the detection of the difference between the partial regions to be performed with high accuracy.
[0063] Although a preferred embodiment of the present invention has been described in detail above, the present invention is not limited to such a specific embodiment, and various modifications and variations are possible within the scope of the gist of the present invention described in the claims. [Explanation of symbols]
[0064] 50 First Media Data 51,52 Base drawing 60 Second Media Data 61,62 New drawings 71,72,81,82 partial area 100 Image processing device 120 Control section
Claims
1. a division process for dividing the first drawing data into a plurality of first partial regions from a first region representing an image of one page of the first drawing data, and dividing the second drawing data into a plurality of second partial regions from a second region representing an image of one page of the second drawing data; an extraction process of extracting a first feature amount of each of the plurality of first partial regions and a second feature amount of each of the plurality of second partial regions; a first comparison process for comparing a first distance between any one of the first feature amounts and the second feature amount closest to any one of the first feature amounts with a second distance between any one of the first feature amounts and the second feature amount next closest to any one of the first feature amounts; a second comparison process of selecting at least two of the second feature amounts in order of distance from any one of the first feature amounts to the second feature amount, and comparing a sum of the distances between any one of the first feature amounts and the selected second feature amount with a first threshold distance; a detection process for detecting a difference between the first partial area and the second partial area based on a first comparison result between the first distance and the second distance and a second comparison result between the sum and the first threshold distance; An image processing device having a control unit that executes the above.
2. The first comparison process compares the first distance with a specific second distance obtained by multiplying the second distance by a predetermined value that shortens the second distance.
2. The image processing device according to claim 1,
3. the second comparison process compares an average distance based on the sum and the number of the selected second feature amounts with a second threshold distance; the detection process detects the difference between the first partial region and the second partial region based on the first comparison result and a second comparison result between the average distance and the second threshold distance.
3. The image processing device according to claim 1, wherein the first and second inputs are input to the image processing device.
4. the detection process detects the difference between the first partial region and the second partial region based on a first feature point of the first partial region, a second feature point of the second partial region, and a predetermined feature point matching method using machine learning; 3. The image processing device according to claim 1, wherein the first and second inputs are input to the image processing device.
Citation Information
Patent Citations
Verification device, method, and program
JP2019091293A
Image processor and program
JP2016045564A
