Luggage compartment storage state detection system, luggage compartment storage state detection program, and luggage compartment storage state detection method
The luggage compartment detection system improves accuracy by using machine learning to detect corners and luggage positions, addressing environmental variations and incomplete detection, for precise cargo space and loading ratio calculations.
Patent Information
- Application Number
- JP2022074491
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2022-04-28
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2042-04-28
AI Technical Summary
Existing vehicle luggage condition detection systems require complex pre-compilation of luggage compartment sizes for each vehicle model and are prone to accuracy issues due to environmental variations, such as sunlight reflection, affecting the detection of luggage storage state.
A luggage compartment accommodation state detection system using image analysis with machine learning models to detect corners and luggage positions, complementing corner detection with entire compartment detection to improve accuracy, and calculating loading ratios based on precise compartment and luggage dimensions.
Enhances the accuracy of luggage compartment size calculation and loading ratio determination by correcting for environmental disturbances and incomplete corner detection, ensuring reliable cargo space assessment.
Smart Images

Figure 0007563419000001 
Figure 0007563419000002 
Figure 0007563419000003
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a luggage compartment storage state detection system, a luggage compartment storage state detection program, and a luggage compartment storage state detection method. [Background technology]
[0002] The vehicle luggage status detection device described in Patent Document 1 discloses a device that uses a camera to photograph the interior of a luggage compartment in the bed of a truck, detects the amount of free space in the luggage compartment from the acquired internal image of the luggage compartment, and calculates the loading rate in the luggage compartment based on the detected free space. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2001-334864 A Summary of the Invention [Problem to be solved by the invention]
[0004] However, in the case of the vehicle luggage state detection device, although the size of the free space is calculated using a camera image, the overall size of the luggage compartment needs to be stored in a database for each vehicle model in advance, which is cumbersome. Therefore, the inventors of the present application have considered a system that detects the luggage storage state in the luggage compartment by identifying the size of the luggage as well as the overall size of the luggage compartment from a camera image through image analysis using a machine learning model. The inventors of the present application have found a problem in that in such a system, the detection accuracy by image analysis is deteriorated due to differences between the environment around the luggage compartment during machine learning and the environment around the luggage compartment when detecting the luggage storage state in the luggage compartment, such as the presence or absence of sunlight reflection. [Means for solving the problem]
[0005] The present disclosure can be realized in the following forms.
[0006] (1) According to one embodiment of the present disclosure, a luggage compartment storage state detection system is provided, which detects a luggage storage state in a luggage compartment, and includes: an image acquisition unit that acquires an image obtained by capturing an image of the entire luggage compartment in a predetermined imaging direction while the stored luggage is visible; a corner detection unit that detects a plurality of corners of the luggage compartment from the image acquired by the image acquisition unit using a trained model for corner detection, the corner detection unit being trained using teacher image data obtained by labeling positions of at least two corners diagonally opposite to each other among the plurality of corners of the luggage compartment that is rectangular when viewed in the imaging direction with respect to the image acquired for machine learning; a luggage information acquisition unit that acquires luggage information including information on the position of the luggage in the luggage compartment; and a luggage compartment calculation unit that calculates an area of the entire luggage compartment using diagonal corner position information that is position information of the two corners diagonally opposite to each other in the luggage compartment and the luggage information acquired by the luggage information acquisition unit. According to this luggage compartment storage state detection system, the luggage compartment calculation unit calculates the range of the entire luggage compartment using diagonal corner position information, which is position information of two corners diagonally opposite each other, and luggage information, which includes information on the luggage position. By combining not only the diagonal corner position information but also luggage position information as luggage information, for example, since the luggage position cannot exist outside the luggage compartment, these position information can be compared and corrected to be closer to the correct range, thereby improving the calculation accuracy of the luggage compartment range. (2) In the above-described luggage compartment storage state detection system, the system further includes an entire luggage compartment detection unit that detects the entire luggage compartment from the image acquired by the image acquisition unit using a trained model for detecting the entire luggage compartment, which is trained using teacher image data in which the entire luggage compartment is labeled when viewed in the imaging direction for the image acquired for the machine learning, and the luggage compartment calculation unit may acquire the diagonal corner position information by complementing the position information of the corner of the two corners that was not detected by the corner detection unit using the position information of the entire luggage compartment detected by the entire luggage compartment detection unit. According to this luggage compartment storage state detection system, when the luggage compartment calculation unit calculates the luggage compartment, the position information of the corners not detected by the corner detection unit is complemented by the position information of the entire luggage compartment detected by the entire luggage compartment detection unit to obtain diagonal corner position information. Therefore, even if the corner detection unit cannot detect two corners that are diagonally opposite each other, the entire luggage compartment range can be calculated using the position information of the entire luggage compartment detected by the entire luggage compartment detection unit, so that it is possible to avoid, for example, frequent occurrences in which the luggage compartment calculation process is interrupted due to failure to detect a corner and the same process is repeated from the beginning. (3) In the luggage compartment storage status detection system of the above-described form, the luggage information includes position information of an overall luggage outer shape, which is a virtual rectangular area that includes the entire luggage stored in the luggage compartment when viewed in the imaging direction, and the luggage compartment calculation unit, when the overall luggage outer shape is located outside the rectangular outer shape of the luggage compartment obtained using the diagonal corner position information, calculates the outer shape expanded to include the outside area as the range of the entire luggage compartment, and when the overall luggage outer shape is not located outside the rectangular outer shape of the luggage compartment obtained using the diagonal corner position information, calculates the rectangular outer shape of the luggage compartment obtained using the diagonal corner position information as the range of the entire luggage compartment. According to this embodiment of the luggage compartment storage state detection system, when the overall luggage outer shape is located outside the rectangular luggage compartment outer shape obtained using the diagonal corner position information, the luggage compartment calculation unit calculates the outer shape expanded to include the outside part as the range of the entire luggage compartment, and when the overall luggage outer shape is not located outside the rectangular luggage compartment outer shape obtained using the diagonal corner position information, the luggage compartment calculation unit calculates the rectangular luggage compartment outer shape obtained using the diagonal corner position information as the range of the entire luggage compartment. Specifically, by taking into consideration luggage information that is relatively easy to detect by image analysis, the range of the luggage compartment formed in a rectangular shape based on the diagonal corner position information can be corrected to an area that includes the entire luggage outline so that the range of the luggage compartment is not calculated such that the luggage is cut off. This can further improve the calculation accuracy of the range of the luggage compartment. (4) The luggage compartment storage state detection system of the above aspect may further include a loading rate calculation unit that calculates a loading rate of the luggage in the luggage compartment, the luggage information including information on the dimensions of the luggage, and the loading rate calculation unit may calculate the loading rate by dividing the total area of all the luggage in the luggage compartment when viewed in the imaging direction, which is acquired by the luggage information acquisition unit, by the area of the range of the luggage compartment detected by the luggage compartment calculation unit. According to this aspect of the luggage compartment storage state detection system, the loading rate can be accurately calculated by the loading rate calculation unit using the accurately calculated range of the entire luggage compartment and the luggage information. (5) In the luggage compartment storage state detection system of the above aspect, the luggage information may be detected from the image acquired by the image acquisition unit using a trained model for luggage detection that is machine-learned to learn features of the luggage. According to the luggage compartment storage state detection system of this aspect, luggage information for detecting the luggage compartment storage state can be suitably detected using the trained model for luggage detection. (6) In the luggage compartment storage state detection system of the above embodiment, the luggage compartment may be a luggage compartment provided on the bed of a transport vehicle. According to this luggage compartment storage state detection system, it is possible to detect the luggage storage state in the luggage compartment provided on the bed of a transport vehicle. From the detected storage state, it is possible to obtain information such as how much luggage can be loaded remaining in the luggage compartment of a transport vehicle such as a truck, or how much luggage has been loaded at what point. The present disclosure may be realized in various forms other than the luggage compartment storage state detection system, for example, in the form of a luggage compartment storage state detection method, a luggage compartment storage state detection program, a non-transitory recording medium storing such a program, etc. [Brief description of the drawings]
[0007] [Figure 1] 1 is a block diagram showing a hardware configuration of a luggage compartment storage state detection system according to a first embodiment of the present disclosure. [Diagram 2] 2 is a block diagram showing a functional configuration of the luggage compartment storage state detection system; [Diagram 3] 1 is a side view showing a schematic diagram of a vehicle equipped with a luggage compartment; [Figure 4] 5 is a flowchart showing a processing procedure of a luggage compartment storage state detection method. [Diagram 5] 11A and 11B are diagrams for explaining image processing in corner detection; [Figure 6] 1A and 1B are diagrams for explaining image processing in baggage detection; [Figure 7] 10 is a flowchart showing a processing procedure in a luggage space calculation process. [Figure 8] 11A to 11C are diagrams for explaining an example of image processing in a luggage space calculation process. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0008] A. First embodiment: A luggage compartment storage state detecting system 10 and a luggage compartment storage state detecting method according to a first embodiment of the present disclosure will be described with reference to Figs. 1 to 8. Figs. A1. Configuration of luggage compartment storage state detection system 10: [Hardware configuration of luggage compartment storage state detection system 10] FIG. 1 is a block diagram showing a hardware configuration of a luggage compartment storage state detection system 10 according to a first embodiment of the present disclosure. The luggage compartment storage state detection system 10 according to the present embodiment is configured to include a mobile terminal 12 having a photographing function, such as a smartphone or a tablet. The luggage compartment storage state detection system 10 according to the first embodiment detects a luggage compartment of a vehicle to be described later and luggage in the luggage compartment, and calculates a loading rate, which is the ratio of the luggage to the luggage compartment. The configuration of the vehicle and the details of the loading rate calculation will be described later. In this embodiment, the luggage compartment storage state detection system 10 can be used by starting the application in a state where a dedicated application is installed in advance in the mobile terminal 12.
[0009] 1, the mobile terminal 12 is provided with a control unit 14. The control unit 14 includes a CPU (Central Processing Unit: processor) 16, a ROM (Read Only Memory) 18, a RAM (Random Access Memory) 20, a storage 22 as a storage unit, a communication interface 24, and an input / output interface 26. Each component is connected to each other via a bus 28 so as to be able to communicate with each other.
[0010] The CPU 16 is a central processing unit that executes various programs and controls each part. That is, the CPU 16 reads out the programs from the ROM 18 or the storage 22, and executes the programs using the RAM 20 as a working area. The CPU 16 controls each of the above components and performs various calculation processes according to the programs recorded in the ROM 18 or the storage 22. The storage 22 stores a luggage compartment storage state detection program.
[0011] The storage 22 also stores a trained model for corner detection that detects corners of the luggage compartment from an image including the luggage compartment. This trained model for corner detection is generated by machine learning using teacher image data in which the positions of at least two corners diagonally opposite each other among the multiple corners of the luggage compartment when viewed in the imaging direction are labeled for an image acquired for machine learning that includes the entire luggage compartment. Labeling is a machine learning process that performs labeling on a large amount of raw data obtained from an image, and in this embodiment, it means that a label indicating the position of a corner is associated with a coordinate corresponding to the position of the corner. This trained model for corner detection can detect the positions of multiple corners, including the upper left and lower right corners, for example.
[0012] Furthermore, the storage 22 stores a trained model for luggage detection that detects luggage from an image of a luggage compartment that contains luggage. This trained model for luggage detection is a model that machine-learns the feature amounts of luggage from an image including the entire luggage compartment. The feature amounts of luggage are, for example, brightness that differs depending on the material of the luggage, such as iron, plastic, and paper such as cardboard. The trained model for luggage detection can detect the outer shape indicating the dimensions of multiple luggage based on such feature amounts of luggage.
[0013] Furthermore, the storage 22 stores a trained model for detecting the entire luggage compartment, which detects the entire luggage compartment from an image including the luggage compartment. This trained model for detecting the entire luggage compartment is generated by machine learning using teacher image data in which the position of the entire luggage compartment as viewed in the imaging direction is labeled for an image acquired for machine learning including the entire luggage compartment. This differs from the trained model for detecting corners, which labels the positions of the corners. The trained model for detecting the entire luggage compartment can detect, for example, the positions of the upper left and lower right corners as the position of the entire luggage compartment.
[0014] In addition, the trained model for detecting the entire luggage compartment may have a lower detection accuracy by image analysis than the case where the position of the corner is detected using the trained model for detecting the corner. This is because the position of the entire luggage compartment is labeled during learning, and the positions of the luggage compartment in the images are shifted from each other in many images used as training data, and the sizes, shapes, and loading orders of the luggage loaded in the luggage compartment are diverse, which become disturbances. Therefore, in the first embodiment, the position of the corner is basically detected using the trained model for detecting corners, and for corners that cannot be detected, the position of the corner detected using the trained model for detecting the entire luggage compartment is appropriately complemented to cut out the range of the luggage compartment. Details will be described later.
[0015] The ROM 18 stores various programs and various data. The RAM 20 temporarily stores programs or data as a working area. The storage 22 is configured with an HDD (Hard Disk Drive) or an SSD (Solid State Drive) and stores various programs including an operating system and various data. In this embodiment, the ROM 18 and the storage 22 store a program for performing a loading rate calculation process, various data including data related to the vehicle, and the like.
[0016] The communication interface 24 is an interface for the luggage compartment storage state detection system 10 to communicate with a server and other devices (not shown), and uses standards such as Ethernet (registered trademark), LTE, FDDI, and Wi-Fi (registered trademark).
[0017] A display screen 30 as a display unit, a microphone 32, a speaker 34, and a camera 36 are connected to the input / output interface 26. The display screen 30 is provided on the mobile terminal 12, and displays various information to the user. The display screen 30 also displays image data captured by a camera 36, which will be described later. In this embodiment, as an example, the display screen 30 is a touch panel type, and is configured so that input can be received by touching the content displayed on the display screen 30.
[0018] The microphone 32 and the speaker 34 are provided in the mobile terminal 12 and are used when the user makes a call, etc. The microphone 32 can also be used when the user issues voice instructions, and the speaker 34 can also be used when notifying the user by voice. The camera 36 is provided in the mobile terminal 12 and is configured so that image data captured by the camera 36 is displayed on the display screen 30.
[0019] [Functional configuration of luggage compartment storage state detection system 10] The luggage compartment storage state detection system 10 realizes various functions using the above hardware resources. The functional configuration realized by the luggage compartment storage state detection system 10 will be described with reference to Fig. 2. Fig. 2 is a block diagram showing the functional configuration of the luggage compartment storage state detection system 10. Each functional configuration is realized by the CPU 16 reading and executing a program stored in the storage 22.
[0020] 2, the luggage compartment storage state detection system 10 has a functional configuration including an image acquisition unit 41, a corner detection unit 42, a luggage information acquisition unit 43, an entire luggage compartment detection unit 44, a luggage compartment calculation unit 45, a loading ratio calculation unit 46, and a learning unit 47. The image acquisition unit 41 acquires an image including the entire luggage compartment to be detected by the camera 36. This image is obtained by capturing an image of the entire luggage compartment in a predetermined imaging direction in a state where the loaded luggage is visible.
[0021] The corner detection unit 42 detects corners of the luggage compartment from the image of the luggage compartment acquired by the image acquisition unit 41, using the trained model for corner detection stored in the storage 22. The corner detection unit 42 also outputs position information of the detected corners. Details regarding the output of the corner position information will be described later.
[0022] The luggage information acquisition unit 43 detects luggage information in the luggage compartment from the image of the luggage compartment acquired by the image acquisition unit 41, using a trained model for luggage detection stored in the storage 22. The luggage information includes information on the position of the luggage in the luggage compartment and information on the dimensions of the luggage in the luggage compartment. Furthermore, the luggage information includes position information of the overall luggage outer shape. In this embodiment, the "overall luggage outer shape" refers to a rectangular area in a plan view that includes the entire outer shape of the entire luggage when viewed in the imaging direction, when all the luggage visible when viewed in the imaging direction is virtually regarded as one luggage (hereinafter, "entire luggage") among the multiple luggage contained in the luggage compartment.
[0023] The entire luggage compartment detection unit 44 detects the entire luggage compartment from the image of the luggage compartment acquired by the image acquisition unit 41, using the trained model for detecting the entire luggage compartment stored in the storage 22. In addition, the entire luggage compartment detection unit 44 outputs position information of the corners from the detected entire luggage compartment.
[0024] The cargo room calculation unit 45 detects the range of the cargo room using position information of the corners detected by the corner detection unit 42 or the entire cargo room detection unit 44. Specifically, the cargo room calculation unit 45 has a function of extracting position information of two corners diagonally opposite each other (hereinafter also referred to as "diagonal corner position information"), outputting the range of the cargo room numerically using the diagonal corner position information, and further cutting out the range of the cargo room from the image as a partial image.
[0025] The loading rate calculation unit 46 calculates the loading rate of luggage in the luggage compartment. Specifically, the loading rate is calculated using the range of the luggage compartment detected by the luggage compartment calculation unit 45 and the luggage information in the luggage compartment acquired by the luggage information acquisition unit 43. The learning unit 47 creates an AI model using a neural network based on the captured images of corners, luggage, etc. Note that the specific processing of each functional unit will be described in detail in the luggage compartment storage state detection method described later.
[0026] [Vehicle 50 configuration] 3 is a side view showing a transport vehicle 50 (hereinafter, simply referred to as "vehicle 50") having a luggage compartment 51. Next, the configuration of the vehicle 50 having the luggage compartment 51 that is the detection target of the luggage compartment storage state detection system 10 will be described. The vehicle 50 is, for example, a truck that transports a large amount of luggage 52 loaded thereon.
[0027] As shown in Fig. 3, luggage compartment 51 is located behind driver's cab 58 of vehicle 50, and is formed on luggage platform 57. When luggage 52 is being transported, luggage compartment 51 is covered by side walls 53, 54 in the front-rear direction (left-right direction in Fig. 3) of vehicle 50, a side wall 55 on the right side in the traveling direction, a lower door 56 located on the left side in the traveling direction, and an upper door (not shown).
[0028] The upper door, for example, is an integrated door with a substantially L-shaped cross section formed by a left side wall and a part of the ceiling, and rotates upward to open the luggage compartment 51. The lower door 56 rotates downward from the bottom position of the luggage platform 57 to open the luggage compartment 51. When the lower door 56 and the upper door are open, it is possible to capture an image of the entire luggage compartment 51 including the positions of the four corners of the luggage compartment 51 from the left side of the vehicle 50. In other words, it is possible to obtain an image including the entire luggage compartment 51 in a state in which the loaded luggage 52 is visible. In this embodiment, the predetermined imaging direction coincides with the direction in which the luggage compartment 51 is viewed from the left side of the vehicle 50, as shown in FIG. 3. The outer shape of the luggage compartment 51 is rectangular when viewed in the imaging direction.
[0029] A2. Luggage compartment storage state detection method using luggage compartment storage state detection system 10: Next, a luggage compartment storage state detection method executed by the luggage compartment storage state detection system 10 will be described with reference to Figs. 4 to 8. Fig. 4 is a flowchart showing the processing procedure of the luggage compartment storage state detection method. As shown in Fig. 4, the luggage compartment storage state detection method includes an image acquisition step (step 100, hereinafter "step" will be abbreviated as "S"), a corner detection step (S200), a luggage information acquisition step (S300), an entire luggage compartment detection step (S400), a luggage compartment calculation step (S500), and a loading ratio calculation step (S600), and each of these steps is executed in order.
[0030] In the image acquisition process (S100), a user of the system photographs the entire luggage compartment 51 with the camera 36, and an image Ia (see FIG. 3, hereinafter also simply referred to as "full image Ia of the luggage compartment 51") including the entire luggage compartment 51 is acquired by the function of the image acquisition unit 41. In the corner detection process (S200), the corner detection unit 42 detects the four corners of the luggage compartment 51 from the full image Ia of the luggage compartment 51 acquired in the image acquisition process (S100) (see FIGS. 3 and 5) by using a trained model for corner detection.
[0031] Fig. 5 is a diagram for explaining image processing in corner detection. As shown in Fig. 5, in the corner detection process (S200), four corners Ic1, Ic2, Ic3, and Ic4 of the luggage compartment 51 are detected. In Fig. 5, each corner Ic1, Ic2, Ic3, and Ic4 is illustrated by being surrounded by a double-dashed line frame. In this embodiment, the "corner" refers not only to the four vertices of the rectangle representing the luggage compartment 51, but also to a rectangle including parts of two line segments that intersect at approximately right angles with each other and have such vertices as their end points.
[0032] More specifically, in the corner detection step (S200), position information of each of the corners Ic1, Ic2, Ic3, and Ic4 is acquired. In FIG. 5, when the horizontal direction is the X-axis and the vertical direction perpendicular to the X-axis is the Y-axis, for example, the "position information of the corner Ic1" is the "X, Y coordinates of the corner point C1" shown in FIG. 5. Here, the X, Y coordinates of the upper left corner point C1 are (X1, Y1), the X, Y coordinates of the lower right corner point C2 are (X2, Y2), the X, Y coordinates of the lower left corner point C3 are (X1, Y2), and the X, Y coordinates of the upper right corner point C4 are (X2, Y1). In this embodiment, the corner points C1, C2, C3, and C4 are defined as the center coordinates of each of the corners Ic1, Ic2, Ic3, and Ic4 of the rectangle. The X and Y coordinates of each corner point C1, C2, C3, and C4 are calculated as "position information of corners Ic1, Ic2, Ic3, and Ic4."
[0033] In the luggage information acquisition step (S300), luggage information acquisition unit 43 detects luggage information in luggage compartment 51 from the overall image Ia of luggage compartment 51 acquired in the image acquisition step (S100) using a trained model for luggage detection. FIG. 6 is a diagram for explaining image processing in luggage detection, and shows an image Ib of detected luggage 52. In FIG. 6, the image Ib of each luggage 52 is illustrated surrounded by a two-dot chain line frame. As shown in FIG. 6, in the luggage information acquisition step (S300), the outer shape of each luggage 52 is detected as the image Ib of the multiple luggage 52.
[0034] Furthermore, in the luggage information acquisition step (S300), position information of the overall luggage outer shape, which is the overall position information of the multiple luggage 52 accommodated in the luggage compartment 51, is acquired. The overall luggage outer shape is a rectangular image Ic including all of the luggage 52 accommodated in the luggage compartment when viewed in the imaging direction, as shown by the dashed line in FIG. 6. Specifically, the coordinates of four corners 61, 62, 63, and 64 of the image Ic are calculated as the "position information of the overall luggage outer shape." In practice, a platform-like skid for loading luggage may be interposed between the multiple luggage, and in this case, the entire luggage including the skid can be considered as the "overall luggage outer shape" for calculation.
[0035] In the whole luggage compartment detection step (S400), the whole luggage compartment detection unit 44 detects the luggage compartment 51 from the whole image Ia of the luggage compartment 51 acquired in the image acquisition step (S100) using a trained model for detecting the whole luggage compartment. Specifically, as in the corner detection step (S200), position information of the four corners Ic1, Ic2, Ic3, and Ic4 of the detected luggage compartment 51, i.e., the X and Y coordinates of the corner points C1, C2, C3, and C4, are calculated as position information of the whole luggage compartment. Note that although the corners and corner points detected by the corner detection unit 42 are strictly different from the corners and corner points detected by the whole luggage compartment detection unit 44, for convenience, they will be described with the same reference numerals in the drawings and this specification.
[0036] In the luggage compartment calculation process (S500), the luggage compartment calculation unit 45 extracts the outline of the luggage compartment 51 (image Ir of luggage compartment 51, see FIG. 6) from the X, Y coordinates of two diagonal corner points. Basically, a rectangular image with diagonal corners of upper left corner point C1 (X1, Y1) and lower right corner point C2 (X2, Y2) is cut out as the outline of the luggage compartment 51. However, depending on the corners that have been detected, a rectangular image with diagonal corners of lower left corner point C3 (X1, Y2) and upper right corner point C4 (X2, Y1) may be cut out as the outline of the luggage compartment 51. The luggage compartment calculation process (S500) will be described in detail below with reference to FIG. 7.
[0037] Fig. 7 is a flowchart showing the procedure executed by the luggage compartment calculation unit 45 in the luggage compartment calculation step (S500). As shown in Fig. 7, in the luggage compartment calculation step (S500), first, in S501, it is determined whether or not the corner detection unit 42 has detected two diagonal corners. In S501, if two diagonal corners (the upper left corner Ic1 and the lower right corner Ic2, or the lower left corner Ic3 and the upper right corner Ic4) have been detected (S501: YES), the process proceeds to S502, where diagonal corner position information is obtained.
[0038] On the other hand, in S501, if the corner detection unit 42 cannot detect two corners diagonally opposite each other due to the influence of disturbances such as sunlight at the time of image acquisition (S501: NO), the process proceeds to S503, where it is determined whether or not one corner has been detected. In S503, if one corner has been detected (S503: YES), the process proceeds to S504, where diagonal corner position information is obtained using position information of one or two corners on one side detected by the corner detection unit 42 and position information of the corners detected by the entire luggage compartment detection unit 44 in the entire luggage compartment detection process (S400).
[0039] To give a specific example, if the corner detection unit 42 is able to detect only the upper left corner Ic1, then for the position information of the upper left corner Ic1 (upper left corner point C1), the position information obtained by the corner detection unit 42 is used, and for the position information of the lower right corner Ic2 diagonally opposite the upper left corner Ic1 (lower right corner point C2), the position information of the corner detected by the entire cargo space detection unit 44 in the entire cargo space detection process (S400) is used.
[0040] As another example, when two corners, an upper left corner Ic1 and a lower left corner Ic3, are detected by the corner detection unit 42, for example, the position information of the upper left corner Ic1 obtained by the corner detection unit 42 is used, and for the position information of the lower right corner Ic2 diagonally opposite to the upper left corner Ic1, the position information of the corner detected by the entire luggage compartment detection unit 44 in the entire luggage compartment detection step (S400) is used. Note that the position information of the lower left corner Ic3 detected by the corner detection unit 42 and the position information of the upper right corner Ic4 detected by the entire luggage compartment detection unit 44 may also be used.
[0041] That is, in S504, basically, priority is given to the position information of the corners detected by the corner detection unit 42, and the position information of the corners detected by the entire luggage compartment detection unit 44 is adopted only for corners that could not be detected by the corner detection unit 42. This is because the detection by the corner detection unit 42 using the trained model for corner detection has a smaller range of corners compared to the entire luggage compartment 51, is less susceptible to external disturbances such as sunlight at the time of image capture and the conditions inside the luggage compartment, and has relatively good accuracy in image analysis, compared to the detection by the entire luggage compartment detection unit 44 using the trained model for entire luggage compartment detection.
[0042] In S503, if not even one corner is detected (S503: NO), the process proceeds to S505, where diagonal corner position information is obtained from the position information detected by the entire luggage compartment detection unit 44. Basically, since the position information of four corners is obtained by the entire luggage compartment detection unit 44, from among this, for example, the X and Y coordinates of the upper left corner point C1 and the lower right corner point C2 are obtained. As described above, in each of the processes of S502, S504, and S505, diagonal corner position information is obtained by the corner detection unit 42 or the entire luggage compartment detection unit 44.
[0043] After the diagonal corner position information is acquired in the processes of S502, S504, and S505, it is determined in S506 whether or not the luggage 52 has been detected outside the luggage compartment 51. This determination is made based on whether or not the X and Y coordinates of the four corners 61, 62, 63, and 64 of the image Ic of the overall luggage outline acquired in the luggage information acquisition step (S300) are outside a rectangular image formed by two diagonal points as two vertices, based on the diagonal corner position information acquired in the processes of S502, S504, and S505.
[0044] In S506, if the luggage 52 is detected outside the luggage compartment 51 (S506: YES), the process proceeds to S507, where the luggage compartment is cut out taking into consideration the coordinates of the luggage 52. Specifically, an outer shape expanded to include the coordinates of the luggage present outside is calculated as the range of the entire luggage compartment. Further details will be described later.
[0045] On the other hand, in S506, if the luggage 52 is not detected outside the luggage compartment 51 (S506: NO), the process proceeds to S508, where the luggage compartment is cut out based on the diagonal corner position information acquired in S502, S504, and S505. In other words, the rectangular luggage compartment acquired using the diagonal corner position information is calculated as the range of the entire luggage compartment.
[0046] Actually, the luggage 52 should be inside the luggage compartment 51, and the rectangular image Ic based on the position information of the overall luggage outer shape should be inside the image Ir of the luggage compartment 51, as shown in Fig. 6. Fig. 8 is a diagram for explaining an example of the image processing in S506. Fig. 8 shows an example in which the width of the image Ic of the overall luggage outer shape shown by the dashed line is outside the rectangular outer shape of the image Ir of the luggage compartment 51 shown by the dashed line obtained using the diagonal corner position information.
[0047] Detection of luggage 52 is easy and less susceptible to disturbances during shooting compared to detection of corners and luggage compartment 51, so detection errors due to image analysis are less likely to occur. Therefore, since the detected image Ic of the overall luggage outer shape is generally correct, if the image Ic of the overall luggage outer shape is outside the image Ir of the luggage compartment 51 acquired using diagonal corner position information, it can be assumed that the luggage 52 is cut off in the image Ir of the luggage compartment 51. In S506, it is checked whether such cut-off of luggage 52 has occurred.
[0048] In the case of the detection result shown in Fig. 8, the correct width of the luggage compartment 51 is considered to be the width in the image Ic of the overall luggage outer shape. As for the fact that the vertical width of the image Ic of the overall luggage outer shape is small, it is considered that luggage 52 simply does not exist above, so the vertical width of the image Ir of the luggage compartment 51 is used. As described above, when luggage 52 is detected outside the image Ir of the luggage compartment 51, a rectangular shape corrected to include the image Ic of the overall luggage outer shape is cut out as the final range of the luggage compartment 51.
[0049] In the example of FIG. 8, the range of the luggage compartment 51 that is finally cut out is a rectangular range If whose diagonal is the lower right corner 62 in the image Ic of the overall luggage outline and an upper left corner point 65 whose X coordinate is the upper left corner point C1 in the image Ir of the luggage compartment 51, which is the X coordinate of the upper left corner 61 (or the lower left corner 63) in the image Ic of the overall luggage outline.
[0050] Referring again to FIG. 4, in the loading rate calculation step (S600), the loading rate calculation unit 46 calculates the loading rate based on the image Ir of the luggage compartment 51 detected in the luggage compartment calculation step (S500) described above in detail and the image Ib of the plurality of luggage 52 detected in the luggage information acquisition step (S300). The loading rate is calculated by dividing the total area of all luggage 52 in the luggage compartment 51 when viewed in the imaging direction by the area of the range of the luggage compartment 51 detected by the luggage compartment calculation unit 45. As a specific image processing, the loading rate can be calculated by filling the images Ib of all luggage 52 loaded in the vehicle with black and dividing the number of filled pixels by the number of pixels in the image Ir of the luggage compartment 51.
[0051] A3.Effects: (1) In the luggage compartment storage state detection system 10 and luggage compartment storage state detection method of the first embodiment, in the luggage compartment calculation step (S500), if the image Ic of the overall luggage outline exists outside the rectangular image formed by the diagonal corner position information, the outline expanded to include the overall luggage outline is calculated as the range of the entire luggage compartment. That is, using the diagonal corner position information and the luggage information, the range of the luggage compartment 51 finally calculated is corrected by the luggage information so that the range of the luggage compartment 51 is not calculated such that the luggage 52 is not cut off. This improves the calculation accuracy of the range of the luggage compartment 51.
[0052] (2) In addition, since the loading rate of the luggage 52 is calculated based on the accurately detected range of the luggage compartment 51, the loading rate can be calculated more accurately.
[0053] (3) In the luggage compartment storage state detection system 10 and luggage compartment storage state detection method of the first embodiment, as shown in each process of S501 to S505 in the luggage compartment calculation step (S500), when the corner detection unit 42 cannot detect a diagonal corner and cannot obtain diagonal corner position information, the diagonal corner position information is obtained from the position information detected by the luggage compartment overall detection unit 44. In this way, the position information of the corner that could not be detected by the corner detection unit 42 is complemented by the position information detected by the luggage compartment overall detection unit 44. Therefore, even when the corner detection unit 42 cannot detect two corners that are diagonally opposite each other, it is not necessary to repeat the process or interrupt the calculation process until they can be correctly detected, and the luggage compartment 51 can be suitably calculated.
[0054] (4) According to the luggage compartment storage state detection system 10 and luggage compartment storage state detection method of the first embodiment, it is possible to obtain information such as the remaining loading space in the luggage compartment 51 or the amount of luggage 52 loaded at which point from the calculated loading rate as the storage state.
[0055] B. Other embodiments: (B1) The luggage compartment storage state detection system 10 and luggage compartment storage state detection method of the first embodiment can be used by activating a dedicated application installed in advance on the mobile terminal 12. Alternatively, the user's smartphone or tablet may be configured to only take an image of the luggage compartment 51 and transmit the image to a general computer having a processor and memory as a system management terminal, and various programs may be executed in the destination computer to perform processes such as corner detection, luggage information acquisition, overall luggage compartment detection, luggage compartment calculation, and loading rate calculation. In this case, the processing results may be returned to the user's smartphone or tablet.
[0056] (B2) In the luggage compartment storage state detection system 10 and luggage compartment storage state detection method of the first embodiment, the luggage compartment 51 of the vehicle 50 is the detection target, but the luggage compartment 51 is not limited to what the vehicle 50 has. The luggage compartment 51 may be, for example, a chute in which parts are appropriately stored and supplied in a production factory for the vehicle 50 parts.
[0057] (B3) The luggage compartment storage state detection system 10 and luggage compartment storage state detection method of the first embodiment have the loading rate calculation unit 46 and perform the loading rate calculation, but the loading rate calculation may not be performed without the loading rate calculation unit 46. For example, the system may only detect the position of the luggage 52 in the luggage compartment 51 as the luggage compartment storage state.
[0058] (B4) In the luggage compartment storage state detection system 10 and luggage compartment storage state detection method of the first embodiment described above, the image acquisition unit 41 acquires an image including the entire luggage compartment to be detected using the camera 36 possessed by the luggage compartment storage state detection system 10, but an image captured by another camera may also be acquired via the communication interface 24.
[0059] (B5) The luggage compartment storage state detection system 10 of the first embodiment does not need to have the luggage compartment entire detection unit 44. Even in this case, the accuracy of calculation of the range of the luggage compartment 51 can be improved by correcting the range of the luggage compartment 51 using the diagonal corner position information obtained by the corner detection unit 42 and the luggage information so that the range of the luggage compartment 51 is not calculated such that the luggage 52 is cut off. Furthermore, the "position of the luggage" as luggage information may use, for example, the coordinates of one corner of the overall luggage outline.
[0060] The present disclosure is not limited to the above-mentioned embodiments, and can be realized in various configurations without departing from the spirit of the present disclosure. For example, the technical features in each embodiment corresponding to the technical features in each form described in the Summary of the Invention column can be appropriately replaced or combined in order to solve some or all of the above-mentioned problems or to achieve some or all of the above-mentioned effects. Furthermore, if a technical feature is not described as essential in this specification, it can be appropriately deleted. [Explanation of symbols]
[0061] 10... luggage compartment storage status detection system, 12... mobile terminal, 14... control unit, 16... CPU, 18... ROM, 20... RAM, 22... storage, 24... communication interface, 26... input / output interface, 28... bus, 30... display screen, 32... microphone, 34... speaker, 36... camera, 41... image acquisition unit, 42... corner detection unit, 43... luggage information acquisition unit, 44... luggage compartment overall detection unit, 45... luggage compartment calculation unit, 46... loading rate calculation unit, 47... learning unit, 50... transport vehicle Car, 51... luggage compartment, 52... luggage, 53, 54, 55... side wall, 56... lower door, 57... luggage platform, 58... driver's cab, 61, 62, 63, 64... corner, 65... upper left corner point, C1... upper left corner point, C2... lower right corner point, C3... lower left corner point, C4... upper right corner point, Ia... overall image, Ib... image of luggage, Ic... image of overall luggage outline, Ic1... upper left corner, Ic2... lower right corner, Ic3... lower left corner, Ic4... upper right corner, Ir... image of luggage compartment
Claims
1. A luggage compartment storage state detection system for detecting a luggage storage state in a luggage compartment, an image acquisition unit that acquires an image obtained by capturing an image of the entire luggage compartment in a predetermined imaging direction in a state in which the luggage contained therein is visible; a corner detection unit that detects multiple corners of the luggage compartment from the image acquired by the image acquisition unit using a trained model for corner detection, the trained model for corner detection being trained using teacher image data obtained by labeling positions of at least two corners that are diagonally opposite each other among the multiple corners of the luggage compartment that form a rectangular shape when viewed in the imaging direction for the image acquired for machine learning; a luggage information acquisition unit that acquires luggage information including information regarding a position of the luggage in the luggage compartment; a luggage compartment calculation unit that calculates an area of the entire luggage compartment using diagonal corner position information, which is position information of the two corners diagonally opposite to each other in the luggage compartment, and the luggage information acquired by the luggage information acquisition unit; A luggage compartment storage status detection system comprising:
2. The image acquisition unit further includes an entire luggage compartment detection unit that detects the entire luggage compartment from the image acquired by the image acquisition unit using a trained model for detecting the entire luggage compartment, the trained model being trained using teacher image data in which the entire luggage compartment is labeled when viewed in the imaging direction for the image acquired for the machine learning. The luggage compartment calculation unit is 2. The luggage compartment storage state detection system according to claim 1, wherein the position information of the corner of the two corners that is not detected by the corner detection unit is complemented by the position information of the entire luggage compartment detected by the entire luggage compartment detection unit to obtain the diagonal corner position information.
3. The luggage information includes position information of an overall luggage outer shape portion, which is a virtual portion that forms a rectangular shape including the entire luggage accommodated in the luggage compartment when viewed in the imaging direction, The luggage compartment calculation unit is When the overall luggage outer shape portion is located outside the rectangular outer shape of the luggage compartment obtained using the diagonal corner position information, the outer shape is expanded to include the outside portion and calculated as the range of the entire luggage compartment; 3. The luggage compartment storage status detection system of claim 2, wherein when the overall luggage outer shape is not located outside the rectangular outer shape of the luggage compartment obtained using the diagonal corner position information, the rectangular outer shape of the luggage compartment obtained using the diagonal corner position information is calculated as the range of the entire luggage compartment.
4. A loading rate calculation unit is further provided for calculating a loading rate of the luggage in the luggage compartment, The package information includes information regarding dimensions of the package, The loading rate calculation unit is The luggage compartment storage status detection system according to any one of claims 1 to 3, wherein the loading rate is calculated by dividing the total area of all the luggage in the luggage compartment when viewed in the imaging direction, which is acquired by the luggage information acquisition unit, by the area of the range of the luggage compartment detected by the luggage compartment calculation unit.
5. A luggage compartment storage status detection system as described in any one of claims 1 to 3, wherein the luggage information is detected from the image acquired by the image acquisition unit using a trained model for luggage detection that has been machine-learned to learn features of the luggage.
6. 4. The luggage compartment storage state detection system according to claim 1, wherein the luggage compartment is a luggage compartment provided on a bed of a transport vehicle.
7. A luggage compartment storage state detection program for detecting a luggage storage state in a luggage compartment, a function of acquiring an image obtained by imaging the entirety of the luggage compartment in a predetermined imaging direction in a state in which the loaded luggage is visible; A function of detecting the multiple corners of the luggage compartment from the acquired image using a trained model for corner detection trained using teacher image data in which the positions of at least two corners diagonally opposite each other among the multiple corners of the luggage compartment that form a rectangular shape when viewed in the imaging direction are labeled for the image acquired for machine learning, the trained model for corner detection being trained using teacher image data obtained by labeling the positions of at least two corners diagonally opposite each other among the multiple corners of the luggage compartment that form a rectangular shape when viewed in the imaging direction for the image acquired for machine learning; acquiring luggage information including information regarding a position of the luggage in the luggage compartment; a function of calculating an area of the entire luggage compartment using diagonal corner position information, which is position information of the two corners diagonally opposite to each other in the luggage compartment, and the luggage information; A luggage compartment storage status detection program that enables a computer to achieve the above.
8. A luggage compartment storage state detection method for detecting a luggage storage state in a luggage compartment using a luggage compartment storage state detection system, comprising: The luggage compartment storage state detection system includes an image acquisition unit, a corner detection unit, a luggage information acquisition unit, and a luggage compartment calculation unit. Equipped with an image acquisition step of acquiring an image obtained by imaging an entirety of the luggage compartment in a state in which the loaded luggage is visible, in a predetermined imaging direction, by the image acquisition unit; a corner detection process in which the corner detection unit detects multiple corners of the luggage compartment from the image acquired by the image acquisition unit using a trained model for corner detection, the trained model for corner detection being trained using teacher image data obtained by labeling positions of at least two corners diagonally opposite each other among the multiple corners of the luggage compartment that form a rectangular shape when viewed in the imaging direction for the image acquired for machine learning; a luggage information acquisition step of acquiring luggage information including information regarding a position of the luggage in the luggage compartment by the luggage information acquisition unit; a luggage compartment calculation step of calculating an area of the entire luggage compartment by using diagonal corner position information, which is position information of the two corners diagonally disposed in the luggage compartment, and the luggage information acquired by the luggage information acquisition unit; A method for detecting a luggage compartment storage state comprising:
Citation Information
Patent Citations
Detector for vehicle cargo condition
JP2001334864A
Device for measuring truck loading capacity, and measuring method
JP2005233643A
Luggage space monitoring system and luggage space monitoring method
JP2020060451A
Vehicle allocation support system, computer, terminal, vehicle allocation support method, and program
JP2021082195A
Loading space recognition device, loading space recognition method, and loading space recognition program
JP2021189666A
