Target determination method and device

By determining the score and the number of occurrences of the candidate target bounding box in the fish-eye image, combined with threshold judgment, the problem of low skeleton detection accuracy in the fish-eye image is solved, the accurate positioning of the handle is achieved, and the judgment of the driver's entry and exit status is improved. reliability.

CN118736616APending Publication Date: 2024-10-01FUJITSU LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310332463.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-30
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

For fisheye images, the accuracy of skeleton detection is low, making it difficult to accurately determine the driver's getting on and off the vehicle. Existing methods have difficulty finding the real handle from among the many detected targets.

Method used

By determining the candidate target bounding box, scoring and recording its occurrence times, threshold judgment is used to determine the true target bounding box based on the score and the number of occurrences in consecutive video frames to ensure accurate positioning of the handle in the fisheye image.

Benefits of technology

The target detection accuracy under fisheye image conditions is improved, and the real handle can be accurately located from multiple detected candidate targets, which enhances the reliability of the driver's judgment on the status of getting on and off the vehicle.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118736616A_ABST
    Figure CN118736616A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a target determination method and device. The method comprises the following steps: determining a candidate target bounding box; scoring the candidate target bounding box, and recording the candidate target bounding box and the score and the occurrence frequency of the candidate target bounding box into a candidate target bounding box list; and determining a target according to the score and the occurrence frequency of each candidate target bounding box in the candidate target bounding box list obtained by continuous video frames. According to the embodiment of the invention, the target bounding box (handle bounding box) is found from the detected candidate target bounding boxes (candidate handle bounding boxes) based on the in-vehicle video, so that the target (handle) is positioned.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of image processing technology. Background Art

[0002] With the development of information technology, image-based target detection technology is being used more and more widely. For example, in the field of video surveillance, target detection technology can be used to detect targets on video frames to obtain target bounding box information or key point information of the target, where the key points are, for example, 18 key points of the target person's skeleton, including neck, nose, left shoulder, right shoulder, left hip, right hip, left eye, right eye, left elbow, right elbow, left knee, right knee, left ear, right ear, left wrist, right wrist, left ankle and right ankle.

[0003] It should be noted that the above introduction to the technical background is only for the convenience of providing a clear and complete description of the technical solutions of the present application and for the convenience of understanding by those skilled in the art. It cannot be considered that the above technical solutions are well known to those skilled in the art simply because these solutions are described in the background technology part of the present application. Summary of the invention

[0004] The inventors found that the skeleton detection model can work normally for general images, but the accuracy of skeleton detection is low for fisheye images. In addition, the current method for determining the driver's boarding and alighting status is based on the positional relationship between the driver's skeleton and the detected target (such as a handle). How to find the desired target (such as the real handle) from the many detected targets is very important for the determination method.

[0005] In response to at least one of the above technical problems or other similar problems, the embodiments of the present application provide a target determination method and device, hoping to find a real target from a large number of detected targets.

[0006] According to one aspect of an embodiment of the present application, a target determination device is provided, the device comprising:

[0007] A first determination unit, which determines a candidate object bounding box;

[0008] a processing unit, which scores the candidate target bounding box and records the candidate target bounding box, its score and the number of occurrences thereof into a candidate target bounding box list;

[0009] A second determination unit, which determines a target according to a score and a number of occurrences of each candidate target bounding box in the candidate target bounding box list obtained from continuous video frames;

[0010] in,

[0011] If the maximum number of occurrences is less than a first threshold value (n1), and the maximum score is greater than a second threshold value (f1), the second determination unit determines the candidate target corresponding to the candidate target bounding box with the largest number of occurrences as the target;

[0012] Otherwise, if the difference between the maximum number of occurrences and the second maximum number of occurrences is less than a third threshold value (n2), the second determining unit determines the candidate target corresponding to the candidate target bounding box with the largest score as the target;

[0013] Otherwise, the second determining unit determines the candidate target corresponding to the candidate target bounding box having the largest number of occurrences as the target.

[0014] According to another aspect of an embodiment of the present application, a target determination method is provided, wherein the method includes:

[0015] Determine candidate object bounding boxes;

[0016] Scoring the candidate target bounding box, and recording the candidate target bounding box, its score and the number of occurrences thereof into a candidate target bounding box list;

[0017] Determine a target according to the score and the number of occurrences of each candidate target bounding box in the candidate target bounding box list obtained from continuous video frames;

[0018] in,

[0019] If the maximum number of occurrences is less than the first threshold (n1), and the maximum score is greater than the second threshold (f1), the candidate target corresponding to the candidate target bounding box with the largest number of occurrences is determined as the target;

[0020] Otherwise, if the difference between the maximum number of occurrences and the second maximum number of occurrences is less than a third threshold (n2), determining the candidate target corresponding to the candidate target bounding box with the largest score as the target;

[0021] Otherwise, the candidate target corresponding to the candidate target bounding box with the largest number of occurrences is determined as the target.

[0022] According to another aspect of the embodiments of the present application, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the computer program to implement the following method:

[0023] Determine candidate object bounding boxes;

[0024] Scoring the candidate target bounding box, and recording the candidate target bounding box, its score and the number of occurrences thereof into a candidate target bounding box list;

[0025] Determine a target according to the score and the number of occurrences of each candidate target bounding box in the candidate target bounding box list obtained from continuous video frames;

[0026] in,

[0027] If the maximum number of occurrences is less than the first threshold (n1), and the maximum score is greater than the second threshold (f1), the candidate target corresponding to the candidate target bounding box with the largest number of occurrences is determined as the target;

[0028] Otherwise, if the difference between the maximum number of occurrences and the second maximum number of occurrences is less than a third threshold (n2), determining the candidate target corresponding to the candidate target bounding box with the largest score as the target;

[0029] Otherwise, the candidate target corresponding to the candidate target bounding box with the largest number of occurrences is determined as the target.

[0030] One of the beneficial effects of the embodiment of the present application is that according to the embodiment of the present application, the target bounding box (handle bounding box) is found from the detected candidate target bounding boxes (candidate handle bounding boxes) based on the in-vehicle video, thereby locating the target (handle).

[0031] With reference to the following description and accompanying drawings, the specific implementation of the embodiment of the present application is disclosed in detail, indicating the way in which the principle of the embodiment of the present application can be adopted. It should be understood that the implementation of the present application is not limited in scope. Within the scope of the spirit and clauses of the attached claims, the implementation of the present application includes many changes, modifications and equivalents. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The included drawings are used to provide a further understanding of the embodiments of the present application, which constitute a part of the specification, are used to illustrate the implementation methods of the present application, and together with the text description, explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other implementation methods can be obtained based on these drawings without creative work. In the drawings:

[0033] Figure 1 It is a schematic diagram of an application scenario of an embodiment of the present application;

[0034] Figure 2 is another schematic diagram of an application scenario of an embodiment of the present application;

[0035] Figure 3 This is a schematic diagram of a video frame captured by a camera installed on the roof of a cabinet forklift.

[0036] Figure 4 is a schematic diagram of a target determination method according to an embodiment of the present application;

[0037] Figure 5 is another schematic diagram of the target determination method of an embodiment of the present application;

[0038] Figure 6 is a schematic diagram of an example of the effect of the method according to the embodiment of the present application;

[0039] Figure 7 is a schematic diagram of another example showing the effect of the method according to an embodiment of the present application;

[0040] Figure 8 is a schematic diagram of a target determination device according to an embodiment of the present application;

[0041] Fig. 9 is another schematic diagram of the target determination device according to an embodiment of the present application;

[0042] Fig.10 is a schematic diagram of a computer device according to an embodiment of the present application;

[0043] Fig.11 is another schematic diagram of a computer device according to an embodiment of the present application. DETAILED DESCRIPTION

[0044] With reference to the accompanying drawings, the foregoing and other features of the embodiments of the present application will become apparent through the following description. In the description and the accompanying drawings, specific embodiments of the present application are specifically disclosed, which show some embodiments in which the principles of the embodiments of the present application can be adopted. It should be understood that the present application is not limited to the described embodiments. On the contrary, the embodiments of the present application include all modifications, variations and equivalents that fall within the scope of the attached claims.

[0045] In the embodiments of the present application, the terms "first", "second", etc. are used to distinguish different elements in terms of title, but do not indicate the spatial arrangement or temporal order of these elements, etc., and these elements should not be limited by these terms. The term "and / or" includes any one and all combinations of one or more of the associated listed terms. The terms "comprising", "including", "having", etc. refer to the presence of the stated features, elements, components or components, but do not exclude the presence or addition of one or more other features, elements, components or components.

[0046] In the embodiments of the present application, the singular forms "a", "the", etc. include plural forms and should be broadly understood as "a kind" or "a type" rather than being limited to the meaning of "one"; in addition, the term "said" should be understood to include both singular and plural forms, unless the context clearly indicates otherwise. In addition, the term "according to" should be understood as "at least in part according to...", and the term "based on" should be understood as "at least in part based on...", unless the context clearly indicates otherwise.

[0047] Features described and / or shown for one embodiment may be used in one or more other embodiments in the same or similar manner, combined with features in other embodiments, or replace features in other embodiments. The term "includes / comprising" when used herein refers to the presence of a feature, an entirety, a step, or a component, but does not exclude the presence or addition of one or more other features, entireties, steps, or components.

[0048] In the embodiment of the present application, the application scenario is a forklift as an example, and the 360° camera image (i.e., fisheye image) taken by the driving recorder on the ceiling of the forklift is taken as an example. However, the present application is not limited thereto, and the application scenario of the embodiment of the present application may also be other vehicles, and the video images involved in the embodiment of the present application may also be obtained by other cameras, which may be set inside the vehicle or outside the vehicle, such as on a roadside lamp post, etc.

[0049] Figure 1 and Figure 2 Schematic diagram of two application scenarios of the embodiment of the present application. Figure 1 This is a counter forklift, and the rectangular box in the figure is where the handle is located; Figure 2 For a reach forklift, similarly, the rectangular box in the figure is where the handle is located. However, if the background of the image (video frame) is complex, or the captured image is blurred, the detector (existing object detection method) may output many handles, including false detections.

[0050] Figure 3 is a schematic diagram of a video frame captured by a camera installed on the roof of a cabinet forklift. Figure 3 As shown, the background of the video frame is very complex. According to the existing target detection method, many handle bounding boxes are obtained, which means that these handle bounding boxes may all be handles. However, only rectangular box 30 is a real handle, and other rectangular boxes, such as rectangular box 31, are fake handles. One of the purposes of the embodiment of the present application is to locate the real handle.

[0051] In addition, the present application does not limit the method of obtaining the bounding box. It can be obtained by performing target detection on the video frame, such as by detecting it through a target detector. Existing target detection methods, models, networks, etc. can be used in the present application. It can also be pre-set, such as when the target bounding box is not detected by the target detector, or when the confidence of the detected target bounding box is too low, etc. In addition, for the convenience of explanation, the present application takes the handle of a forklift as an example of the target to be confirmed, but the present application is not limited to this. As the detected target, it can be other parts of the forklift, such as a steering wheel, pedals, etc.; and in other scenarios other than the forklift, the detected target can also be other parts. One of the purposes of the embodiments of the present application is to locate the real target from multiple detected candidate targets.

[0052] Various implementations of the embodiments of the present application are described below in conjunction with the accompanying drawings.

[0053] Embodiments of the first aspect

[0054] An embodiment of the present application provides a target determination method. Figure 4 is a schematic diagram of a target determination method according to an embodiment of the present application. Figure 4 As shown, the method includes:

[0055] 401: Determine a candidate target bounding box;

[0056] 402: Score the candidate target bounding box, and record the candidate target bounding box, its score, and the number of occurrences into a candidate target bounding box list;

[0057] 403: Determine a target according to the score and the number of occurrences of each candidate target bounding box in the candidate target bounding box list obtained from continuous video frames.

[0058] It is worth noting that the above Figure 4 The embodiments of the present application are only schematically described, but the present application is not limited thereto. For example, the execution order of the various operations can be appropriately adjusted, and other operations can be added or some operations can be reduced. Those skilled in the art can make appropriate modifications based on the above content, and are not limited to the above appended Figure 4 Records of.

[0059] In an embodiment of the present application, a target is determined based on the score and number of occurrences of each candidate target bounding box, which can be: if the maximum number of occurrences is less than a first threshold (n1) and the maximum score is greater than a second threshold (f1), then the candidate target corresponding to the candidate target bounding box with the largest number of occurrences is determined as the target; otherwise, if the difference between the maximum number of occurrences and the second largest number of occurrences is less than a third threshold (n2), then the candidate target corresponding to the candidate target bounding box with the largest score is determined as the target; otherwise, the candidate target corresponding to the candidate target bounding box with the largest number of occurrences is determined as the target.

[0060] According to the above embodiment, based on the in-car video, from the candidate target bounding boxes determined, according to the scores and the number of occurrences of each candidate target bounding box, the target bounding box is found, thereby locating the real target. Taking the handle as the detected target as an example, according to the embodiment of the present application, based on the in-car video, from the candidate handle bounding boxes determined, according to the scores and the number of occurrences of each candidate handle bounding box, the real handle bounding box is determined, and then the real handle is located from the determined multiple candidate handles.

[0061] In the embodiment of the present application, in step 401, there is no limitation on the method for obtaining the candidate target bounding box. For example, the candidate target bounding box can be obtained by a target detection method. Existing methods, models, networks, etc. that can be used for target detection can be used in the present application; or, the candidate target bounding box can be obtained by a predefined method, etc. For details, please refer to the relevant technology, and the description is omitted here.

[0062] In the embodiment of the present application, in step 402, a candidate target bounding box list may be maintained, and the list may include multiple entries, each entry corresponding to a candidate target bounding box and its score and number of occurrences. In addition, each entry may also include other items for identifying the candidate target box, such as the index / serial number of the candidate target bounding box, the coordinates of the center point of the candidate target bounding box, the length and width of the candidate target bounding box, the vertex coordinates of the candidate target bounding box, etc.

[0063] In the above embodiment, through the target detection or predefinition of step 401, multiple candidate target bounding boxes can be obtained, and each candidate target bounding box can be identified by the following parameters, including but not limited to: the score (or confidence) of the candidate target bounding box, the center point coordinates of the candidate target bounding box, the length and width of the candidate target bounding box, the vertex coordinates of the candidate target bounding box, etc.

[0064] In step 402 , the candidate target bounding box list may be updated according to whether the candidate target bounding box is a new bounding box or an old bounding box.

[0065] For example, if the obtained candidate target bounding box is a new bounding box, that is, the candidate target bounding box appears for the first time, the candidate target bounding box is added to the candidate target bounding box list, and its parameters, such as the score, are added to the entry corresponding to the candidate target bounding box. In addition, the number of occurrences of the candidate target bounding box is updated. Since the candidate target bounding box appears for the first time, its number of occurrences can be updated to 1.

[0066] For another example, when the candidate target bounding box obtained is an old bounding box, that is, the candidate target bounding box has appeared in the previous video frame, the entry corresponding to the candidate target bounding box in the candidate target bounding box list is updated. For example, the number of occurrences is increased by 1, and when the score of the candidate target bounding box obtained through this detection is greater than the score corresponding to the candidate target bounding box recorded in the list, the score corresponding to the candidate target bounding box in the candidate target bounding box list is updated. If the score of the candidate target bounding box obtained through this detection is not greater than the score corresponding to the candidate target bounding box recorded in the list, there is no need to update the score corresponding to the candidate target bounding box in the candidate target bounding box list.

[0067] In the above embodiment, whether the detected candidate target bounding box is a new bounding box or an old bounding box may be determined based on whether the candidate target bounding box overlaps with an existing candidate target bounding box recorded in the candidate target bounding box list.

[0068] For example, if the candidate target bounding box does not overlap with any candidate target bounding box in the candidate target bounding box list, the candidate target bounding box is determined to be a new bounding box, and the new bounding box and its score and number of occurrences are recorded in the candidate target bounding box list.

[0069] For another example, if the candidate target bounding box overlaps with any candidate target bounding box in the candidate target bounding box list, the candidate target bounding box is determined to be an old bounding box, and the number of occurrences of the old bounding box in the candidate target bounding box list is updated. In addition, if the score changes and is greater than the score corresponding to the candidate target bounding box recorded in the candidate target bounding box list, the number of occurrences and the score can be updated at the same time. Alternatively, regardless of whether the score changes, the number of occurrences and the score of the old bounding box in the candidate target bounding box list are updated, thereby reducing the amount of calculation for the judgment operation.

[0070] In the above embodiment, it is also possible to determine whether the detected candidate target bounding box is a new bounding box or an old bounding box in combination with whether the candidate target bounding box overlaps with the predetermined bounding box. Here, the predetermined bounding box is another bounding box different from the candidate target bounding box. For example, the candidate target bounding box is a handle bounding box, and the predetermined bounding box may be a steering wheel bounding box. That is, in the embodiment of the present application, it is possible to determine whether the candidate handle bounding box is a new bounding box or an old bounding box in combination with whether the candidate handle bounding box overlaps with the steering wheel bounding box.

[0071] For example, if the candidate target bounding box overlaps with the predetermined bounding box, the candidate target bounding box is considered to be an old bounding box, or the candidate target bounding box is considered to be an erroneous detection, and no processing is performed on the candidate target bounding box, or if the candidate target bounding box is recorded in the candidate target bounding box list, the information in its entry (number of occurrences, score, etc.) is updated.

[0072] For another example, if the candidate target bounding box does not overlap with the predetermined bounding box, and the candidate target bounding box does not overlap with any candidate target bounding box in the candidate target bounding box list, the candidate target bounding box is considered to be a new bounding box, and the candidate target bounding box and its score and number of occurrences can be recorded in the candidate target bounding box. The recording method is similar to the recording method of the new bounding box mentioned above, and will not be repeated here.

[0073] The present application does not restrict the selection of the predetermined bounding box. When the target bounding box is the handle bounding box, the predetermined bounding box may be a steering wheel bounding box, or a bounding box of other components of the forklift, such as a pedal bounding box, a seat bounding box, etc., as long as it can be used to distinguish the target bounding box (handle bounding box).

[0074] In the embodiment of the present application, after obtaining a list of candidate target bounding boxes of continuous video frames through the operations of steps 401 and 402, in step 403, the target can be determined according to the score and number of occurrences of each candidate target bounding box recorded in the list of candidate target bounding boxes.

[0075] In the above embodiment, if there is only one candidate target bounding box in the above candidate target bounding box list, that is, after target detection or predefinition of multiple consecutive video frames, only one candidate target bounding box is obtained, then the candidate target corresponding to the candidate target bounding box is considered to be the real target; if there are multiple candidate target bounding boxes in the above candidate target bounding box list, that is, after target detection or predefinition of multiple consecutive video frames, multiple candidate target bounding boxes are obtained, the real target can be located according to the scores and occurrence times of these candidate target bounding boxes.

[0076] In some embodiments, the multiple candidate target bounding boxes can be sorted in descending order (from large to small) according to the number of occurrences and scores of the candidate target bounding boxes, thereby obtaining the candidate target bounding box with the largest number of occurrences, the candidate target bounding box with the second largest number of occurrences, the candidate target bounding box with the largest score, the candidate target bounding box with the second largest score, etc., and then the target is determined according to the sorted candidate target bounding boxes.

[0077] For example, take a handle as the detected target.

[0078] In the above embodiment, the candidate handle bounding boxes recorded in the candidate handle bounding box list are sorted in descending order of the number of occurrences, and the following results are obtained:

[0079] Handle_occur[·]:

[0080] Occurrences(Handle_occur[0])>Occurrences(Handle_occur[1])>…

[0081] In the above embodiment, the candidate handle bounding boxes recorded in the candidate handle bounding box list are sorted in descending order of scores, and the following results are obtained:

[0082] Handle_score[ ]:

[0083] max_score(Handle_score[0])>max_score(Handle_score[1])>…

[0084] In the above embodiment, the real target can be determined according to the following method:

[0085] If Handle_occur[0] is less than n1 (the first threshold) and Handle_score[0] is greater than f1 (the second threshold), the handle corresponding to Handle_occur[0] is determined as the real handle. That is, when the score meets the conditions, the handle corresponding to the maximum number of occurrences is determined as the real handle.

[0086] Otherwise, if the difference between Handle_occur[0] and Handle_occur[1] is less than n2 (the third threshold), the handle corresponding to Handle_score[0] is determined as the real handle. That is, when the number of occurrences is similar, the handle corresponding to the largest score is determined as the real handle.

[0087] Otherwise, the handle corresponding to Handle_occur[0] is determined as the real handle. That is, when the score does not meet the conditions and the number of occurrences differs greatly, the handle corresponding to the maximum number of occurrences is determined as the real handle.

[0088] In the above embodiment, the first threshold n1 and the third threshold n2 are both integers. The present application does not impose any restrictions on the values ​​of the first threshold n1 and the third threshold n2. For example, the first threshold n1 and the third threshold n2 can be determined based on the number of candidate handle bounding boxes in the candidate handle bounding box list, or can be determined based on other factors, and so on.

[0089] In the above embodiment, the second threshold f1 corresponds to a score, that is, a confidence level, and therefore, is a floating value between 0 and 1, that is, 0≤f1≤1. The present application does not limit the value of the second threshold f1, and can be set according to the accuracy of target detection, or can be set considering other factors, and so on.

[0090] In the above embodiment, sorting is performed before determining the real target is only an example, and the present application is not limited thereto. In some embodiments, sorting may not be performed, but the candidate target bounding boxes with the largest and second largest scores and the candidate target bounding boxes with the largest and second largest number of occurrences may be directly selected from the candidate target bounding boxes in the candidate target bounding box list to perform the above judgment to determine the real target.

[0091] In the above embodiment, determining the true target based on the candidate target bounding boxes with the largest and second largest scores and the candidate target bounding boxes with the largest and second largest number of occurrences is taken as an example, but the present application is not limited to this. Other rules may also be used based on the number of candidate target bounding boxes in the candidate target bounding box list, such as determining the true target for other candidate target bounding boxes based on scores and number of occurrences.

[0092] Figure 5 FIG. 1 is a schematic diagram of an application of the target determination method of an embodiment of the present application, showing the process from acquiring a video frame to determining the driver's boarding and exiting status. Figure 5 As shown, the process includes:

[0093] 501: The input video frame / picture enters the network model;

[0094] 502: Generate key points of the character skeleton;

[0095] 503: Identify the driver;

[0096] 504: Find the handle;

[0097] 505: Confirm boarding and alighting events.

[0098] It is worth noting that the above Figure 5 The embodiments of the present application are only schematically described, but the present application is not limited thereto. For example, the execution order of the various operations can be appropriately adjusted, and other operations can be added or some operations can be reduced. Those skilled in the art can make appropriate modifications based on the above content, and are not limited to the above appended Figure 5 Records of.

[0099] In the above embodiment, in step 504 of finding the handle, the handle can be determined according to the method of the embodiment of the present application. The specific implementation process of other steps can refer to the relevant technology, and the present application does not limit this.

[0100] Figure 6 is a schematic diagram of an example of the effect of the method according to the embodiment of the present application. Figure 6 In the example, take the cabinet forklift as an example, Figure 6 As shown, in this example, n1=10, n2=5, and f1=0.8 are taken as an example.

[0101] like Figure 6 As shown, four handle bounding boxes are obtained by the target detection method or the predefined method, namely: 60, 61, 62 and 63. According to the method of the embodiment of the present application, the handle bounding boxes 61 to 63 are excluded, and the handle corresponding to the handle bounding box 60 is determined to be the real handle. Therefore, according to the method of the embodiment of the present application, the real target is determined from the many detected targets.

[0102] Figure 7 is a schematic diagram of another example showing the effect of the method according to an embodiment of the present application, in Figure 7 In the example, we still take the cabinet forklift as an example. Figure 7 As shown, in this example, n1=10, n2=5, and f1=0.8 are still taken as an example.

[0103] like Figure 7 As shown, eight handle bounding boxes are obtained by the target detection method or the predefined method, namely: 70, 71, 72, 73, 74, 75, 76, 77. According to the method of the embodiment of the present application, the handle bounding boxes 71 to 77 are excluded, and the handle corresponding to the handle bounding box 70 is determined to be the real handle. Therefore, according to the method of the embodiment of the present application, the real target is determined from the many detected targets.

[0104] The above embodiments are merely exemplary of the embodiments of the present application, but the present application is not limited thereto, and appropriate modifications may be made based on the above embodiments. For example, the above embodiments may be used alone, or one or more of the above embodiments may be combined.

[0105] According to an embodiment of the present application, based on the in-vehicle video, from the candidate target bounding boxes detected, the target bounding box is found according to the score and number of occurrences of each candidate target bounding box, thereby locating the real target.

[0106] Embodiments of the second aspect

[0107] An embodiment of the present application provides a target determination device, the principle of solving the problem by the device is the same as that of the embodiment of the first aspect, and the contents that are the same as those of the embodiment of the first aspect will not be repeated.

[0108] Figure 8 is a schematic diagram of a target determination device according to an embodiment of the present application. Figure 8 As shown, the target determination device 800 includes:

[0109] A first determining unit 801, which determines a candidate object bounding box;

[0110] A processing unit 802 scores the candidate target bounding box and records the candidate target bounding box, its score and the number of occurrences thereof into a candidate target bounding box list;

[0111] The second determination unit 803 determines the target according to the score and the number of occurrences of each candidate target bounding box in the candidate target bounding box list obtained from the continuous video frames.

[0112] In an embodiment of the present application, if the maximum number of occurrences is less than a first threshold value (n1) and the maximum score is greater than a second threshold value (f1), the second determination unit 803 determines the candidate target corresponding to the candidate target bounding box with the largest number of occurrences as the target; otherwise, if the difference between the maximum number of occurrences and the second largest number of occurrences is less than a third threshold value (n2), the second determination unit 803 determines the candidate target corresponding to the candidate target bounding box with the largest score as the target; otherwise, the second determination unit 803 determines the candidate target corresponding to the candidate target bounding box with the largest number of occurrences as the target.

[0113] According to an embodiment of the present application, the target is determined based on the maximum number of occurrences, the second largest number of occurrences, the maximum score and the second largest score of the candidate target bounding box, so that the real target can be found from the numerous detected candidate targets.

[0114] In some embodiments, if the candidate target bounding box does not overlap with any candidate target bounding box in the candidate target bounding box list, the processing unit 802 determines that the candidate target bounding box is a new bounding box, and records the new bounding box and its score and number of occurrences into the candidate target bounding box list.

[0115] In some embodiments, if the candidate target bounding box does not overlap with any candidate target bounding box in the candidate target bounding box list, and the candidate target bounding box does not overlap with the predetermined bounding box on the current video frame, the processing unit 802 determines that the candidate target bounding box is a new bounding box, and records the candidate target bounding box and its score and number of occurrences in the candidate target bounding box list.

[0116] In some embodiments, if the candidate target bounding box overlaps with any candidate target bounding box in the candidate target bounding box list, the processing unit 802 determines that the candidate target bounding box is an old bounding box, and updates the score and the number of occurrences of the old bounding box in the candidate target bounding box list.

[0117] In some embodiments, if there is only one candidate target bounding box in the candidate target bounding box list, the second determining unit 803 determines that the target corresponding to the candidate target bounding box is the selected target.

[0118] In some embodiments, if there are multiple candidate target bounding boxes in the candidate target bounding box list, the second determining unit 803 sorts the candidate target bounding boxes in the candidate target bounding box list in descending order of the number of occurrences of the candidate target bounding boxes and in descending order of the scores of the candidate target bounding boxes, and determines the target according to the sorted candidate target bounding boxes.

[0119] In some embodiments, the candidate object bounding box is a candidate handle bounding box, and the object to be detected is a handle.

[0120] Fig. 9 is another schematic diagram of the target determination device according to an embodiment of the present application. Fig. 9 As shown, the target determination device 900 includes:

[0121] A detection module 901 performs target detection on an input video frame to obtain a bounding box of a target, key points of a target person, etc. on the video frame;

[0122] The recognition module 902 scores the candidate target bounding boxes and records the candidate target bounding boxes and their scores and occurrence times in a candidate target bounding box list; the target is determined based on the scores and occurrence times of each candidate target bounding box in the candidate target bounding box list obtained from continuous video frames.

[0123] In an embodiment of the present application, if the maximum number of occurrences is less than a first threshold value (n1) and the maximum score is greater than a second threshold value (f1), the recognition module 902 determines the candidate target corresponding to the candidate target bounding box with the largest number of occurrences as the target; otherwise, if the difference between the maximum number of occurrences and the second largest number of occurrences is less than a third threshold value (n2), the recognition module 902 determines the candidate target corresponding to the candidate target bounding box with the largest score as the target; otherwise, the recognition module 902 determines the candidate target corresponding to the candidate target bounding box with the largest number of occurrences as the target.

[0124] In the above embodiment, the detection module 901 can Figure 8 The target determination device 800 can be implemented by the first determination unit 801; the identification module 902 can be Figure 8 The target determination device 800 is implemented by the processing unit 802 and the second determination unit 803, and the target determination device 900 can implement the target determination method of the embodiment of the first aspect. The content of the embodiment of the first aspect is incorporated here and will not be repeated here.

[0125] It is worth noting that the above only describes the components or modules related to the present application, but the present application is not limited thereto. The target determination apparatus 800, 900 may also include other components or modules, and the specific contents of these components or modules may refer to the relevant technology.

[0126] To keep it simple, Figure 8 and Fig. 9 The connection relationship or signal direction between various components or modules is only exemplified, but it should be clear to those skilled in the art that various related technologies such as bus connection can be used. The above-mentioned components or modules can be implemented by hardware facilities such as processors and memories; the embodiments of the present application are not limited to this.

[0127] The above embodiments are merely exemplary of the embodiments of the present application, but the present application is not limited thereto, and appropriate modifications may be made based on the above embodiments. For example, the above embodiments may be used alone, or one or more of the above embodiments may be combined.

[0128] According to an embodiment of the present application, the target is determined based on the maximum number of occurrences, the second largest number of occurrences, the maximum score and the second largest score of the candidate target bounding box, so that the real target can be found from the numerous detected candidate targets.

[0129] Embodiments of the third aspect

[0130] The present application provides a computer device, including the target determination device 800, 900 as described in the embodiment of the second aspect, the contents of which are incorporated herein. The computer device can be, for example, a computer, a server, a workstation, a laptop computer, a smart phone, etc., but the embodiments of the present application are not limited thereto.

[0131] Fig.10 Schematic diagram of a computer device according to an embodiment of the present application. Fig.10 As shown, the computer device 1000 may include: a processor (e.g., a central processing unit CPU) 1001 and a memory 1002; the memory 1002 is coupled to the central processing unit 1001. The memory 1002 may store various data; in addition, it may store information processing programs, and execute the programs under the control of the processor 1001. In addition, the computer device 1000 may also include a communication interface 1010, which is used to exchange data with the outside, for example, to obtain video data from an image acquisition device (e.g., a driving recorder, a camera, etc.) through the communication interface 1010, and for example, to send the judgment result to an external device through the communication interface 1010, and so on.

[0132] In some embodiments, the functions of the target determination apparatus 800, 900 are integrated into the processor 1001. The processor 1001 is configured to implement the target determination method as described in the embodiment of the first aspect.

[0133] In some embodiments, the target determination device 800 , 900 is configured separately from the processor 1001 . For example, the target determination device 800 , 900 can be configured as a chip connected to the processor 1001 , and the functions of the target determination device 800 , 900 are realized through the control of the processor 1001 .

[0134] Fig.11 is another schematic diagram of a computer device according to an embodiment of the present application. Fig.11 As shown, the computer device 1000 may also include: an input / output interface 1003, an input device 1004, an output device 1005, a storage device 1006, a communication device 1007, a drive 1008, and a removable medium 1009, etc.; wherein the functions of the above components are similar to those of the prior art and are not described in detail here. It is worth noting that the computer device 1000 does not necessarily have to include Fig.11 In addition, the computer device 1000 may also include Fig.11 For components not shown in the figure, reference may be made to the related art.

[0135] An embodiment of the present application also provides a computer-readable program, wherein when the program is executed in an electronic device, the program enables a computer to execute the method as described in the embodiment of the first aspect in the computer device.

[0136] An embodiment of the present application further provides a storage medium storing a computer-readable program, wherein the computer-readable program enables a computer to execute the method as described in the embodiment of the first aspect in a computer device.

[0137] The above devices and methods of the present application can be implemented by hardware, or by hardware combined with software. The present application relates to such a computer-readable program, which, when executed by a logic component, enables the logic component to implement the above-mentioned devices or components, or enables the logic component to implement the various methods or steps described above. The present application also relates to a storage medium for storing the above program, such as a hard disk, a magnetic disk, an optical disk, a DVD, a flash memory, etc.

[0138] The method / device described in conjunction with the embodiments of the present application may be directly embodied as hardware, a software module executed by a processor, or a combination of the two. For example, one or more of the functional block diagrams shown in the figure and / or one or more combinations of the functional block diagrams may correspond to various software modules of the computer program flow or to various hardware modules. These software modules may correspond to the various steps shown in the figure, respectively. These hardware modules may be implemented by solidifying these software modules, for example, using a field programmable gate array (FPGA).

[0139] The software module may be located in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. A storage medium may be coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium; or the storage medium may be an integral part of the processor. The processor and the storage medium may be located in an ASIC. The software module may be stored in a memory of a mobile terminal or in a memory card that can be inserted into the mobile terminal. For example, if a device (such as a mobile terminal) uses a large-capacity MEGA-SIM card or a large-capacity flash memory device, the software module may be stored in the MEGA-SIM card or the large-capacity flash memory device.

[0140] For one or more of the functional blocks described in the drawings and / or one or more combinations of functional blocks, it can be implemented as a general-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component or any appropriate combination thereof for performing the functions described in the present application. For one or more of the functional blocks described in the drawings and / or one or more combinations of functional blocks, it can also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors in communication with a DSP, or any other such configuration.

[0141] The present application is described above in conjunction with specific implementation methods, but it should be clear to those skilled in the art that these descriptions are exemplary and are not intended to limit the scope of protection of the present application. Those skilled in the art can make various modifications and variations to the present application based on the principles of the present application, and these modifications and variations are also within the scope of the present application.

[0142] Regarding the implementation methods including the above embodiments, the following additional notes are also disclosed:

[0143] 1. A method for determining a target, wherein the method comprises:

[0144] S1: Determine the candidate target bounding box;

[0145] S2: scoring the candidate target bounding box, and recording the candidate target bounding box, its score and the number of occurrences into a candidate target bounding box list;

[0146] S3: determining a target according to the score and the number of occurrences of each candidate target bounding box in the candidate target bounding box list obtained from continuous video frames;

[0147] in,

[0148] If the maximum number of occurrences is less than the first threshold (n1), and the maximum score is greater than the second threshold (f1), the candidate target corresponding to the candidate target bounding box with the largest number of occurrences is determined as the target;

[0149] Otherwise, if the difference between the maximum number of occurrences and the second maximum number of occurrences is less than a third threshold (n2), determining the candidate target corresponding to the candidate target bounding box with the largest score as the target;

[0150] Otherwise, the candidate target corresponding to the candidate target bounding box with the largest number of occurrences is determined as the target.

[0151] 2. The method according to Note 1, wherein S2 comprises:

[0152] If the candidate target bounding box does not overlap with any candidate target bounding box in the candidate target bounding box list (condition 1), the candidate target bounding box is determined to be a new bounding box, and the new bounding box and its score and number of occurrences are recorded in the candidate target bounding box list.

[0153] 3. The method according to Note 1, wherein S2 comprises:

[0154] If the candidate target bounding box does not overlap with any candidate target bounding box in the candidate target bounding box list (condition 1), and the candidate target bounding box does not overlap with the predetermined bounding box (steering wheel bounding box) on the current video frame (condition 2), the candidate target bounding box is determined to be a new bounding box, and the candidate target bounding box, its score, and the number of occurrences are recorded in the candidate target bounding box list.

[0155] 4. The method according to Note 1, wherein S2 comprises:

[0156] If the candidate target bounding box overlaps with any candidate target bounding box in the candidate target bounding box list, the candidate target bounding box is determined to be an old bounding box, and the score and the number of occurrences of the old bounding box in the candidate target bounding box list are updated.

[0157] 5. The method according to Note 1, wherein S3 comprises:

[0158] S31: If there is only one candidate target bounding box in the candidate target bounding box list, determining that the target corresponding to the candidate target bounding box is the selected target;

[0159] S32: Otherwise, if there are multiple candidate target bounding boxes in the candidate target bounding box list, the candidate target bounding boxes in the candidate target bounding box list are sorted respectively according to the order of the number of occurrences of the candidate target bounding boxes from large to small and the order of the scores of the candidate target bounding boxes from large to small;

[0160] S33: Determine the target according to the sorted candidate target bounding boxes.

[0161] 6. The method according to any one of Notes 1 to 5, wherein:

[0162] The candidate object bounding box is a candidate handle bounding box, and the object is a handle.

[0163] 7. A storage medium storing a computer-readable program, wherein the computer-readable program enables a computer to execute the target determination method as described in any one of Notes 1 to 6 in an electronic device.

Claims

1. A target determination device, wherein: The device comprises: A first determination unit, which determines a candidate object bounding box; a processing unit, which scores the candidate target bounding box and records the candidate target bounding box, its score and the number of occurrences thereof into a candidate target bounding box list; A second determination unit, which determines a target according to a score and a number of occurrences of each candidate target bounding box in the candidate target bounding box list obtained from continuous video frames; in, If the maximum number of occurrences is less than a first threshold value (n1), and the maximum score is greater than a second threshold value (f1), the second determination unit determines the candidate target corresponding to the candidate target bounding box with the largest number of occurrences as the target; Otherwise, if the difference between the maximum number of occurrences and the second maximum number of occurrences is less than a third threshold value (n2), the second determining unit determines the candidate target corresponding to the candidate target bounding box with the largest score as the target; Otherwise, the second determining unit determines the candidate target corresponding to the candidate target bounding box having the largest number of occurrences as the target.

2. The device according to claim 1, wherein: If the candidate target bounding box does not overlap with any candidate target bounding box in the candidate target bounding box list, the processing unit determines that the candidate target bounding box is a new bounding box, and records the new bounding box and its score and number of occurrences into the candidate target bounding box list.

3. The device according to claim 1, wherein: If the candidate target bounding box does not overlap with any candidate target bounding box in the candidate target bounding box list, and the candidate target bounding box does not overlap with a predetermined bounding box on the current video frame, the processing unit determines that the candidate target bounding box is a new bounding box, and records the candidate target bounding box, its score, and the number of occurrences in the candidate target bounding box list.

4. The device according to claim 1, wherein: If the candidate target bounding box overlaps with any candidate target bounding box in the candidate target bounding box list, the processing unit determines that the candidate target bounding box is an old bounding box, and updates the score and the number of occurrences of the old bounding box in the candidate target bounding box list.

5. The device according to claim 1, wherein: If there is only one candidate target bounding box in the candidate target bounding box list, the second determining unit determines that the target corresponding to the candidate target bounding box is the selected target; Otherwise, if there are multiple candidate target bounding boxes in the candidate target bounding box list, the second determining unit sorts the candidate target bounding boxes in the candidate target bounding box list according to the order of the number of occurrences of the candidate target bounding boxes from large to small and the order of the scores of the candidate target bounding boxes from large to small, and determines the target according to the sorted candidate target bounding boxes.

6. The device according to any one of claims 1 to 5, wherein: The candidate object bounding box is a candidate handle bounding box, and the object is a handle.

7. A method for determining a target, wherein: The method comprises: Determine candidate object bounding boxes; Scoring the candidate target bounding box, and recording the candidate target bounding box, its score and the number of occurrences thereof into a candidate target bounding box list; Determine a target according to the score and the number of occurrences of each candidate target bounding box in the candidate target bounding box list obtained from continuous video frames; in, If the maximum number of occurrences is less than the first threshold (n1), and the maximum score is greater than the second threshold (f1), the candidate target corresponding to the candidate target bounding box with the largest number of occurrences is determined as the target; Otherwise, if the difference between the maximum number of occurrences and the second maximum number of occurrences is less than a third threshold (n2), determining the candidate target corresponding to the candidate target bounding box with the largest score as the target; Otherwise, the candidate target corresponding to the candidate target bounding box with the largest number of occurrences is determined as the target.

8. The method according to claim 7, wherein: If the candidate target bounding box does not overlap with any candidate target bounding box in the candidate target bounding box list, and the candidate target bounding box does not overlap with a predetermined bounding box on the current video frame, the candidate target bounding box is determined to be a new bounding box, and the candidate target bounding box and its score and number of occurrences are recorded in the candidate target bounding box list.

9. The method according to claim 7, wherein: If there is only one candidate target bounding box in the candidate target bounding box list, determining that the target corresponding to the candidate target bounding box is the selected target; Otherwise, if there are multiple candidate target bounding boxes in the candidate target bounding box list, the candidate target bounding boxes in the candidate target bounding box list are sorted in descending order of the number of occurrences of the candidate target bounding boxes and in descending order of the scores of the candidate target bounding boxes, and the target is determined according to the sorted candidate target bounding boxes.

10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: The processor is configured to execute the computer program to implement the following method: Determine candidate object bounding boxes; Scoring the candidate target bounding box, and recording the candidate target bounding box, its score and the number of occurrences thereof into a candidate target bounding box list; Determine a target according to the score and the number of occurrences of each candidate target bounding box in the candidate target bounding box list obtained from continuous video frames; in, If the maximum number of occurrences is less than the first threshold (n1), and the maximum score is greater than the second threshold (f1), the candidate target corresponding to the candidate target bounding box with the largest number of occurrences is determined as the target; Otherwise, if the difference between the maximum number of occurrences and the second maximum number of occurrences is less than a third threshold (n2), determining the candidate target corresponding to the candidate target bounding box with the largest score as the target; Otherwise, the candidate target corresponding to the candidate target bounding box with the largest number of occurrences is determined as the target.