ANALYSIS METHOD FOR OBJECT MARKER IN IMAGES
Patent Information
- Application Number
- DE502017016477
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2016-10-24
- Filing Date
- 2017-10-20
- Publication Date
- 2024-10-24
- Estimated Expiration
- 2037-10-20
Description
[0001] The invention relates to a method for analyzing object markings in images and an analysis unit for carrying out the method.
[0002] The present invention shows an analysis method that allows to carry out a quality control for image data with a label and to make a statement about or evaluate the extent to which an object marking deviates in its position from a position assumed to be ideal.
[0003] The invention therefore provides an analysis method and an analysis unit according to the independent claims. Further developments of the invention are the subject of the dependent claims.
[0004] In a first aspect, an analysis method for checking at least one object marker in image data is provided, wherein the analysis method reads data of at least one image from a memory, wherein the image shows a predetermined object, a predetermined object part of the predetermined object is specified, and for the predetermined object the object marker surrounding the predetermined object is defined, wherein the analysis method detects the predetermined object without the predetermined object part in the data of the image, and if the analysis method does not detect the predetermined object without the predetermined object part in the image, outputs a first signal indicating that the object marker is incorrectly defined.
[0005] The analysis method can read the definition of the object marker from the memory using the image data, or recognize the object marker in the image data.
[0006] The analysis method determines a distance between an object marking portion of the object marking and the predetermined object without the predetermined object part. It checks whether the distance exceeds / falls below a threshold value. The analysis method outputs a second signal indicating that the object marking is incorrectly defined if the determined distance exceeds / falls below the threshold value.
[0007] The analysis method detects the predetermined object part in the image. It outputs a third signal indicating that the object marker is incorrectly defined if the predetermined object part is not detected in the image.
[0008] The analysis method determines a second distance between the object marker portion and the predetermined object part. It determines whether the second distance exceeds / falls below a second threshold. If the second distance exceeds / falls below the second threshold, the analysis method outputs a fourth signal indicating that the object marker is incorrectly defined.
[0009] By outputting a signal, preferably the second and / or fourth signal, the analysis method can output a value, preferably a pixel value, that indicates how much a size and / or position of the object marker deviates from an ideal size and / or position for the object marker. In particular, a value in pixels can be output that indicates how much the distance and / or the second distance falls below / exceeds the threshold value and / or the second threshold value. The ideal position is determined by the analysis method in a training phase. Based on the determined deviation, an automatic correction of the object marker in the image can take place. The object marker can thus be corrected in its size and position.
[0010] The analysis method outputs a fifth signal indicating that the object marker is correctly defined for the predetermined object, in particular if no other signal is output.
[0011] Before detecting the predetermined object without the predetermined object part, data from training images can be supplied, each of which contains at least one object from a class of the predetermined object. At least one object marker with a predetermined deviation can be defined for each object. Each object can contain an object part.
[0012] The analysis method can detect the predetermined object part for each of the training images and determine the threshold value for that part. The threshold value can represent a dimension of the predetermined object part, in particular a height, width, and / or depth of the predetermined object part, and preferably an average value.
[0013] The analysis method can determine a distance between an object marking section and the predetermined object part for each of the training images and use this to determine the second threshold value. The second threshold value can represent a distance from an object marking section to the predetermined object part, in particular an average value.
[0014] The object marking can essentially be a polygon and in particular a rectangle.
[0015] The predetermined object may be a human body, preferably a pedestrian and / or a cyclist.
[0016] The predetermined object part can be a head, a hand, an arm, a foot, a leg and / or a part thereof.
[0017] The analysis procedure can initially extract the part of the image defined by the object marking and perform further steps of the analysis procedure on the part of the image.
[0018] The analysis method can initially check whether an object defined by the object marker is of a specific type. In particular, the analysis method can determine an aspect ratio of the object marker, compare it with at least one aspect ratio threshold, and output a signal indicating whether the object is of the specific type or not if the aspect ratio threshold is exceeded / undershot.
[0019] Based on the training images, the analysis method can define at least one classifier for the predetermined object without the predetermined object part and / or the predetermined object part. The analysis method can use the at least one classifier to detect the predetermined object without the predetermined object part and / or the predetermined object part.
[0020] The analysis method can define at least one cascading classifier and / or at least two HOG-SVM classifiers based on the training images. The analysis method can use one HOG-SVM classifier to detect the predetermined object without the predetermined object part and / or use the cascading classifier and / or a second HOG-SVM classifier to detect the predetermined object part.
[0021] The analysis method can determine a deviation of the object marker from an ideal position and / or size, particularly with pixel precision. The analysis method can automatically correct the deviation and / or output a signal indicating how the object marker should be adjusted to the ideal position and / or size.
[0022] In a further aspect, a computer program product is provided, wherein the computer program product stores computer program instructions in a computer-readable, in particular a volatile and / or non-volatile memory, and the computer program instructions cause at least one analysis unit to execute an analysis method as described herein when the computer program instructions are read and / or executed by the analysis unit.
[0023] In yet another aspect, an analysis unit for checking at least one object marking in image data is provided, comprising at least one memory that stores the image data, data on object markings and / or the training image data and a processor that is configured to carry out an analysis method as described herein, wherein the image data, data on object markings and / or the training image data are read out from the memory by the analysis unit and the data are processed by the processor, and wherein the analysis unit outputs signals of the analysis method, preferably into the or a further memory.
[0024] The invention will now be described with reference to the figures. They show: Fig. 1 shows a schematic representation of a general process flow of the analysis method, Fig. 2 shows a schematic representation of a process flow of the analysis method, Fig. 3 shows the analysis method using an exemplary object, and Fig. 4 shows a schematic representation of the analysis unit.
[0025] When detecting the vehicle's surroundings, it is necessary that objects in the vehicle's surroundings can be detected and, in particular, tracked. This is important for driver assistance systems that can directly or indirectly influence the vehicle's behavior or provide information to a vehicle user. Driver assistance systems use sensors, particularly optical sensors such as cameras, to detect the vehicle's surroundings and detect objects in the vehicle's surroundings. Examples of objects in the vehicle's surroundings include other objects or road users, such as people, and especially cyclists or pedestrians.
[0026] In order for a driver assistance system to be able to detect an object in the vehicle's vicinity in good time and, for example, initiate a braking or evasive maneuver, it is necessary to detect a road user as early as possible and to assess how critical the road user's behavior is for the vehicle or the course of the journey. In this case, it is possible that by applying image analysis methods, parts of the object in the vehicle's vicinity, and in particular parts of a person's body, can also be detected. Based on the position of the body parts or the movement of the parts, a statement can be made about a possible intention or behavior of the object. For example, the position of a road user's head can be used to deduce whether they intend to cross a road. It is therefore particularly necessary to determine whether a road user is fully or partially obscured, particularly in the area of the head.
[0027] Driver assistance systems can be prepared for their deployment using machine learning methods. These are based on the automatic recognition of patterns in image data and the determination of models for distinguishing data from different classes. This discrimination can be performed without prior knowledge (unsupervised) or with prior knowledge (supervised) of the classes to be distinguished.
[0028] In particular, an assistance system can be equipped with models that specify how a driver assistance system should evaluate image data and which object classes should be detected by the driver assistance system or how the objects should be detected.
[0029] In this case, training is carried out using a large number of images, each of which contains objects belonging to the object classes to be recognized. For example, a driver assistance system can be trained or configured to detect cyclists or pedestrians.
[0030] Objects are typically described by an object marker, also known as a "bounding box." The bounding box is a polygonal line surrounding the object to be detected. Specifically, the polygonal line is formed as a rectangle enclosing the object. Accordingly, the object can be described by the object marker. The object marker can be created automatically or by manually marking the object with the object marker, a process known as "labeling." Labeling is performed either by an expert or by a layperson (processor). A label therefore contains the imaged object and is defined by the image coordinates of the polygonal line surrounding the object.
[0031] To learn the appearance of an object, a large number of labels are processed using an object recognition algorithm that uses or is based on machine learning. For this, it is crucial that the training data is labeled as well and correctly as possible, i.e., that the bounding box or object marker for the objects in the images is placed as precisely as possible.
[0032] Therefore, a quality check of the labeled images must be performed to determine whether the labels or object markers were correctly placed in the images. Several approaches are already known for performing this quality control:
[0033] First, a quality control of labels or object markings can be performed manually. The labels are then manually checked against the images, and a random check is performed by visually comparing the correspondence (position, size) between the label and the object depicted in the image (cf. Su, H., Deng, J. and Li, F.-F. (2012). Crowdsourcing Annotations for Visual Object Detection. In: AAAI Human Computation Workshop, pp. 40-46.). Sample selection can be performed in a simple way, for example, every xth image (e.g., every 5th, 10th, or 15th image) or every image with an above-average number of objects can be selected.
[0034] Furthermore, random or complete quality control can be achieved through cross-validation and repeated and redundant manual labeling by two experts or laypeople. This can be done, for example, using a so-called crowdsourcing approach, in which each participant receives an incentive to validate labels (see also labeling by laypeople using a public dataset and software tool: http: / / labelme2.csail.mit.edu / Release3.0 / index.php). Cross-validation can also be performed, for example, by a large number of laypeople, with the validation task taking place in a game context (see also the approach of Pallas Ludens GmbH, https: / / pallas-ludens.com).
[0035] Finally, existing algorithms that generate enclosing shapes for an object can be used for automatic quality control of the labels. These shapes, in particular, run along color and / or brightness boundaries (e.g., along grayscale edges in a grayscale image). Such a shape then fits snugly around an object shown in the image. The label is then evaluated by assessing the object labeling with reference to the shape generated by the algorithm using qualitative markers (e.g., surface lapping label - ground truth) (cf. Vittayakorn, S. and Hays, J. (2011). Quality Assessment for Crowdsourced Object Annotations. In: Hoey, J., McKenna, S. and Trucco, E., eds., Proceedings of the British Machine Vision Conference, BMVA Press, pp. 109.1-109.11.). The use of object parts to determine whether the object label has been correctly localized is also known from the state of the art (e.g., Ian et al. (2013).Learning collections of part models for object recognition", ISSN: 1063-6919, DOI: 10.1109 / CVPR.2013.126).
[0036] The behavior and performance of processors can also be automatically estimated by determining numerical variables (e.g., the time required to label an object). This allows conclusions to be drawn about the quality of the labels (see Sameki, M., Gurari, D. and Betke, M. (2015). Characterizing Image Segmentation Behavior of the Crowd. Collective Intelligence Conference, San Francisco.).
[0037] However, the known methods for quality control of object markers in images do not allow for a statement about or evaluation of the extent to which the object marker deviates from a position assumed to be ideal. Therefore, no automated quantification of the deviation is possible, and consequently, no automatic correction of an object marker in an image can be performed. Thus, no automatic analysis of an image dataset regarding the structure and distribution of errors in the positioning of the object marker or in the bounding box is possible.
[0038] The analysis method therefore analyzes at least one image based on the image data. An object, such as a pedestrian or a cyclist, is described in the image data by a so-called object marker. The analysis method is specifically designed to detect whether the object marker intersects the object, in particular an object part defined as important. In particular, the analysis method checks whether the object part defined as important can be recognized in the object marker.
[0039] For example, when detecting pedestrians or cyclists, it is important that there are no errors in the area of a person's head, and in particular that the person's head is completely contained within the object marking. To achieve this, the analysis method generates so-called models for classifiers. These models or classifiers provide logical instructions for how images or object markings are to be evaluated.
[0040] Before the actual analysis of image data, the analysis method is first trained with training image data to create and / or adapt the models and classifiers. This involves defining the classifiers that are then used to evaluate object markings in image data.
[0041] The training image data, i.e., the image data fed into the analysis process during the training phase, also exhibits errors in the placement of the object marker around at least one object, e.g., a pedestrian. This error is a displacement of the object marker, which is precisely defined and known for each image.
[0042] During training, a classifier is trained or created for each precisely defined displacement of the object marker or bounding box. The resulting classification models, such as support vector machine (SVM) models, are later used to test the image data for correctness, i.e., the correct placement of the respective object marker or bounding box. Quantitative and qualitative statements about the correctness of the object marker can then be made.
[0043] Of course, the analysis method can also be applied to other object classes than the pedestrians or cyclists already mentioned as examples, and in particular to other road users such as cars, motorcycles, etc.
[0044] Before the analysis procedure is applied to the image data to be checked, the classifiers are determined to detect the object in the images. For this purpose, as already described, the already labeled training image data is fed into the analysis procedure. The classifiers defined in this training phase can, in particular, be part of at least one model. The analysis procedure also specifies which class of objects is to be examined. The object class therefore also determines for which objects in the image data the position and / or size of the object marking is checked.
[0045] To create the models, a dataset of images and object markers is required. Each image has a label that indicates which class the object shown in the image belongs to. Another part of the label defines the position and / or size of the object marker in the image that encloses the object in the image. Models can be created based on high-quality source data. There may be a requirement that the object marker be a defined distance from an edge of the object in the image. The training image data can be generated as additional images and labels from the source data by defined displacement of the object marker. The source data and training image data then form the data used in the training phase.
[0046] Next, a descriptor is selected to describe the images. A descriptor can be used that can describe specific patterns that may arise due to the displacement of the object marker, especially in the peripheral areas. The descriptor can be a "histogram of oriented gradients" descriptor, or HOG descriptor for short. A descriptor based on features of the fast Fourier transform (FFT) and image gradients can also be used.
[0047] The models for the discrete displacements of the object marker in the x- and / or y-direction can be created using at least one classifier, e.g., based on SVM (Support Vector Machine). The parameters for creating the models can be optimized, for example, using cross-validation.
[0048] During the training phase, for example, each object part is examined separately using samples from the training image data, for which a statistically determined value, preferably a mean, is defined. This value represents, for example, a dimension of the object part, such as height, width, depth, or distance to another image component. For this purpose, a so-called "cascading classifier" (Paul Viola, Michael Jones, Robust Real-time Object Detection (2001), International Journal of Computer Vision) can be trained with boosting using a large number of object parts. However, the cascading classifier can also be replaced by another classifier.
[0049] In addition, another classifier, specifically a HOG-SVM classifier (hereinafter referred to as the HOG-SVM-1 classifier), is trained with a large number of object parts. For this purpose, training data containing only corresponding object parts can be used, for example.
[0050] A third classifier (again preferably a HOG-SVM classifier, hereinafter referred to as HOG-SVM-2 classifier) is trained with a large number of objects that do not have the object part.
[0051] An example of training on pedestrians would be that the Cascading classifier is trained with a large number of heads, just like the HOG-SVM-1 classifier, while the HOG-SVM-2 classifier is trained with a large number of bodies without heads.
[0052] After the training or learning phase, the classifiers are defined and the image data to be examined can now be fed into the analysis process.
[0053] The analysis process can be generally described as follows: In a first step, the object marker in the image data is detected and extracted. This is particularly possible if the object marker differs in color or gray value from the other image data to such an extent that a color or gray value boundary can be defined or recognized. Furthermore, the coordinates of the respective object marker can also be transmitted with the image data.
[0054] In a second step, the interior of the object marker, i.e., the interior of the bounding box, is tested to determine whether the object within the object marker that does not contain the previously defined object part can be detected. For example, the image content within the object marker can be analyzed by scanning the image using a so-called sliding-window approach, in which the image is analyzed based on a shifting section.
[0055] The image sections are then fed to the HOG-SVM-2 classifier, which evaluates the individual image sections. This evaluation, also called a score, indicates the probability with which the object to be detected can be detected without the object part in the image section. The image section that provides the highest probability of detecting the object without the object part is then selected.
[0056] However, if the object cannot be detected / recognized without the object part in the object marking or the image sections, the analysis method can output a signal indicating that incorrect labeling is present, i.e. that the object marking or the bounding box is incorrect.
[0057] However, if the object is detected without the object part, a distance is determined from a section of the object marking to the object without the object part, and / or in the opposite direction. In particular, this part is determined from a section of the object marking, e.g. an edge of the bounding box of the object marking, which is first reached from a center of gravity of the object without the object part in the direction of the object part. This distance is then compared with the value that was determined for the object part in the training phase using the HOG-SVM-2 classifier. This value represents a threshold value. If the distance is below the threshold value, which specifies, for example, a height, width and / or depth for heads in images, it can be assumed that the object part (here the head) is not completely within the object marking, i.e. that the object to be detected is not completely defined by the object marking.Overall, the threshold value is used to discriminate whether the distance between the object marking section of the object marking and the object without the object part is too large or too small.
[0058] If the distance is below / above the threshold value, it can be assumed that there is an intersection with the object marking in the area of the object part, i.e. that the object marking intersects the object. The analysis method can then output a signal which, on the one hand, indicates that an object marking is not positioned correctly. On the other hand, the signal can contain information which indicates by how many pixels the position and / or size of the object marking deviates in at least one direction from an (e.g. statistically determined) ideal position and / or size. The ideal position or size is defined in the training phase based on the training image data. An evaluation is carried out on the basis of the trained models, which were trained with defined displacements and can thus specifically detect at least one displacement in one direction.
[0059] However, if the comparison shows that the distance between the object marker and the object without the object part is sufficiently large, it is assumed that the object part lies entirely within the object marker. The process can then proceed to the next step.
[0060] In a third step, the object part is examined using the cascading classifier. If the object part is not detected within the object marking, the search area in the image is gradually expanded starting from an image edge. For example, the starting point can be the upper image edge. The cascading classifier can return multiple detected objects and their coordinates. These coordinates are then used to create image sections of these object parts, which are then examined with the HOG-SVM-1 classifier. This in turn evaluates the image sections. The image sections with the highest rating are selected and a second distance of the object part to an object marking section (i.e. a section of the polygon line) of the object marking, and / or vice versa, is determined.The object marking section of the object marking may preferably be the same object marking section that was already used to determine the distance.
[0061] The second distance between the object marking section of the object marking and the object part is compared with the value determined by the HOG-SVM-1 classifier during the training phase. This can preferably be a statistically generated value or an average value. This is used as a second threshold and enables further discrimination and a statement as to whether the positioning and / or size of the object marking was chosen correctly. In particular, the second threshold determined during the training process is compared with the second distance between the object marking section and the object part. If this distance is too large or too small, a statement can be made about the position of the object marking in relation to the object as a whole. If, for example, the distance between the object marking and the object part is too large, it can be assumed that the object marking was chosen to be too large.Accordingly, the analysis method can output a signal indicating incorrect positioning of the object marker. This signal can also indicate by how many pixels in a given direction the object marker deviates from the ideal position and / or size.
[0062] If the object part cannot be detected even after enlarging the search area, incorrect positioning of the object marker can be assumed and detected. Accordingly, the analysis method can output a signal indicating incorrect positioning of the object marker.
[0063] If all steps of the analysis procedure are completed without detecting any incorrect placement of the object marker, the object marker is assessed as correctly placed and / or dimensioned. The threshold and the second threshold can be different or identical.
[0064] The following describes a concrete example of the analysis method after training for a specific object class. During training for the pedestrian object class to be examined, a measure for a head is determined and / or statistically recorded, e.g., in samples. For example, a value is calculated that indicates an average for the height of a head in an image. This is then used as a threshold. A cascading classifier is trained with thousands of heads. A HOG-SVM classifier is also trained with thousands of heads. A HOG-SVM-2 classifier is trained with thousands of images of headless bodies.
[0065] Fig. 1 The following diagram shows the general process flow of the analysis method. In a first step S1, at least one image is read from a memory. In a second step S2, a predetermined object without a predetermined object part is detected. Subsequently, in a third step S3, a signal is output if the predetermined object without a predetermined object part is not detected. Of course, a signal can also be output if the predetermined object without a predetermined object part is detected.
[0066] The actual analysis procedure for evaluating the correctness of object markings in image data is now described with a specific representation of the procedure in Fig. 2 described for an embodiment and based on Fig. 3 illustrated.
[0067] The analysis method receives as input the image part BT that is enclosed by the object marking OM, which can be defined as a polygon line or rectangle (step S10).
[0068] In step S11, a check is carried out to determine whether an object O without an object part OT, in this case a headless body, can be detected. The image is scanned using a sliding-window approach. The content of the image sections generated by the sliding-window approach is evaluated using the HOG-SVM-2 classifier. The individual image sections are then scored according to an output of the HOG-SVM-2 classifier. If a headless body cannot be detected (path N), incorrect placement of the object marker is assumed (step S16).
[0069] However, if a body without a head is detected (path J), the image section is selected with the rating that indicates the highest probability of detecting the body without a head or the object without part of the object.
[0070] In step S12, a distance D1 is then calculated or determined from an object marking section OMA or an upper edge of the object marking OM or the bounding box to the image section showing the body without the head. The upper edge of the object marking OM is understood here to be the edge of a rectangular object marking OM, which is located at the top when looking at the image part BT with the usual orientation of the object O. The distance D1 is then compared with the threshold value for the height of the head determined in the training phase and enables an initial decision as to whether the object marking OM is correctly positioned. If the determined distance D1 is smaller than the threshold value for the size of the head, incorrect placement of the object marking OM is assumed (step S16). In particular, the object marking OM can intersect the head or the edge of the object marking OM lies within the size orthe average size determined for a head in the training procedure.
[0071] However, if the distance D1 is above the threshold, it is assumed that there is sufficient space within the object marker to accommodate a head. Accordingly, a signal can be output that specifically indicates incorrect positioning of the object marker OM and also indicates by how many pixels the position of the object marker OM deviates from the ideal position in the y-direction.
[0072] If the distance D1 is greater than the threshold, step S13 checks whether an object part OT or a head in the object marking OM can be detected. An image part BT (here, the upper one) is examined using a cascading classifier. If no head is detected, the search area is gradually expanded from the upper edge of the image. The cascading classifier can return multiple detected heads and their coordinates. The coordinates are used to create image sections of the heads, which are then examined using the HOG-SVM-1 classifier.
[0073] If no head can be detected in step S13 (path N), incorrect placement of the object marker is again assumed. However, if a head is detected (path J), the analysis process can continue with step S14.
[0074] In step S14, the section with the highest score for detecting a head is then selected, and a second distance D2 from the upper object marking section OMA of the object marking OM to the image section, or vice versa, is determined. The second distance D2 is compared with a second threshold, which was also defined in the training process. In particular, the second threshold specifies a value for the distance between the head and the object marking. If the second distance D2 is greater than the second threshold, incorrect placement of the object marking is assumed (step S16). If, however, the second distance is smaller than the second threshold, correct object marking or its placement is assumed in step S15.
[0075] If an incorrect placement of the object marker OM is detected by the analysis method in step S14, the analysis method can again output a signal indicating the incorrect placement. Likewise, the deviations of the position of the object marker OM from the ideal position can be output in pixels, e.g., the deviation in pixels in the y-direction.
[0076] At each step of the analysis process, it can therefore be output whether the respective check was successful or unsuccessful, i.e., whether a correct or incorrect placement and / or size of the object marker was detected with respect to the respective step. Based on this, an automated correction of the size and / or position of the object marker can then be performed, which results in particular from the determined deviations of the distances from the respective threshold values, or the data in pixels.
[0077] The starting point here is that the training image data is correct in such a way that the object O to be recognized is correctly represented there, so that, for example, a pedestrian or cyclist can actually be recognized in the image.
[0078] In step S11 of the analysis method, in which an object O without the object part OT is initially recognized, for example a person without a head, the output that the object marking OM is incorrectly placed leads to further statements being possible about the reason why an incorrect object marking OM is assumed. For example, it is possible that an object O is at least partially obscured, which makes it impossible for the analysis method to recognize the object O or the object O without the object part OT. The additional information that the object O could not be correctly recognized at this point can then be output, for example. The assumption that an object O is represented in the image data to be analyzed later is also crucial for the data to be checked.
[0079] In step S12, a statement is preferably made about how many pixels too small the object marker OM was selected. An object marker that is too small can, for example, be the result of the object marker OM being too small or of incorrect placement. The preferably statistically determined threshold values then define where a line of the object marker is suspected.
[0080] If the object marker actually ends within the distance between the object O without the object part OT, for example, between an assumed shoulder line of a person and an "upper" object marker section OMA of the object marker OM, a quantitative statement is also possible about how many pixels the object marker OM (bounding box) was chosen too small. In particular, based on the statistical threshold value, a number of pixels can be output by which the object marker section OMA of the object marker OM is spaced from a statistically determined object marker section of an ideal object marker OM.
[0081] In step S13, an additional indication can be output indicating that if no object part OT (in particular, no head) is detected, the object part OT may be occluded. Alternatively, due to anatomical deviations (e.g., a person with a hunchback), detection of the object part OT, in particular a head, may not be possible. This information can be enhanced with additional data.
[0082] In step S14, if the object marker OM is incorrectly positioned, a statement is made regarding how many pixels the object marker section of the object marker OM is separated from a statistically determined object marker section of the object marker OM. For example, a quantitative statement can be made regarding how many pixels too high an upper line of an object marker OM was placed.
[0083] However, if steps S10 to S15 are completed and no incorrect placement of the object marker OM is detected, a qualitative statement regarding the placement of the object marker OM is also possible. This is determined in particular by a comparison with the statistical threshold values that are compared for the respective image to be examined. The quality of the object marker OM is determined in particular based on the deviation of the object marker OM from the statistically determined threshold values. For this purpose, a separate classification of the deviation can be carried out. For example, a table can be used to determine at which deviation a certain quality of the object marker placement is assumed.
[0084] In the usual orientation of a pedestrian in an image, the head is assumed to be at the top. Thus, when viewed from above, the "top edge" of the object marker OM is the relevant edge of the object marker OM. The head or the headless body serves as a starting point from which distances upwards, i.e., to the upper edge of the object marker, can be statistically determined. The detection of the head provides a measure against which the position of the upper edge of the object marker / bounding box can be checked and determined.
[0085] However, it should be understood that an implicit qualitative statement can also be made as to whether a body lies within the left or right boundary of the object marking OM. This occurs because, in the first step S11, a body that is intersected with a side edge of the object marking OM is not recognized as lying within the object marking. Incorrect placement of the object marking is then output. It should also be understood that for the specific embodiment for the pedestrian or a cyclist, other object parts of the object and their position relative to an edge of the object marking can also be checked. It is only necessary to select an appropriate classifier that can recognize, for example, a hand or a foot in the object marking. For example, if a hand is recognized, a statement can be made as to the position relative to the right or left edge of the respective object marking OM.
[0086] When a foot or leg is detected, the position of the lower edge of the object marker can be checked. For each detected part of an object, corresponding distance values can be determined and compared with threshold values determined for the respective object part during the training phase or based on it. Once again, the object can first be detected without the object part, followed by the detection of the object part, analogous to the procedure described for a pedestrian's head.
[0087] The implementation of the analysis procedure is particularly important because the head region of a pedestrian is of particular importance for in-vehicle applications. The detection of the head can be replaced by a correspondingly detected body part in the analysis procedure.
[0088] Before checking the object marking OM, i.e., in particular before step S10 or step S11, the analysis method can check whether the correct object O was marked with the object marking OM in the image, or whether the object O belongs to a specific object class, e.g., whether a pedestrian has been marked. The analysis method can then test whether the type of object O, e.g., a pedestrian whose object marking OM is to be checked, is actually present, or whether another object type is present, e.g., a vehicle or a cyclist. This check can also be performed independently of the analysis method.
[0089] For example, if it was defined that a pedestrian is marked, but a vehicle was incorrectly marked when defining the object marking, the analysis procedure can detect this.
[0090] To check the object type, the analysis method can, for example, check the aspect ratios of the object markings, whereby a tolerance range or at least one threshold value for an aspect ratio can be defined. If an aspect ratio is not within the tolerance range, i.e., a specific aspect ratio is above or below at least one threshold value, a signal is output for the image. This signal then indicates that the object marking OM marks an incorrect object O, or that the object O is not of the type to be checked, i.e., does not belong to the correct object class. The analysis method can then be terminated.
[0091] The analysis method can be carried out by an analysis unit that can process the images, e.g., in the form of a video signal, preferably in real time, store them, and output the signals. The analysis unit can use at least one processor, e.g., a "system on a chip." One or more CPUs (central processing units) and / or GPUs, encoders, and interfaces for connecting various sensors, such as optical sensors or cameras, can be used. The one or more CPUs / GPUs can also execute program code; in particular, the analysis method can be defined by program code. The at least one CPU / GPU can enable the parallelized execution of computing operations, e.g., calculating with Open GL or inserting overlay image data into image data. An image signal processor (ISP) can be used for image processing.This can, for example, receive data from images and / or image sensors and enhance the quality, for example, through automatic white balance. The analysis unit further comprises at least one volatile and / or non-volatile memory that at least partially stores the image data and / or the training image data. The image data, data about object markings OM, and / or the training image data are read from the at least one volatile and / or non-volatile memory by the analysis method when the analysis method is executed on the processor (CPU and / or GPU).
[0092] The signals can then be output acoustically and / or visually on a display unit. Alternatively or additionally, the information from the signals can be output to the at least one and / or another volatile and / or non-volatile memory, e.g., to a file. The image data and / or the training image data can also be fed to the analysis unit via an optical sensor (e.g., camera).
[0093] Fig. 4 shows a schematic of an analysis unit AE. Data D is input to the analysis unit AE, which can be received by the analysis unit AE, stored in at least one memory S, and evaluated and processed by at least one processor P. The analysis unit AE then outputs the signals S accordingly.
[0094] The analysis method can be stored in the memory S in the form of computer program instructions, and the computer program instructions can be executed at least by the analysis unit AE to carry out an analysis method. The computer program instructions can be stored as a computer program product.
Claims
1. Method for analysing training data for vehicle environment sensing in order to improve machine learning of an appearance of a predetermined object, wherein - the method reads (S1) data of at least one image from a memory (S), - the image shows a predetermined object (O), - a predetermined object portion (OT) of the predetermined object (O) is specified and - an object marking (OM) surrounding the predetermined object (O) is defined for the predetermined object (O), characterized a) in that the method determines whether the predetermined object (O) without the predetermined object portion (OT) can be detected (S2) within the object marking (OM) by means of a classifier, - wherein the method, if the predetermined object (O) without the predetermined object portion (OT) cannot be detected within the object marking (OM), outputs (S3) a first signal indicating that the object marking (OM) is incorrectly defined, b) in that the method otherwise ascertains (S12) a distance (D1) between an object marking section (OMA) of the object marking (OM), which object marking section is reached first by a centroid of the object (O) without the predetermined object portion (OT) in the direction of the predetermined object portion (OT), and the predetermined object (O) without the predetermined object portion (OT) and checks whether this distance (D1) exceeds / falls below a threshold value, - wherein the method, if the ascertained distance (D1) falls below the threshold value, outputs (S16) a second signal indicating that the object marking (OM) is incorrectly defined, c) in that the method otherwise, if the ascertained distance (D1) exceeds the threshold value, furthermore determines whether the predetermined object portion (OT) can be detected (S13) in the image by means of the classifier and, if the predetermined object portion (OT) is not detected in the image, outputs (S16) a third signal indicating that the object marking (OM) is incorrectly defined, d) in that the method otherwise, if the predetermined object portion (OT) can be detected in the image, furthermore determines a second distance (D2) between the object marking section (OMA) and the predetermined object portion (OT) and determines whether the second distance (D2) exceeds / falls below a second threshold value, - wherein the method, if the second distance (D2) exceeds the second threshold value, outputs (S14) a fourth signal indicating that the object marking (OM) is incorrectly defined, and e) in that the method otherwise, if the second distance (D2) falls below the second threshold value, outputs (S15) a fifth signal indicating that the object marking (OM) is correctly defined for the predetermined object (O) .
2. Method according to Claim 1, wherein the method reads in data concerning the object marking (OM) with the data of the image from the memory (S), or recognizes the object marking (OM) in data of the image.
3. Method according to either of the preceding claims, wherein the method, by way of the outputting of the signals, outputs (S12, S14) a pixel value specifying by how much a position of the object marking (OM) deviates from a predetermined ideal position of the object marking (OM) .
4. Method according to any of the preceding claims, wherein before the detection of the predetermined object (O) without the predetermined object portion (OT), the method is supplied with data of training images which each comprise at least one object from a class of the predetermined object (O), wherein in each case at least one object marking (OM) with a predetermined deviation is defined for the object and wherein each object comprises an object portion.
5. Method according to any of the preceding claims, wherein the method, for each of the training images, detects the predetermined object portion (OT) and ascertains the threshold value therefor, wherein the threshold value represents a dimension of the predetermined object portion (OT).
6. Method according to any of the preceding claims, wherein the method, for each of the training images, determines a distance (D2) between an object marking section (OMA) and the predetermined object portion (OT) and ascertains the second threshold value therefrom, wherein the second threshold value represents a distance from an object marking section (OMA) to the predetermined object portion (OT).
7. Method according to any of the preceding claims, wherein the object marking (OM) is substantially a polygon line progression.
8. Method according to any of the preceding claims, wherein the predetermined object (O) is a pedestrian or a cyclist.
9. Method according to any of the preceding claims, wherein the predetermined object portion (OT) is a head, a hand, an arm, a foot, a leg or a portion thereof.
10. Method according to any of the preceding claims, wherein the method initially extracts the image portion (BT) defined by the object marking (OM) and executes the further steps of the method on the image portion (BT).
11. Method according to any of Claims 4 to 10, wherein the method initially checks whether an object (O) defined by the object marking (OM) is from the class of the predetermined object (O), wherein the method determines an aspect ratio of the object marking (OM), compares it with at least one threshold value for the aspect ratio and outputs a signal indicating that the object (O) is or is not from the class of the predetermined object (O) if the aspect ratio exceeds / falls below the threshold value for the aspect ratio.
12. Method according to any of the preceding claims, wherein the method, on the basis of the training images, defines at least one classifier for the predetermined object (O) without the predetermined object portion (OT) and / or the predetermined object portion (OT), and / or wherein the method uses the at least one classifier for detecting the predetermined object (O) without the predetermined object portion (OT) and / or the predetermined object portion (OT).
13. Method according to any of the preceding claims, wherein the method, on the basis of the training images, defines at least one cascading classifier and / or at least two HOG-SVM classifiers, wherein the method uses one HOG-SVM classifier for detecting the predetermined object (O) without the predetermined object portion (OT) and / or uses the cascading classifier and / or a second HOG-SVM classifier for detecting the predetermined object portion (OT) .
14. Method according to any of the preceding claims, wherein the method determines a deviation of the object marking from a predetermined ideal position and / or size of the object marking and automatically corrects the deviation and / or outputs a signal indicating how the object marking should be adapted to the ideal position and / or size.
15. Method according to any of the preceding claims, wherein the predetermined object (O) is a human body, wherein the predetermined object portion (OT) is a head, wherein the object marking (OM) is a rectangle and wherein the object marking section (OMA) is the upper edge of the rectangle.
16. Computer program product, wherein the computer program product stores computer program instructions in a computer-readable memory (S), and the computer program instructions cause at least one analysis unit (AE) to execute a method according to any of the preceding claims when the computer program instructions are read and / or executed by the analysis unit (AE).
17. Analysis unit (AE) for analysing training data for vehicle environment sensing in order to improve machine learning of an appearance of a predetermined object, wherein the analysis unit comprises at least a memory (S), which stores the image data (D), data concerning object markings (OM) and / or the training image data, and a processor (P) configured to execute a method according to any of Claims 1 to 15, wherein in the course of execution, the image data (D), data concerning object markings (OM) and / or the training image data are read from the memory (S) by the analysis unit (AE) and are processed by the processor (P), and wherein the analysis unit (AE) outputs signals of the method.
