Parameter selection device, parameter selection method and parameter selection program

By calculating the impact of parameters and analyzing items on detection accuracy, and selecting appropriate parameter adjustments, we solve the problem of parameter optimization in surveillance cameras and object detection, and improve detection accuracy and satisfaction of user needs.

CN113168696BActive Publication Date: 2024-10-18HITACHI LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN201980081428.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-12-05
Publication Date
2024-10-18
Estimated Expiration
2039-12-05

AI Technical Summary

Technical Problem

Existing technology makes it difficult to simultaneously optimize parameters for blind spot surveillance and object detection in surveillance cameras. In particular, parameters such as thresholds that suit user needs cannot be appropriately selected, resulting in insufficient detection accuracy.

Method used

A parameter selection device is designed. By calculating the influence of parameters on detection accuracy and the influence of analytical items on measurement accuracy, suitable parameters are selected to improve object detection accuracy, including processing block decomposition, parameter contribution rate calculation, user Analytical project extraction and analytical project contribution rate calculation, determine the optimal processing block and adjust parameters.

Benefits of technology

It realizes the appropriate selection of parameters within the measurement range, improves the accuracy of object detection and meets user needs, and is suitable for a variety of sensors and application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113168696B_ABST
    Figure CN113168696B_ABST
Patent Text Reader

Abstract

In a parameter selection device (50B), a parameter contribution rate calculation unit (3) calculates a first degree of influence of a parameter used in an algorithm used when an object detection device (1B) detects an object within a measurement range of a measurement device on the detection accuracy of the detected object. In addition, an analysis item contribution rate calculation unit (5) calculates a second degree of influence of an analysis item for achieving a user's needs on the measurement accuracy of the object detected by the object detection device (1B). A parameter selection unit (8) selects a parameter to be adjusted based on the first degree of influence and the second degree of influence.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to an object detection device and an object detection method. Background Art

[0002] The demand for object detection technology that detects objects based on information obtained by a measuring device (hereinafter sometimes referred to as a sensor) is increasing, and object detection results are flexibly used in various applications according to user needs. For example, intruder detection in a predetermined area for monitoring purposes, object trajectory extraction for the purpose of analyzing human flow or traffic volume, and counting of the number of objects can be listed. As sensors, surveillance cameras, distance sensors, laser radars, etc. are widely used. If sensors can be set at appropriate locations without omission, it is possible to achieve high-precision object measurement and subsequent applications required by users.

[0003] However, in reality, due to cost reasons, the environment of the installation site, etc., the number of sensors used, the performance of object detection, etc. are limited, and there are many cases where the expected measurement accuracy cannot be obtained. In such a scenario, technicians and others go to the site and need to spend time adjusting the sensor's installation position, posture, field of view, thresholds used in object detection, and other parameters in order to maintain accuracy. In view of this situation, in recent years, technologies that automatically optimize sensor parameters have been developed, but in order to optimize the parameters of a large number of sensors at once, it is not realistic if the calculation cost is considered. Therefore, expectations for technologies for selecting parameters to be adjusted are high. For example, in Patent Document 1, parameters related to the optimal configuration conditions of a surveillance camera are automatically selected and optimized.

[0004] Prior art literature

[0005] Patent Literature

[0006] Patent Document 1: Japanese Patent Application Publication No. 2018-128961 Summary of the invention

[0007] Problems to be solved by the invention

[0008] However, in Patent Document 1, the configuration conditions of monitoring cameras are selected so that monitoring without blind spots can be achieved with the minimum number of cameras required, thereby enabling efficient parameter optimization, but parameters related to thresholds used in object detection, etc., cannot be taken as objects. In addition, the parameters of the configuration conditions of the best monitoring cameras are selected according to user needs such as monitoring, but all external parameters and internal parameters maintained by the monitoring cameras themselves are uniformly optimized, and parameters suitable for achieving user needs cannot be pre-selected from them.

[0009] The present invention has been made to solve the above-mentioned problems, and an object of the present invention is to appropriately select parameters of adjustment objects suitable for achieving user needs for each measurement purpose when detecting an object from a measurement range.

[0010] Methods for solving problems

[0011] In order to solve this problem, in an example of the present invention, a parameter selection device includes: a parameter influence calculation unit, which calculates a first influence, wherein the first influence is the influence of a parameter used in an algorithm used when an object detection device detects an object within a measurement range of a measuring device, on the detection accuracy of the object detected using the algorithm; an analysis item influence calculation unit, which calculates a second influence, wherein the second influence is the influence of an analysis item used to meet user needs on the measurement accuracy of the object detected by the object detection device; and a parameter selection unit, which selects the parameter to be set as an adjustment object based on the first influence and the second influence.

[0012] Effects of the Invention

[0013] According to the present invention, when detecting an object from a measurement range, it is possible to appropriately select a parameter of an adjustment object suitable for achieving a user's needs for each measurement purpose. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 This is a functional block diagram showing the structure of the object detection device of Example 1.

[0015] Figure 2 It is used to explain the processing of the processing block decomposition unit.

[0016] Figure 3 It is a functional block diagram showing the structure of a parameter contribution ratio calculation unit.

[0017] Figure 4 An example of the variation in measurement accuracy calculated by the measurement accuracy variation calculation unit is shown.

[0018] Figure 5 This shows an example of a parameter contribution table.

[0019] Figure 6 Used to describe user needs.

[0020] Figure 7 This shows an example of an analysis item table and a combination table.

[0021] Figure 8 An example of an analysis item contribution table is shown.

[0022] Fig. 9 This is a flowchart showing the object detection process of the first embodiment.

[0023] Fig.10 It is a functional block diagram showing the structure of the object detection device and parameter selection device of Example 2.

[0024] Fig.11 This is a functional block diagram showing the structure of the parameter selection device of Example 3.

[0025] Fig.12 It is a functional block diagram showing the structure of the object detection device and parameter selection device of Example 4.

[0026] Fig.13 This is a hardware diagram showing the configuration of a computer for realizing the object detection device and parameter selection device of Embodiments 1 to 4. DETAILED DESCRIPTION

[0027] Hereinafter, embodiments of the present invention will be described in detail based on the accompanying drawings. In the drawings used to illustrate the following embodiments, the same reference numerals represent the same or similar structures or processes, and the following description is omitted. In addition, part or all of the embodiments and modifications can be combined within the scope of the technical idea of ​​the present invention and the scope of integration.

[0028] Example 1

[0029] <Structure of Object Detection Device of Embodiment 1>

[0030] Figure 1 2 is a functional block diagram showing the structure of the object detection device of the first embodiment. The object detection device 1 of the first embodiment uses the sensor information 200 and the user requirements 201 such as the measurement purpose in the measurement device such as the sensor to automatically select the parameters used in the object detection by the sensor. In addition, in this embodiment, the case where a stereo camera is used as a sensor is described, but it is not limited to the stereo camera, and other sensors such as TOF sensors, distance sensors such as laser radars, monocular cameras, and surveillance cameras can also be applied.

[0031] The object detection device 1 has a processing block decomposition unit 2, a parameter contribution rate calculation unit 3, a user analysis item extraction unit 4, an analysis item contribution rate calculation unit 5, an optimization processing block determination unit 6, a parameter selection unit 7, a parameter adjustment unit 8, an object detection execution unit 9 and an analysis execution unit 10.

[0032] The functional units of the processing block decomposition unit 2, the parameter contribution rate calculation unit 3, the user analysis item extraction unit 4, the analysis item contribution rate calculation unit 5, the optimization processing block determination unit 6, the parameter selection unit 7, the parameter adjustment unit 8, and the object detection execution unit 9 are implemented in a sensor having a computing device, a main storage device, and an external storage device, or in a computer prepared separately from the sensor.

[0033] The processing block decomposition unit 2 decomposes the sensor-specific measurement algorithm included in the sensor information 200 into a plurality of processing blocks. The parameter contribution rate calculation unit 3 calculates a contribution rate indicating the degree to which the parameters used in the plurality of processing blocks decomposed by the processing block decomposition unit 2 affect the accuracy of the output result of the sensor-specific measurement algorithm.

[0034] The user analysis item extraction unit 4 extracts analysis items of the sensor required by the user from the user requirements 201. The analysis item contribution rate calculation unit 5 calculates the contribution rate of the analysis item to each processing block decomposed by the processing block decomposition unit 2.

[0035] The optimization processing block determination unit 6 determines a processing block for executing optimization processing based on information on analysis items extracted from the user requirements 201 by the user analysis item extraction unit 4 and information on contribution rates of analysis items to each processing block calculated by the analysis item contribution rate calculation unit 5 .

[0036] The parameter selection unit 7 selects the parameters with high contribution rate in the processing block determined to perform the optimization processing by the optimization processing block determination unit 6 as the parameters to be optimized. The parameter adjustment unit 8 adjusts the parameters selected by the parameter selection unit 7 so as to improve the accuracy of object detection, etc. using the measurement algorithm inherent to the sensor.

[0037] The object detection execution unit 9 executes object detection using the designated parameters. The analysis execution unit 10 executes an application corresponding to the user requirement 201 using the result of the object detection performed by the object detection execution unit 9 .

[0038] The following describes in detail the functions of the processing block decomposition unit 2, parameter contribution ratio calculation unit 3, user analysis item extraction unit 4, analysis item contribution ratio calculation unit 5, optimization processing block determination unit 6, and parameter selection unit 7.

[0039] <Processing of the Processing Block Decomposition Unit>

[0040] Figure 2 This is used to explain the processing of the processing block decomposition unit. The object detection algorithm 12 is an example of a measurement algorithm that outputs an output result 14 after performing object detection processing on the input from the stereo camera 11. Image acquisition 12a, distortion correction 12b, parallax calculation 12c, 3D point group calculation 12d, and object detection 12e are examples of each processing block after the object detection algorithm 12 is decomposed.

[0041] The processing block decomposition unit 2 obtains the object detection algorithm 12 of the stereo camera 11 used for object detection from the sensor information 200 and decomposes it into a plurality of processing blocks. The sensor information 200 includes information that can grasp the details of the algorithm such as the program source of the object detection, information on the SDK unique to the sensor used for object detection, parameters related to object detection, and the like.

[0042] Figure 2 An example of decomposing the object detection algorithm 12 of the stereo camera 11 into a plurality of processing blocks is shown. As a method of dividing the object detection algorithm 12 into a plurality of processing blocks, there are various methods, such as a method of dividing the object detection algorithm 12 into a plurality of processing blocks, for example, a method of dividing the algorithm into each function or each category in the program source, a method of dividing the algorithm into each SDK used, and a method of dividing the algorithm into each flowchart as a processing block using the algorithm developer's knowledge, experience, analysis tools, etc.

[0043] Each processing block is described below. Image acquisition 12a is a process of controlling the stereo camera 11 to acquire a camera image, and uses parameters 13a such as a frame rate indicating the frequency of image acquisition and the resolution of the acquired image. Distortion correction 12b is a process of removing camera-specific lens distortion from the image acquired by image acquisition 12a, and includes, for example, a general method such as using parameters 13b such as focal length, distortion coefficient, and image center, and fitting with Brown's lens distortion model to remove distortion.

[0044] The disparity calculation 12c compares the two camera images from which the lens distortion has been removed by the distortion correction 12b, and uses a certain size area with the smallest difference as a small area, and calculates the disparity based on its search width. Methods for calculating the difference of a small area include, for example, SAD (Sum of Absolute Difference) and SSD (Sum of Squared Difference). Parameters 13c used in the disparity calculation 12c include the size of the small area, the maximum value of the search width (maximum search width), and the like.

[0045] In the 3D point group calculation 12d, the parameters 13d such as the installation position and installation posture of the stereo camera 11 are used to sequentially transform the image coordinates into the camera coordinates Xc and the world coordinates Xw based on the following equations (1) and (2), thereby deriving the 3D point group coordinates of the world coordinates Xw. In the following equation (2), the rotation matrix R represents the installation posture of the camera, and the rotation matrix R can be calculated based on the pan, tilt, and roll angles of the stereo camera 11. In addition, in the following equation (2), the translation vector Xw represents the installation position of the stereo camera 11, such as the camera height.

[0046] [Mathematical formula 1]

[0047]

[0048] Among them, (u, v) is the image coordinate, (u0, v0) is the image center, b is the baseline length, f is the focal length, d is the parallax, and pit is the pitch.

[0049] [Mathematical formula 2]

[0050] x w =Rx c +t···(2)

[0051] Among them, R is the rotation matrix and t is the translation vector.

[0052] The object detection 12e determines and detects an object when the shape, volume, etc. obtained by analyzing the 3D point group calculated by the 3D point group calculation 12d meet a certain reference value. The parameters 13e used in the object detection 12e include a detection threshold as a certain reference value, the number of correction processes such as noise removal performed on the 3D point group, etc.

[0053] In this embodiment, the object detection algorithm 12 of the stereo camera 11 is divided into five processing blocks, but the number of divisions is not limited. In addition, the processing content and parameters used in each processing block are not limited to Figure 2 The processing contents and parameters shown.

[0054] <Structure of parameter contribution ratio calculation unit>

[0055] Figure 3 2 is a functional block diagram showing the configuration of a parameter contribution rate calculation unit. The parameter contribution rate calculation unit 3 includes a parameter setting range determination unit 20 , a measurement accuracy variation amount calculation unit 21 , and a parameter contribution rate table generation unit 22 .

[0056] The parameter setting range determination unit 20 obtains the parameters 13a to 13e used in each processing block, and determines the setting range of the parameter value used to calculate the contribution rate of each parameter 13a to 13e. The measurement accuracy variation calculation unit 21 calculates the variation of the measurement accuracy based on the output result 14 of the object detection output from the object detection execution unit 9 when the parameter is changed within the setting range obtained by the parameter setting range determination unit 20. The parameter contribution rate table generation unit 22 generates a table indicating the parameter contribution rate based on the variation of the measurement accuracy calculated by the measurement accuracy variation calculation unit 21.

[0057] The following describes each function. The parameter setting range determination unit 20 receives as input the initial values ​​of each parameter used in each processing block decomposed by the processing block decomposition unit 2, and determines the setting range of the parameter used in the measurement accuracy variation amount calculation unit 21 for each parameter. The initial value input to the parameter setting range determination unit 20 includes, for example, a setting value set by the user, a specified value on the system, an automatically estimated value in a predetermined algorithm, and the like.

[0058] In this embodiment, as the initial values ​​of the parameters 13a, 13c, and 13e used in the image acquisition 12a, the parallax calculation 12c, and the object detection 12e, the prescribed values ​​on the system set by the user are used. In addition, as the initial values ​​of the parameters 13b and 13d used in the distortion correction 12b and the three-dimensional point group calculation 12d, the estimated values ​​based on the predetermined algorithm are used. For example, as the estimation method of the parameter 13b, the calibration method of Zhang is used, and as the estimation method of the parameter 13d, there is a method using the plane information detected by the RANSAC algorithm.

[0059] In addition, as a method of determining the setting range based on the initial value input to the parameter setting range determination unit 20, there is a method of setting the value within a predetermined range before and after the initial value as the minimum value and the maximum value. Here, the method of determining the minimum value and the maximum value can be switched depending on whether the user has mastered the details of the object detection algorithm 12. For example, if the user has mastered the details of the object detection algorithm 12, the minimum value and the maximum value can be determined based on past experience, etc., and if the user has not mastered the details of the object detection algorithm 12, the settable parameter value can be investigated and determined based on the specification information of the SDK, etc. Alternatively, these two methods can be combined. The method for determining the minimum value and the maximum value is not particularly limited.

[0060] In addition, in this embodiment, discrete values ​​are used as parameters included in the setting range. For example, in the case of a continuous parameter, the minimum value and the maximum value of the setting range are divided into a predetermined number to generate a discrete value parameter. In the case of a discrete parameter, all possible values ​​can be included in the setting range of the parameter.

[0061] The measurement accuracy variation calculation unit 21 changes the parameter value within the setting range of each parameter input by the parameter setting range determination unit 20 to calculate the variation of the measurement accuracy of the object detection execution unit 9. In this embodiment, the object detection accuracy when a test image to which a true value is assigned is input or an evaluation index unique to the processing block is used as the measurement accuracy.

[0062] As a method for calculating object detection accuracy, a test image in which the detection object is photographed and the true value information of the object area is pre-maintained for all frames can be used to calculate a value that represents the ratio of the number of frames in which the object is accurately detected using the set parameter values ​​to the total number of frames as the object detection accuracy.

[0063] In the case of a processing block for parallax calculation 12c, for example, an evaluation index unique to the processing block can be set to the following value, which is a value that uses a random pattern for which parallax is relatively easy to calculate as a test image, and expresses the ratio of the total number of pixels of invalid parallax that cannot be calculated through parallax calculation to the number of pixels of the entire image as a percentage.

[0064] In addition, for example, the evaluation index unique to the processing block of the distortion correction 12b can be set to the following value, which is a test image with many straight lines, such as a ground block, and the value is expressed as a percentage of the ratio of the number of straight lines detected by applying a straight line detection algorithm to the image after the distortion correction is performed to the number of straight lines in the test image.

[0065] In addition, for example, when the setting range of parameter p is 10 integer values ​​of 0≤p≤9, all parameter values ​​other than p are fixed to the initial values, and the object detection accuracy in the test image when p=0, p=1, ..., p=9 is calculated, and Figure 4 The variation in object detection accuracy is calculated as shown to find the variation in measurement accuracy. Figure 4 An example of the variation of measurement accuracy calculated by the measurement accuracy variation calculation unit is shown. Figure 4 , an example is shown in which the measurement accuracy reaches the maximum value when p=2.

[0066] When the measurement accuracy is calculated by the measurement accuracy variation calculation unit 21, it is possible to switch between the object detection accuracy and the evaluation index unique to the processing block to be used as the measurement accuracy, depending on whether the user can grasp the detailed algorithm of each processing block. For example, for the processing blocks whose detailed algorithms can be grasped, test data suitable for evaluating the unique index of the processing block is prepared. For the processing blocks whose algorithms cannot be grasped, the test data corresponding to the object detection accuracy can be used in common between the processing blocks whose algorithms cannot be grasped to calculate the measurement accuracy.

[0067] The parameter contribution rate table generating unit 22 generates a parameter contribution rate table T1 for each processing block using the variation of the measurement accuracy calculated by the measurement accuracy variation calculating unit 21. The contribution rate of a parameter to a processing block is an index indicating the importance of each parameter in the processing block, and the higher the measurement accuracy used in the measurement accuracy variation calculating unit 21, the higher the importance is judged to be.

[0068] As a method for calculating the parameter contribution rate based on the variation of the measurement accuracy, for example, there is the following method: the greater the maximum value of the measurement accuracy when the parameter changes, the higher the contribution rate of the parameter is determined to be, and the value obtained by standardizing the maximum value of each parameter to a range of 0 to 100 is used as the contribution rate. Alternatively, for example, there may be the following method, etc.: the value obtained by standardizing using any one of the minimum value, average value, and variance value of the measurement accuracy or a unique index combining any one of the values ​​is used as the contribution rate. The parameter contribution rate table generation unit 22 stores the contribution rates of each parameter calculated for each processing block in the parameter contribution rate table T1.

[0069] Figure 5 This shows an example of a parameter contribution table. Figure 5 The parameter contribution rate table T1 shown is stored in a predetermined storage unit, and includes contribution rate tables T1a to T1e for each processing block. The parameter contribution rate table T1 includes: a contribution rate table T1a, which stores the contribution rate of each parameter 13a in the image acquisition 12a; a contribution rate table T1b, which stores the contribution rate of each parameter 13b in the distortion correction 12b; a contribution rate table T1c, which stores the contribution rate of each parameter 13c in the parallax calculation 12c; a contribution rate table T1d, which stores the contribution rate of each parameter 13d in the 3D point group calculation 12d; and a contribution rate table T1e, which stores the contribution rate of each parameter 13e in the object detection 12e.

[0070] In this embodiment, by Figure 3 The parameter contribution rate calculation unit 3 shown in the figure calculates the contribution rate of the parameter, but it is not particularly limited as long as it can determine the influence of each parameter in the processing block on the measurement accuracy.

[0071] <User needs>

[0072] Reference Figure 6 User requirements 201 are described. Figure 6 The user requirements 201 include a list of applications of object detection technology that the user performs in order to achieve the main purpose.

[0073] Figure 6 The list 33 of applications that the user wants to execute is illustrated for each measurement area 32a, 32b set around each device 31a, 31b associated with the user's main purpose within the measurement range 30A of the stereo camera 11 shown in the two-dimensional diagram 30. The user requirement 201 includes the two-dimensional diagram 30 and the list 33.

[0074] For example, if the user's main purpose is to monitor the entire measurement range 30A, the measurement area is the entire two-dimensional image 30, and it is necessary to execute applications such as moving object detection for detecting people moving in the image. In addition, if the user's main purpose is to analyze the flow of people in the entire measurement range 30A, the measurement area is the entire two-dimensional image 30, and it is necessary to execute applications such as human trajectory estimation.

[0075] In addition, when the user's main purpose is to understand the utilization rate of the device 31a, the measurement area 32a is set around the device 31a, and the applications such as counting the number of people in the measurement area 32a and measuring the residence time are executed, thereby analyzing the number of people using the device 31a and the utilization time. In addition, when the user's main purpose is to understand the user characteristics of the device 32b, the measurement area 32b is set around the device 31b, and the applications such as counting the number of people in the measurement area 32b, determining the gender of people, and detecting the handbags held by people are executed, thereby analyzing the ratio of men to women or the ratio of handbag holders relative to the total number of people.

[0076] Figure 6 The user demand 201 is just an example and is not limited to this. In addition, as a method of generating the user demand 201, Figure 6 As shown, there is the following method: the user sets the measurement area in the two-dimensional map 30 using a GUI or the like, and registers the application that the user wants to execute for the entire measurement range or each set measurement area in the list 33 to generate the user demand 201. The two-dimensional map 30 and the list 33 are stored in a predetermined storage unit. However, as long as the information and method can grasp the range that the user wants to measure and the application that the user wants to execute, there is no particular limitation. In addition, as for the main purpose, as long as the information can grasp the abstractness of the application corresponding to the measurement area, or the information that can be converted into information that can grasp the application corresponding to the measurement area, there is no particular limitation.

[0077] <Analysis item table and combination table>

[0078] use Figure 7 , the processing of the user analysis item extraction unit 4 is explained. Figure 7 This shows an example of the analysis item table and combination table. Figure 7 (a) shows an example of an analysis item list 40 , which shows a list of analysis items extracted from each processing block decomposed by the processing block decomposition unit 2 . Figure 7 (b) shows an example of a combination table 41 of applications and analysis purposes. Figure 7(a) includes analysis items such as "object detection", "tracking", "position measurement", "action recognition", "image recognition", "shape grasping" and "size measurement" in the analysis item list 40. The analysis item list 40 and the combination table 41 are stored in a predetermined storage unit.

[0079] The user analysis item extraction unit 4 extracts analysis items required to realize the application requested by the user from the information of the user requirement 201 and the pre-generated combination table 41. The analysis item is an analysis technique (application) for obtaining necessary information other than object detection when executing the application.

[0080] For example, in the combination table 41, the application "moving object detection" is a function that can be realized only by the object detection result, so the "analysis item" is "none". In addition, for example, the application "residence time measurement" uses the result of object detection, so in addition to object detection, in order to determine that the same person exists in the same position, the analysis items of "tracking" and "position measurement" of the object are required. In this way, according to the main purpose of the user in the user requirement 201, it is possible to grasp the application that uses the result of object detection and the analysis item corresponding to the application.

[0081] For example, Figure 6 As shown in the list table 33, in the user demand 201, when the "main purpose" is "to understand the utilization rate of the measurement area 31a", the "applications" to be executed are "counting the number of people in the area" and "measuring the stay time". Therefore, the user analysis item extraction unit 4 refers to the combination table 41 to extract the "analysis items" corresponding to each "application" such as "counting the number of people in the area" and "measuring the stay time", that is, "position measurement" and "tracking".

[0082] Regarding "analysis project", you can also use Figure 7 Analysis items other than the analysis items shown in the analysis item list 40 of (a). In addition, one analysis item may be divided into multiple items based on the positional relationship between the measurement range and the sensor, the accuracy, etc. For example, in object detection, generally speaking, when the distance from a sensor such as a camera to an object becomes farther, the amount of information about the object becomes less, or the probability of an obstacle existing in the middle becomes higher, and the detection accuracy decreases. Therefore, there is a method of dividing the analysis item "object detection" into "nearby detection" and "distant detection". In addition, from the perspective of safety or security, there are situations where position information with an information granularity less than a predetermined value and an information granularity greater than a predetermined value is required. Therefore, there is a method of dividing the analysis item "position measurement" into "rough position measurement" and "high-precision position measurement".

[0083] <Analysis of project contribution rate table>

[0084] Figure 8 An example of an analysis item contribution table is shown. Figure 8 This is an example of calculating the contribution of the analysis item to each processing block of the distortion correction 12b and the three-dimensional point group calculation 12d by the analysis item contribution rate calculation unit 5. As a method for calculating the contribution of the analysis item to each processing block, there is the following method: following the method of the parameter contribution rate calculation unit 3, the contribution rate is calculated using the variation in the accuracy of the analysis item of each processing block obtained based on the analysis result output from the analysis execution unit 10. Figure 8 In Figure 7 The analysis item "object detection" shown in (a) is subdivided into "nearby detection" and "distant detection" as a premise.

[0085] A method for calculating the contribution rate of the analysis item "tracking" to each processing block will be described below.

[0086] First, a test image to which true values ​​are assigned is generated for evaluating the "tracking" technique. Next, parameters are changed only within the object processing block for which the change in accuracy of the analytical item "tracking" is to be determined, and object detection and tracking using the object detection results are performed. As a method for changing parameters, there is a method of sequentially using all combination patterns of parameters used in the same processing block. Finally, the change in tracking accuracy caused by changing the parameters is calculated. Tracking accuracy can be, for example, the degree to which the same person is tracked. The change in tracking accuracy of all processing blocks can be compared with the change in tracking accuracy of each processing block to determine the contribution of the tracking accuracy of each processing block to the change in tracking accuracy of all processing blocks.

[0087] When the variation of the accuracy of the analysis item is required, the parameter setting range determination unit 20 (see FIG. 1 ) can be used flexibly by not using all the parameters when generating the combination pattern of the parameters used in the processing block. Figure 3 ) information to reduce the number of combinations.

[0088] In addition, other than the method described in this embodiment, any method is not particularly limited as long as it can calculate the degree of influence of each processing block on the accuracy of the analysis item.

[0089] So far, if Figure 8 As shown, a method for calculating the contribution rate of the analysis item to each processing block of distortion correction 12b and 3D point group calculation 12d is shown. The contribution rate of the analysis item to each processing block of image acquisition 12a, parallax calculation 12c and object detection 12e can also be calculated in the same way.

[0090] like Figure 8As shown, the user analysis item extraction unit 4 registers the contribution rate of each analysis item calculated as above to each processing block in the analysis item contribution rate table T2. The analysis item contribution rate table T2 is stored in a predetermined storage unit, and includes contribution rate tables T2a to T2e for each processing block. The analysis item contribution rate table T2 includes: a contribution rate table T2a (not shown), which stores the contribution rate of each analysis item in the image acquisition 12a; a contribution rate table T2b, which stores the contribution rate of each analysis item in the distortion correction 12b; a contribution rate table T2c (not shown), which stores the contribution rate of each analysis item in the parallax calculation 12c; a contribution rate table T2d, which stores the contribution rate of each analysis item in the 3D point group calculation 12d; and a contribution rate table T2e (not shown), which stores the contribution rate of each analysis item in the object detection 12e.

[0091] Return to Figure 1 The optimal processing block determination unit 6 uses the output information of the user analysis item extraction unit 4 and the analysis item contribution rate calculation unit 5 to determine the processing block with the highest contribution rate of the analysis item required in the user requirement 201 as the optimal processing block. For example, when only one analysis item is required in the user requirement 201, there is a method of selecting the processing block with the highest contribution rate of the corresponding analysis item.

[0092] In addition, when multiple analysis items are required, there is a method of selecting a processing block that has the largest value obtained by multiplying the contribution rates of each. Figure 8 When "nearby detection" and "tracking" are the required analysis items, the value obtained by multiplying the contribution rates corresponding to these analysis items is 20×20=400 in the distortion correction 12b and 60×30=1800 in the 3D point group calculation 12d. Therefore, the processing block of the 3D point group calculation 12d is selected compared with the distortion correction 12b. The processing block determined by the optimization processing block determination unit 6 is not limited to one. When the contribution rates of the analysis items in multiple processing blocks are the same and the maximum, all processing blocks can be determined as the objects of optimization.

[0093] The parameter selection unit 7 selects the parameter with the highest parameter contribution rate calculated by the parameter contribution rate calculation unit 3 as the parameter to be optimized in the processing block to be optimized. The selected parameter is not limited to one, and for example, a method of presetting a threshold value of the parameter contribution rate and setting all parameters with a parameter contribution rate higher than the threshold value as the optimization target may be adopted.

[0094] In addition, when multiple processing blocks are output by the optimization processing block determination unit 6, the following method can also be adopted: multiply the contribution rate of the analysis item of the processing block by the parameter contribution rate in the processing block, and select the parameter that shows a value higher than a preset threshold as the optimization object.

[0095] For example, the processing block output by the optimization processing block determination unit 6 is described as follows: Figure 5 as well as Figure 8 2 shows the distortion correction 12b and the 3D point group calculation 12d in the table, and the "analysis item" extracted from the user requirement 201 is "tracking". If the analysis item contribution rate "20" of the distortion correction 12b relative to "tracking" is multiplied by the contribution rate of each parameter of the distortion correction 12b, the "focal length" is 20×60=1200, the "distortion coefficient" is 20×30=600, and the "image center" is 20×10=200. If the 3D point group calculation 12d is calculated in the same way, the "camera height" is 30×60=1800, the "tilt angle" is 30×30=900, the "roll angle" is 30×10=300, and the "scale" is 30×20=600. Therefore, when the preset threshold is 1000, the "focal length" of the distortion correction 12b and the "camera height" of the 3D point group calculation 12d are determined as the parameters to be optimized.

[0096] <Object Detection Processing of Example 1>

[0097] Fig. 9 : is a flowchart showing the object detection process of the embodiment 1. The object detection process of the embodiment 1 is executed by the object detection device 1 at a predetermined timing instructed by the user.

[0098] like Fig. 9 As shown, first, in step S11, the processing block decomposition unit 2 decomposes the sensor-specific measurement algorithm included in the sensor information 200 into a plurality of processing blocks.

[0099] Next, the object detection device 1 repeatedly performs the loop processing of steps S12 to S14 for all the processing blocks decomposed in step S11. That is, in step S12, the object detection device 1 selects one processing block obtained in step S11. Next, in step S13, the parameter contribution rate calculation unit 3 calculates the contribution rate of each parameter to the object detection algorithm 12 for the one processing block selected in step S12. Next, in step S14, the analysis item contribution rate calculation unit 5 calculates the contribution rate of each analysis item to the object detection algorithm 12 for the one processing block selected in step S12.

[0100] When step S14 is completed, the object detection device 1 selects an unselected processing block from among the processing blocks obtained in step S11 in step S12, and performs the processing of steps S13 and S14 on the selected processing block. In addition, when step S14 is completed and there is no unselected processing block from among the processing blocks obtained in step S11, the object detection device 1 transfers the processing to step S15.

[0101] In step S15, the optimization processing block determination unit 6 uses the analysis items extracted from the user requirements 201 by the user analysis item extraction unit 4 and the contribution rates of the analysis items calculated by the analysis item contribution rate calculation unit 5 in step S14 to determine the processing block with the largest contribution rate of the analysis items required in the user requirements 201 as the optimization processing block for performing optimization.

[0102] Next, in step S16 , the parameter selection unit 7 selects, as parameters to be optimized, parameters having a high contribution rate to the processing block determined to be optimized by the optimization processing block determination unit 6 in step S15 .

[0103] Next, in step S17 , the parameter adjustment unit 8 adjusts the parameters selected in step S16 so that the object detection accuracy and the analysis accuracy corresponding to the analysis item are improved.

[0104] Next, in step S18, the object detection execution unit 9 performs object detection using the parameters adjusted in step S17. Next, in step S19, the analysis execution unit 10 uses the parameters adjusted in step S17 and the object detection result of the object detection execution unit 9 in step S18 to execute an application corresponding to the user requirement 201. When step S19 ends, the object detection device 1 ends the object detection process of the first embodiment.

[0105] According to the above-mentioned first embodiment, in the object detection device 1 that detects an object from the measurement range, the contribution rate of the analysis items and parameters to each processing block after dividing the algorithm unique to the measurement device is calculated, and the parameters to be adjusted are selected for each user requirement 201. That is, when an application that meets the user requirement 201 is executed, a processing block with a high contribution rate of the analysis items required to realize the application is selected, and a parameter with a high contribution rate to the selected processing block is selected, thereby appropriately selecting the adjustment target parameter suitable for the user requirement to achieve each measurement purpose.

[0106] Example 2

[0107] In Example 1, Figure 1 As shown in FIG. 1 , a structure is shown in which each function is realized by an integrated object detection device 1. However, the present invention is not limited to this. Fig.10As shown, the object detection device 1B of the second embodiment may only include the object detection execution unit 9 and the analysis execution unit 10. The parameter selection device 50B as another device includes the processing block decomposition unit 2, the parameter contribution rate calculation unit 3, the user analysis item extraction unit 4, the analysis item contribution rate calculation unit 5, the optimization processing block determination unit 6, the parameter selection unit 7, and the parameter adjustment unit 8. Furthermore, the object detection device 1B may be a mode in which the object detection and analysis are performed using the parameters selected and adjusted by the parameter selection device 50B, and the object detection result information 202 and the analysis result information 203 are output.

[0108] Example 3

[0109] Furthermore, in Example 3, Fig.11 As shown, the other device includes a processing block decomposition unit 2, a parameter contribution rate calculation unit 3, and an analysis item contribution rate calculation unit 5. These processing functions are performed in advance by the other device to obtain analysis item contribution rate information 204 and parameter contribution rate information 205 for each processing block. On site, the parameter selection device 50C including the user analysis item extraction unit 4, the optimization processing block determination unit 6, and the parameter selection unit 7 can use the user demand 201, the parameter contribution rate information 205, and the analysis item contribution rate information 204 as inputs to quickly select the parameters to be adjusted for each user demand 201. The object detection device 1B of the second embodiment performs object detection and analysis using the parameters selected (or selected and adjusted) by the parameter selection device 50C, and outputs object detection result information and analysis result information.

[0110] Example 4

[0111] In addition, in the above-mentioned embodiments 1 to 3, a series of functions can be executed in consideration of processing cost, and this embodiment will be described as embodiment 4. For example, in Fig.12 The Fig.10 The configuration including the parameter selection device 50B and the object detection device 1B of the second embodiment shown is a configuration in which processing cost is taken into consideration.

[0112] exist Fig.12 In the example, the permissible processing cost acquisition unit 51 acquires the permissible processing cost of the object detection and the subsequent analysis application based on the user requirement 201 and the specification information 207 of the object detection device 1D. The parameter selection device control unit 52 controls each function of the parameter selection device 50B based on the processing cost information 206 when the object detection execution unit 9 and the analysis execution unit 10 are executed and the permissible processing cost information acquired by the permissible processing cost acquisition unit 51.

[0113] As an input example of the allowable processing cost acquisition unit 51, there are user requirements 201 such as the adjustment cost amount allowable on site and whether to process the application executed by the object detection device 1D in real time or offline, specification information 207 of the CPU and memory of the hardware that executes object detection and other applications in the object detection device 1D, etc., and the processing frame rate (ms) etc. can be cited as the unit of processing cost.

[0114] In addition, as a control method of the parameter selection device control unit 52, there is a method in which, in addition to the variation in measurement accuracy caused by the change in the parameter when the parameter contribution rate is derived by the parameter contribution rate calculation unit 3, the variation in the processing cost is calculated and reflected in the parameter contribution rate. Alternatively, there is a method of changing the parameter in consideration of the processing cost such as the number of processing blocks to be optimized determined by the optimization processing block determination unit 6 and the number of parameters selected by the parameter selection unit 7, etc., which is not particularly limited.

[0115] When selecting parameters, parameters are selected in consideration of the processing cost allowed in object detection and subsequent analysis applications, thereby making it possible to improve the processing efficiency of the object detection device 1D according to physical resources and performance.

[0116] <Modification>

[0117] In addition, by Figure 1 , Fig.10 as well as Fig.12 The parameter adjustment unit 8 shown is changed to a function of automatically optimizing parameters, and can estimate the parameters of the stereo camera 11 that can achieve the user's requirement 201 without performing on-site parameter adjustment. In a system that requires a large number of sensors (stereo cameras 11, etc.), the system cost can be greatly reduced.

[0118] As described above, in Examples 1 to 4, the method for selecting parameters associated with the object detection technology of the stereo camera is described, but there is no limitation as long as it is a sensor that performs object detection. In addition, in Examples 1 to 4, the parameter contribution rate and the analysis item contribution rate to each processing block can be calculated using the final object detection accuracy as an indicator. Therefore, even if the object detection algorithm unique to the sensor is unknown, as long as the information of the SDK and the parameter specifications that can be set can be mastered, the parameters that become the adjustment object can be selected according to each user's needs. Therefore, it can be applied to object detection devices using a variety of sensors, and the versatility of the entire system can be improved.

[0119] In addition, in Examples 1 to 4, the parameter selection method related to the application associated with the object detection technology of the sensor is described, but the application object of the technical idea of ​​the present invention is not limited to the object detection technology. For example, even if the application associated with the object tracking technology is a user demand, the parameters that become the adjustment object in the object tracking technology can be selected for each user demand.

[0120] Fig.13 1 is a hardware diagram showing the structure of a computer for realizing the object detection device and parameter selection device of the first to fourth embodiments. In the computer 5000 for realizing the object detection device and parameter selection device of the first to fourth embodiments, a computing device 5300 represented by a CPU (Central Processing Unit), a memory 5400 such as a RAM (Random Access Memory), an input device 5600 (e.g., a keyboard, a mouse, a touch panel, etc.), and an output device 5700 (e.g., a video graphics card connected to an external display monitor) are connected to each other via a memory controller 5500. In the computer 5000, a program for realizing the object detection device or parameter selection device of the first to fourth embodiments is read from an external storage device 5800 such as an SSD or a HDD via an I / O (Input / Output) controller 5200, and is executed by the cooperation of the CPU 5300 and the memory 5400, thereby realizing the object detection device and parameter selection device of the first to fourth embodiments, respectively. Alternatively, the program for realizing the object detection device and the parameter selection device of Embodiments 1 to 4 may be acquired from an external computer through communication via the network interface 5100 .

[0121] The present invention is not limited to the above-mentioned embodiments, and includes various modified examples. For example, the above-mentioned embodiments are embodiments described in detail in order to easily explain the present invention, and are not limited to all the structures described. In addition, a part of the structure of a certain embodiment can be replaced with the structure of other embodiments, and the structure of other embodiments can be added to the structure of a certain embodiment. In addition, for a part of the structure of each embodiment, other structures can be added, deleted, replaced, merged, and dispersed. In addition, the various processes shown in the embodiments can also be appropriately dispersed or merged based on processing efficiency or installation efficiency.

[0122] Explanation of symbols

[0123] 1, 1B, 1D: object detection device; 2: processing block decomposition unit; 3: parameter contribution rate calculation unit; 4: user analysis item extraction unit; 5: analysis item contribution rate calculation unit; 6: optimization processing block determination unit; 7: parameter selection unit; 8: parameter adjustment unit; 9: object detection execution unit; 10: analysis execution unit; 11: stereo camera; 12: object detection algorithm; 12a: image acquisition, 12b: distortion correction; 12c: parallax calculation; 12d: parallax calculation; 12c, 12d: 3D point group calculation; 12e: object detection; 13a~13e: parameters; T1: parameter contribution rate table; T1a~T1e: contribution rate table; 14: output result; 20: parameter setting range determination unit; 21: measurement accuracy variation calculation unit; 22: parameter contribution rate table generation unit; 30: 2D graph; 30A : Measuring range; 31a, 31b: Equipment; 32a, 32b: Measuring area; 33: List; 40: Analysis item list; 41: Combination table; 50, 50B, 50C: Parameter selection device; 51: Allowable processing cost acquisition unit; 52: Parameter selection device control unit; 200: Sensor information; 201: User requirements; 202: Object detection result information; 203: Analysis result information; 204: Analysis item contribution rate information; 205: Parameter contribution rate information; 206: Processing cost information; 207: Specification information; 5000: Computer; 5100: Network interface; 5200: Controller; 5300: CPU; 5400: Memory; 5500: Memory controller; 5600: Input device; 5700: Output device; 5800: External storage device.

Claims

1. A parameter selection device, characterized in that: have: a parameter influence degree calculation unit that calculates a first influence degree, the first influence degree being the influence degree of a parameter used in an algorithm used when the object detection device detects an object within a measurement range of the measurement device on a detection accuracy of the object detected using the algorithm; an analysis item influence degree calculation unit configured to calculate a second influence degree, the second influence degree being the influence degree of the analysis item for achieving the user's needs on the measurement accuracy of the object detected by the object detection device; as well as A parameter selection unit selects the parameter to be adjusted based on the first influence degree and the second influence degree.

2. The parameter selection device according to claim 1, characterized in that: The parameter selection device further includes a processing block decomposition unit that decomposes the algorithm into a plurality of processing blocks, wherein the plurality of processing blocks include acquisition of input from a sensor that detects the object and object detection.

3. The parameter selection device according to claim 2, characterized in that: The processing block decomposition unit divides the algorithm according to specification information of the algorithm or specification information associated with the object detection device, wherein the specification information of the algorithm is each function or each classification in the program source of object detection, and the specification information associated with the object detection device is the specification information of the hardware that performs object detection and other applications in the object detection device.

4. The parameter selection device according to claim 2, characterized in that: The parameter influence calculation unit calculates the first influence on the algorithm or each of the processing blocks for each parameter used in each of the plurality of processing blocks.

5. The parameter selection device according to claim 4, characterized in that: The analysis item influence degree calculation unit calculates the second influence degree on the algorithm or each of the processing blocks for each of the analysis items.

6. The parameter selection device according to claim 5, characterized in that: The first influence degree and the second influence degree are calculated using the detection accuracy of the algorithm or the amount of change in the output result of the processing block when the parameter is changed.

7. The parameter selection device according to claim 5, characterized in that: The parameter selection device further includes an optimal processing block determination unit, which determines a processing block whose second influence satisfies a second predetermined condition as an optimal processing block. The parameter selection unit selects, as a parameter to be optimized, a parameter satisfying a first predetermined condition with respect to the first influence of the processing block determined as the optimization processing block by the optimization processing block determination unit.

8. The parameter selection device according to claim 1, characterized in that: The parameter selection device further includes a parameter adjustment unit that adjusts the parameter selected by the parameter selection unit so that the detection accuracy or the analysis accuracy becomes a predetermined accuracy or higher.

9. The parameter selection device according to claim 8, characterized in that: The first influence and the second influence are calculated in advance. When the object detection device detects the object, the parameter adjustment unit adjusts the parameter based on the information of the analysis item and the first influence and the second influence calculated in advance.

10. The parameter selection device according to claim 1, characterized in that: The parameter selection unit selects the parameter based on a processing cost of the object detection device, wherein a unit of the processing cost is a processing frame rate.

11. The parameter selection device according to claim 1, characterized in that: The parameter selection device further includes a user analysis item extraction unit configured to extract the analysis item based on a user's measurement purpose.

12. The parameter selection device according to claim 11, characterized in that: The analysis items correspond to applications that use the object detection results obtained by the algorithm.

13. The parameter selection device according to claim 1, characterized in that: The measuring device is any one of a monocular camera, a stereo camera, a TOF sensor, and a laser radar.

14. A parameter selection method performed by a parameter selection device, characterized in that: The parameter selection method comprises: A parameter influence degree calculation step for calculating a first influence degree, the first influence degree being the influence degree of a parameter used in an algorithm used when an object detection device detects an object within a measurement range of a measurement device on a detection accuracy of the object detected using the algorithm; an analysis item influence degree calculation step of calculating a second influence degree, the second influence degree being the influence degree of the analysis item for achieving the user's needs on the measurement accuracy of the object detected by the object detection device; as well as The parameter selection step selects the parameter to be adjusted based on the first influence degree and the second influence degree.

15. A computer-readable recording medium storing a parameter selection program, characterized in that: The parameter selection program causes the computer to function as a parameter selection device. The parameter selection device comprises: a parameter influence degree calculation unit that calculates a first influence degree, the first influence degree being the influence degree of a parameter used in an algorithm used when the object detection device detects an object within a measurement range of the measurement device on a detection accuracy of the object detected using the algorithm; an analysis item influence degree calculation unit configured to calculate a second influence degree, the second influence degree being the influence degree of the analysis item for achieving the user's needs on the measurement accuracy of the object detected by the object detection device; as well as A parameter selection unit selects the parameter to be adjusted based on the first influence degree and the second influence degree.

Citation Information

Patent Citations

  • Optimal arrangement search device

    JP2018128961A

  • Image forming apparatus and image forming method

    JP2005217615A

  • Image processing device and method

    JP2006163614A