Detection apparatus, detection method, and computer program
The detection device corrects bounding boxes using state estimation and error determination to address blurring issues, ensuring complete coverage and accurate feature point detection of moving objects.
Patent Information
- Application Number
- JP2023064808
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-12
- Publication Date
- 2024-10-25
AI Technical Summary
Conventional bounding boxes fail to accurately detect feature points of moving objects due to blurring caused by high-speed movement or poor imaging conditions, leading to incomplete coverage and inaccurate detection.
A detection device that includes processes for generating and correcting bounding boxes based on state estimation and error determination, adjusting box sizes to ensure complete image area coverage, using methods like Kalman filters and machine learning to detect feature points.
Ensures accurate detection of feature points by generating bounding boxes that encompass the entire image area of moving objects, even under challenging conditions, improving detection precision.
Smart Images

Figure 2024151463000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a detection device, a detection method, and a computer program. [Background technology]
[0002] Conventionally, a bounding box has been used to acquire feature points of a moving object such as a person. A bounding box is a rectangular boundary frame that surrounds an image area of a moving object in an image. An area surrounded by the bounding box is cut out from the image, and feature points of the moving object are detected using the image of the cut-out area (see, for example, Patent Document 1). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Patent Publication No. 2022-178935 Summary of the Invention [Problem to be solved by the invention]
[0004] A bounding box is generated for an image region of a moving object detected in the image. However, if the moving object is moving at high speed or if the imaging conditions are not good, the image area of the moving object may be blurred, and it may not be possible to set a bounding box that includes the entire image area.
[0005] If the size of the bounding box cannot be set appropriately so as to include the entire image area, feature points of a moving object cannot be detected with high accuracy. For this reason, a technique that can appropriately set the size of the bounding box is desired. [Means for solving the problem]
[0006] The detection device of the embodiment includes a processing unit that executes a first process of acquiring a moving image in which a moving object is captured, a second process of detecting an image area of the moving object in an image included in the moving image, a third process of generating a bounding box based on the image area, a fourth process of determining a state of the bounding box or a state of the moving object, a fifth process of generating a corrected bounding box by correcting the size of the bounding box depending on the determination result of the fourth process, and a sixth process of detecting feature points of the moving object using a partial image of the image that is surrounded by the corrected bounding box. Effect of the Invention
[0007] According to the present disclosure, a bounding box of an appropriate size can be generated. [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 is a diagram showing the overall configuration of a motion analysis system according to an embodiment. [Diagram 2] FIG. 2 is a flowchart showing the procedure of motion analysis using the motion analysis system. [Diagram 3] FIG. 3 is a flowchart showing the joint point detection process according to the first embodiment. [Figure 4] FIG. 4 is a diagram for explaining a state in which a bounding box is generated for an image included in a video. [Diagram 5] FIG. 5 is a diagram for explaining how the processing unit determines the estimated dimensions and errors of the bounding box. [Figure 6] FIG. 6 is a diagram showing a state in which the provisionally corrected bounding box obtained by correcting the first bounding box shown in FIG. 4 overlaps with the second bounding box. [Figure 7] FIG. 7 is a diagram showing an example of a partial image. [Figure 8] FIG. 8 is a flowchart showing the joint point detection process according to the second embodiment. [Figure 9] FIG. 9 is a diagram showing a provisional corrected bounding box according to this embodiment. [Figure 10] FIG. 10 is a flowchart showing a joint point detection process when the walking phase is used as the state of a person. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] First, the contents of the embodiment will be listed and described. [Overview of the embodiment] (1) A detection device according to an embodiment includes a processing unit that executes a first process of acquiring a moving image in which a moving object is captured, a second process of detecting an image area of the moving object in an image included in the moving image, a third process of generating a bounding box based on the image area, a fourth process of determining a state of the bounding box or a state of the moving object, a fifth process of generating a corrected bounding box by correcting the size of the bounding box depending on a determination result of the fourth process, and a sixth process of detecting feature points of the moving object using a partial image of the image that is surrounded by the corrected bounding box.
[0010] According to the above configuration, even if it is possible that a bounding box that includes the entire image area of the moving object cannot be generated because the moving object is moving at high speed or the imaging conditions are not good when capturing a moving image, a corrected bounding box is generated in which the size of the bounding box is corrected depending on the state of the bounding box or the result of determining the state of the moving object, so that a bounding box of an appropriate size can be obtained.
[0011] (2) In the above detection device, when the state of the bounding box includes an error between the estimated dimensions of the bounding box obtained by state estimation and the dimensions of the bounding box, it is preferable that in the fourth process, the state of the bounding box is determined by comparing the error with a predetermined threshold value.
[0012] (3) In the detection device, the size of the corrected bounding box may be determined based on the estimated dimensions and the error. In this case, if a value based on the error is added to the estimated dimensions of the bounding box, the size of the corrected bounding box can be set to be larger than the estimated dimensions of the bounding box, thereby generating a corrected bounding box that can include the entire image area of the moving object.
[0013] (4) In the above detection device, when the state of the moving object includes a moving speed of the moving object, the fourth process may determine the state of the bounding box by comparing the moving speed with a predetermined threshold value. In this case, a corrected bounding box can be generated according to the moving speed of the moving object.
[0014] (5) In the above detection device, when the moving object is a person walking, the state of the moving object may include a walking phase of the moving object. In this case, a corrected bounding box can be generated depending on the walking phase.
[0015] (6) In the above detection device, it is preferable that the fifth process includes a process of generating a provisionally corrected bounding box that is corrected so that its size is larger than the bounding box depending on the determination result of the fourth process, a process of calculating the degree of overlap between the provisionally corrected bounding box and a bounding box other than the bounding box, and a process of setting the provisionally corrected bounding box as the corrected bounding box, or a process of correcting the provisionally corrected bounding box so that its size is smaller and re-performing the process of calculating the degree of overlap depending on the degree of overlap. In this case, the provisional corrected bounding box can be corrected until the degree of overlap is equal to or less than a predetermined threshold, and a corrected bounding box with a reduced degree of overlap can be obtained.
[0016] (7) Another embodiment is a detection method for detecting feature points of a moving object, the detection method including a first step of acquiring a moving image in which the moving object is captured, a second step of detecting an image area of the moving object in an image included in the moving image, a third step of generating a bounding box based on the image area, a fourth step of determining a state of the bounding box or a state of the moving object, a fifth step of generating a corrected bounding box by correcting the size of the bounding box according to a result of the determination in the fourth step, and a sixth step of detecting feature points of the moving object using a partial image of the image surrounded by the corrected bounding box.
[0017] (8) Also, an embodiment from another viewpoint is a computer program for causing a computer to execute a detection process for detecting feature points of a moving object. The computer program causes a computer to execute a first step of acquiring a moving image in which the moving object is captured, a second step of detecting an image area of the moving object from an image included in the moving image, a third step of generating a bounding box based on the image area, a fourth step of determining a state of the bounding box or a state of the moving object, a fifth step of generating a corrected bounding box by correcting the size of the bounding box according to a result of the determination in the fourth step, and a sixth step of detecting feature points of the moving object using a partial image of the image surrounded by the corrected bounding box.
[0018] [Details of the embodiment] Hereinafter, preferred embodiments will be described with reference to the drawings. [Overall structure] FIG. 1 is a diagram showing the overall configuration of a motion analysis system according to an embodiment. A motion analysis system 1 according to the embodiment is a system that captures an image of a person, which is a moving object, and performs motion analysis of the person based on the captured video.
[0019] The motion analysis system 1 includes a camera 2 and a processing device 4. The camera 2 is an imaging device having an imaging element such as a CCD element or a CMOS element, and an optical mechanism such as a lens. The camera 2 has a function of capturing an image of a predetermined imaging range and generating two-dimensional image data such as a moving image or a still image. The camera 2 captures persons M1 and M2 within the imaging range as subjects, and generates a moving image in which persons M1 and M2 are captured. Note that persons M1 and M2 may be collectively referred to as person M. The camera 2 is communicatively connected to the processing device 4. Video images generated by the camera 2 are provided to the processing device 4 as data.
[0020] The processing device 4 is configured by a computer or the like that includes a processing unit 6, a storage unit 8, and an input / output unit 10. The processing unit 6 is composed of, for example, a CPU (Central Processing Unit).
[0021] The storage unit 8 is, for example, a flash memory, a hard disk, a ROM (Read Only Memory), a RAM (Random Access Memory), or the like. The storage unit 8 stores computer programs and necessary information to be executed by the processing unit 6. The processing unit 6 executes computer programs stored in a computer-readable non-transitory recording medium such as the storage unit 8, thereby realizing various processing functions of the processing unit 6.
[0022] The input / output unit 10 includes an input device and an output device. The input device has a function of accepting operations by an operator of the processing device 4. The input device includes a keyboard, a mouse, a touch panel, etc. The output device has a function of outputting various information related to processing by the processing device 4 to the outside. The output device includes a monitor, a printer, a touch panel, a speaker, etc.
[0023] FIG. 2 is a flowchart showing the procedure of motion analysis using the motion analysis system 1. In the motion analysis, first, an image of the person M is captured by the camera 2 (step S1 in FIG. 2). The captured moving image of the person M is provided to the processing device 4. The processing unit 6 of the processing device 4 detects joint points, which are characteristic points of the person M, based on the moving image (step S2 in FIG. 2). Next, the processing device 4 grasps the movement of the person M based on the detected joint points and performs a movement analysis (step S3 in FIG. 2). The processing device 4 outputs the result of the motion analysis to the outside via the input / output unit 10 (step S4).
[0024] Here, the processing device 4 has a function of detecting joint points of the person M. In other words, the processing device 4 constitutes a detection device that detects joint points (feature points) of a person (moving object). The process of detecting joint points by the processing device 4 will be described below.
[0025] [Regarding detection processing according to the first embodiment] FIG. 3 is a flowchart showing the joint point detection process according to the first embodiment. In the joint point detection process, the processing unit 6 of the processing device 4 first acquires a moving image of the person M captured by the camera 2 (step S10 in FIG. 3: first process). Next, the processing unit 6 detects the image area of the person M in a plurality of images included in the video (step S11 in FIG. 3: second processing), and generates a bounding box (step S12 in FIG. 3: third processing).
[0026] FIG. 4 is a diagram for explaining a state in which a bounding box is generated for an image included in a video. 4, the video 14 acquired by the processing unit 6 includes a plurality of images 16. The plurality of images 16 are successive in time series. In this embodiment, the moving image 14 is a moving image captured of two moving persons, a person M1 (first moving object) and a person M2 (second moving object). Therefore, the plurality of images 16 each include an image of a person M1 and an image of a person M2.
[0027] The processing unit 6 detects all people captured in each of the multiple images 16. Thus, the processing unit 6 detects a first image area A1 of person M1 and a second image area A2 of person M2. The first image area A1 and the second image area A2 may be collectively referred to as image area A. In the following explanation, processing is described for one image area A (first image area A1) in one image 16a, but the processing unit 6 performs the same processing for each of the multiple first image areas A1 and multiple second image areas A2 contained in the multiple images 16.
[0028] The processing unit 6 detects an image area A of a person M from the image 16 using a technique that utilizes machine learning. Upon detecting an image area A of person M, the processing unit 6 generates a bounding box in the image 16 . The processor 6 sets a bounding box for each of the image regions A1 and A2. The bounding box is a rectangular boundary line that surrounds the image region A.
[0029] 4, in one image 16a, a first image region A1 is surrounded by a first bounding box B1. A second image region A2 is surrounded by a second bounding box B2. The first bounding box B1 and the second bounding box B2 may be collectively referred to as a bounding box B.
[0030] The processing unit 6 generates a bounding box B based on the image region A. For example, in FIG. 4, when the pixels constituting the image 16a can be specified by XY coordinates, the processing unit 6 generates a rectangular first bounding box B1 composed of a pair of straight lines parallel to the Y axis passing through the maximum and minimum values of the X coordinate in the first image region A1, and a pair of straight lines parallel to the X axis passing through the maximum and minimum values of the Y coordinate in the first image region A1. A second bounding box B2 is generated in a similar manner.
[0031] If person M is moving at high speed when the moving image 14 is captured or if the capturing conditions are not good, the processing unit 6 may not be able to generate a bounding box B that surrounds the image area A with high accuracy. If person M is moving at high speed when capturing an image, blurring may occur in image area A, and the contour of image area A may not appear clearly. For this reason, processing unit 6 may generate bounding box B with a smaller range than the actual image area A. Therefore, the processing unit 6 of this embodiment determines the state of bounding box B, and depending on the determination result, selects either to continue processing using bounding box B, or to generate a corrected bounding box by correcting the size of bounding box B.
[0032] After generating the bounding box B, the processing unit 6 first obtains the estimated dimensions and error of the bounding box B (step S13 in FIG. 3). FIG. 5 is a diagram for explaining how the processing unit 6 determines the estimated dimensions and errors of the bounding box B. In FIG.
[0033] The processing unit 6 obtains the estimated dimensions of the first bounding box B1 by state estimation. That is, in this embodiment, the estimated dimensions of the first bounding box B1 are the dimensions of the first bounding box B1 obtained by state estimation. 5, the dimensions of a current first bounding box B1 defined for a first image region A1 of person M1 in image 16 include a width w and a height h. The width w is the dimension of the X coordinate (X direction) of the first bounding box B1. The height h is the dimension of the Y coordinate (Y direction) of the first bounding box B1.
[0034] After obtaining the width w and height h of the current first bounding box B1, the processing unit 6 obtains estimated dimensions of the first bounding box B1 using a Kalman filter. The estimated dimensions include an estimated width we and an estimated height he. The estimated width we is an estimated value of the width w. The estimated height he is an estimated value of the height h. The processing unit 6 performs state estimation using a Kalman filter, using the estimated dimensions (estimated width we and estimated height he) of the first bounding box B1 of the past image 16 (the image 16 at the immediately previous timing) and the current dimensions (width w and height h) of the first bounding box B1. The processing unit 6 obtains the estimated dimensions of the current first bounding box B1 through this state estimation.
[0035] In FIG. 5, a first bounding box B1 that is set small relative to the image region A is shown. Moreover, the estimated width we and estimated height he, which are the estimated dimensions calculated by the processing unit 6, are greater than the width w and height h. After determining the estimated dimensions, the processing unit 6 determines the error of the first bounding box B1. The error of the first bounding box B1 is the error relative to the estimated dimensions of the first bounding box B1. The processing unit 6 calculates the standard deviation σw of the difference between the estimated width we and the width w. Moreover, the processing unit 6 calculates the standard deviation σh of the difference between the estimated height he and the height h. The processing unit 6 obtains the standard deviation σw and the standard deviation σh as the error of the first bounding box B1. In this embodiment, the standard deviation σw is the absolute value of the difference between the estimated width we and the width w. The standard deviation σh is the absolute value of the difference between the estimated height he and the height h.
[0036] After determining the error of the first bounding box B1, the processing unit 6 then compares the error (standard deviation σw and standard deviation σh) with a predetermined threshold value to determine the state of the first bounding box B1. More specifically, the processing unit 6 determines whether or not the standard deviation σw is smaller than a predetermined threshold Tw and the standard deviation σh is smaller than a predetermined threshold Th (step S14 in FIG. 3: fourth process). If the standard deviation σw is smaller than the predetermined threshold Tw and the standard deviation σh is smaller than the predetermined threshold Th, the processing unit 6 proceeds to step S21 in Fig. 3, cuts out an area portion surrounded by the first bounding box B1 from the image 16 as a partial image, and further detects joint points, which are characteristic points of the person M1, using the partial image (step S22 in Fig. 3), and ends the process. Step S22 in Fig. 3 will be described later.
[0037] The thresholds Tw and Th are set to values that allow it to be determined that the first bounding box B1 surrounds the first image region A1. Therefore, when the standard deviation σw and the standard deviation σh satisfy the condition in step S14 in Fig. 3, it can be determined that the first bounding box B1 surrounds the first image area A1. Therefore, the processing unit 6 cuts out a partial image by the first bounding box B1 and detects joint points.
[0038] If the standard deviation σw and the standard deviation σh do not satisfy the conditions of step S14 in FIG. 3, the processing unit 6 generates a corrected bounding box by correcting the size of the first bounding box B1 (fifth process), cuts out the area surrounded by the corrected bounding box as a partial image (step S21 in FIG. 3), and further detects joint points, which are characteristic points of person M1, using the partial image (step S22 in FIG. 3), and terminates the processing.
[0039] More specifically, if the standard deviation σw and the standard deviation σh do not satisfy the condition in step S14 in FIG. 3, the processing unit 6 proceeds to step S15 in FIG. 3 and generates a provisional corrected bounding box. The provisionally corrected bounding box is a bounding box obtained by correcting the first bounding box B1. The processing unit 6 generates the provisionally corrected bounding box in place of the first bounding box B1.
[0040] As shown in FIG. 5, the provisional bounding box BT1 is set to be larger than the size of the first bounding box B1. The dimensions of the provisional corrected bounding box BT1 are calculated based on the estimated dimensions and errors of the first bounding box B1. More specifically, the width wt of the provisional corrected bounding box BT1 is expressed by the following formula (1). Moreover, the height ht of the provisional corrected bounding box BT1 is expressed by the following formula (2). wt = we + n × σw (1) ht = he + n × σh (2)
[0041] In the above formulas (1) and (2), n is a coefficient, and in this embodiment, the coefficient n is a positive real number. The initial value of the coefficient n is "3". Furthermore, the position of the center of gravity of the provisional corrected bounding box BT1 coincides with the position of the center of gravity of the first bounding box B1, that is, the position of the provisional corrected bounding box BT1 is set based on the position of the center of gravity of the first bounding box B1. If the provisional corrected bounding box BT1 satisfies a certain condition n, it is determined to be a corrected bounding box BA1.
[0042] After generating the provisional bounding box BT1, the processing unit 6 determines whether or not there is another bounding box that overlaps with the provisional bounding box BT1 (step S16 in FIG. 3). In step S16, when it is determined that there is another bounding box that overlaps with the provisionally corrected bounding box BT1, the processing unit 6 calculates the IoU (Intersection over Union) between the provisionally corrected bounding box BT1 and the other bounding box (step S17 in FIG. 3). IoU is a number that indicates the degree of overlap between two regions. IoU is the intersection of two regions divided by the union of the two regions.
[0043] When IoU is calculated, the processing unit 6 executes either a process of setting the provisional corrected bounding box BT1 as a corrected bounding box BA1, or a process of correcting the provisional corrected bounding box BT1 so as to reduce its size, depending on the IoU indicating the degree of overlap. More specifically, the processing unit 6 determines whether or not IoU is greater than a predetermined threshold value TI in step S18 in FIG. If it is determined that IoU is not greater than the threshold value TI (IoU is equal to or smaller than the threshold value TI), the processing unit 6 proceeds to step S20 in Fig. 3, and sets the provisional corrected bounding box BT1 as a corrected bounding box BA1 (step S20 in Fig. 3: fifth process).Then, the processing unit 6 proceeds to step S21 in Fig. 3, and cuts out an area portion of the image 16 surrounded by the corrected bounding box BA1 as a partial image (step S21 in Fig. 3), and further detects joint points, which are feature points of the person M1, using the partial image (step S22 in Fig. 3: sixth process), and ends the process.
[0044] On the other hand, if it is determined in step S18 in FIG. 3 that IoU is greater than the threshold value TI, the processing unit 6 proceeds to step S19 in FIG. 3 and corrects the provisional corrected bounding box BT1 (step S19 in FIG. 3). The processing unit 6 adjusts the coefficient n in the above formulas (1) and (2) to correct the provisional corrected bounding box BT1 so that the dimensions thereof become smaller.
[0045] FIG. 6 is a diagram showing a state in which a provisional corrected bounding box BT1 obtained by correcting the first bounding box B1 shown in FIG. 4 overlaps with a second bounding box B2. As described above, the provisionally corrected bounding box BT1 is set to be larger than the first bounding box B1. For this reason, the provisionally corrected bounding box BT1 may overlap significantly with the second bounding box B2, which is another bounding box adjacent to the provisionally corrected bounding box BT1. If the provisionally corrected bounding box BT1 overlaps with the second bounding box B2, there is a risk that the joint points of the second image area A2 within the second bounding box B2 may be detected in addition to the joint points of the first image area A1, which may cause a decrease in the detection accuracy of the joint points.
[0046] Therefore, the processing unit 6 adjusts the coefficient n so that the dimensions of the provisional corrected bounding box BT1 become smaller. For example, the processing unit 6 adjusts the coefficient n from the initial value "3" to "2.5" and returns to step S17 in Fig. 3 again to calculate the IoU. After adjusting the coefficient n to "2.5", if the processing unit 6 proceeds to step S19 in Fig. 3, the processing unit 6 adjusts the coefficient n from "2.5" to "2.0". In this way, the processing unit 6 adjusts the coefficient n to a smaller value in stages by repeatedly executing step S19.
[0047] The processing unit 6 repeats steps S17-S19 in FIG. 3 until it determines that IoU is equal to or less than the threshold value TI, and when it determines that IoU is equal to or less than the threshold value TI, it proceeds to step S20 in FIG. 3 and sets the provisional corrected bounding box BT1 as the corrected bounding box BA1 (step S20 in FIG. 3). In this manner, in this embodiment, the provisional corrected bounding box BT1 is corrected until the IoU becomes equal to or less than the threshold value TI, so that a corrected bounding box BA1 with a suppressed IoU can be obtained. The threshold value TI is set to a value that does not reduce the detection accuracy of the joint points of the provisional corrected bounding box BT1 and another bounding box even if they overlap.
[0048] In step S20 in FIG. 3, when the provisional corrected bounding box BT1 is set as the corrected bounding box, the processing unit 6 proceeds to step S21 in FIG. 3, cuts out the area portion of the image 16 surrounded by the corrected bounding box as a partial image (step S21 in FIG. 3), and detects the joint points, which are characteristic points of the person M1, using the partial image (step S22 in FIG. 3).
[0049] Fig. 7 is a diagram showing an example of a partial image 18. Fig. 7 shows a partial image 18 including a first image region A1. The processing unit 6 acquires a first image region A1 of the person M1 in the partial image 18, and estimates a skeleton m1 of the person M1 based on the first image region A1. Furthermore, the processing unit 6 detects a plurality of joint points m2, which are feature points of the person M1, based on the skeleton m1. The processing unit 6 estimates the skeleton m1 and a plurality of joint points m2 of the person M1 by using a method using machine learning. Examples of a method for estimating the skeleton m1 and a plurality of joint points m2 include a known method such as open pose. When the joint point m2 is detected based on the person image (step S22 in FIG. 3), the processing unit 6 ends the process.
[0050] According to the above configuration, even if there is a risk that a bounding box B that includes the entire image area A of person M cannot be generated because a moving object, such as person M, is moving at high speed or the imaging conditions are not good when capturing the video 14, a corrected bounding box is generated in which the size of bounding box B is corrected according to the determination result of the state of bounding box B, so that a bounding box of an appropriate size can be obtained.
[0051] Furthermore, in this embodiment, the dimensions of the corrected bounding box are determined by adding a value based on the error of bounding box B to the estimated dimensions of bounding box B, so the size of the corrected bounding box can be set larger than the estimated dimensions of bounding box B. This makes it possible to generate a corrected bounding box that can include the entire image area A.
[0052] [Regarding the second embodiment] FIG. 8 is a flowchart showing the joint point detection process according to the second embodiment. Fig. 8 shows the parts that are different from the flowchart of the detection process according to the first embodiment shown in Fig. 3. The other parts are the same as Fig. 3. Here, only the parts that are different from the first embodiment will be described.
[0053] The flowchart shown in FIG. 8 differs from the flowchart shown in FIG. 3 in that it includes step S23 after step S12 and in that step S14 is changed to step S24.
[0054] 8, after generating the bounding box B in step S12, the processing unit 6 proceeds to step S23 to obtain the walking speed (movement speed) of the person M1. The processing unit 6 obtains the walking speed of the person M1 based on the image 16a currently being processed and an image 16 taken earlier than the image 16a. The processing unit 6 compares the first image area A1 of the image 16a currently being processed with the first image area A1 of the image 16 at a past timing, calculates the amount of movement of the first image area A1 over a certain period of time, and calculates the walking speed of the person M1. The processing unit 6 calculates the walking speed as the state of the person M1.
[0055] After calculating the walking speed, the processing unit 6 proceeds to step S24, where it compares the walking speed with a predetermined threshold value Tv to determine the state of the person M1. More specifically, the processing unit 6 determines whether or not the walking speed is lower than the threshold value Tv (step S24 in FIG. 8: fourth process).
[0056] If the walking speed is determined to be smaller than the threshold value Tv, the processing unit 6 proceeds to step S21 in FIG. 3, cuts out the area portion of the image 16 surrounded by the first bounding box B1 as a partial image (step S21 in FIG. 3), and further detects joint points, which are characteristic points of the person M1, using the partial image (step S22 in FIG. 3), and then terminates the processing.
[0057] The threshold Tv is set to the upper limit of the walking speed at which the first bounding box B1 can be generated to surround the first image region A1. Therefore, when the walking speed is determined to be smaller than the threshold value Tv, it can be determined that the first bounding box B1 surrounds the first image area A1. Therefore, the processing unit 6 cuts out a partial image by the first bounding box B1 and detects joint points.
[0058] If the walking speed is not smaller than the threshold value Tv (is equal to or greater than the threshold value Tv), the processing unit 6 proceeds to step S15 and generates a provisional corrected bounding box.
[0059] FIG. 9 is a diagram showing a provisional corrected bounding box BT1 of this embodiment. The dimensions (width wt and height ht) of the provisional corrected bounding box BT1 in this embodiment are expressed by the following expressions (3) and (4). wt = m × w (3) ht = m × h (4)
[0060] In the above formulas (3) and (4), m is a coefficient, and in this embodiment, the coefficient m is a positive real number. The initial value of the coefficient m is "1.3". In this manner, in this embodiment, by multiplying the width w and height h of the first bounding box B1 by a coefficient, a provisional corrected bounding box BT1 larger than the first bounding box B1 is obtained. Furthermore, the coefficient m is adjusted to a value smaller than the initial value in step S19 (see FIG. 3), which is the process after step S15. By repeatedly executing step S19, the processing unit 6 adjusts the coefficient m from the initial value of "1.3" to a stepwise smaller value such as "1.1" or "1.05".
[0061] When the processing unit 6 determines that the IoU is equal to or smaller than the threshold value TI, it sets the provisional corrected bounding box BT1 as the corrected bounding box BA1 (step S20 in FIG. 3). In this manner, in this embodiment, the corrected bounding box BA1 can be generated according to the walking speed of the person M1.
[0062] In the present embodiment, the walking speed is calculated as the state of the person M1, but the walking phase of the person M1 may be used as the state of the person M1. As an example of walking phases, if they are divided into eight phases, such as initial contact, load response, mid-stance, end-stance, pre-swing, early swing, mid-swing, and end-swing, the state of person M1 can be determined according to each phase.
[0063] FIG. 10 is a flowchart showing a joint point detection process when the walking phase is used as the state of the person M1. In Fig. 10, after generating the bounding box B in step S12, the processing unit 6 proceeds to step S33 and acquires the walking phase of the person M1. The processing unit 6 identifies the walking phase of the person M1 based on the first image region A1 in the image 16a currently being processed. The processing unit 6 identifies which of the above-mentioned eight phases the walking phase of the person M1 is.
[0064] Once the walking phase has been identified, the processing unit 6 proceeds to step S34, where, depending on the walking phase, it can determine whether to detect joint points using the first bounding box B1, or to generate a provisional corrected bounding box BT1 and generate a corrected bounding box BA1. In this way, the processing unit 6 can also generate a corrected bounding box BA1 depending on the walking phase.
[0065] 〔others〕 The embodiments disclosed herein are illustrative in all respects and are not restrictive. In the above embodiment, the case where the moving object is a person M is exemplified, but the moving object may be a moving object other than the person M. When the moving object is a moving object other than the person M, the detection target is not a joint point as in the present embodiment, but a feature point specific to the moving object.
[0066] The scope of the present invention is not limited to the above-described embodiment, but includes all modifications within the scope of the equivalents of the configurations described in the claims. [Explanation of symbols]
[0067] 4 Processing equipment (detection equipment) 6 Processing section 14 Video 16, 16a Images 18 Partial Image A Image area B Bounding Box BA1 corrected bounding box BT1 provisional bounding box M, M1, M2 people
Claims
1. A first process of acquiring a moving image of a moving object; a second process of detecting an image area of the moving object from an image included in the moving image; a third process of generating a bounding box based on the image region; a fourth process for determining a state of the bounding box or a state of the moving object; a fifth process of generating a corrected bounding box by correcting the size of the bounding box according to a result of the fourth process; a sixth process of detecting feature points of the moving object using a partial image of the image surrounded by the corrected bounding box; A processing unit for executing Detection device.
2. the state of the bounding box includes an error between an estimated dimension of the bounding box obtained by state estimation and the dimension of the bounding box; In the fourth process, the state of the bounding box is determined by comparing the error with a predetermined threshold value. The detection device according to claim 1 .
3. The size of the corrected bounding box is determined based on the estimated dimensions and the error.
3. The detection device according to claim 2.
4. the state of the moving object includes a moving speed of the moving object; In the fourth process, the state of the bounding box is determined by comparing the moving speed with a predetermined threshold value. The detection device according to claim 1 .
5. the moving object is a person walking, The state of the moving object includes a walking phase of the moving object. The detection device according to claim 1 .
6. The fifth process is A process of generating a provisional corrected bounding box that is corrected so as to be larger than the bounding box according to a result of the determination of the fourth process; A process of calculating an overlap degree between the provisional corrected bounding box and a bounding box other than the bounding box; and performing, according to the degree of overlap, either a process of setting the provisional corrected bounding box as the corrected bounding box, or a process of correcting the provisional corrected bounding box so as to reduce its size and performing a process of determining the degree of overlap again. The detection device according to claim 1 .
7. A method for detecting feature points of a moving object, comprising: A first step of acquiring a moving image of the moving object; a second step of detecting an image area of the moving object from an image included in the moving image; a third step of generating a bounding box based on the image region; a fourth step of determining a state of the bounding box or a state of the moving object; a fifth step of generating a corrected bounding box by correcting the size of the bounding box according to the result of the fourth step; and a sixth step of detecting feature points of the moving object using a partial image of the image surrounded by the corrected bounding box. Detection methods.
8. A computer program for causing a computer to execute a detection process for detecting feature points of a moving object, On the computer, A first step of acquiring a moving image of the moving object; a second step of detecting an image area of the moving object from an image included in the moving image; a third step of generating a bounding box based on the image region; a fourth step of determining a state of the bounding box or a state of the moving object; a fifth step of generating a corrected bounding box by correcting the size of the bounding box according to the result of the fourth step; and a sixth step of detecting feature points of the moving object using a partial image of the image surrounded by the corrected bounding box. Computer program.
Citation Information
Patent Citations
Person image data analysis system
JP2022178935A
