Method and device for judging getting-on and getting-off states of driver
By determining the boundary area of interest and the driver's bounding box in the fish-eye image to determine the driver's status, the problem of low skeleton detection accuracy in the fish-eye image is solved, and high-accuracy judgment of the driver's getting on and off the status is achieved.
Patent Information
- Application Number
- CN202310335762.6
- 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
For fisheye images, the accuracy of skeleton detection is low, and the current method of judging the driver's entry and exit status is complex and difficult to achieve high accuracy.
By determining the boundary area of interest and the driver's bounding box on the video frame, the driver's state is determined, and the boarding and alighting state is determined based on the state changes of consecutive video frames to realize the judgment of the driver's boarding and alighting state.
Without the need for key point information, the detection accuracy of the driver's getting on and off the vehicle can be improved, the judgment process can be simplified, and the judgment accuracy can be improved.
Smart Images

Figure CN118736617A_ABST
Abstract
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 various parts of the driver's skeleton. The judgment method has a complex architecture and is difficult to implement. A more general judgment method needs further research.
[0005] In response to at least one of the above technical problems or other similar problems, the embodiments of the present application provide a method and device for determining the driver's boarding and exiting status, in the hope of improving detection accuracy.
[0006] According to one aspect of an embodiment of the present application, a device for determining a driver's getting on or off a vehicle is provided, the device comprising:
[0007] A first determining unit, which determines a boundary region of interest on a current video frame;
[0008] A second determining unit, which determines the state of the driver on the current video frame according to the boundary region of interest and the driver boundary box on the current video frame;
[0009] A third determining unit determines the driver's getting on and off the vehicle status according to the driver's status in continuous video frames.
[0010] According to another aspect of an embodiment 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:
[0011] Determine the boundary region of interest on the current video frame;
[0012] Determining the state of the driver on the current video frame according to the boundary region of interest and the driver boundary box on the current video frame;
[0013] The driver's getting on and off the vehicle status is determined according to the driver's status on consecutive video frames.
[0014] One of the beneficial effects of the embodiment of the present application is that according to the embodiment of the present application, the driver's getting on and off the vehicle status can be judged only based on the target bounding box information obtained based on the in-vehicle video, without the need for key point information.
[0015] 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
[0016] 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:
[0017] Figure 1 It is a schematic diagram of an application scenario of an embodiment of the present application;
[0018] Figure 2 is another schematic diagram of an application scenario of an embodiment of the present application;
[0019] Figure 3 is a schematic diagram of a method for determining a driver's boarding and exiting state according to an embodiment of the present application;
[0020] Figure 4 is a schematic diagram of determining a boundary region of interest according to a method of an embodiment of the present application;
[0021] Figure 5 is another schematic diagram of determining a boundary region of interest according to a method of an embodiment of the present application;
[0022] Figure 6 is another schematic diagram of determining a boundary region of interest according to the method of an embodiment of the present application;
[0023] Figure 7 is another schematic diagram of determining a boundary region of interest according to the method of an embodiment of the present application;
[0024] Figure 8 is another schematic diagram of determining a boundary region of interest according to the method of an embodiment of the present application;
[0025] Fig. 9 is a schematic diagram of a boundary region of interest obtained according to the method of an embodiment of the present application;
[0026] Fig.10 is another schematic diagram of a boundary region of interest obtained according to the method of an embodiment of the present application;
[0027] Fig.11 is a schematic diagram of the driver's state on consecutive video frames;
[0028] Fig.12 is another schematic diagram of the method for determining the driver's boarding and exiting status according to an embodiment of the present application;
[0029] Fig.13 is a schematic diagram of an example of the effect of the method according to the embodiment of the present application;
[0030] Fig.14 is a schematic diagram of another example showing the effect of the method according to an embodiment of the present application;
[0031] Fig.15 is a schematic diagram of a device for determining a driver's boarding and exiting state according to an embodiment of the present application;
[0032] Fig.16 is another schematic diagram of the device for determining the driver's boarding and exiting status according to an embodiment of the present application;
[0033] Fig.17 is a schematic diagram of a computer device according to an embodiment of the present application;
[0034] Fig.18 is another schematic diagram of a computer device according to an embodiment of the present application. DETAILED DESCRIPTION
[0035] 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.
[0036] 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.
[0037] 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.
[0038] 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.
[0039] 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 used to determine when the driver gets on and off the vehicle. 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.
[0040] Figure 1 and Figure 2 Schematic diagram of two application scenarios of the embodiment of the present application. Figure 1It is a counter forklift, the rectangular box on the left is the handle bounding box, and the rectangular box on the right is the steering bounding box; Figure 2 For a reach forklift, similarly, the rectangular box on the left is the handle bounding box, and the rectangular box on the right is the steering bounding box. In addition, the present application does not limit the method of obtaining the bounding box, which can be obtained by performing target detection on the video frame, such as by detecting the target detector. Existing target detection methods, models, networks, etc. can be used in the present application, and 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.
[0041] Various implementations of the embodiments of the present application are described below in conjunction with the accompanying drawings.
[0042] Embodiments of the first aspect
[0043] An embodiment of the present application provides a method for determining the state of a driver getting on or off a vehicle. Figure 3 is a schematic diagram of a method for determining the driver's boarding and alighting status in an embodiment of the present application. Figure 3 As shown, the method includes:
[0044] 301: Determine a boarding ROI on the current video frame;
[0045] 302: Determine the state of the driver on the current video frame according to the boundary region of interest and the driver boundary box on the current video frame;
[0046] 303: Determine the driver's boarding and exiting status according to the driver's status in continuous video frames.
[0047] It is worth noting that the above Figure 3 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 3 Records of.
[0048] According to the above embodiment, the driver's getting on or off the vehicle status can be determined based on only the target bounding box information obtained based on the in-vehicle video without the need for key point information.
[0049] In the embodiment of the present application, in step 301, the boundary region of interest is a region related to the driver's getting on and off the vehicle, which can be generated based on the current video frame, or based on the position of the steering wheel and / or the position of the handle on the current video frame. However, the present application is not limited thereto, and in different scenarios, the parts related to the driver's getting on and off the vehicle are different. For example, in some scenarios, the pedals may also be related to the driver's getting on and off the vehicle, and the boundary region of interest may also be generated based on other parts related to the driver's getting on and off the vehicle.
[0050] In some embodiments, the bounding region of interest is determined based on a steering wheel bounding box and a handle bounding box on the current video frame.
[0051] For example, the boundary region of interest may be a region surrounding a steering wheel boundary box, and the boundary region of interest is located at a predetermined position of the handle boundary box, such as at the upper left corner of the handle boundary box, depending on the driver's operating scenario and / or the location of an image acquisition device (such as a driving recorder, a camera, etc.), etc. For another example, the boundary region of interest may be between a steering wheel boundary box and a handle boundary box, etc.
[0052] Take cabinet forklift as an example. Figure 4 As shown in FIG. 1 , when the driver moves toward the cabinet forklift from the direction indicated by the dotted arrow, the boundary region of interest 40 may be a region surrounding the steering wheel boundary frame 41, and the boundary region of interest 40 is located at the lower right corner of the handle boundary frame 42; Figure 5 As shown, when the driver moves from the direction indicated by the dashed arrow toward the cabinet forklift, the boundary region of interest 50 may be a region surrounding the steering wheel boundary box 51 , and the boundary region of interest 50 is located at the upper left corner of the handle boundary box 52 .
[0053] Take a telescopic forklift as an example. Figure 6 As shown, when the driver moves toward the telescopic forklift from the direction indicated by the dashed arrow, the boundary region of interest 60 may be located between the steering wheel boundary box 61 and the handle boundary box 62; Figure 7 As shown, when the driver moves toward the telescopic forklift from the direction indicated by the dashed arrow, the boundary region of interest 70 is located between the steering wheel boundary box 71 and the handle boundary box 72 .
[0054] In the above embodiments, it is described that the boundary regions of interest 40, 50 surround the steering wheel bounding boxes 41, 51. The encirclement here can be full encirclement or partial encirclement. For example, when the overlapping area of the boundary regions of interest 40, 50 and the steering wheel bounding boxes 41, 51 is greater than a certain proportion of the area of the steering wheel bounding boxes 41, 51, such as 90%, it is considered that the boundary regions of interest 40, 50 surround the steering wheel bounding boxes 41, 51.
[0055] In the above embodiments, the positional relationship between the boundary regions of interest 40, 50, 60, 70 and the handle boundary frames 42, 52, 62, 72 is described. The positional relationship here is only relative. There may be overlap or no overlap between the two. In the case of no overlap, the distance between the two may be very small, such as 0, that is, the two are close to each other, or greater than 0, that is, there is a certain distance between the two. This application does not limit the overlapping area between the two when they overlap and the distance between the two when they do not overlap.
[0056] In some other embodiments, the boundary region of interest is determined based on a steering wheel boundary box on the current video frame.
[0057] For example, the boundary region of interest may surround the steering wheel boundary box and the center point of the current video frame, and the height of the boundary region of interest is less than a preset first threshold; the width of the boundary region of interest is less than a preset second threshold. That is, the boundary region of interest may be a region with a predetermined height and width surrounding the steering wheel boundary box and the center point of the current video frame.
[0058] Take a cabinet forklift or a telescopic forklift as an example. Figure 8 As shown, the boundary region of interest 80 surrounds the steering wheel boundary box 81 and the center point O of the current video frame. Figure 8 In the example, the center point O of the current video frame and the center of the steering wheel boundary box 81 do not coincide with each other, but the present application is not limited thereto.
[0059] In the above embodiment, a height threshold (i.e., a first threshold) and a width threshold (i.e., a second threshold) are pre-set, and an area whose height is less than the first threshold and whose width is less than the second threshold and which surrounds the steering wheel boundary box 81 and the center point O of the current video frame is taken as the boundary area of interest 80.
[0060] In the above embodiment, there is no restriction on the values of the first threshold and the second threshold. They can be set according to the area of the steering wheel boundary box or the area of the current video frame. Other factors can also be considered, such as the relationship between the steering wheel boundary box and the center point of the current video frame, etc.
[0061] In yet other embodiments, the boundary region of interest is determined based on the current video frame.
[0062] For example, the boundary region of interest surrounds the center point of the current video frame, and the height of the boundary region of interest is less than a preset third threshold value; the width of the boundary region of interest is less than a preset fourth threshold value. That is, the boundary region of interest can be a region with a predetermined height and width surrounding the center point of the current video frame.
[0063] In the above embodiment, a height threshold (i.e., the third threshold) and a width threshold (i.e., the fourth threshold) are preset, and an area whose height is less than the third threshold and whose width is less than the fourth threshold and which surrounds the center point of the current video frame is taken as the boundary region of interest.
[0064] In the above embodiment, there is no restriction on the values of the third threshold and the fourth threshold, which can be set according to the area of the current video frame, and other factors can also be considered, such as the relationship between the steering wheel boundary box, the handle boundary box and the center point of the current video frame, etc.
[0065] In the above-mentioned embodiments, there is no restriction on the method of obtaining the steering wheel bounding box and the handle bounding box. The steering wheel bounding box and the handle bounding box can be obtained by any target detection method, or by a predefined method. For details, please refer to the relevant technology, and the description is omitted here.
[0066] Fig. 9 is a schematic diagram of a boundary region of interest obtained according to the method of an embodiment of the present application, Fig. 9 In the example, a cabinet forklift is taken as an example, wherein a bounding box 90 is a bounding region of interest determined according to the method of an embodiment of the present application, and a bounding box 91 is a driver bounding box; Fig.10 is another schematic diagram of a boundary region of interest obtained according to the method of an embodiment of the present application, Fig.10 In the example, a telescopic forklift is taken as an example, wherein the bounding box 100 is the boundary region of interest determined according to the method of the embodiment of the present application, and the bounding box 101 is the driver bounding box.
[0067] In the embodiment of the present application, in step 302, the driver's state related to the driver's getting on and off the forklift can be defined, for example, the state of the driver leaving the forklift is defined as state 0, called the first state, and the state of the driver in the forklift is defined as state 1, called the second state. Therefore, it can be determined whether the state of the driver in the current video frame is the first state or the second state based on the relationship between the boundary region of interest determined in step 301 and the driver's boundary box.
[0068] For example, if the driver's bounding box and the boundary region of interest do not overlap, it is considered that the driver's state in the current video frame is the first state, that is, in the current video, the driver is in a state of leaving the forklift; for another example, if the driver's bounding box and the boundary region of interest overlap, it is considered that the driver's state in the current video frame is the second state, that is, in the current video frame, the driver is in a state of being inside the forklift.
[0069] The above two states are just examples. More states related to the driver's getting on and off the vehicle can be defined as needed to be used for subsequent determination of the driver's getting on and off the vehicle state.
[0070] In the above embodiment, there is no restriction on the method of obtaining the driver boundary box. Similar to the steering wheel boundary box and the handle boundary box, the driver boundary box can be obtained by any target detection method or by a predefined method. For details, please refer to the relevant technology and the description is omitted here.
[0071] In the embodiment of the present application, since the driver's getting on and off the vehicle actions are continuous, in step 303, the driver's getting on and off the vehicle status can be determined based on the driver's status on continuous video frames.
[0072] For example, first determine the state transition timing (changing timing) based on the state of the driver in continuous video frames, that is, determine whether the driver's state has changed, such as changing from a leaving state (away) to an entering state (in), or from an entering state (in) to a leaving state (away); then determine the driver's getting on or off the vehicle status based on the state transition timing and the driver's state in the continuous video frames, that is, determine whether the driver is getting on or off the vehicle.
[0073] In the above embodiment, the state transition timing is determined, for example, if in continuous video frames, the number of continuous video frames in which the driver's state is the first state (referred to as first continuous video frames) is greater than the fifth threshold, the number of continuous video frames in which the driver's state is the second state (referred to as second continuous video frames) is greater than the sixth threshold, and the first continuous video frames and the second continuous video frames are continuous, then it is considered that there is a state transition timing.
[0074] Fig.11 It is a schematic diagram of the driver's status on consecutive video frames.
[0075] like Fig.11As shown in the continuous video frames above, since the number of first continuous video frames (continuous video frames in state 0) is greater than or equal to n1 (the fifth threshold), the number of second continuous video frames (continuous video frames in state 1) is greater than or equal to n2 (the sixth threshold), and the first continuous video frames and the second continuous video frames are continuous, it is considered that there is a state transition opportunity.
[0076] like Fig.11 As shown in the continuous video frames below, since the number of first continuous video frames (continuous video frames in state 0) is greater than or equal to n4 (the fifth threshold), and the number of second continuous video frames (continuous video frames in state 1) is greater than or equal to n3, it is considered that there is a state transition opportunity.
[0077] In the above embodiment, after the state transition timing is determined, the driver's boarding and exiting status can be determined according to the state transition timing and the driver's status in the continuous video frames, that is, whether the driver is boarding or exiting the vehicle.
[0078] For example, if the state of the driver on the continuous video frames before the state transition timing is the first state, and the state of the driver on the continuous video frames after the state transition timing is the second state, such as Fig.11 , it is determined that the driver is in the boarding state.
[0079] For another example, if the state of the driver in the continuous video frames before the state transition opportunity is the second state, and the state of the driver in the continuous video frames after the state transition opportunity is the first state, such as Fig.11 If the display is shown below, it is determined that the driver is in the state of getting off the vehicle.
[0080] In the above embodiment, since the process of the driver getting on and off the vehicle is reflected in the video frames at the start stage and the middle stage of the video, the number of consecutive video frames in the same state is different. For example, at the start stage of the video, the number of video frames in which the driver's state is state 0 is relatively small, while in the middle stage of the video, the number of video frames in which the driver's state is state 0 is relatively large. Therefore, the present application can set the values of the above-mentioned fifth threshold and the above-mentioned sixth threshold according to the video stage.
[0081] For example, the fifth threshold and the sixth threshold corresponding to the continuous video frames in the initial stage of the video are different from the fifth threshold and the sixth threshold corresponding to the continuous video frames in the middle stage of the video. Thus, the detection accuracy can be further improved, thereby increasing the accuracy of the judgment. However, the present application is not limited thereto, and the fifth threshold and the sixth threshold may also be set not for the video stage, but to a uniform value, for example, a fixed fifth threshold and a fixed sixth threshold are set regardless of the initial stage of the video or the middle stage of the video, thereby simplifying the operation.
[0082] In the above embodiment, the values of the fifth threshold and the sixth threshold may be the same or different, may be the same in different video stages or different in different video stages, and so on.
[0083] Fig.12 FIG. 2 is another schematic diagram of the method for determining the driver's boarding and exiting status of the vehicle according to an embodiment of the present application, showing the process from acquiring a video frame to determining the driver's boarding and exiting status. Fig.12 As shown, the process includes:
[0084] 1201: The input video frame / picture enters the network model;
[0085] 1202: Generate key points of the character skeleton;
[0086] 1203: Identify the driver;
[0087] 1204: define driver status;
[0088] 1205: Find the time to change the state;
[0089] 1206: Confirm boarding and alighting events.
[0090] It is worth noting that the above Fig.12 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 Fig.12 Records of.
[0091] For example, step 1202 is optional. For another example, the driver status in step 1204 may be pre-set. For another example, a step of determining a boundary area of interest may be added, and so on.
[0092] Fig.13 is a schematic diagram of an example of the effect of the method according to the embodiment of the present application. Fig.13 In the example, take the cabinet forklift as an example, Fig.13As shown, it is assumed that the fifth threshold is 14, the sixth threshold is 15, the driver bounding box is 130, and the bounding area of interest is 131.
[0093] At frame 1142 ( Fig.13 The driver's state is detected as "state 1" in the left frame, that is, the driver is in the forklift, and the driver's state detected in the following 14 frames (frames 1143 to 1156) is always "state 1", that is, the driver is in the forklift for 15 frames; in frame 1157 ( Fig.13 The driver's state is detected as "state 0" in the middle of the forklift, that is, the driver is outside the forklift, and the driver's state detected in the following 13 frames (frames 1158 to 1170) is always "state 0", that is, the driver is outside the forklift for 14 frames; in frame 1171 ( Fig.13 According to the method of the embodiment of the present application, it is determined that there is a state transition opportunity, that is, the 1157th frame, and it is determined that the driver is in the state of getting off the vehicle.
[0094] Fig.14 is a schematic diagram of another example showing the effect of the method according to an embodiment of the present application, in Fig.14 In the example, take a telescopic forklift as an example, such as Fig.14 As shown, assuming that the fifth threshold is 15, the sixth threshold is 15, the driver bounding box is 140, and the bounding area of interest is 141.
[0095] At frame 943 ( Fig.14 The driver's state is detected as "state 0" in the 944th frame (left), that is, the driver is outside the forklift, and the driver's state detected in the following 15 frames (944th frame to 957th frame) is always "state 0", that is, the driver is outside the forklift for 16 frames in total; in the 958th frame ( Fig.14 The driver's state is detected as "state 1" in the middle of the forklift, that is, the driver is in the forklift, and the driver's state detected in the following 14 frames (frames 959 to 971) is always "state 1", that is, the driver is in the forklift for a total of 15 frames; in the 972nd frame ( Fig.14 According to the method of the embodiment of the present application, it is determined that there is a state transition opportunity, that is, the 958th frame, and it is determined that the driver is in the boarding state.
[0096] 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.
[0097] According to an embodiment of the present application, the driver's getting on and off the vehicle status can be determined based only on the target bounding box information obtained based on the in-vehicle video without the need for key point information.
[0098] Embodiments of the second aspect
[0099] An embodiment of the present application provides a device for determining the driver's getting on or off a vehicle. 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.
[0100] Fig.15 is a schematic diagram of a device for determining the driver's boarding and exiting status of an embodiment of the present application. Fig.15 As shown, the driver getting on and off the vehicle state judgment device 1500 includes:
[0101] A first determining unit 1501, which determines a boundary region of interest on a current video frame;
[0102] A second determining unit 1502, which determines the state of the driver on the current video frame according to the boundary region of interest and the driver boundary box on the current video frame;
[0103] The third determining unit 1503 determines the driver's getting on or off the vehicle status according to the driver's status in continuous video frames.
[0104] In some embodiments, the first determining unit 1501 determines the boundary region of interest according to the steering wheel boundary box and the handle boundary box on the current video frame, or according to the steering wheel boundary box on the current video frame, or according to the previous video frame.
[0105] In some embodiments, the bounding region of interest surrounds a steering wheel bounding box, and the bounding region of interest is located at a predetermined position of the handle bounding box.
[0106] In some embodiments, the bounding region of interest is between the steering wheel bounding box and the handle bounding box.
[0107] In some embodiments, the boundary region of interest surrounds the steering wheel boundary box and the center point of the current video frame, and the height of the boundary region of interest is less than a preset first threshold; the width of the boundary region of interest is less than a preset second threshold.
[0108] In some embodiments, the boundary region of interest surrounds the center point of the current video frame, and the height of the boundary region of interest is less than a preset third threshold; the width of the boundary region of interest is less than a preset fourth threshold.
[0109] In some embodiments, if the driver boundary box and the boundary area of interest do not overlap, the second determination unit 1502 determines that the driver's state in the current video frame is the first state; if the driver boundary box and the boundary area of interest overlap, the second determination unit 1502 determines that the driver's state in the current video frame is the second state.
[0110] In some embodiments, the third determination unit 1503 determines the state transition timing according to the state of the driver in the continuous video frames; and determines the driver's boarding and exiting state according to the state transition timing and the driver's state in the continuous video frames.
[0111] For example, if in continuous video frames, the number of continuous video frames in which the driver's state is the first state is greater than the fifth threshold, the number of continuous video frames in which the driver's state is the second state is greater than the sixth threshold, and the continuous video frames in which the driver's state is the first state are continuous with the continuous video frames in which the driver's state is the second state, then the third determination unit 1503 determines that there is a state transition opportunity.
[0112] For example, if the driver's state in the continuous video frames before the state transition timing is the first state, and the driver's state in the continuous video frames after the state transition timing is the second state, the third determination unit 1503 determines that the driver is in the state of getting on the vehicle; if the driver's state in the continuous video frames before the state transition timing is the second state, and the driver's state in the continuous video frames after the state transition timing is the first state, the third determination unit 1503 determines that the driver is in the state of getting off the vehicle.
[0113] In an embodiment of the present application, the fifth threshold and the sixth threshold corresponding to the continuous video frames in the initial stage of the video are the same as or different from the fifth threshold and the sixth threshold corresponding to the continuous video frames in the middle stage of the video.
[0114] In the embodiment of the present application, the fifth threshold and the sixth threshold are the same or different.
[0115] Fig.16 is another schematic diagram of the device for determining the driver's boarding and exiting status of an embodiment of the present application. Fig.16 As shown, the device for determining the driver's getting on and off the vehicle state comprises:
[0116] A detection module 1601 performs target detection on an input video frame to obtain a bounding box of a target on the video frame, key points of a target person, etc.;
[0117] The identification module 1602 determines the boundary region of interest on the current video frame; determines the state of the driver on the current video frame based on the boundary region of interest and the driver boundary box on the current video frame; and determines the driver's boarding and exiting state based on the driver's state on consecutive video frames.
[0118] In the above embodiment, the identification module 1602 can Fig.15 The driver getting on and off the vehicle status judgment device can be implemented, and the driver getting on and off the vehicle status judgment method of the embodiment of the first aspect can be implemented. The content of the embodiment of the first aspect is incorporated here and will not be repeated here.
[0119] 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 driver boarding and exiting state judgment device 1500, 1600 may also include other components or modules, and the specific contents of these components or modules may refer to the relevant technology.
[0120] To keep it simple, Fig.15 and Fig.16 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.
[0121] 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.
[0122] According to an embodiment of the present application, the driver's getting on and off the vehicle status can be determined based only on the target bounding box information obtained based on the in-vehicle video without the need for key point information.
[0123] Embodiments of the third aspect
[0124] The present application provides a computer device, including the driver getting on and off state judgment device 1500, 1600 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.
[0125] Fig.17 Schematic diagram of a computer device according to an embodiment of the present application. Fig.17As shown, the computer device 1700 may include: a processor (e.g., a central processing unit CPU) 1701 and a memory 1702; the memory 1702 is coupled to the central processing unit 1701. The memory 1702 may store various data; in addition, it may store information processing programs, and execute the programs under the control of the processor 1701. In addition, the computer device 1700 may also include a communication interface 1710 for exchanging data with the outside, for example, obtaining video data from an image acquisition device (e.g., a driving recorder, a camera, etc.) through the communication interface 1710, and for example, sending the judgment result to an external device through the communication interface 1710, and so on.
[0126] In some embodiments, the functions of the driver getting on and off the vehicle state judgment device 1500, 1600 are integrated into the processor 1701. The processor 1701 is configured to implement the driver getting on and off the vehicle state judgment method as described in the embodiment of the first aspect.
[0127] In some embodiments, the driver's getting on and off the vehicle status judgment device 1500, 1600 is configured separately from the processor 1701. For example, the driver's getting on and off the vehicle status judgment device 1500, 1600 can be configured as a chip connected to the processor 1701, and the functions of the driver's getting on and off the vehicle status judgment device 1500, 1600 are realized through the control of the processor 1701.
[0128] Fig.18 is another schematic diagram of a computer device according to an embodiment of the present application. Fig.18 As shown, the computer device 1700 may also include: an input / output interface 1703, an input device 1704, an output device 1705, a storage device 1706, a communication device 1707, a drive 1708, and a removable medium 1709, 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 1700 does not necessarily have to include Fig.17 In addition, the computer device 1700 may also include Fig.17 For components not shown in the figure, reference may be made to the related art.
[0129] 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.
[0130] 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.
[0131] 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.
[0132] 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).
[0133] 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.
[0134] 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.
[0135] 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.
[0136] Regarding the implementation methods including the above embodiments, the following additional notes are also disclosed:
[0137] 1. A method for determining a driver's boarding or exiting state, the method comprising:
[0138] S1: Determine the boarding ROI on the current video frame;
[0139] S2: determining the state of the driver on the current video frame according to the boundary region of interest and the driver boundary box on the current video frame;
[0140] S3: Determine the driver's getting on or off the vehicle status according to the driver's status in continuous video frames.
[0141] 2. The method according to Supplement 1, wherein S1 comprises:
[0142] The boundary region of interest is determined according to a steering wheel boundary box and a handle boundary box on the current video frame.
[0143] 3. The method according to Note 2, wherein:
[0144] The boundary region of interest surrounds the steering wheel boundary box, and the boundary region of interest is located at a predetermined position of the handle boundary box; or,
[0145] The bounding region of interest is between the steering wheel bounding box and the handle bounding box.
[0146] 4. The method according to Supplement 1, wherein S1 comprises:
[0147] The boundary region of interest is determined according to a steering wheel boundary box on the current video frame.
[0148] 5. The method according to Note 4, wherein:
[0149] The boundary region of interest surrounds the steering wheel boundary box and the center point of the current video frame, and the height of the boundary region of interest is less than a preset first threshold; the width of the boundary region of interest is less than a preset second threshold.
[0150] 6. The method according to Supplement 1, wherein S1 comprises:
[0151] The boundary region of interest is determined according to the current video frame.
[0152] 7. The method according to Note 6, wherein:
[0153] The boundary region of interest surrounds the center point of the current video frame, and the height of the boundary region of interest is less than a preset third threshold; the width of the boundary region of interest is less than a preset fourth threshold.
[0154] 8. The method according to Note 1, wherein S2 comprises:
[0155] If the driver boundary box and the boundary region of interest do not overlap, determining that the state of the driver in the current video frame is a first state (state 0);
[0156] If the driver boundary box and the boundary region of interest overlap, it is determined that the state of the driver in the current video frame is the second state (state 1).
[0157] 9. The method according to Note 1, wherein S3 comprises:
[0158] S31: determining a state transition timing according to the driver's state in continuous video frames;
[0159] S32: Determine the driver's boarding and exiting status according to the state transition timing and the driver's state in the continuous video frames.
[0160] 10. The method according to Supplementary Note 9, wherein S31 comprises:
[0161] If, among the continuous video frames, the number of continuous video frames in which the driver's state is the first state is greater than the fifth threshold, the number of continuous video frames in which the driver's state is the second state is greater than the sixth threshold, and the continuous video frames in which the driver's state is the first state are continuous with the continuous video frames in which the driver's state is the second state, then it is determined that there is a state transition opportunity.
[0162] 11. The method according to Note 9 or 10, wherein S32 comprises:
[0163] If the state of the driver in the continuous video frames before the state transition timing is the first state, and the state of the driver in the continuous video frames after the state transition timing is the second state, it is determined that the driver is in the boarding state;
[0164] If the state of the driver in the continuous video frames before the state transition timing is the second state, and the state of the driver in the continuous video frames after the state transition timing is the first state, it is determined that the driver is in the state of getting off the vehicle.
[0165] 12. The method according to Note 10, wherein:
[0166] The fifth threshold and the sixth threshold corresponding to the continuous video frames in the initial stage of the video are the same as or different from the fifth threshold and the sixth threshold corresponding to the continuous video frames in the middle stage of the video.
[0167] 13. The method according to Note 10 or 12, wherein:
[0168] The fifth threshold and the sixth threshold are the same or different.
[0169] 14. A storage medium storing a computer-readable program, wherein the computer-readable program enables a computer to execute the method for determining the driver's getting on and off the vehicle as described in any one of Notes 1 to 13 in an electronic device.
Claims
1. A device for determining the driver's boarding and alighting status, wherein: The device comprises: A first determining unit, which determines a boundary region of interest on a current video frame; A second determining unit, which determines the state of the driver on the current video frame according to the boundary region of interest and the driver boundary box on the current video frame; A third determining unit determines the driver's getting on and off the vehicle status according to the driver's status in continuous video frames.
2. The device according to claim 1, wherein: The first determining unit determines the boundary region of interest according to a steering wheel boundary box and a handle boundary box on the current video frame, or according to a steering wheel boundary box on the current video frame, or according to the current video frame.
3. The device according to claim 2, wherein: The boundary region of interest surrounds the steering wheel boundary box, and the boundary region of interest is located at a predetermined position of the handle boundary box; or, The bounding region of interest is between the steering wheel bounding box and the handle bounding box; or The boundary region of interest surrounds the steering wheel boundary box and the center point of the current video frame, and the height of the boundary region of interest is less than a preset first threshold; the width of the boundary region of interest is less than a preset second threshold; or The boundary region of interest surrounds the center point of the current video frame, and the height of the boundary region of interest is less than a preset third threshold; the width of the boundary region of interest is less than a preset fourth threshold.
4. The device according to claim 1, wherein: If the driver boundary box and the boundary region of interest do not overlap, the second determining unit determines that the state of the driver in the current video frame is a first state; If the driver boundary box and the boundary region of interest overlap, the second determining unit determines that the state of the driver in the current video frame is a second state.
5. The device according to claim 1, wherein: The third determination unit determines a state transition timing according to the state of the driver on the continuous video frames; and determines the driver's boarding and exiting state according to the state transition timing and the driver's state on the continuous video frames.
6. The device according to claim 5, wherein: If, among the continuous video frames, the number of continuous video frames in which the driver's state is the first state is greater than the fifth threshold, the number of continuous video frames in which the driver's state is the second state is greater than the sixth threshold, and the continuous video frames in which the driver's state is the first state are continuous with the continuous video frames in which the driver's state is the second state, then the third determination unit determines that there is a state transition opportunity.
7. The device according to claim 5, wherein: If the state of the driver in the continuous video frames before the state transition timing is the first state, and the state of the driver in the continuous video frames after the state transition timing is the second state, the third determining unit determines that the driver is in the boarding state; If the driver's state in the continuous video frames before the state transition timing is the second state, and the driver's state in the continuous video frames after the state transition timing is the first state, the third determination unit determines that the driver is in the get-off state.
8. The device according to claim 6, wherein: The fifth threshold and the sixth threshold corresponding to the continuous video frames in the initial stage of the video are the same as or different from the fifth threshold and the sixth threshold corresponding to the continuous video frames in the middle stage of the video.
9. The device according to claim 6, wherein: The fifth threshold and the sixth threshold are the same or different.
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 the boundary region of interest on the current video frame; Determining the state of the driver on the current video frame according to the boundary region of interest and the driver boundary box on the current video frame; The driver's getting on and off the vehicle status is determined according to the driver's status on consecutive video frames.
