Method for detecting detection range of image detector
Through automated detection methods, the target object is moved in a specific way, and the direction of movement is changed in combination with the detection results of the image detector, the problem of difficulty in judging the detection range of the image detector in the prior art is solved, and the rapid and accurate detection range detection is achieved, reducing manpower and time consumption.
Patent Information
- Application Number
- CN202110190198.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-01-22
- Filing Date
- 2021-02-18
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2041-02-18
AI Technical Summary
The prior art is difficult to accurately and quickly determine the actual detection range of an image detector, which leads to the need to rely on manual on-site shooting and measurement, which consumes a lot of manpower and time.
By designing an automated detection method, the target object moves in a specific way, and changing the moving direction of the target object according to the detection results of the image detector, gradually determining the detection boundary of the image detector.
The detection range of automatic image detector is realized, effectively reducing manpower and time consumption and improving detection efficiency.
Smart Images

Figure CN114827582B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a detection method, and in particular to a method for detecting the detection range of an image detector. Background Art
[0002] Video Image Detection technology can analyze images. By setting the process and results of image analysis, various event triggers can be set for various moving objects to achieve early warning effects. In order to obtain the best early warning effect, researchers are committed to developing faster or more accurate image analysis technology.
[0003] As we all know, before image analysis can be performed, images must be obtained first. Therefore, the range that can achieve the warning effect is the detection range of the image detector. Therefore, it is also very important to ensure that the detection range of the image detector can cover the pre-set area. However, compared with the development of mainstream image analysis technology, the technology of how to accurately and quickly determine the actual detection range of the image detector is relatively unpopular. As a result, most of them can only rely on manual field shooting and measurement to complete the confirmation of the actual detection range of the image detector, which is very labor-intensive and time-consuming. Summary of the invention
[0004] In view of this, an object of the present invention is to provide a method for detecting a detection range of an image detector, which can automatically perform a detection operation to accurately determine the detection range of the image detector.
[0005] From one perspective, the description of the present invention provides a method for detecting the detection range of an image detector, which is suitable for detecting the detection status of an image detector on a target located on a plane area, wherein the plane area includes a reference line extending along a first axis, and areas of the plane area located on both sides of the reference line are respectively defined as a first plane area and a second plane area, the first plane area and the second plane area respectively include a plurality of rectangular areas of the same size, and the adjacent two sides of each rectangular area extend along the first axis and the second axis respectively, the side length of each rectangular area extending along the first axis is the detection interval length and the side length extending along the second axis is the step length, the image detector shoots the plane area facing the reference line, and the minimum distance of each movement of the target object is equal to the step length. The method includes: setting the content of the authenticity value of the previous detection; moving the target object to a first vertex of a rectangular area located on a baseline; moving the target object from the first vertex along the second axis to the first direction until the image detector fails to detect the target object during the initial judgment period when the target object continuously moves a preset distance, and taking the position of the target object at the beginning of the initial judgment period as the initial judgment boundary point; setting the detection end distance, wherein the detection end distance is greater than the step length and less than the distance between the initial judgment boundary point and the baseline; and after obtaining the initial judgment boundary point, making the target object reciprocate along the second axis for multiple times to determine the detection boundary verification position of the image detector. Each reciprocating movement includes: taking the current position of the target as the starting point of a single reciprocating movement, and obtaining the result of whether the image detector can detect the target at this time as the authenticity value of this detection; when the authenticity value of this detection is the same as the authenticity value of the previous detection, setting the moving direction of the target to remain unchanged; when the authenticity value of this detection is different from the authenticity value of the previous detection and the detection end distance is greater than the step length, changing the moving direction of the target in the opposite direction; when the authenticity value of this detection is different from the authenticity value of the previous detection and the detection end distance is not greater than the step length, stopping the target from moving along the The second axis performs multiple reciprocating movements, and outputs an area within a step length before the target object reaches the starting point of the single reciprocating movement as the detection boundary verification position of the image detector; sets the current reciprocating movement distance, which is not greater than the detection end distance and not less than the step length; and moves the target object from the single reciprocating starting point by the current reciprocating movement distance to reach the single reciprocating end point, and changes the detection end distance so that the detection end distance is equal to the current reciprocating movement distance, and changes the authenticity value of the previous detection so that the authenticity value of the previous detection is equal to the authenticity value of the current detection.
[0006] In one embodiment, the aforementioned preset distance is 2Y, where Y is the step length.
[0007] In one embodiment, after the target moves along the second axis in the first direction until the image detector fails to detect the target within the initial determination period of the target continuously moving a preset distance, the target continues to move in the first direction to a turning point at a first preset distance from the initial determination boundary point.
[0008] In one embodiment, the first preset distance is 2 k Y, wherein k is a first preset value and Y is a step length.
[0009] In one embodiment, when setting the reciprocating distance, the reciprocating distance is set to Wherein, a is the number of reciprocating movements that have been performed before the current reciprocating movement is performed.
[0010] In one embodiment, the size of the target object is reduced by a ratio from a predetermined standard.
[0011] In summary, the method for detecting the detection range of an image detector provided by the description of the present invention can make the target object move in a specially designed manner, and change its moving direction in accordance with the detection result of the image detector during the moving process. Furthermore, since the target object mostly moves at the edge of the detection range, the detection time spent on other positions can be reduced. Therefore, the technology provided by the description can achieve the effect of automatically detecting the detection range of the image detector, effectively reducing the consumption of manpower and time. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 FIG. 4 is a schematic diagram of a detection plane for implementing a method for detecting a detection range of an image detector according to an embodiment of the present invention.
[0013] Figure 2 FIG. 4 is a flow chart of a method for detecting a detection range of an image detector according to an embodiment of the present invention.
[0014] Figure 3 This is a flow chart between step S204 and step S206 of a method for detecting a detection range of an image detector according to another embodiment of the present invention.
[0015] The reference numerals are described as follows:
[0016] 10: Detection plane
[0017] 11: Left half area
[0018] 12, 14: Axis
[0019] 13: Right half area
[0020] 100: Image Detector
[0021] 100a, 100b: Field of view boundaries
[0022] 110, 112: Rectangular area
[0023] 110a, 110b: Vertex
[0024] 120: Baseline
[0025] D: Detection interval length
[0026] S200-S250: Implementation steps of an embodiment of the present invention
[0027] S300: a step between step S204 and step S206 in one embodiment of the present invention
[0028] Y: Step length DETAILED DESCRIPTION
[0029] Please refer to Figure 1 , which is a schematic diagram of a detection plane for implementing a method for detecting the detection range of an image detector according to an embodiment of the present invention. As shown in the figure, when the detection range of the image detector 100 is to be detected, the image detector 100 is placed near the detection plane 10 and faces the detection plane 10, and the detection object of the image detector 100 performs various movements on the detection plane 10 for detection by the image detector 100. In this embodiment, the reference line 120 extends along the axis 12 (hereinafter also referred to as the first axis), and the image detector 100 faces the reference line 120 to capture the plane area 10 and the target moving thereon; the plane area 10 is defined as a left half plane area 11 (hereinafter also referred to as the first plane area) and a right half plane area 13 (hereinafter also referred to as the second plane area) with the reference line 120 as the boundary, and the left half plane area 11 and the right half plane area 13 respectively include a plurality of rectangular areas of the same size, such as rectangular areas 110 and 112. The two adjacent sides of each rectangular area extend along the axis 12 and the axis 14 (hereinafter also referred to as the second axis), respectively, and the length of each rectangular area extending along the axis 12 is the detection interval length D, and the length of each rectangular area extending along the axis 14 is the step length Y. In order to facilitate the control of the movement of the target during detection, the step length Y is set to the minimum movement distance that the target can reach each time it moves.
[0030] Generally speaking, the image detector 100 has a field of view, which is determined by the manufacturing specifications of the image detector 100, and the target is visible in this field of view (the range between the field of view boundary 100a and the field of view boundary 100b shown in the figure). However, since the image size of the target in the image detector 100 changes with the distance between the target and the image detector 100, when the target is too far away from the image detector 100, although the image detector 100 can "see" the target, it may not be able to clearly determine that the target is the pre-set object because the volume of the target in the image is too small. In other words, due to the difference in the image analysis software used with the image detector 100, the range that can be used to identify whether the target is a pre-defined object may be different. What the present invention is to detect is the range of the target that the image detector 100 can effectively identify after the image analysis software is used. For the convenience of explanation, the word “detection” mentioned in this case not only includes the operation of the image detector 100 obtaining the image of the target object, but also includes the operation of determining whether the target object meets the pre-defined object.
[0031] The following use Figure 2 The flowchart shown is in conjunction with Figure 1 The method for detecting the detection range of an image detector according to an embodiment of the present invention is described below. To implement this method, a controller (not shown) may be used to obtain the detection result of the image detector and control the movement and steering of the target object. Figure 2 As shown, when the detection starts, the controller first moves the target object to a vertex (hereinafter also referred to as the first vertex) on the reference line of the rectangular area, such as the vertex 110a or the vertex 110b of the rectangular area 110 (step S200). In order to make the subsequent description more concise, the vertex 110a will be used as the first vertex for description. Since the detection operation starting from each first vertex is similar to the detection operation starting from the vertex 110a, the detection operation starting from other first vertices can also be performed with reference to the following description.
[0032] In this embodiment, after moving to the vertex 110a, the controller can control the target to start moving along the axis 14 (second axis) (step S202). It should be noted here that since the present invention is to detect the detection range of the image detector 100, when the detection range of the image detector 100 in the left half plane area 11 is to be detected, the target should move along the axis 14 toward the left side of the figure; conversely, when the detection range of the image detector 100 in the right half plane area 13 is to be detected, the target should move along the axis 14 toward the right side of the figure. The following will take the detection of the left half plane area 11 as an example for explanation, so in step S202, the target moves along the axis 14 toward the left side of the figure. A similar approach can also be applied to the detection of the right half plane area 13, so it will not be repeated.
[0033] As mentioned above, during the process of the target moving, the image detector 100 may fail to detect the target because the target is too far away from the image detector 100. Therefore, in theory, the image detector 100 can determine that the target is the detection boundary of the image detector 100 when the image detector 100 fails to detect the target for the first time after the target starts moving. However, considering that the image detector 100 may fail to recognize the target due to the instability of the imaging element or the image analysis software, in this embodiment, the image detector 100 fails to detect the target during the continuous moving distance of the target (hereinafter referred to as the initial judgment period) to determine whether the target has exceeded the detection boundary of the image detector 100. Therefore, in step S204, after the target starts moving, the controller can determine whether the image detector 100 has failed to detect the target within the preset continuous moving distance (i.e., during the initial judgment period) according to the detection result of the image detector 100 (step S204). When the judgment result of step S204 is no, the controller can make the target object continue to move along the second axis in the existing direction; conversely, when the judgment result of step S204 is yes, the controller uses the position of the target object at the beginning of the initial judgment period as the initial judgment boundary point (step S206).
[0034] After obtaining the initial boundary point in step S206, the controller can obtain the authenticity value of the previous detection and the detection end distance to facilitate subsequent operations. Among them, when the authenticity value of the previous detection is used for the first time, the preset value is used (step S230), so it is sufficient to set the content of the authenticity value of the previous detection before performing step S208; similarly, when the detection end distance is used for the first time, the preset value is also used (step S240), so it is sufficient to set the value of the detection end distance before performing step S208. When setting the authenticity value of the previous detection in step S230, it is recommended to set the authenticity value of the previous detection to the result of whether the target object can be detected by the image detector 100 at the very beginning position in this method. In this embodiment, since the target object is initially moved to a point on the reference line 120, the controller can set the content of the authenticity value of the previous detection according to the detection result of the image detector 100 on the target object at this time. For example, when the image detector 100 can detect the target at the first vertex 110a, the controller can set the previous detection truth value to true; and when the image detector 100 cannot detect the target at the first vertex 110a, the controller can set the previous detection truth value to false. In another embodiment, because a certain point on the reference line 120 is the point closest to the image detector 100 in the straight line extending along the axis 14 through this point, when the image detector 100 cannot detect the target on the reference line 120, the controller can directly skip the subsequent steps and move the target to another position on the reference line 120 before restarting the execution. Figure 2 The process shown.
[0035] Furthermore, the detection end distance set for the first time in step S240 is recommended to be greater than the minimum moving distance of the target object (i.e., the step length); in addition, in order to reduce the possibility of errors in automatic operation, the detection end distance can also be set in step S240 to be less than the distance between the initial boundary point and the reference line 120, thereby preventing the target object from moving from the left half plane area 11 to the right half plane area 13. Please refer to Figure 3 In other embodiments, in order to ensure that the target object does not move from the left half plane area 11 to the right half plane area 13, after the judgment result of step S204 is yes, the controller can further move the target object in the original moving direction to a turning point at a first preset distance from the initial boundary point (step S300). In this way, it can be ensured that even if the detection end distance is set to the distance from the initial boundary point to the baseline 120, the target object will not be mistakenly moved to another half plane area.
[0036] As mentioned above, after obtaining the previous detection authenticity value and the detection end distance set for the first time, the controller can control the target to move back and forth several times along the second axis to determine the detection boundary of the image detector. In order to make the description clearer, the detection boundary of the image detector detected by moving back and forth several times along the second axis is referred to as the detection boundary verification position.
[0037] In this embodiment, each reciprocating movement along the second axis includes the steps after step S208. First, the controller can obtain the current position of the target through the image detector 100 and define it as the starting point of a single reciprocation, and then obtain the result indicating whether the image detector 100 can detect the target at this time (hereinafter referred to as the current detection authenticity value) and obtain the previously set previous detection authenticity value from the image detector 100 (step S208). Next, the controller will determine whether the obtained current detection authenticity value is the same as the previous detection authenticity value (step S210). When the judgment result of step S210 is yes, it means that the authenticity value of the previous detection is the same as the authenticity value of the current detection, and the controller maintains the moving direction of the target unchanged (step S214); on the contrary, when the judgment result of step S210 is no, it means that the authenticity value of the previous detection is one true and the authenticity value of the current detection is the other false, and the controller further determines whether the detection end distance is greater than the step length (step S212). When the judgment result of step S212 is yes, the controller changes the moving direction of the target and moves the target in the opposite direction along the axis 14 (step S216); on the contrary, when the judgment result of step S212 is no, the controller stops the target from moving back and forth along the second axis, and outputs the area within a step length before the target reaches the starting point of this single reciprocation as the detection boundary verification position of the image detector 100 (step S250).
[0038] According to the above, after determining the next moving direction of the target object through step S214 or step S216, the controller further sets the current reciprocating distance (step S218). In order to gradually approach the possible detection boundary verification position, the current reciprocating distance should be set in step S218 not greater than the detection end distance, and since the step length is the minimum distance that the target object can move, the current reciprocating distance should also be set to be not less than the step length. Next, after obtaining the current reciprocating distance, the controller can move the target object from the current single reciprocating starting point according to the previously determined moving direction by the current reciprocating distance, thereby reaching a point other than the current single reciprocating starting point (hereinafter referred to as the single reciprocating end point); and the controller can also change the detection end distance so that the detection end distance is equal to the current reciprocating distance set in step S218, and change the previous detection authenticity value so that the previous detection authenticity value is equal to the current detection authenticity value obtained in step S208 (step S220).
[0039] It should be noted that the distance of the current reciprocating movement does not have to be set at the time point of step S218. A person skilled in the art can change the set time according to the conditions required for setting the distance of the current reciprocating movement, and such modification does not violate the technical content of the present invention. Another point to note is that because the controller has not yet executed step S220 when the controller first executes step S208, the previous detection authenticity value obtained when the controller first executes step S208 will be the content set by step S230; however, after performing a reciprocating movement, because the previous detection authenticity value has been changed by step S220, the content of the previous authenticity value obtained by the next step S208 is the content set by step S220 in the previous reciprocating movement and is no longer the content set by step S230.
[0040] In a practical example, the controller can first control the target to move to the reference line 120 and move along the reference line 120 until the image detector 100 can detect the target. Next, the controller can set the position of the target when the target is first detected as the first vertex, that is, the corresponding rectangular area is virtually segmented at this time. The following description is based on the following settings: the target is from Figure 1 The image detector 100 moves along the reference line 120 below the image detector 100 , and the image detector 100 detects the target when the target reaches the first vertex 110 a .
[0041] When the target object reaches the first vertex 110a, the controller can start Figure 2 Or further match Figure 3The embodiment shown starts the detection operation of the detection boundary of the image detector 100. Figure 2 When performing the detection operation in the embodiment of the present invention, specifically, in step S204, the judgment standard may be that the target object cannot be detected after continuously moving twice the step length (2Y); when setting the authenticity value of the previous detection in step S230, the authenticity value of the previous detection may be set to true; when setting the reciprocating distance of the current time in step S218, the reciprocating distance of the current time may be set to Wherein, k is a preset value, a is the number of reciprocating movements that have been performed after the target reaches the first vertex 110a and before performing this reciprocating movement; when setting the detection end distance in step S240, the detection end distance can be set to 2 (k+2) Y. Of course, the selection of k must make the detection end distance set in step S240 meet the above regulations. Figure 3 The embodiments shown are used to assist Figure 2 When performing the detection operation, the first distance of step S300 can be set to 2 k Y. Furthermore, k can be set to 2.
[0042] In passing Figure 2 After obtaining a corresponding detection boundary verification position through the operation, the controller can first move the target object back to the first vertex 110a. After that, the controller can choose to perform the operation from the first vertex 110a along the axis 14 in the direction of the undetected boundary. Figure 2 to obtain another detection boundary verification position. For example, if the left half plane area 11 is first detected using the aforementioned detection method to obtain a corresponding detection boundary verification position when the target object reaches the first vertex 110a, then after the target object returns to the first vertex 110a, the controller can use the same detection method to detect the right half plane area 13 to obtain another corresponding detection boundary verification position. In another embodiment, after the target object returns to the first vertex 110a, the controller can move the target object to another first vertex 110b and execute the detection method to obtain another corresponding detection boundary verification position, and after completely detecting the detection boundary verification position of a certain half plane area, start detecting the detection boundary verification position of another half plane area.
[0043] After all detection boundary verification positions are confirmed, the peripheral connection lines of these detection boundary verification positions can define the image detection boundary of the image detector 100 and simultaneously define the image detection range of the image detector 100 .
[0044] It is worth mentioning that in any embodiment, when it is necessary to determine whether the image detector 100 detects the target object, the target object can be controlled to rotate at least one circle in place, thereby reducing the probability of erroneous recognition results caused by the instability of the imaging element of the image detector 100 or the image analysis software.
[0045] Finally, as mentioned above, since the image size of the target in the image detector 100 changes with the distance between the target and the image detector 100, in addition to the above operations, the size of the target can be reduced from a preset standard according to a certain ratio to simulate the effect of the target moving away from the image detector 100 on the image size. With the assistance of this size reduction technology, the technology provided by the above content can complete the automatic detection operation of the detection range in a smaller space.
[0046] According to the above description, the method for detecting the detection range of the image detector provided by the description of the present invention can make the target object move in a specially designed manner, and change its moving direction in accordance with the detection result of the image detector during the moving of the target object. Furthermore, since the target object mostly moves at the edge of the detection range, the detection time spent on other positions can be reduced. Therefore, the technology provided by the description can achieve the effect of automatically detecting the detection range of the image detector, effectively reducing the consumption of manpower and time.
Claims
1. A method for detecting a detection range of an image detector, suitable for detecting a detection status of an image detector on a target located on a plane area, the plane area includes a reference line extending along a first axis, the areas of the plane area located on both sides of the reference line are respectively defined as a first plane area and a second plane area, the first plane area and the second plane area respectively include a plurality of rectangular areas of the same size, the adjacent two sides of each of the rectangular areas extend along the first axis and a second axis respectively, the side length of each of the rectangular areas extending along the first axis is a detection interval length and the side length of each of the rectangular areas extending along the second axis is a step length, the image detector photographs the plane area facing the reference line, and the minimum distance of each movement of the target object is equal to the step length, characterized in that The method includes: Set the content of the previous detection authenticity value; Move the target object to a first vertex of the rectangular area located on the reference line; The target object is moved along the second axis in a first direction until the image detector fails to detect the target object within an initial judgment period in which the target object continuously moves a preset distance, and the position of the target object at the beginning of the initial judgment period is used as an initial judgment boundary point; Setting a detection end distance, wherein the detection end distance is greater than the step length and less than the distance between the initial boundary point and the reference line; and After obtaining the initial boundary point, the target object is moved back and forth along the second axis for a plurality of times to determine a detection boundary verification position of the image detector, wherein each reciprocating movement includes: The current position of the target object is taken as a single reciprocating starting point, and the result of whether the image detector can detect the target object at this time is obtained as a true or false value of this detection; When the authenticity value of the current detection is the same as the authenticity value of the previous detection, the moving direction of the target object is set to remain unchanged; When the authenticity value of the current detection is different from the authenticity value of the previous detection and the detection end distance is greater than the step length, the moving direction of the target object is changed in the reverse direction; When the authenticity value of the current detection is different from the authenticity value of the previous detection and the detection end distance is not greater than the step length, stop making the target object reciprocate multiple times along the second axis, and output an area within the step length before the target object reaches the starting point of the single reciprocation as the detection boundary verification position; Setting a reciprocating distance for the current time, the reciprocating distance for the current time is not greater than the detection end distance and not less than the step length; and The target object is moved from the single reciprocating starting point by the current reciprocating distance to reach a single reciprocating end point, and the detection end distance is changed so that the detection end distance is equal to the current reciprocating distance, and the previous detection authenticity value is changed so that the previous detection authenticity value is equal to the current detection authenticity value.
2. The method of claim 1, wherein: The preset distance is 2Y, where Y is the step length.
3. The method of claim 1, wherein: After the target moves along the second axis toward the first direction until the image detector fails to detect the target within the initial determination period when the target continuously moves the preset distance, the target continues to move toward the first direction to a turning point at a first preset distance from the initial determination boundary point.
4. The method of claim 3, wherein: The first preset distance is 2 k Y, k is a first preset value, and Y is the step length.
5. The method of claim 4, wherein: When setting the reciprocating distance, include: Set the reciprocating distance to a is the number of reciprocating movements that have been performed before the current reciprocating movement is performed.
6. The method of claim 1, wherein: The size of the target object is reduced according to a ratio from a preset standard.
Citation Information
Patent Citations
Visual detection method for camera on mobile terminal and control device
CN106937108A
Camera angle testing device
CN208890961U