Image processing method

The image processing method efficiently marks and represents defect locations on vehicle prototype parts by superimposing a cell form, determining cell relationships, and outputting shapes, reducing time and maintaining consistency across image size changes.

JP2024143214APending Publication Date: 2024-10-11DAIHATSU MOTOR CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023055766
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-30
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Conventional methods for marking defect locations on vehicle prototype parts in spreadsheet software are time-consuming and lack efficiency in representing the occurrence of defects.

Method used

An image processing method that includes acquiring an image, superimposing a form of cells, selecting cells based on user input, determining cell relationships, marking and obtaining coordinates, and outputting a shape to efficiently represent defect locations.

Benefits of technology

Efficiently represents defect locations on vehicle prototype parts, reducing man-hours and maintaining consistent representation across varying image sizes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024143214000001_ABST
    Figure 2024143214000001_ABST
Patent Text Reader

Abstract

To provide an image processing method that efficiently presents an occurrence place of trouble in trial manufacture of a vehicle component etc.SOLUTION: An image processing method includes: a step of acquiring an image representing a notable region in the image; a display control step of causing a display unit to superpose and display the image and a form consisting of a predetermined number of cells; a selection step of selecting one or more cells corresponding to the notable region on the form in accordance with a user's instruction; a determination step of determining whether or not each of the cells located in the vertical or lateral position of a selection cell is the selection cell for each of the selected selection cells; a marking step of giving a mark indicating that other selection cells are not present on the upper, lower, right or left side of the selection cell as an object of determination according to a determination result; a coordinate acquisition step of determining the existence of a mark in each of the selection cells; and a step of outputting a shape formed by connecting vertices represented with coordinates as a shape of the notable region.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to an image processing method. [Background technology]

[0002] In the process of vehicle development, prototypes of vehicle parts are often repeatedly produced. Conventionally, the parts of the prototype where defects or improvements need to be made are indicated (hereinafter, also referred to as defect occurrence parts) by marking an oval-shaped AutoShape on an attached image of a spreadsheet software such as Excel (registered trademark) and then output. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2020-87447 A Summary of the Invention [Problem to be solved by the invention]

[0004] However, the conventional technology requires operations such as inserting a shape to specify an autoshape at the location where a defect occurs, and has problems such as time-consuming changes to the shape of the location where a defect occurs, and lack of followability when the image size is changed. In other words, there is room for improvement in the method of expressing the location where a defect occurs in the prototype of a vehicle part.

[0005] The problem to be solved by the present disclosure is to provide an image processing method capable of efficiently expressing locations where defects or the like occur in the prototyping of vehicle parts or the like. [Means for solving the problem]

[0006] The image processing method according to the present disclosure includes an image acquisition step of acquiring an image including a region of interest that represents a region of interest on an image; a display control step of superimposing the image and a form composed of a predetermined number of cells on a display device; a selection step of selecting one or more of the cells corresponding to the region of interest on the form in accordance with a user's instruction; a determination step of determining, for each selected selected cell, whether or not each of the cells located above, below, to the left, and to the right of the selected cell is the selected cell; a marking step of applying a mark indicating that no other selected cells exist above, below, to the left, or to the right of the selected cell that has been determined in accordance with the determination result; The method includes a coordinate acquisition step of checking the presence or absence of the mark in a first direction from a vertex, determining the presence or absence of the mark in a first direction in a clockwise or counterclockwise direction from a predetermined vertex of each of the selected cells, and if the mark is present, acquiring the coordinates of the vertex corresponding to the mark, and if the mark is not present, determining the presence or absence of the mark starting from the vertex determined to not have the mark toward the first direction for each of a predetermined cell including a vertex located in a second direction that is opposite to the first direction and a predetermined cell including a vertex located in a third direction perpendicular to the first direction, and an output step of outputting the shape formed by connecting the vertices represented by the coordinates as the shape of the area of ​​interest. Effect of the Invention

[0007] According to the image processing method of the present disclosure, it is possible to efficiently express the location of defects or the like in the prototype of a vehicle part or the like. [Brief description of the drawings]

[0008] [Figure 1] FIG. 1 is a diagram illustrating an example of an image processing system according to an embodiment. [Diagram 2] FIG. 2 is a block diagram showing an example of a hardware configuration of the image processing device according to the embodiment. [Diagram 3] FIG. 3 is a block diagram illustrating an example of functions of the image processing device according to the embodiment. [Figure 4] FIG. 4 is a diagram illustrating an example of an input form according to the embodiment. [Diagram 5] FIG. 5 is a diagram for explaining an example of a selection process for a location where a defect or the like occurs according to the embodiment. [Figure 6] FIG. 6 is a diagram for explaining an example of a process for selecting a location where a defect or the like occurs according to the embodiment. [Figure 7] FIG. 7 is a diagram for explaining an example of a process for selecting a location where a defect or the like occurs according to the embodiment. [Figure 8] FIG. 8 is a diagram for explaining an example of a process for selecting a location where a defect or the like occurs according to the embodiment. [Figure 9] FIG. 9 is a diagram illustrating an example of the frame creation process according to the embodiment. [Figure 10] FIG. 10 is a diagram illustrating an example of the frame creation process according to the embodiment. [Figure 11] FIG. 11 is a diagram illustrating an example of the determination process according to the embodiment. [Figure 12] FIG. 12 is a diagram illustrating an example of a coordinate element acquisition process according to the embodiment. [Figure 13] FIG. 13 is a diagram illustrating an example of the synthesis process according to the embodiment. [Figure 14] FIG. 14 is a diagram illustrating an example of the synthesis process according to the embodiment. [Figure 15] FIG. 15 is a diagram illustrating an example of the correction process according to the embodiment. [Figure 16] FIG. 16 is a diagram illustrating an example of the correction process according to the embodiment. [Figure 17] FIG. 17 is a diagram illustrating an example of the correction process according to the embodiment. [Figure 18] FIG. 18 is a diagram illustrating an example of the correction process according to the embodiment. [Figure 19] FIG. 19 is a diagram illustrating an example of the correction process according to the embodiment. [Figure 20] FIG. 20 is a diagram illustrating an example of the correction process according to the embodiment. [Figure 21]FIG. 21 is a diagram illustrating an example of the output process according to the embodiment. [Figure 22] FIG. 22 is a diagram illustrating an example of the output process according to the embodiment. [Diagram 23] FIG. 23 is a flowchart showing an example of processing executed by the image processing device according to the embodiment. [Figure 24] FIG. 24 is a flowchart showing an example of processing executed by the image processing device according to the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009] Hereinafter, an embodiment of an image processing method according to the present disclosure will be described with reference to the accompanying drawings.

[0010] FIG. 1 is a diagram illustrating an example of an image processing system 1 according to the present embodiment.

[0011] The image processing system 1 includes an image processing device 10 and a database (DB) device 20. The image processing device 10 and the DB device 20 are connected to each other via a wired or wireless network so as to be able to communicate with each other.

[0012] The image processing device 10 is an information processing device that performs image processing on an input vehicle image 20A and outputs a report 20B.

[0013] The vehicle image 20A is image data of a vehicle including prototype vehicle parts. The vehicle image 20A may be an image showing the entire vehicle, or an image showing a part of the vehicle. The vehicle image 20A may be input from the DB device 20, or may be stored in a storage device (not shown) of the image processing device 10.

[0014] Report 20B is a report for reporting defects or the like in prototypes of vehicle parts. For example, report 20B is data including an image showing a location of a defect or the like on vehicle image 20A and details of the defect or the like at the location of the defect or the like. The location of the defect or the like is an example of a region of interest.

[0015] The DB device 20 is a device that manages information related to defects or the like in prototypes of vehicle parts, etc. For example, the DB device 20 has a DB that stores a vehicle image 20A, a location where a defect or the like occurs, and details of the defect or the like in association with each other.

[0016] The image processing device 10 outputs a report 20B based on the DB information of the DB device 20. The output report 20B is managed by the DB device 20.

[0017] In this embodiment, the image processing device 10 and the DB device 20 are described as separate devices. However, the image processing device 10 may include a part or all of the configuration of the DB device 20.

[0018] First, a description will be given of the hardware configuration of the image processing device 10. FIG 2 is a block diagram showing an example of the hardware configuration of the image processing device 10.

[0019] The image processing device 10 has a hardware configuration utilizing a normal computer, in which a CPU (Central Processing Unit) 11A, a ROM (Read Only Memory) 11B, a RAM (Random Access Memory) 11C, an I / F 11D, etc. are interconnected via a bus 11E.

[0020] The CPU 11A is a calculation device that performs overall control of the image processing device 10 of this embodiment. The ROM 11B stores programs and the like that realize various processes by the CPU 11A. The RAM 11C stores data necessary for various processes by the CPU 11A. The I / F 11D is an interface for transmitting and receiving data.

[0021] The program for executing information processing executed by the image processing device 10 of this embodiment is provided by being pre-installed in the ROM 11B, etc. The program executed by the image processing device 10 of this embodiment may be provided by being recorded in a computer-readable recording medium such as a CD-ROM, a flexible disk (FD), a CD-R, or a digital versatile disk (DVD) in a format that can be installed in the image processing device 10 or in a format that can be executed.

[0022] Next, a description will be given of the functional configuration of the image processing device 10. Fig. 3 is a block diagram showing an example of the functional configuration of the CPU 11A of the image processing device 10.

[0023] The CPU 11A of the image processing device 10 has a reception unit 101, an acquisition unit 102, a registration unit 103, a selection unit 104, a processing unit 105, a correction unit 106, and an output unit 107 as functional units.

[0024] The reception unit 101 receives input of various information. For example, the reception unit 101 receives an instruction to start an input form for inputting the vehicle image 20A to the image processing device 10 from the user. Also, for example, the reception unit 101 receives a designation input of the vehicle image 20A from the user on the input form. Also, for example, the reception unit 101 receives an instruction to select a location where a defect or the like has occurred from the user on the input form. The location where a defect or the like has occurred is an example of a region of interest.

[0025] The acquisition unit 102 acquires the vehicle image 20A. The acquisition unit 102 is an example of an image acquisition unit. For example, when the reception unit 101 receives a designated input of a registered vehicle image 20A, the acquisition unit 102 refers to the DB of the DB device 20 and acquires the designated vehicle image 20A. Also, for example, when an unregistered vehicle image 20A stored in a storage device or the like of the image processing device 10 is designated, the acquisition unit 102 reads out the designated vehicle image 20A from the storage device or the like.

[0026] The registration unit 103 registers the vehicle image 20A in the DB. For example, when the registration unit 103 receives an instruction to register the vehicle image 20A from a user, the registration unit 103 processes the vehicle image 20A that has not been registered in the DB and that has been acquired by the acquisition unit 102, and registers the processed vehicle image 20A in the DB of the DB device 20.

[0027] The selection unit 104 selects a location where a defect or the like has occurred in the vehicle image 20A. For example, the selection unit 104 selects a cell on the input form corresponding to the location where a defect or the like has occurred on the vehicle image 20A, in accordance with a selection instruction for the location where a defect or the like has occurred received by the reception unit 101.

[0028] The processing unit 105 executes various processes for acquiring information representing the shape of the location where a defect or the like has occurred. The processing unit 105 is an example of a determination unit, a marking unit, and a coordinate acquisition unit. For example, the processing unit 105 judges whether each of the cells selected by the selection unit 104 corresponds to a cell representing the location where a defect or the like has occurred. Also, for example, the processing unit 105 attaches a mark according to the above-mentioned judgment result, and acquires a coordinate position representing the shape of the location where a defect or the like has occurred.

[0029] The correction unit 106 corrects information representing the shape of the part where the defect etc. occurs. For example, the correction unit 106 performs various image processing on the shape of the part where the defect etc. occurs, which is acquired by the processing unit 105.

[0030] The output unit 107 outputs, as the shape of the defect or the like occurring portion, a shape formed by connecting the vertices represented by the coordinates acquired by the processing unit 105. For example, the output unit 107 converts the coordinates of each vertex of the shape of the defect or the like occurring portion into a ratio, and performs drawing using an autoshape function of a spreadsheet software or the like based on the conversion result.

[0031] Also, for example, the output unit 107 generates a report 20B in which an identification number for identifying the defect and details of the defect are added to image data showing the shape of the defect occurrence location, and sends it to the DB device 20. An example of the operation of each functional unit will be described below with reference to Figures 4 to 23. First, the operation of each functional unit when the vehicle image 20A is input to the input form will be described.

[0032] 4 is a diagram for explaining an example of the input form 12. In this embodiment, the input form 12 is composed of 25 cells vertically and 40 cells horizontally. The input form can be realized by using a spreadsheet software such as Microsoft Excel (registered trademark). The spreadsheet software used to realize the input form is not limited to the above.

[0033] The input form 12 in FIG. 4 has, as its screen configuration, a selection method designation button SL, an image addition button AB, a reset button RB, and a decision button DB.

[0034] The selection method specification button SL is a button for specifying a selection method for the location where the defect or the like occurs. In the example of Fig. 4, the selection method can be specified from among an individual selection mode, a range selection mode, and a straight line selection mode. Each selection method will be described later.

[0035] The add image button AB is a button for selecting an image to be input. When the user presses the add image button AB, the reception unit 101 receives an instruction to display a designation screen (not shown) for receiving a designation input of the vehicle image 20A. The user performs designation input of the vehicle image 20A via the designation screen.

[0036] The reset button RB is a button for canceling the currently executed process, and the enter button DB is a button for saving the currently executed process.

[0037] When the user performs a designation input of the vehicle image 20A via the above-mentioned designation screen, the reception unit 101 receives the designation input of the vehicle image 20A on the input form 12. The vehicle image 20A may be a vehicle image 20A that has already been registered in the DB of the DB device 20, or may be a vehicle image 20A that has not been registered in the DB stored in a storage device or the like of the image processing device 10.

[0038] For example, when the reception unit 101 receives, from a user, a designated input of a vehicle image 20A that is not registered in the DB, the acquisition unit 102 reads out the designated vehicle image 20A from a storage device of the image processing device 10 or the like.

[0039] Next, the registration unit 103 corrects the magnification of the acquired vehicle image 20A so that either the length or width of the vehicle image 20A falls within a predetermined aspect ratio (for example, 1280:960), and temporarily stores the image in the RAM 11C or the like as a template image.

[0040] Next, the registration unit 103 generates a composite image by combining the template image with a solid white image having an image size of 1280*960 so that the image size of the template image becomes 1280*960. The registration unit 103 generates a file name for saving the generated composite image. The registration unit 103 saves the composite image in a predetermined folder of the DB device 20 with the generated file name.

[0041] Then, the registration unit 103 associates the file name with an image identification number that identifies the composite image, and registers the file in the DB. After that, the selection unit 104 displays the composite image registered by the registration unit 103 on the input form 12. In this case, the selection unit 104 is an example of a display control unit that displays the composite image and the input form 12 on a display device such as a display of the image processing device 10. Note that the input form 12 may be configured so that multiple composite images can be registered at once. In this case, one defect or the like is registered for one composite image.

[0042] Next, an example of the operation of each functional unit in the process of selecting a location where a defect or the like occurs will be described. Figures 5 to 8 are diagrams for explaining an example of the process of selecting a location where a defect or the like occurs.

[0043] When the selection method is the individual selection mode, as shown in FIG. 5, when the user clicks on a cell on the input form 12 with an input device such as a mouse, the cell is switched between a non-selected state NA and a selected state SA.

[0044] As shown in Fig. 5, a cell in the selected state SA is displayed in a shaded state. The user selects the location where a defect or the like occurs by switching the cell corresponding to the location where a defect or the like occurs to the selected state SA. The receiving unit 101 receives a selection input of the location where a defect or the like occurs according to the content of the selection.

[0045] Furthermore, when the selection method is the range selection mode or the line selection mode, the first click on a cell by the user inputs an instruction to specify a start point. When the receiving unit 101 receives the input, the character "START" SP is displayed on the input form 12 as shown in Fig. 6. Furthermore, when an instruction to specify a start point has been input, for example, the character "END" EP is displayed flashing in the cell on the input form 12 where the mouse cursor is placed.

[0046] Then, the user's second click inputs an instruction to specify the end point. When the selection method is the range selection mode, multiple cells in the rectangular range with the start point and end point as diagonals are switched to the selected state SA, as shown in Fig. 7. When the selection method is the line selection mode, all cells passed by the line connecting the center of the start point cell and the center of the end point cell are switched to the selected state SA, as shown in Fig. 8.

[0047] When the user presses the enter button DB, the registration unit 103 registers in the DB the file name of the composite image, the image identification number of the composite image, and the selection of the location where the defect or the like has occurred in association with each other.

[0048] Specifically, since the input form 12 is managed by alphabets A through X for vertical columns and numbers 1 through 40 for horizontal rows, the registration unit 103 registers information (A1, A2, etc.) indicating the location of the cell in the selected state SA in the DB as the selection content of the location where the defect, etc. has occurred. Also, when there are multiple cells in the selected state SA, the selection content of the location where the defect, etc. has occurred is managed as a single String separated by commas, such as A1, A2, ...

[0049] It should be noted that the user can cancel the selection input of the location where the defect or the like occurred, which was made on the input form 12, by pressing the reset button RB.

[0050] Next, the operation of the processing unit 105 will be described with reference to Fig. 9 to Fig. 14. First, the frame creation process will be described. Fig. 9 and Fig. 10 are diagrams for explaining an example of the frame creation process. The frame is used to display a cell showing the location where a defect or the like occurs.

[0051] As an example, as shown in FIG. 9, when B2, C3, C4, C5, and D5 are in the selected state SA, the processing unit 105 creates a rectangular frame FR whose sides are the vertical columns B to D and the horizontal rows 2 to 5 in which the cells in the selected state SA exist.

[0052] Next, an example of a determination process for determining whether each cell is a cell that represents a location where a defect or the like occurs will be described. Fig. 11 is a diagram for explaining an example of the determination process. In the example of Fig. 11, B2, C3, C4, C5, and D5 are in the selected state SA, similarly to Figs. 9 and 10.

[0053] After performing the process of creating the frame FR, the processing unit 105 creates a two-dimensional array (1) of the same size as the range of the cells in the selected state SA. Array (1) represents the cell positions using (column position, row position). The column positions are expressed numerically, with A=1, B=2...X=24. In the example of Fig. 11, the processing unit 105 creates (2,2), (3,3), (3,4), (3,5), and (4,5) as array (1).

[0054] Next, the processing unit 105 searches for cells in the frame FR, and in the case of a cell in the selected state SA, it judges whether each of the cells located above (Top), below (Bottom), to the left (Left), and to the right (Light) of the cell is a cell indicating an occurrence location of a defect or the like. In this embodiment, the above search is performed in the order of the horizontal direction and the vertical direction. Specifically, the processing unit 105 searches in the order of B2, B3...B5, C2...C5, D2...D5.

[0055] For example, when determining whether B2 is a cell that represents a location where a defect or the like has occurred, the processing unit 105 determines whether A2 is a cell in the selected state SA as the Top determination. Similarly, the processing unit 105 determines whether C2 is a cell in the selected state SA as the Bottom determination. Similarly, the processing unit 105 determines whether B1 is a cell in the selected state SA as the Left determination. Similarly, the processing unit 105 determines whether B3 is a cell in the selected state SA as the Right determination.

[0056] For each of Top, Bottom, Left, and Right, if the corresponding cell is a cell in an unselected state NA, the processing unit 105 inputs Top=T, Bottom=B, Left=L, and Right=R into the corresponding array (1). Note that if the target cell is surrounded on all four sides by cells in a selected state SA, the processing unit 105 inputs @ into the corresponding array (1).

[0057] In the example of Figure 11 targeting B2, since Top (A2), Bottom (C2), Left (B1), and Right (B3) are all cells in the unselected state NA, the processing unit 105 inputs TBLR into the array (2,2) corresponding to B2.

[0058] Also, although not shown, processing unit 105 inputs TBL into the sequence (3,2) corresponding to C2, TB into the sequence (3,3) corresponding to C3, TB into the sequence (3,4) corresponding to C4, T into the sequence (3,5) corresponding to C5, and L into the sequence (4,5) corresponding to D5.

[0059] Next, an example of the coordinate element acquisition process will be described. Fig. 12 is a diagram for explaining an example of the coordinate element acquisition process. In the example of Fig. 12, a case where processing is performed on B2 as in Fig. 11 will be described. It is assumed that TBLR is input to the array (2,2) corresponding to B2 in Fig. 12.

[0060] After marking each target cell with a TBLR, the processing unit 105 creates an output wire confirmation array (2). The array (2) is defined with a size of (1,0), and the second and subsequent elements are added according to the number of cells to be processed.

[0061] The processing unit 105 searches the array (1) horizontally to determine whether the array (1) is empty. If the array is not empty, the processing unit 105 determines whether the marks are added in the order of Bottom, Left, Top, and Right.

[0062] Furthermore, when a mark is added, the processing unit 105 acquires the coordinate elements of the vertices of the target cell corresponding to the mark. In other words, the processing unit 105 performs processing to acquire the coordinate elements in a clockwise direction. The clockwise direction is an example of the first direction. Note that, although the processing is performed in a clockwise direction in this embodiment, the processing may be performed in a counterclockwise direction.

[0063] For the array (2) "(2)(0,Y)=X0 (2)(1,Y)=X1", the processing unit 105 inputs the ordinate element into X0, the abscissa element into X1, and the vertex number into Y. For example, when the ordinate element is 1, the abscissa element is 1, and the vertex number is 1, the array (2) becomes (2)(0,1)=1 (2)(1,1)=1.

[0064] In the example of Fig. 12, first, the processing unit 105 judges whether or not a mark is added to the bottom of B2. The mark of B is added to the array (1) corresponding to B2. Therefore, the processing unit 105 inputs the position indicated by * in Fig. 12 (ordinate element: 2, abscissa element: 2) as vertex number 1 into the array (2). In other words, the first element of the array (2) is (2)(0,1)=2 (2)(1,1)=2.

[0065] 12 (ordinate element: 2, abscissa element: 2) as vertex number 2, and inputs it to array (2). That is, the second element of array (2) is (2)(0,2)=2 (2)(1,2)=1. Since obtaining the coordinate elements for the second element has been completed for the Bottom of B2, processing unit 105 erases the B mark in array (1) corresponding to B2.

[0066] Next, processing unit 105 judges whether or not a mark is added to the left of B2. The array (1) corresponding to B2 is marked with an L mark. Therefore, processing unit 105 inputs the position indicated by a black triangle in FIG. 12 (ordinate element: 1, abscissa element: 1) as vertex number 3 into array (2). In other words, the third element of array (2) is (2)(0,3)=1 (2)(1,3)=1.

[0067] In obtaining the coordinate element of the third element, for the Left of B2, since obtaining of the coordinate elements is completed, the processing unit 105 erases the L mark in the corresponding array (1) of B2.

[0068] Next, processing unit 105 judges whether or not a mark is attached to Top of B2. A mark of T is attached to array (1) corresponding to B2. Therefore, processing unit 105 inputs the position indicated by a white triangle in FIG. 12 (ordinate element: 1, abscissa element: 2) as vertex number 4 to array (2). In other words, the fourth element of array (2) is (2)(0,4)=1 (2)(1,4)=2.

[0069] With regard to Top of B2, since the acquisition of the coordinate element for the fourth element has been completed, the processing unit 105 erases the T mark in the corresponding array (1) of B2.

[0070] Next, processing unit 105 judges whether or not Right of B2 is marked. The array (1) corresponding to B2 is marked with an R mark. Therefore, processing unit 105 inputs the position indicated by * in FIG. 12 (ordinate element: 2, abscissa element: 2) as vertex number 5 into array (2). In other words, the fifth element of array (2) is (2)(0,5)=2 (2)(1,5)=2.

[0071] When obtaining the coordinate element for the fifth element, the right side of B2 has been obtained, so the processing unit 105 erases the R mark in the array (1) corresponding to B2. There are no cells in the selected state SA in the top, bottom, left, or right side of B2, so the obtaining of the coordinate elements related to B2 has been completed (all marks have been erased). Therefore, it can be said that elements 1 to 5 of array (2) form one closed loop.

[0072] When the acquisition of coordinate elements for one closed loop is completed, the processing unit 105 creates a one-dimensional array (3)(1). The (1) in array (3) represents the number of elements in array (3). The number of elements in array (3) varies depending on the number of closed loops. The processing unit 105 inputs the information input to array (2) in character string format to array (3). In the example of FIG. 12, the processing unit 105 inputs "2@2, 2@1, 1@1, 1@2, 2@2" to array (3)(1).

[0073] Next, the operation of the processing unit when there is no mark for at least one of Top, Bottom, Left, and Right will be described. In this case, the processing unit 105 performs a process of determining whether the shape of the part where the defect or the like has occurred is spreading in the counterclockwise direction, and a process of determining whether the shape of the part where the defect or the like has occurred is spreading in the straight direction.

[0074] For example, if T is not marked, the processing unit 105 judges whether or not B is marked in the array (1) corresponding to the upper left cell of the target cell. If B is marked, the processing unit 105 performs a judgment process on the array (1) corresponding to the upper left cell of the target cell in the order of Bottom, Left, Top, and Right, targeting the upper left cell of the target cell. In this case, the upper left cell of the target cell is an example of a predetermined cell including a vertex located in the second direction.

[0075] After the determination process of array (1) corresponding to the upper left cell of the target cell is completed, the processing unit 105 determines whether or not L is marked in array (1) corresponding to the cell above the target cell. If L is marked, the determination process of array (1) corresponding to the cell above the target cell and the acquisition process of coordinate elements are performed in the order of Left, Top, Right, and Bottom for the cell above the target cell. In this case, the cell above the target cell is an example of a predetermined cell including a vertex located in the third direction.

[0076] Similarly, when Bottom is unmarked, the processing unit 105 performs a determination process and a coordinate element acquisition process in the order of whether the cell to the lower right of the target cell is marked with T, or whether the cell below the target cell is marked with R. In this case, the cell to the lower right of the target cell is an example of a predetermined cell including a vertex located in the second direction, and the cell below the target cell is an example of a predetermined cell including a vertex located in the third direction.

[0077] Similarly, when Left is unmarked, the processing unit 105 performs the determination process and acquires the coordinate elements in the order of whether the cell to the lower left of the target cell is marked with R, or whether the cell to the left of the target cell is marked with B. In this case, the cell to the lower left of the target cell is an example of a predetermined cell including a vertex located in the second direction, and the cell to the left of the target cell is an example of a predetermined cell including a vertex located in the third direction.

[0078] Similarly, when Right is unmarked, the processing unit 105 performs the determination process and acquires the coordinate elements in the order of whether the cell to the upper right of the target cell is marked with L or the cell to the right of the target cell is marked with T. In this case, the cell to the upper right of the target cell is an example of a predetermined cell including a vertex located in the second direction, and the cell to the right of the target cell is an example of a predetermined cell including a vertex located in the third direction.

[0079] Then, the processing unit 105 repeats the above process until all the marks are erased.

[0080] The following describes an example in which processing is performed on C3 in Fig. 12. In the example in Fig. 12, array (1) corresponding to C3 is not marked with R. Therefore, the processing unit 105 determines whether or not array (1) corresponding to B4, which is the upper right cell of C3, is marked with L.

[0081] In the example of Fig. 12, L is not marked in array (1) corresponding to B4. Therefore, the processing unit 105 judges whether or not T is marked in array (1) corresponding to C4, which is the cell to the right of C3. T is marked in array (1) corresponding to C4. Therefore, the processing unit 105 performs judgment processing and acquires coordinate elements for C4 in the order of Top, Right, Bottom, and Left.

[0082] In the example of Fig. 12, the results of the judgment process and coordinate element acquisition process by the processing unit 105 are as follows. The following shows the process and the processing result by the processing unit 105 in the form of step number.cell to be processed / mark to be checked=judgment result. Furthermore, True indicates that a mark exists, and False indicates that a mark does not exist. Furthermore, in the case of True, the acquired coordinate element is also listed.

[0083] 1.C3 / B=True (2)(0,1)=3 (2)(1,1)=3,(2)(0,2)=3 (2) (1,2)=2 2.C3 / L=True (2)(0,3)=2 (2)(1,3)=2 3.C3 / T=True (2)(0,4)=2 (2)(1,4)=3 4. C3 / R=False 5.B4 / L=False 6.C4 / T=True (2)(0,5)=2 (2)(1,5)=4 7. C4 / R=false 8.B5 / L=false 9.C5 / T=True (2)(0,6)=2 (2)(1,6)=5 10.C5 / R=True (2)(0,7)=3 (2)(1,7)=5 11. C5 / B=false 12.D6 / T=False 13.D5 / R=True (2)(0,8)=4 (2)(1,8)=5 14.D5 / B=True (2)(0,9)=4 (2)(1,9)=4 15.D5 / L=True (2)(0,10)=3 (2)(1,10)=4 16.D5 / T=False 17.C4 / B=True (2)(0,11)=3 (2)(1,11)=3 18. C4 / L=False 19.D3 / R=false 20. C3 / B=false

[0084] The reason why the process ends at step number 20 is because processing unit 105 erases B from C3 in step 1. After the above process, processing unit 105 creates a one-dimensional array (3)(2). Then, processing unit 105 inputs the coordinate element information acquired in the process of steps 1 to 20 to array (3)(2). In the example of FIG. 12, array (3)(2) becomes "3@3, 3@2, 2@2, 2@3, 2@4, 2@5, 3@5, 4@5, 4@4, 3@4, 3@3".

[0085] Next, an example of a closed loop merging process will be described. The merging process is a process in which, when there are multiple closed loops, the coordinates shared between the loops are confirmed and the two are merged. As a result, when there are multiple closed loops, the processing unit 105 can express the shape of the location where a defect or the like occurs as a single closed loop.

[0086] Fig. 13 and Fig. 14 are diagrams for explaining an example of the merging process. Fig. 13 shows the result of the coordinate element acquisition process of the example of Fig. 12. Loops L1 and L2 are displayed in the input form 12 of Fig. 13. Loops L1 and L2 share the shared coordinates JP. In the example of Fig. 13, the shared coordinates JP are represented as "2@2" in array (3).

[0087] The processing unit 105 combines the two by inserting "2@2, 2@1, 1@1, 1@2, 2@2" of array (3)(1) into the position of "2@2" of array (3)(2), as shown in Fig. 14. In the example of Fig. 13 and Fig. 14, the combination result of the closed loop is "3@3, 3@2, 2@2, 2@1, 1@1, 1@2, 2@2, 2@3, 2@4, 2@5, 3@5, 4@5, 4@4, 3@4, 3@3".

[0088] Next, the operation of the correction unit 106 will be described with reference to Fig. 15 to Fig. 20. Fig. 15 to Fig. 20 are diagrams for explaining an example of the correction process. The correction unit 106 corrects the coordinate position to bring the shape OL closer to the frame FR.

[0089] For example, the correction unit 106 performs a process of cutting the sides of a shape OL having two or more cells protruding therefrom, as shown in Fig. 15. Specifically, the correction unit 106 performs chamfering at a 25% position of one side of a cell of a shape OL having two or more cells protruding therefrom, as shown in Fig. 16. In Fig. 16, the length of one side of a cell in the vertical column direction is represented by Y.

[0090] Also, for example, the correction unit 106 performs a process of rounding corners where two or more cells are connected vertically and horizontally, as shown in Fig. 17. Specifically, the correction unit 106 performs chamfering at the 25% position of one side of the cell, as shown in Fig. 18. Note that in Fig. 18, the length of one side of the cell in the vertical direction is represented by Y, and the length of one side of the cell in the horizontal direction is represented by X.

[0091] Also, for example, the correction unit 106 performs padding processing on the portion where the squares are in contact diagonally as shown in Fig. 19. Specifically, the correction unit 106 performs padding at a 25% position on one side of the cell as shown in Fig. 20. In Fig. 20, the length of one side of the cell in the vertical direction is represented by Y, and the length of one side of the cell in the horizontal direction is represented by X.

[0092] Next, the operation of the output unit 107 will be described with reference to Figures 21 and 22. Figures 21 and 22 are diagrams for explaining an example of the output process.

[0093] 21, the output unit 107 performs autoshape drawing on the vehicle image 20A arranged on the input form 12 based on information obtained by converting the coordinates of each vertex of the shape corrected by the correction unit 106 into a ratio. This enables the output unit 107 to output an indication frame MO indicating the location of the occurrence of a defect or the like on the vehicle image 20A.

[0094] Also, for example, the output unit 107 performs a process of attaching a mark MK to the center of the indication frame MO as shown in Fig. 22. The output unit 107 also performs a process of drawing a leader line LL from the mark MK. The output unit 107 also creates a text box at the top in which the defect number N is written. This makes it clear which defect in the database the indication frame MO corresponds to.

[0095] Next, a description will be given of processing executed by the image processing device 10 of this embodiment. First, a registration process of the vehicle image 20A and the location of the occurrence of a defect or the like will be described. FIG 23 is a flowchart showing an example of the processing executed by the image processing device 10.

[0096] First, the reception unit 101 receives an instruction from the user to start the input form 12 (step S101). Next, the reception unit 101 receives an instruction to specify the vehicle image 20A from the user via the input form 12 (step S102).

[0097] Next, the registration unit 103 judges whether or not to register the vehicle image 20A in the DB (step S103). For example, when the user designates the vehicle image 20A in the DB, the registration unit 103 judges not to register the vehicle image 20A, and when the user designates the vehicle image 20A stored in the storage device or the like of the image processing device 10, the registration unit 103 judges to register the vehicle image 20A.

[0098] If registration is not to be performed (step S103: No), the acquisition unit 102 reads out the specified vehicle image 20A from the DB (step S104) and proceeds to the process of step S107. At this time, the vehicle image 20A read out in step S104 is displayed on the input form 12.

[0099] On the other hand, if registration is to be performed (step S103: Yes), the acquisition unit 102 acquires the specified vehicle image 20A from the storage device of the image processing device 10 or the like (step S105). Next, the registration unit 103 registers the vehicle image 20A acquired in step S105 in the DB (step S106). At this time, the vehicle image 20A acquired in step S105 is displayed on the input form 12.

[0100] Next, the selection unit 104 selects a location on the vehicle image 20A where a defect or the like has occurred (step S107). For example, the reception unit 101 receives a selection input of a location on the input form 12 where a defect or the like has occurred, and the selection unit 104 selects a location on the vehicle image 20A where a defect or the like has occurred in accordance with the selection input.

[0101] Next, the registration unit 103 stores the information on the location where the defect or the like has occurred selected in step S107. Then, the registration unit 103 associates the vehicle image 20A with the information on the location where the defect or the like has occurred and registers them in the DB (step S108), and ends this process.

[0102] Next, a process for outputting the location of the defect or the like will be described with reference to a flowchart shown in FIG.

[0103] First, the processing unit 105 refers to the DB and reads out information that associates the vehicle image 20A to be processed with selection information on the defect occurrence location (step S201). For example, the reception unit 101 receives a designation input of a combination of the vehicle image 20A to be processed and selection information on the defect occurrence location from the user. The processing unit 105 reads out information corresponding to the designation input from the DB.

[0104] Next, the processing unit 105 creates a binary array (1) in the same number as the number of cells selected as the locations where defects or the like have occurred (hereinafter also referred to as selected cells) (step S202). The processing unit 105 may execute the process of step S202 consecutively from step S108 in Fig. 23. In this case, the information associating the vehicle image 20A to be processed with the selection information of the locations where defects or the like have occurred has already been read out, so the process of step S201 is omitted.

[0105] Next, the processing unit 105 reflects the information read out in step S201 in the array (1) created in step S202 (step S203). For example, the processing unit 105 inputs information indicating the column and row positions of the cell selected as the location where the defect or the like occurs, into the array (1) created in step S202.

[0106] Next, for each selected cell, the processing unit 105 determines whether the cells present above, below, to the left and to the right of the selected cell are also selected cells (step S204), and inputs a mark according to the determination result (step S205).

[0107] For example, if the upper cell is not a selected cell (hereinafter also referred to as a non-selected cell), the processing unit 105 inputs T into the array (1) corresponding to the non-selected cell. Similarly, the processing unit 105 inputs B if the lower cell is a non-selected cell, L if the left cell is a non-selected cell, and R if the right cell is a non-selected cell.

[0108] Next, the processing unit 105 creates an array (2) (step S206). Next, the processing unit 105 acquires the coordinate elements of each of the selected cells based on the marks input to the array (1) in step S205 (step S207). Then, the processing unit 105 inputs information on the acquired coordinate elements to the array (2) (step S208). The processing unit 105 performs a process of additionally creating an array (2) according to the acquisition result of the coordinate elements.

[0109] For example, the processing unit 105 searches for the selected cell in the order of horizontal row and vertical column, and judges whether or not there is a mark in the order of Bottom, Left, Top, and Right clockwise. If there is a mark, the processing unit 105 acquires the coordinates of the vertices of the cell corresponding to the mark as coordinate elements. Then, when the processing unit 105 finishes acquiring the coordinate elements corresponding to the mark, it performs a process of deleting the mark from the array (1).

[0110] Also, for example, when there is no mark, the processing unit 105 performs a process of determining whether the shape of the part where the defect or the like occurs spreads in a counterclockwise direction and a process of determining whether the shape of the part where the defect or the like occurs spreads in a straight direction. In this case, the processing unit 105 determines whether there is a mark in a clockwise direction for each corresponding cell depending on which mark is not present.

[0111] After the process of step S208, the processing unit 105 determines whether or not a closed loop is formed by the acquired coordinate elements (S209). For example, when the processing unit 105 acquires a coordinate element that is the same as the coordinate element acquired as the first element, it determines that the acquired coordinate elements form a closed loop.

[0112] If it is not determined that a closed loop is formed (step S209: No), the processing returns to the process of step S207. If it is determined that a closed loop is formed (step S209: Yes), the processing unit 105 performs a process of creating a one-dimensional array (3) (step S210).

[0113] Next, the processing unit 105 inputs the acquired coordinate elements in the form of a character string to the array (3) created in step S210 (step S211). After completing the input, the processing unit 105 performs a process of initializing the array (2) of the selected cells related to the closed loop.

[0114] Next, the processing unit 105 judges whether or not acquisition of all coordinate elements has been completed (step S212). For example, the processing unit 105 judges whether or not all marks in the array (1) have been erased, and if all marks have been erased, it judges that acquisition of all coordinate elements has been completed. On the other hand, if even one mark exists, the processing unit 105 judges that acquisition of coordinate elements has not been completed.

[0115] If acquisition of all coordinate elements has not been completed (step S212: No), the process returns to step S207. For example, the processing unit 105 searches for the selected cell in the order of horizontal row and vertical column, and when the selected cell is found, the processing unit 105 executes the process of step S207 for the selected cell.

[0116] On the other hand, if all coordinate elements have been acquired (step S212: Yes), the processing unit 105 performs a process of merging the closed loops (step S213). For example, if there are multiple closed loops, the processing unit 105 checks the array (3), and if there are shared coordinates between the loops, merges the loops using the shared coordinates. Note that if there is only one closed loop, step S213 is skipped.

[0117] Next, the correction unit 106 corrects the coordinate position of the loop synthesized in step S213 (step S214). For example, the correction unit 106 performs the processes shown in the above-mentioned Figs. 15 to 20 to correct the coordinate position.

[0118] Next, the output unit 107 outputs the loop whose coordinate position has been corrected as the shape of the part where the defect or the like has occurred (step S215). For example, the output unit 107 outputs the shape of the part where the defect or the like has occurred by performing autoshape drawing based on information obtained by converting the position coordinates corrected by the correction unit 106 into a ratio.

[0119] Next, the output unit 107 performs a process of adding a leader line, a defect identification number, and the like to the shape of the defect or the like occurrence location output in step S215 (step S216), and ends this process.

[0120] As described above, the image processing device 10 of this embodiment marks each of the cells included in a selection range selected by a user as the location where a defect or the like occurs with a T, B, L, or R mark depending on whether each of the cells located above, below, left, or right of the cell is within the selection range or not, and obtains the coordinates of the vertices of the cell corresponding to the mark in a predetermined procedure, and outputs the shape formed by connecting the vertices represented by the coordinates as the shape of the location where a defect or the like occurs.

[0121] This allows the user to output the shape of the defect or other occurrence location simply by designating a cell corresponding to the defect or other occurrence location on the input form 12. Therefore, the image processing device 10 according to this embodiment can express the defect or other occurrence location with fewer steps compared to the conventional method of marking the defect or other occurrence location with an elliptical autoshape on an image attached to a spreadsheet software. In other words, the image processing device 10 according to this embodiment can efficiently express the defect or other occurrence location in the prototype of a vehicle part.

[0122] Furthermore, for example, even if the image size of the vehicle image 20A is changed, as long as the aspect ratio is maintained, the size of the shape of the defect occurrence location to be output can be changed in the same way as the vehicle image 20A, so that the relative position of the defect occurrence location on the vehicle image 20A does not change before and after the image size is changed. Here, for example, when a report on the defect occurrence location must be submitted to multiple submission destinations, the designated image size may differ for each submission destination. In this case, in the conventional method, the user must perform a process such as marking with an elliptical autoshape for each image size, which can be very time-consuming. In contrast, in the image processing device 10 according to this embodiment, a report expressing the defect occurrence location according to the image size can be created simply by changing the size of the shape of the defect occurrence location to be output according to the scale of the vehicle image 20A.

[0123] The programs for executing the above-mentioned processes executed by the image processing device 10 of the embodiment may be stored in a HDD (hard disk drive). Also, the programs for executing the above-mentioned processes executed by the image processing device 10 of the embodiment may be provided by being pre-installed in the ROM 11B.

[0124] In addition, the program for executing the above-mentioned processing executed by the image processing device 10 of the above-mentioned embodiment may be stored in an installable or executable format file on a computer-readable storage medium such as a CD-ROM, CD-R, memory card, DVD (Digital Versatile Disk), or flexible disk (FD) and provided as a computer program product.

[0125] The program for executing the above-mentioned processes executed by the image processing device 10 of the above-mentioned embodiment may be stored on a computer connected to a network such as the Internet and provided by being downloaded via the network. The program for executing the above-mentioned processes executed by the image processing device 10 of the above-mentioned embodiment may be provided or distributed via a network such as the Internet.

[0126] Although the embodiment of the present invention has been described above, the embodiment is presented as an example and is not intended to limit the scope of the invention. This new embodiment can be implemented in various other forms, and various omissions, substitutions, and modifications can be made without departing from the gist of the invention. This embodiment and its modifications are included in the scope and gist of the invention, and are included in the scope of the invention and its equivalents described in the claims.

[0127] (Additional Note) Preferred aspects of the present invention will be described below.

[0128] (Appendix 1) According to one aspect of the present invention, there is provided an image processing method for an image processing device, comprising the steps of: An image acquisition step of acquiring an image including a region of interest representing a region of interest on an image; a display control step of superimposing the image and a form composed of a predetermined number of cells on a display device; a selection step of selecting one or more of the cells corresponding to the region of interest on the form in accordance with a user's instruction; a determination step of determining, for each selected selected cell, whether or not each of the cells located above, below, to the left, and to the right of the selected cell is the selected cell; a marking step of marking the selected cell according to the result of the determination to indicate that no other selected cell exists above, below, to the left, or to the right of the selected cell that has been determined; for each of the selected cells, checking the presence or absence of the mark in a first direction from a predetermined vertex of the selected cell; For each of the selected cells, determining the presence or absence of the mark in a first direction, either clockwise or counterclockwise, from a predetermined vertex of the selected cell; If the mark exists, obtain the coordinates of the vertex corresponding to the mark; a coordinate acquisition step of determining, when the mark does not exist, the presence or absence of the mark from a vertex determined to not exist as a starting point toward the first direction for each of a predetermined cell including a vertex located in a second direction opposite to the first direction and a predetermined cell including a vertex located in a third direction perpendicular to the first direction; an output step of outputting a shape formed by connecting the vertices represented by the coordinates as the shape of the region of interest; Includes.

[0129] (Appendix 2) In the image processing method according to the above-mentioned supplementary note 1, The method further includes a correction step of correcting the position information of the coordinates by performing a predetermined process on the acquired position information indicating the position of the coordinates. [Explanation of symbols]

[0130] 10 Image processing device 101 Reception 102 Acquisition Department 103 Registration Department 104 Selection section 105 Processing section 106 Correction section 107 Output section

Claims

[Claim 1] An image processing method by an image processing device, comprising: An image acquisition step of acquiring an image including a region of interest representing a region of interest on an image; a display control step of superimposing the image and a form composed of a predetermined number of cells on a display device; a selection step of selecting one or more of the cells corresponding to the region of interest on the form in accordance with a user's instruction; a determination step of determining, for each selected selected cell, whether or not each of the cells located above, below, to the left, and to the right of the selected cell is the selected cell; a marking step of marking the selected cell according to the result of the determination to indicate that no other selected cell exists above, below, to the left, or to the right of the selected cell that has been determined; for each of the selected cells, determining whether or not the mark is present in a first direction from a predetermined vertex of the selected cell; For each of the selected cells, determining the presence or absence of the mark in a first direction, either clockwise or counterclockwise, from a predetermined vertex of the selected cell; If the mark exists, obtain the coordinates of the vertex corresponding to the mark; a coordinate acquisition step of determining, when the mark does not exist, the presence or absence of the mark from a vertex determined to not exist as a starting point toward the first direction for each of a predetermined cell including a vertex located in a second direction opposite to the first direction and a predetermined cell including a vertex located in a third direction perpendicular to the first direction; an output step of outputting a shape formed by connecting the vertices represented by the coordinates as the shape of the region of interest; An image processing method comprising:

Citation Information

Patent Citations

  • Unified management system for attribute information of construction design drawing

    JP2020087447A