Method for determining passenger seating in a vehicle and vehicle control method, device, computer device, computer-readable storage medium, and computer program

The method enhances seat matching accuracy in vehicles by using image analysis and expanded detection frames to address incorrect bindings caused by sitting posture and height, improving user interaction.

JP2025501260AActive Publication Date: 2025-01-17SHANGHAI SENSETIME INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2024539629
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-12-31
Filing Date
2022-10-12
Publication Date
2025-01-17
Estimated Expiration
2042-10-12

AI Technical Summary

Technical Problem

Existing vehicle seat binding technologies often fail to accurately match occupants with their seats due to factors such as sitting posture and height, leading to incorrect bindings.

Method used

A method for determining a vehicle seat by obtaining an image inside the vehicle, identifying first and second seating areas, and using matching degrees to expand the detection frame when necessary, ensuring accurate seat assignment.

Benefits of technology

Improves the success rate of seat matching by reducing the probability of incorrect bindings and enhancing user interaction through accurate feedback based on occupant movements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2025501260000001_ABST
    Figure 2025501260000001_ABST
Patent Text Reader

Abstract

The present disclosure provides a method for determining occupant seats in a vehicle, a vehicle control method and an apparatus, the method for determining occupant seats in a vehicle includes acquiring a vehicle image within the vehicle, determining a plurality of first seat areas within the vehicle image, detecting occupants in the vehicle based on the vehicle image and determining a detection frame for each of the occupants in the vehicle image, for each occupant detection frame, determining a seat corresponding to the detection frame based on a first matching degree between the detection frame and each of the first seat areas, determining a plurality of second seat areas within the vehicle image, and when a target occupant detection frame of a corresponding target first seat area is not determined based on the first matching degree, determining a target second seat area corresponding to the detection frame of the target occupant based on a second matching degree between the detection frame of the target occupant and each of the second seat areas.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] (CROSS-REFERENCE TO RELATED APPLICATIONS) Embodiments of the present disclosure are filed based on a Chinese patent application having application number 202111682157.3, filing date December 31, 2021, and title "Method for determining passenger seats in a vehicle and vehicle control method and device", claiming priority to the Chinese patent application, the entire contents of which are incorporated by reference into this disclosure.

[0002] The present disclosure relates to the field of intelligent driving technology, and to a method for determining a seat of a passenger in a vehicle and a vehicle control method, device, electronic device, medium, and program product. [Background technology]

[0003] With the rapid development of the automobile industry, in addition to the repeated updates of key components such as engines required for automobiles, many emerging technologies related to the automobile industry have also emerged, including vehicle intelligent driving technology. In the vehicle intelligent driving technology, in order to realize the effect of making the vehicle provide corresponding feedback based on the person's actions, it is necessary to bind the person to the vehicle seat in advance, and then use the intelligent system in the vehicle to make corresponding judgments based on the person's different actions.

[0004] In the related art, when a person is bound to a vehicle seat, there are often situations where the binding between the person and the vehicle seat is incorrect due to objective factors such as the sitting posture or height, so how to correctly bind a person to a vehicle seat has become an urgent problem to be solved. Summary of the Invention [Means for solving the problem]

[0005] SUMMARY OF THE DISCLOSURE Embodiments of the present disclosure provide at least a method for determining a seat of an occupant within a vehicle, and a vehicle control method, apparatus, electronic device, medium, and program product.

[0006] In one aspect, an embodiment of the present disclosure provides a method for determining a seat of an occupant in a vehicle, the method comprising: Acquiring vehicle images within a vehicle; determining a plurality of first seating areas within the vehicle image, each of the first seating areas corresponding to a seat; and detecting occupants in the vehicle based on the vehicle image and determining a detection frame for each of the occupants in the vehicle image; determining, for each of the occupant detection frames, a seat corresponding to the detection frame based on a first matching degree between the detection frame and each of the first seat areas; determining a plurality of second seating areas within the vehicle image, each of the second seating areas corresponding to a row or column of seats; determining a target second seat area corresponding to the detection frame of the target occupant based on a second matching degree between the detection frame of the target occupant and each of the second seat areas, in response to the fact that the detection frame of the target occupant of the corresponding target first seat area is not determined based on the first matching degree; The method includes determining a seat corresponding to the detection frame of the target occupant based on the position range of each seat in a row or column of seats corresponding to the target second seat area and the detection frame of the target occupant.

[0007] In the solution provided by the embodiments of the present disclosure, when the detection frame of the target occupant of a seat cannot be determined by the first seat area, the area range of the first seat area is expanded, and a seat corresponding to the detection frame of the target occupant is further determined based on the second seat area of ​​the expanded area range, thereby reducing the probability of failure in matching or binding between the occupant and the seat, and improving the success rate of matching the occupant to the seat.

[0008] In one possible embodiment, determining a plurality of first seating areas within the vehicle image comprises: The method includes determining a first seat area corresponding to each seat in the vehicle image based on seat distribution setting information of the vehicle.

[0009] Because the seat distribution setting information of different vehicle models may be different, the first seat area can be determined more accurately according to the seat distribution setting information of the vehicle.

[0010] In one possible embodiment, for each of the occupant detection frames, determining a seat corresponding to the detection frame based on a first matching degree between the detection frame and each of the first seat areas includes: traversing each of the first seating areas according to a preset sequence; and for each of the traversed first seating areas, Calculating an overlap degree between the detection frame and the first seat area as a first matching degree between the detection frame and the first seat area; When the first matching degree reaches a first threshold and the seat corresponding to the first seat area is not bound to another detection frame, binding the seat corresponding to the first seat area to the detection frame and determining that the seat corresponding to the detection frame is the seat corresponding to the first seat area.

[0011] When the first matching degree reaches a first threshold, by detecting whether other detection frames are bound to the first seat area, it is possible to avoid binding multiple detection frames to one seat area, and further to avoid affecting the running of the vehicle when performing vehicle control based on the binding result.

[0012] In one possible embodiment, the detection frame of each of the occupants in the vehicle image is at least one of a face detection frame, a human body detection frame.

[0013] In one possible embodiment, determining a target second seat area corresponding to the detection frame of the target occupant based on a second matching degree between the detection frame of the target occupant and each of the second seat areas includes: traversing the second seating area for each target occupant detection frame in a predetermined order; and for each traversed second seating area, Calculating an overlap degree between the detection frame of the target occupant and the second seat area as the second matching degree; If the second matching degree reaches a second threshold, determining that the second seat area is a target second seat area corresponding to a detection frame of a target occupant.

[0014] In this way, it is possible to first detect which row or column the target occupant is in, and then perform further seat binding, thereby improving the accuracy of the binding result.

[0015] In one possible embodiment, determining a seat corresponding to the detection frame of the target occupant based on a position range of each seat in a row or column of seats corresponding to the target second seat area and the detection frame of the target occupant includes: Based on the detection frame of the target occupant and a position range of each seat in the target second seat area, determining that a seat corresponding to the position range in which a center point of the detection frame of the target occupant is located is a candidate seat corresponding to the detection frame of the target occupant; If the candidate seat is not bound to another detection frame, determining that the candidate seat is a seat corresponding to the detection frame of the target occupant, and binding the seat corresponding to the candidate seat to the detection frame of the target occupant.

[0016] In one possible embodiment, determining a target second seat area corresponding to the detection frame of the target occupant based on a second matching degree between the detection frame of the target occupant and each of the second seat areas includes: The method further includes determining, for each traversed second seat area, if the degree of overlap does not reach a second threshold, that the second seat area having the largest overlap area with the detection frame of the target occupant is the target second seat area.

[0017] In one possible embodiment, the method comprises the steps of: If a target second seat area corresponding to the detection frame of the target occupant is not determined, the method further includes determining a seat whose corresponding first seat area is closest to the detection frame of the target occupant and is not bound to other detection frames as the seat corresponding to the detection frame of the target occupant.

[0018] In another aspect, an embodiment of the present disclosure further provides a vehicle control method, the vehicle control method comprising: determining a user detection window corresponding to each of the seating areas based on a method for determining seats of passengers in a vehicle according to the first aspect or any possible embodiment of the first aspect; The method includes detecting a target action performed by a target user within the target detection frame, and performing vehicle control based on the target action and a seat area corresponding to the target detection frame.

[0019] Based on the method for determining the seat of a passenger in a vehicle described in the above embodiment, when used for vehicle control, in response to an action command issued by a user, precise feedback can be provided based on the user's action and his / her seat, improving the user's interaction sensation when using the vehicle.

[0020] In another aspect, an embodiment of the present disclosure further provides an apparatus for determining a seat of an occupant in a vehicle, the apparatus comprising: an acquisition unit configured to acquire vehicle images inside the vehicle; a first determination unit configured to determine a plurality of first seating areas in the vehicle image, each first seating area corresponding to one seat; a second determination unit configured to detect occupants in the vehicle based on the vehicle image and determine a detection frame for each of the occupants in the vehicle image; a third determination unit configured to determine, for each of the occupant detection frames, a seat corresponding to the detection frame based on a first matching degree between the detection frame and each of the first seat areas; a fourth determination unit configured to determine a plurality of second seating areas in the vehicle image, each second seating area corresponding to a row or column of seats; a fifth determination unit configured to determine a target second seat area corresponding to the detection frame of the target occupant based on a second matching degree between the detection frame of the target occupant and each of the second seat areas when the detection frame of the target occupant of the corresponding target first seat area is not determined based on the first matching degree; and a sixth determination unit configured to determine a seat corresponding to the detection frame of the target occupant based on the position range of each seat in a row or column of seats corresponding to the target second seat area and the detection frame of the target occupant.

[0021] In one possible embodiment, the first determination unit is further configured to determine a first seat area corresponding to each seat in the vehicle image based on seat distribution setting information of the vehicle.

[0022] In one possible embodiment, the third determination unit is further configured to traverse each of the first seat areas according to a preset order, and for each traversed first seat area, calculate an overlap degree between the detection frame and the first seat area as a first matching degree between the detection frame and the first seat area, and when the first matching degree reaches a first threshold and a seat corresponding to the first seat area is not bound to another detection frame, bind the seat corresponding to the first seat area to the detection frame and determine that the seat corresponding to the detection frame is a seat corresponding to the first seat area.

[0023] In one possible embodiment, the detection frame of each of the occupants in the vehicle image is at least one of a face detection frame, a human body detection frame.

[0024] In one possible embodiment, the fifth determination unit is further configured to traverse the second seat area for each target occupant detection frame according to a predetermined order, and for each traversed second seat area, calculate the overlap degree between the target occupant detection frame and the second seat area as the second matching degree, and if the second matching degree reaches a second threshold, determine that the second seat area is a target second seat area corresponding to the target occupant detection frame.

[0025] In one possible embodiment, the sixth determination unit is further configured to determine, based on the detection frame of the target occupant and the position range of each seat in the target second seat area, that the seat corresponding to the position range in which the center point of the detection frame of the target occupant is located is a candidate seat corresponding to the detection frame of the target occupant, and if the candidate seat is not bound to another detection frame, determine that the candidate seat is the seat corresponding to the detection frame of the target occupant, and bind the seat corresponding to the candidate seat to the detection frame of the target occupant.

[0026] In one possible embodiment, the fifth determination unit is further configured to determine, for each traversed second seat area, if the degree of overlap does not reach a second threshold, that second seat area having the largest overlap area with the detection frame of the target occupant is the target second seat area.

[0027] In one possible embodiment, the seventh determination unit is further configured to, when a target second seat area corresponding to the detection frame of the target occupant is not determined, determine a seat whose corresponding first seat area is closest to the detection frame of the target occupant and is not bound to other detection frames as the seat corresponding to the detection frame of the target occupant.

[0028] In another aspect, an embodiment of the present disclosure further provides a vehicle control device, the device comprising: an eighth determination unit configured to determine a user detection window corresponding to each of the seat regions based on a method for determining a seat of an occupant in a vehicle according to the first aspect or any possible embodiment of the first aspect; The vehicle control device includes a detection unit configured to detect a target action performed by a target user within the target detection frame, and to perform vehicle control based on the target action and a seat area corresponding to the target detection frame.

[0029] In another aspect, an embodiment of the present disclosure further provides a computing device, the computing device comprising a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the computing device is operating, the machine-readable instructions, when executed by the processor, performing the steps in any of the possible embodiments described above.

[0030] In another aspect, an embodiment of the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, the computer program being adapted to perform the steps of any of the possible embodiments described above when executed by a processor.

[0031] In another aspect, an embodiment of the present disclosure further provides a computer program product, the computer program product including computer readable code, the computer readable code, when executed in an electronic device, causing a processor in the electronic device to perform the steps in any of the possible embodiments described above.

[0032] It should be understood that the above general description and the following detailed description are exemplary and explanatory only and are not intended to limit the present disclosure. Other features and aspects of the present disclosure will become apparent from the following detailed description of the illustrative embodiments taken in conjunction with the drawings. [Brief description of the drawings]

[0033] [Figure 1] 1 illustrates a flowchart of a method for determining a seat of an occupant in a vehicle according to an embodiment of the present disclosure.

[0034] [Diagram 2] 1 shows a schematic diagram of a division scheme for a first seating area of ​​a four-seater vehicle according to an embodiment of the present disclosure.

[0035] [Diagram 3]13 shows a flowchart for determining a seat corresponding to the detection window according to an embodiment of the present disclosure.

[0036] [Figure 4] 1 illustrates a schematic diagram of a calculation scheme of the overlap degree between a detection window and a first seat area according to an embodiment of the present disclosure;

[0037] [Figure 5a] 1 shows a schematic diagram of a second seating area of ​​a four-seater vehicle divided by rows according to an embodiment of the present disclosure.

[0038] [Figure 5b] 1 shows a schematic diagram of a second seating area of ​​a four-seater vehicle divided by rows according to an embodiment of the present disclosure.

[0039] [Figure 6] 13 shows a flowchart for determining a target second seat area corresponding to the target occupant detection frame according to an embodiment of the present disclosure.

[0040] [Figure 7a] 1 illustrates a schematic diagram of determining a target second seat area corresponding to the target occupant detection frame according to an embodiment of the present disclosure;

[0041] [Figure 7b] 13 illustrates another schematic diagram of determining a target second seat area corresponding to the target occupant detection frame according to an embodiment of the present disclosure.

[0042] [Figure 8] 13 illustrates a flowchart for determining a seat corresponding to the detection frame of the target occupant based on a target second seat area according to an embodiment of the present disclosure.

[0043] [Figure 9] 1 illustrates a schematic diagram of determining a seat corresponding to the detection frame of the target occupant based on a target second seat area according to an embodiment of the present disclosure;

[0044] [Figure 10]A schematic diagram showing an embodiment of the present disclosure in which, when a target second seat area corresponding to the detection frame of the target occupant is not determined, a seat whose corresponding first seat area is closest to the detection frame of the target occupant and is not bound to other detection frames is determined as the seat corresponding to the detection frame of the target occupant.

[0045] [Figure 11] 2 shows a flowchart of a vehicle control method according to an embodiment of the present disclosure.

[0046] [Figure 12] FIG. 1 shows an architecture schematic diagram of an apparatus for determining a passenger's seat in a vehicle according to an embodiment of the present disclosure.

[0047] [Figure 13] FIG. 1 shows an architecture schematic diagram of a vehicle control device according to an embodiment of the present disclosure.

[0048] [Figure 14] 14 shows a structural schematic diagram of a computing device 1400 according to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0049] In order to more clearly explain the technical solutions of the embodiments of the present disclosure, the above briefly introduces drawings required for the embodiments, which are incorporated in the specification and form a part of this specification, and these drawings show embodiments consistent with the present disclosure and are used to explain the technical solutions of the present disclosure together with the specification. The following drawings only show some embodiments of the present disclosure, so they should not be considered as limiting the scope, and it should be understood that those skilled in the art can also obtain other related drawings based on these drawings without creative efforts.

[0050] In order to allow those skilled in the art to better understand the solutions disclosed herein, the technical solutions in the embodiments of the present disclosure are described below clearly and completely with reference to the drawings in the embodiments of the present disclosure, and obviously, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without any creative efforts belong to the protection scope of the present disclosure.

[0051] The terms "first", "second", etc. in the specification and claims of this disclosure and in the above drawings are used to distinguish different objects without describing a particular order. Furthermore, the terms "include" and "comprise" and variations thereof are intended to cover a non-exclusive inclusion.

[0052] For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the steps or units already recited, but may include additional steps or units that are not recited or may include other steps or units inherent to such process, method, product, or apparatus.

[0053] It should be understood that in this application, "at least one" refers to one or more, "multiple" refers to two or more, "at least two" refers to two or three and more, and "and / or" is used to describe the related relationship of related objects, and indicates that three kinds of relationships can exist, for example, "A and / or B" can indicate three situations: only A exists, only B exists, and A and B exist simultaneously, where A and B can be singular or plural. The character " / " can indicate that the related objects before and after are in an "or" relationship, and refers to any combination of these terms, including any combination of one term or multiple terms. For example, at least one term of a, b, or c can indicate a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be singular or plural. The character " / " can also represent a division symbol in mathematical operations, for example, a / b=a divided by b, 6 / 3=2. "at least one of the following" or similar expressions.

[0054] According to research, in the existing disclosed technologies for binding people to vehicle seats, in the process of binding people to vehicle seats, there are often situations that machines cannot recognize due to objective factors such as the person's sitting posture or height. For example, children have small bodies, are not tall enough and are easy to move around, which makes it difficult for machines to monitor them.

[0055] Furthermore, in the existing disclosed technologies relating to binding between a person and a vehicle seat, only one binding method is generally adopted in the process of binding between a person and a vehicle seat, and the binding is performed only once, with no related basic strategy, which is prone to lead to a situation where the execution device makes a mistake, thereby leading to a situation where the binding between the person and the vehicle seat is erroneous.

[0056] Based on the above research, an embodiment of the present disclosure provides a method for determining an occupant's seat in a vehicle, and when the detection frame of a target occupant of a seat cannot be determined by a first seat area, the area range of the first seat area is expanded, and a seat corresponding to the detection frame of the target occupant is further determined based on a second seat area of ​​the expanded area range, thereby reducing the probability of failure in matching or binding between an occupant and a seat, and improving the success rate of occupant seat matching.

[0057] It should be noted that like symbols and letters represent like items in the following drawings, and therefore, once an item is defined in one drawing, it does not need to be further defined and interpreted in subsequent drawings.

[0058] In order to easily understand the embodiments of the present disclosure, the method for determining the seat of a passenger in a vehicle and the vehicle control method disclosed in the embodiments of the present disclosure will be described in detail first. The execution body of the method for determining the seat of a passenger in a vehicle and the vehicle control method provided in the embodiments of the present disclosure is a vehicle control device (such as a rail transit cockpit intelligent analysis box, a bus cockpit intelligent analysis box) or a server.

[0059] Referring to FIG. 1, which is a flowchart of a method for determining a seat of a passenger in a vehicle according to an embodiment of the present disclosure, the method includes steps S101 to S107.

[0060] In S101, a vehicle image of the inside of the vehicle is acquired.

[0061] At S102, a plurality of first seating areas in the vehicle image are determined, each of the first seating areas corresponding to one seat.

[0062] In S103, occupants in the vehicle are detected based on the vehicle image, and a detection frame for each of the occupants in the vehicle image is determined.

[0063] In S104, for each of the detection frames of the occupants, a seat corresponding to the detection frame is determined based on a first matching degree between the detection frame and each of the first seat areas.

[0064] At S105, a plurality of second seating areas in the vehicle image are determined, each of the second seating areas corresponding to a row or column of seats.

[0065] In S106, while the detection frame of the target occupant of the corresponding target first seat area is not determined based on the first matching degree, a target second seat area corresponding to the detection frame of the target occupant is determined based on a second matching degree between the detection frame of the target occupant and each of the second seat areas.

[0066] In S107, a seat corresponding to the detection frame of the target occupant is determined based on the position range of each seat in one row or one column of seats corresponding to the target second seat area and the detection frame of the target occupant.

[0067] Steps 101 to 107 will be explained in detail below.

[0068] About S101: In one possible embodiment, step S101 may include capturing a vehicle image within the vehicle in response to satisfying an image collection trigger condition.

[0069] Here, satisfying the image collection trigger condition and acquiring a vehicle image of the vehicle may be achieved in any one of a number of scenarios described below.

[0070] In scenario A, the driver opens the vehicle and starts it. Here, the vehicle can be started by ignition or electricity, and after the vehicle is started, the vehicle circuit system is turned on, the vehicle accesses the network, and starts to capture vehicle images inside the vehicle.

[0071] In scenario B, the driver opens the car door or triggers the start switch of the car. Here, triggering the start switch of the car may be performed by at least one of the following methods: turning on the car remote control switch, inserting the car start key, or using a wearable device to contact the car body, etc. Here, after it is detected that the driver opens the car door or triggers the car start switch, a vehicle image inside the vehicle is obtained.

[0072] In scenario C, while the vehicle is traveling, images of the interior of the vehicle are collected periodically according to a preset cycle, that is, vehicle images of the interior of the vehicle can be acquired at regular intervals.

[0073] In one possible embodiment, the vehicle image is an image that includes the environment inside the vehicle, and by way of example, the content of the vehicle image may include all seats in the vehicle cabin, people in the vehicle, and other pets, etc.

[0074] In one possible embodiment, the vehicle images may be collected and acquired using a driver monitoring system (DMS), and the collection process can be performed using a DMS camera. In the process of collecting vehicle images using a DMS, the vehicle images need to be collected in real time while the vehicle is traveling, because the situation inside the vehicle changes dynamically in real time.

[0075] In practical applications, the sitting positions of passengers in the vehicle may change while the vehicle is being driven, so the detection frame and seat area can be determined for each frame of collected vehicle image based on steps S102 to S107.

[0076] In one possible embodiment, a method of collecting and determining passenger seats at time intervals can be used, and after one collection, after a preset time interval, vehicle images are collected again for the current vehicle situation. This method can reduce the collection pressure of the DMS system and reduce resource occupation. In practical use, the preset time interval can be set as small as possible, so that the DMS system can update vehicle images more timely with respect to the vehicle situation in the vehicle, reducing resource occupation, and at the same time, reducing the error between the collected vehicle images and the real-time vehicle situation in the vehicle as much as possible.

[0077] In one possible embodiment, in response to satisfying the image collection trigger condition, the server performs an operation of acquiring a vehicle image in the vehicle. Wherein, after detecting that the vehicle accesses the preset system, the server corresponding to the preset system can detect whether the vehicle satisfies the image collection trigger condition. If it is detected that the vehicle satisfies the image collection trigger condition, the server can send a vehicle image acquisition request to the on-board camera or the on-board host connected to the on-board camera, thereby acquiring a vehicle image in the vehicle.

[0078] Here, the vehicle's access to the preset system can, for example, refer to accessing the preset system via an in-vehicle system (e.g., a navigation system installed in the vehicle), or accessing the preset system via a wearable device carried by the driver (e.g., a smart watch, etc.).

[0079] If the vehicle only accesses the preset system but does not meet the image collection trigger condition, the server may not acquire vehicle images inside the vehicle, so as to reduce resource occupation.

[0080] In another possible embodiment, the vehicle does not need to access the preset system, and the vehicle image inside the vehicle is directly acquired by the in-vehicle host side after the vehicle meets the image collection trigger condition. In this manner, the vehicle can be directly monitored in real time by the DMS system on the vehicle side, and the vehicle image inside the vehicle can be collected, thereby improving the safety of the vehicle use.

[0081] The above two embodiments can be combined in certain scenarios, where when the vehicle cannot access the server due to extreme conditions, such as when the car is wet and stops, when the vehicle runs to a road section without traffic lights, etc., the vehicle's built-in DMS system can detect the vehicle conditions inside the vehicle and update the current vehicle image. After the vehicle returns to normal conditions, the server can continue to obtain the vehicle images inside the vehicle.

[0082] Regarding S102, After capturing a vehicle image within a vehicle, a number of first seating areas within the vehicle image may be determined.

[0083] Here, each of the first seating areas is an independently accessible seating area within the vehicle. When dividing the first seating area, each independently accessible seat within the vehicle can be divided into one first seating area, and there are a plurality of first seating areas within one vehicle. For example, as shown in FIG. 2, a division method of the first seating area of ​​a four-seater vehicle is shown in FIG. 2.

[0084] Here, each of the four-seater vehicles includes four seats, with the upper left being the driver's seat 201, the upper right being the passenger seat 202, and the lower left and lower right corresponding to two passenger seats (including 203, 204), each of which can accommodate at least one passenger alone. When dividing the first seating area, each seat can be divided to correspond to one first seating area, so that the four-seater vehicle includes four first seating areas, which are the driver's seat area 201, the passenger seat area 202, the passenger A seat area 203, and the passenger B seat area 204.

[0085] In one possible embodiment, in the process of determining multiple first seat areas in the vehicle image, a first seat area corresponding to each seat in the vehicle image can be determined based on seat distribution setting information of the vehicle.

[0086] The vehicle seat distribution setting information may illustratively include first seat range information of each seat inside the vehicle, a seat position layout of the vehicle, and the number of seats.

[0087] In one possible embodiment, the manner of determining the seat distribution setting information of the vehicle may include determining the seat distribution setting information corresponding to the vehicle type information based on the vehicle type information of the vehicle. Here, a correspondence relationship between the vehicle type information and the seat distribution setting information may be stored in advance, and when determining the seat distribution setting information of the vehicle, the seat distribution setting information corresponding to the vehicle type information may be searched for based on the correspondence relationship.

[0088] Here, in the process of determining the vehicle model information of the vehicle, if the vehicle can execute a preset strategy of automatically reporting the vehicle model information, the vehicle model information can be automatically reported by the vehicle when the vehicle accesses the preset system. If the vehicle model used by the occupant is too old to execute the preset automatic reporting strategy, the occupant can report the relevant vehicle model information by himself.

[0089] Here, the first seat range information may include image coordinate range information corresponding to a first seat area in the vehicle interior of the vehicle model, and the image coordinate range information may be obtained by dividing the seats in the collected vehicle interior image after a camera for collecting the vehicle image is fixedly installed in the vehicle interior, and calculating the boundary coordinates of each of the corresponding seat areas. Each of the first seat areas can be divided from the vehicle image based on the corresponding coordinate range information of the first seat area.

[0090] Regarding S103, The detection frame of each of the occupants in the vehicle image is at least one of a face detection frame and a human body detection frame. In one possible embodiment, in the process of determining the detection frame of each of the occupants in the vehicle image, the vehicle image can be input to a pre-trained detection model to determine a detection frame corresponding to each of the occupants in the vehicle image.

[0091] In one possible embodiment, a detection model for detecting a face detection frame may be a first model, a detection model for detecting a human body detection frame may be a second model, supervision data for the first model and the second model may be different, the supervision data for the first model may be a pre-labeled face frame, and the supervision data for the second model may be a pre-labeled human body frame.

[0092] Or, in another possible embodiment, the detection model for detecting face detection frames and the detection model for detecting human body detection frames may be the same detection model, and the supervision data for the detection model includes two types, namely pre-labeled face frames and pre-labeled human body frames.

[0093] In practical applications, steps S102 and S103 can be performed simultaneously based on the sequence in FIG. 1, or steps S102 and S103 can be performed one after the other, and the present solution does not place excessive restrictions on the division of the above two steps into the previous and next steps.

[0094] Regarding step S104, The first matching degree between the detection frame and each of the first seat areas represents the correlation of spatial positions, and may be obtained based on an overlap area, an overlap degree, etc. between the detection frame and each of the first seat areas.

[0095] In one possible implementation, the detection frame of each occupant can be matched with each of the first seat areas, and, for example, the overlap area between the detection frame and the first seat area can be calculated, and among multiple seat areas in the vehicle cabin, the seat area having the largest overlap area with the detection frame can be determined to be the seat corresponding to the detection frame, thereby determining the seat in which the occupant is seated within the detection frame.

[0096] In one possible embodiment, the above step of determining a seat corresponding to the detection frame based on a first matching degree between the detection frame and each of the first seat areas can be realized by steps S301 to S303.

[0097] In step S301, each of the first seating areas is traversed according to a preset order.

[0098] In one possible embodiment, the process of traversing each of the first seating areas according to a preset order can start from the driver's seat, and traverse from left to right first, and then from top to bottom. Exemplarily, as shown in Fig. 2, Fig. 2 includes four first seating areas, and the process of traversing each of the first seating areas can sequentially traverse according to the order of the driver's seat 201, the passenger seat 202, the passenger A seat 203, and the passenger B seat 204.

[0099] In another possible embodiment, starting from the driver's seat, first traverse from top to bottom, then from left to right. Exemplarily, as shown in Fig. 2, Fig. 2 includes four first seat areas, and in the process of traversing each of the first seat areas, the driver's seat 201, the passenger A seat 203, the passenger seat 202, and the passenger B seat 204 can be traversed in sequence.

[0100] For each first seating area that is traversed, steps S302 and S303 are performed.

[0101] In step S302, the degree of overlap between the detection frame and the first seat area is determined as a first matching degree between the detection frame and the first seat area.

[0102] The overlap degree may be, for example, a cross-over ratio (IoU), that is, a ratio of intersection and union between the detection frame and the first seat area. For example, as shown in Fig. 4, the first seat area in Fig. 4 is a driver's seat area 401, where the part highlighted in middle gray is an area 403 commonly included by the driver's seat area 401 and the detection frame 402, that is, a union area, and the sum of all areas of the driver's seat area and the detection frame is the intersection area, and the ratio of the intersection area and the union area is calculated, that is, the overlap degree between the driver's seat area and the detection frame is obtained, and this overlap degree is the first matching degree between the detection frame and the driver's seat area.

[0103] In step S303, if the first matching degree reaches a first threshold and the seat corresponding to the first seat area is not bound to another detection frame, the seat corresponding to the first seat area is bound to the detection frame, and it is determined that the seat corresponding to the detection frame is the seat corresponding to the first seat area.

[0104] In the process of traversing the first seat area according to a preset order, it can detect whether the first seat area is bound to another detection frame. When one first seat area is bound to a detection frame, it represents that the first seat area is a seating position of the passenger corresponding to the detection frame, and since multiple people cannot normally sit in the first seat area, when the first matching degree reaches a first threshold, it detects whether the first seat area is bound to another detection frame, thereby avoiding an unreasonable detection result that multiple detection frames are bound to one seat area and multiple people sit in the same seat.

[0105] In one possible embodiment, in the first seat area, the first threshold value of the face detection frame and the first threshold value corresponding to the human body detection frame may be different. Because there may be differences in distances and relative angles between different seat areas and the camera that collects the vehicle image, the face detection frame of each seat area may correspond to a respective first threshold value, and the human body detection frame of each seat area may correspond to a respective first threshold value.

[0106] In one possible embodiment, for a first seat area currently being traversed, if a first matching degree between a detection frame and the first seat area reaches a corresponding first threshold and the seat corresponding to the first seat area is not bound to another detection frame, the seat corresponding to the first seat area is set as the seat corresponding to the detection frame, and the first seat area is bound to the detection frame with which the first matching degree reaches the corresponding first threshold.

[0107] In one possible embodiment, if a first matching degree calculated between an occupant's face detection frame and the first seat area reaches a corresponding first threshold, but a first matching degree between the occupant's body detection frame and the first seat area does not reach a corresponding first threshold, the first seat area is bound to the occupant's face detection frame, the seat corresponding to the face detection frame is determined to be the seat corresponding to the first seat area, and the occupant's face is further bound to the seat corresponding to the first seat area.

[0108] Conversely, if the first matching degree calculated between a certain occupant's human body detection frame and the first seat area reaches the corresponding first threshold value, but the first matching degree calculated between the occupant's face detection frame and the first seat area does not reach the corresponding first threshold value, the first seat area is bound to the occupant's human body detection frame, the seat corresponding to the human body detection frame is determined to be the seat corresponding to the first seat area, and further the occupant's human body is bound to the seat corresponding to the first seat area.

[0109] In practical applications, a double matching method can be adopted to sequentially match the seat area with the human body detection frame and the face detection frame, respectively. When the first matching degree between any of the human body detection frame and face detection frame of an occupant and a first seat area reaches a first threshold value, the face detection frame and human body detection frame of the occupant are all bound to the first seat area, and the occupant is further bound to the first seat area, thereby improving the binding efficiency.

[0110] In another possible embodiment, the matching of the seat area can be performed by adopting a method of using only the human body detection frame or only the face detection frame, where in the solution of performing detection using only the face detection frame, when the matching degree between the face detection frame and a first seat area reaches a corresponding first threshold and the seat corresponding to the first seat area is not bound to other detection frames, the face detection frame is bound to the first seat area, the seat corresponding to the face detection frame is determined to be the seat corresponding to the first seat area, and the face of the passenger is further bound to the first seat area. When the first matching degree does not exceed the corresponding matching threshold, the face of the passenger is not bound to the first seat area. The method of performing detection using the human body detection frame is similar to the method of performing detection using the face detection frame.

[0111] Regarding step S105, The area coverage of the second seating area is larger than that of the first seating area, and in one possible embodiment, the second seating area is a seating area that includes a portion of the vehicle's air gap space, and each of the second seating areas corresponds to one row or one column of seats.

[0112] In one possible embodiment, a second seat area can be determined based on the determined first seat area. Here, based on the determined first seat area and the vehicle image, some interval gaps of the first seat area can be filled in, and each row or each column can be determined as one second seat area. Then, a plurality of areas in the second seat area are divided according to the vehicle type information, where each second seat area corresponds to a row of seats. For example, each second seat area can be further divided according to the following scheme: If there are two seats in each row of the vehicle, it can be divided at 1 / 2 and divided into a left column area and a right column area. If there are three seats in each row of the vehicle, it can be divided at 1 / 3, and so on.

[0113] In another possible embodiment, the second seat area can be directly determined based on the vehicle image. Here, in the solution of dividing according to rows, the gap interval of each row in the vehicle image can be directly removed, each row in the vehicle is determined as one second seat area, and then the left row area and the left column area in the second seat area are divided. Similarly, in the solution of dividing according to columns, the gap interval of each column in the vehicle image can be directly removed, each column in the vehicle is determined as one second seat area, and then the upper row area and the lower row area in the second seat area are divided.

[0114] For example, as shown in FIG. 5(a), FIG. 5(a) shows a schematic diagram of a second seating area of ​​a four-seater vehicle divided by rows, where FIG. 5(a) includes two second seating areas, which are second seating area A501 and second seating area B502, respectively, and each row includes a left column area and a right column area, and each left column area and each right column area corresponds to one seat respectively.

[0115] Or, for example, as shown in FIG. 5(b), FIG. 5(b) shows a schematic diagram of a second seating area of ​​a four-seater vehicle divided by rows, where FIG. 5(b) includes two second seating areas, which are second seating area C503 and second seating area D504, respectively, and each row includes a front row area and a rear row area, and each front row area and each rear row area corresponds to one seat.

[0116] Regarding step S106, In one possible embodiment, while the detection frame of the target occupant of the corresponding target first seat area is not determined based on the first matching degree, the above step of determining a target second seat area corresponding to the detection frame of the target occupant based on a second matching degree between the detection frame of the target occupant and each of the second seat areas can be realized by steps S601 to S603 as shown in Figure 6.

[0117] In step S601, the second seating areas are traversed according to a preset order, and for each of the traversed second seating areas, In one possible embodiment, in the process of traversing the second seating area according to a preset sequence, if there are multiple rows or multiple columns of seats, it can start from the second seating area where the driver's seat is located, and traverse row by row or column by column according to the actual situation.

[0118] For each second seating area traversed, the following steps S602 and S603 are performed.

[0119] In step S602, the degree of overlap between the detection frame for the target occupant and the second seat area is set as a second matching degree between the detection frame for the target occupant and the second seat area.

[0120] In step S603, if the second matching degree reaches a second threshold, it is determined that the second seat area is a target second seat area corresponding to the detection frame of the target occupant.

[0121] As an example, as shown in Figure 7(a), the overlap degree between the target occupant detection frame 701 and the second seat area E702, and the overlap degree between the target occupant detection frame 701 and the second seat area F703 are calculated as corresponding second matching degrees, and if the second matching degree corresponding to the target occupant detection frame and the second seat area E reaches a second threshold, it is determined that the second seat area E is the target second seat area corresponding to the target occupant detection frame.

[0122] In one possible embodiment, for each traversed second seat area, if the degree of overlap does not reach a second threshold, the second seat area having the largest overlap area with the detection frame of the target occupant can be determined to be the target second seat area.

[0123] For example, as shown in Figure 7(b), since the overlap area between the target occupant detection frame 701 and the second seat area G704 is larger than the overlap area between the target occupant detection frame 701 and the second seat area H705, the second seat area G704 is determined as the target second seat area corresponding to the target occupant detection frame.

[0124] Regarding step S107, In one possible embodiment, the above step of determining the seat corresponding to the detection frame of the target occupant based on the position range of each seat in a row or column of seats corresponding to the target second seat area and the detection frame of the target occupant may include steps S801 to S802, as shown in FIG. 8.

[0125] In step S801, based on the detection frame of the target occupant and the position range of each seat within the target second seat area, it is determined that the seat corresponding to the position range in which the center point of the detection frame of the target occupant is located is a candidate seat corresponding to the detection frame of the target occupant.

[0126] In one possible embodiment, the position range in which the center point of the detection frame of the target occupant is located can be determined by calculating the Euclidean distance between the detection frame of the target occupant and the center point of the position range of each seat. For example, as shown in Fig. 9, the Euclidean distance between the detection frame 901 of the target occupant and the center point 902 of the left row region and the Euclidean distance between the detection frame 901 of the target occupant and the center point 903 of the right row region are calculated, that is, the straight-line distance between the detection frame of the target occupant and the two center points is calculated.

[0127] Next, the seat corresponding to the position range with the shortest straight-line distance is determined as the candidate seat corresponding to the detection frame of the target occupant. In Fig. 9, the distance from the left row region to the center point of the detection frame 901 of the target occupant to be bound is shorter than the distance from the right row region, so the seat corresponding to the left row region is determined as the candidate seat corresponding to the detection frame of the target occupant.

[0128] In another possible embodiment, an intersection between the detection frame of the target occupant and each seat in the target second seat area can be calculated, and the larger intersection is determined as the candidate seat corresponding to the detection frame of the target occupant.

[0129] For example, as shown in FIG. 9, since the intersection between the detection frame of the target occupant to be bound and the left row region is larger than the intersection with the right row region, the seat corresponding to the left row region is determined to be the candidate seat corresponding to the detection frame of the target occupant.

[0130] In step S802, if the candidate seat is not bound to another detection frame, it is determined that the candidate seat is a seat corresponding to the detection frame of the target occupant, and the seat corresponding to the candidate seat is bound to the detection frame of the target occupant.

[0131] In one possible embodiment, if a target second seat area corresponding to the detection frame of the target occupant is not determined, a seat whose corresponding first seat area is closest to the detection frame of the target occupant and is not bound to other detection frames is determined as the seat corresponding to the detection frame of the target occupant.

[0132] In one possible embodiment, first, the detection frame of the target occupant and the center point of each of the first seat areas are determined, respectively, and then, based on the center points, the seat that has the shortest straight-line distance between the two center points and is not bound to other detection frames is determined as the seat corresponding to the detection frame of the target occupant.

[0133] 10, which includes a plurality of second seat areas, which are a first seat area A1001, a first seat area B1002, a first seat area C1003, and a first seat area D1004, respectively, and the detection frame 1005 of the target occupant has no intersecting area with the above-mentioned four first seat areas. Since the straight-line distance between the center point of the detection frame of the target occupant and the center point of the first seat area A is the shortest and is not bound to other detection frames, the first seat area A1001 is determined as the seat corresponding to the detection frame 1005 of the target occupant.

[0134] Based on the method for determining the seat of a passenger in a vehicle proposed in the present solution, an embodiment of the present disclosure further provides a vehicle control method implemented by an electronic device. As shown in Figure 11, a schematic diagram of a vehicle control method according to an embodiment of the present disclosure includes the following steps S1101 and S1102.

[0135] In step S1101, a detection frame corresponding to each of the seat areas is determined based on the method for determining the seats of passengers in a vehicle described in the above embodiment.

[0136] In step S1102, a target motion performed by a target occupant within the target detection frame is detected, and vehicle control is performed based on the target motion and the seat area corresponding to the target detection frame.

[0137] In practical application, based on the method for determining a seat of a passenger in a vehicle proposed in the above embodiment, a vehicle control can be realized, where in response to a target command corresponding to a target motion of a passenger, the vehicle executes a target operation corresponding to the target command.

[0138] For example, the vehicle control method can be applied to the field of intelligent driving, and after it is detected that the target detection frame corresponding to the target occupant is bound to the target seat area, the vehicle opens the window above the corresponding door according to the occupant's gesture command and the occupant's seating position after the occupant makes a gesture to instruct "open the window". For example, if the occupant who issues the gesture command is a passenger seat occupant, the window above the passenger seat door can be opened, thereby realizing precise control based on the passenger seat detection.

[0139] Those skilled in the art can understand that in the above method of the specific embodiment, the writing order of each step does not mean a strict execution order and does not constitute any restriction on the implementation process, and the execution order of each step should be determined by its function and possible internal logic.

[0140] Based on the same inventive concept, the embodiment of the present disclosure further provides an apparatus for determining a passenger's seat in a vehicle, which corresponds to the method for determining a passenger's seat in a vehicle. The principle of solving the problem of the apparatus in the embodiment of the present disclosure is similar to the above method for determining a passenger's seat in a vehicle in the embodiment of the present disclosure, so the implementation of the apparatus can refer to the implementation of the method.

[0141] Referring to FIG. 12, there is shown an architecture schematic diagram of an apparatus for determining a seat of an occupant in a vehicle according to an embodiment of the present disclosure, the apparatus comprising an acquisition unit 1201, a first determination unit 1202, a second determination unit 1203, a third determination unit 1204, a fourth determination unit 1205, a fifth determination unit 1206, and a sixth determination unit 1207.

[0142] The acquisition unit 1201 is configured to acquire vehicle images inside the vehicle.

[0143] The first determination unit 1202 is configured to determine a plurality of first seating areas in the vehicle image, each first seating area corresponding to one seat.

[0144] The second determination unit 1203 is configured to detect occupants in the vehicle based on the vehicle image, and determine a detection frame for each of the occupants in the vehicle image.

[0145] The third determination unit 1204 is configured to determine, for each of the occupant detection frames, a seat corresponding to the detection frame based on a first matching degree between the detection frame and each of the first seat areas.

[0146] A fourth determining unit 1205 is configured to determine a plurality of second seating areas in the vehicle image, each second seating area corresponding to a row or a column of seats.

[0147] The fifth determination unit 1206 is configured to determine a target second seat area corresponding to the detection frame of the target occupant based on a second matching degree between the detection frame of the target occupant and each of the second seat areas, when the detection frame of the target occupant of the corresponding target first seat area is not determined based on the first matching degree.

[0148] The sixth determination unit 1207 is configured to determine the seat corresponding to the detection frame of the target occupant based on the position range of each seat in a row or column of seats corresponding to the target second seat area and the detection frame of the target occupant.

[0149] In one possible embodiment, the first determining unit 1202 is further configured to determine a first seat area corresponding to each seat in the vehicle image based on seat distribution setting information of the vehicle.

[0150] In one possible embodiment, the third determination unit 1204 is further configured to traverse each of the first seat areas according to a preset order, and for each traversed first seat area, calculate the overlap degree between the detection frame and the first seat area as a first matching degree between the detection frame and the first seat area, and when the first matching degree reaches a first threshold and the seat corresponding to the first seat area is not bound to another detection frame, bind the seat corresponding to the first seat area to the detection frame and determine that the seat corresponding to the detection frame is the seat corresponding to the first seat area.

[0151] In one possible embodiment, the detection frame of each of the occupants in the vehicle image is at least one of a face detection frame, a human body detection frame.

[0152] In one possible embodiment, the fifth determination unit 1206 is further configured to traverse the second seat area according to a preset order for each target occupant detection frame, calculate the overlap degree between the target occupant detection frame and the second seat area for each traversed second seat area as the second matching degree, and determine that the second seat area is a target second seat area corresponding to the target occupant detection frame if the second matching degree reaches a second threshold.

[0153] In one possible embodiment, the sixth determination unit 1207 is further configured to determine, based on the detection frame of the target occupant and the position range of each seat in the target second seat area, that the seat corresponding to the position range in which the center point of the detection frame of the target occupant is located is a candidate seat corresponding to the detection frame of the target occupant, and if the candidate seat is not bound to another detection frame, determine that the candidate seat is the seat corresponding to the detection frame of the target occupant, and bind the seat corresponding to the candidate seat to the detection frame of the target occupant.

[0154] In one possible embodiment, the fifth determination unit 1206 is further configured to determine that for each traversed second seat area, if the degree of overlap does not reach a second threshold, the second seat area having the largest overlap area with the detection frame of the target occupant is the target second seat area.

[0155] In one possible embodiment, the seventh determination unit 1208 is further configured to, when a target second seat area corresponding to the detection frame of the target occupant is not determined, determine a seat whose corresponding first seat area is closest to the detection frame of the target occupant and is not bound to other detection frames as the seat corresponding to the detection frame of the target occupant.

[0156] For the description of the processing process of each part in the device and the interaction process between each part, reference can be made to the relevant descriptions in the above-mentioned method embodiments.

[0157] Based on the same inventive concept, the embodiment of the present disclosure further provides a vehicle control device corresponding to the vehicle control method. The principle of solving the problem of the device in the embodiment of the present disclosure is similar to the above method of determining the seat of a passenger in a vehicle in the embodiment of the present disclosure, so the implementation of the device can refer to the implementation of the method.

[0158] Referring to FIG. 13, it is an architecture schematic diagram of a vehicle control device according to an embodiment of the present disclosure, the device including an eighth determining unit 1301 and a detecting unit 1302.

[0159] The eighth determining unit 1301 is configured to determine a detection frame corresponding to each of the seat areas based on the method for determining passenger seats in a vehicle described in the above embodiments.

[0160] The detection unit 1302 is configured to detect a target motion performed by a target occupant within the target detection frame, and to perform vehicle control based on the target motion and a seat area corresponding to the target detection frame.

[0161] For the description of the processing process of each part in the device and the interaction process between each part, reference can be made to the relevant descriptions in the above-mentioned method embodiments.

[0162] In this and other embodiments of the present disclosure, a "part" may be a part of a circuit, a part of a processor, a part of a program or software, etc., and of course may be a unit, a module, or non-modular.

[0163] Based on the same technical concept, an embodiment of the present disclosure further provides a computer device. Referring to FIG. 14, it is a structural schematic diagram of a computer device 1400 according to an embodiment of the present disclosure, which includes a processor 1401, a memory 1402, and a bus 1403. Here, the memory 1402 is used to store execution instructions, and includes an internal memory 14021 and an external memory 14022, where the internal memory 14021 is also called an internal storage device, and is used to temporarily store operation data in the processor 1401 and data to be exchanged with the external memory 14022 such as a hard disk. The processor 1401 exchanges data with the external memory 14022 through the internal memory 14021. When the computer device 1400 operates, the processor 1401 and the memory 1402 communicate with each other through the bus 1403, and the processor 1401 receives, capturing vehicle images within the vehicle; determining a plurality of first seating regions within the vehicle image, each first seating region corresponding to a seat; detecting occupants in the vehicle based on the vehicle image and determining a detection frame for each of the occupants in the vehicle image; determining, for each of the occupant detection frames, a seat corresponding to the detection frame based on a first matching degree between the detection frame and each of the first seat areas; determining a plurality of second seating regions within the vehicle image, each second seating region corresponding to a row or column of seats; determining a target second seat area corresponding to the detection frame of the target occupant based on a second matching degree between the detection frame of the target occupant and each of the second seat areas, in response to the fact that the detection frame of the target occupant of the corresponding target first seat area is not determined based on the first matching degree; and The device executes the process of determining a seat corresponding to the detection frame of the target occupant based on the position range of each seat in a row or column of seats corresponding to the target second seat area and the detection frame of the target occupant.

[0164] Or, the processor 1401 determining a detection frame corresponding to each of the seat areas according to the method for determining the seats of passengers in a vehicle described in the above embodiment; and It is also possible to detect a target action performed by a target occupant within the target detection frame, and to perform vehicle control based on the target action and the seat area corresponding to the target detection frame.

[0165] An embodiment of the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, the computer program being configured to perform the steps of the method for determining a seat of an occupant in a vehicle and the vehicle control method described in the above embodiment of the method when executed by a processor, where the storage medium may be a volatile or non-volatile computer-readable storage medium.

[0166] It should be pointed out here that the above description of the storage medium and device embodiments is similar to the description of the above method embodiments, and has the same beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of the present disclosure, please refer to the description of the method embodiments of the present disclosure to understand them.

[0167] The above-mentioned processor may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor. It can be understood that the electronic device that realizes the above-mentioned processor function may be other, but is not specifically limited in the embodiments of the present disclosure.

[0168] The above computer storage medium / memory may be a memory such as a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a ferromagnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM), and may be various kinds of terminals, such as mobile phones, computers, tablet devices, personal digital assistants, etc., including one or any combination of the above memories.

[0169] An embodiment of the present disclosure further provides a computer program product, the computer program product carrying program code, and instructions contained in the program code may be used to perform steps of the method for determining a seat of an occupant in a vehicle, the vehicle control method described in the above method embodiments, and reference may be made to the above method embodiments.

[0170] Here, the computer program product may be realized in hardware, software, or a combination thereof. In one alternative embodiment, the computer program product is embodied as a computer storage medium, and in another alternative embodiment, the computer program product is embodied as a software product, such as a Software Development Kit (SDK).

[0171] Those skilled in the art can clearly understand that for convenience and concise description, the operation processes of the above-described system and device can refer to the corresponding processes in the embodiments of the method. In some embodiments provided in the present disclosure, it should be understood that the disclosed system, device and method may be realized in other ways. The above-described device embodiments are only exemplary, for example, the division of the units is only a logical functional division, and there may be other division methods when actually realized, and for example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some communication interface, device or unit, and may be an electrical, mechanical or other form.

[0172] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one place or distributed among multiple network units, among which some or all of the units may be selected according to actual needs to achieve the objective of the solution of the present embodiment.

[0173] Furthermore, each functional unit in each embodiment of the present disclosure may be integrated into a single processing unit, each unit may exist physically alone, or two or more units may be integrated into a single unit.

[0174] When the functions are realized in the form of a software functional unit and sold or used as an independent product, they may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on this understanding, the technical solution of the present disclosure, essentially or in part contributing to the prior art, or the technical solution may be embodied in the form of a software product, and the computer software product includes some instructions stored in a storage medium to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0175] Finally, it should be explained that the above examples are only specific embodiments of the present disclosure, and are intended to illustrate the technical solutions of the present disclosure, but are not limited thereto, and the scope of protection of the present disclosure is not limited thereto. The present disclosure is described in detail with reference to the above examples, but those skilled in the art should understand that within the technical scope disclosed in the present disclosure, any person skilled in the art can still easily think of modifying or changing the technical solutions described in the above examples, or make equivalent replacements for part of the technical features, and these modifications, changes or replacements do not deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should all be included in the scope of protection of the present disclosure. Therefore, the scope of protection of the present disclosure should be subject to the scope of protection of the claims. [Industrial Applicability]

[0176] An embodiment of the present disclosure provides a method for determining a seat of an occupant in a vehicle, a vehicle control method, and an apparatus, the method for determining a seat of an occupant in a vehicle includes: acquiring a vehicle image in a vehicle; determining a plurality of first seat areas in the vehicle image; detecting an occupant in the vehicle based on the vehicle image, and determining a detection frame of each of the occupants in the vehicle image; for each occupant detection frame, determining a seat corresponding to the detection frame based on a first matching degree between the detection frame and each of the first seat areas; determining a plurality of second seat areas in the vehicle image; when a target occupant detection frame of a corresponding target first seat area is not determined based on the first matching degree, determining a target second seat area corresponding to the detection frame of a target occupant based on a second matching degree between the detection frame of the target occupant and each of the second seat areas; and determining a seat corresponding to the detection frame of the target occupant based on a position range of each seat in a row or column of seats corresponding to the target second seat area and the detection frame of the target occupant. When the detection frame of the target occupant of the seat cannot be determined by the first seat area, the area range of the first seat area is expanded, and a seat corresponding to the detection frame of the target occupant is further determined based on the second seat area of ​​the expanded area range, thereby reducing the probability of failure in matching or binding between the occupant and the seat and improving the success rate of matching the occupant to the seat.

Claims

1. 1. A method for determining a seat of an occupant in a vehicle performed by an electronic device, comprising: Acquiring vehicle images within a vehicle; determining a plurality of first seating areas within the vehicle image, each of the first seating areas corresponding to a seat; and detecting occupants in the vehicle based on the vehicle image and determining a detection frame for each of the occupants in the vehicle image; determining, for each of the occupant detection frames, a seat corresponding to the detection frame based on a first matching degree between the detection frame and each of the first seat areas; determining a plurality of second seating regions within the vehicle image, each of the second seating regions corresponding to a row or column of seats; determining a target second seat area corresponding to the detection frame of the target occupant based on a second matching degree between the detection frame of the target occupant and each of the second seat areas, in response to the fact that the detection frame of the target occupant of the corresponding target first seat area is not determined based on the first matching degree; A method for determining a seat of an occupant in a vehicle, comprising: determining a seat corresponding to the detection frame of the target occupant based on the position range of each seat in a row or column of seats corresponding to the target second seat area and the detection frame of the target occupant.

2. Determining a plurality of first seating areas within the vehicle image includes: determining a first seat area corresponding to each seat in the vehicle image based on seat distribution setting information of the vehicle; 2. A method for determining an occupant's seat in a vehicle as claimed in claim 1.

3. Determining a seat corresponding to the detection frame based on a first matching degree between the detection frame and each of the first seat areas includes: traversing each of the first seating areas according to a preset sequence; and for each traversed first seating area, setting an overlap degree between the detection frame and the first seat area as a first matching degree between the detection frame and the first seat area; When the first matching degree reaches a first threshold and the seat corresponding to the first seat area is not bound to another detection frame, binding the seat corresponding to the first seat area to the detection frame, and determining that the seat corresponding to the detection frame is the seat corresponding to the first seat area. A method for determining a seat of an occupant in a vehicle according to claim 1 or 2.

4. The detection frame of each of the occupants in the vehicle image is at least one of a face detection frame and a human body detection frame. A method for determining a passenger's seat in a vehicle according to any one of claims 1 to 3.

5. determining a target second seat area corresponding to the detection frame of the target occupant based on a second matching degree between the detection frame of the target occupant and each of the second seat areas; traversing the second seating areas according to a preset sequence; and for each of the second seating areas traversed, setting an overlapping degree between the detection frame of the target occupant and the second seat area as a second matching degree between the detection frame of the target occupant and the second seat area; If the second matching degree reaches a second threshold, determining that the second seat area is a target second seat area corresponding to a detection frame of the target occupant. A method for determining a passenger's seat in a vehicle according to any one of claims 1 to 4.

6. determining a seat corresponding to a detection frame of the target occupant based on a position range of each seat in a row or column of seats corresponding to the target second seat area and the detection frame of the target occupant, determining, based on the detection frame of the target occupant and a position range of each seat within the target second seat area, that a seat corresponding to the position range in which a center point of the detection frame of the target occupant is located is a candidate seat corresponding to the detection frame of the target occupant; if the candidate seat is not bound to another detection frame, determining that the candidate seat is a seat corresponding to the detection frame of the target occupant, and binding the seat corresponding to the candidate seat to the detection frame of the target occupant. A method for determining a passenger's seat in a vehicle according to any one of the preceding claims.

7. determining a target second seat area corresponding to the detection frame of the target occupant based on a second matching degree between the detection frame of the target occupant and each of the second seat areas; and determining, for each of the traversed second seat areas, if the degree of overlap does not reach the second threshold, that the second seat area having the largest overlap area with the detection frame of the target occupant is the target second seat area.

6. A method for determining an occupant's seat in a vehicle as claimed in claim 5.

8. and when a target second seat area corresponding to the detection frame of the target occupant is not determined, determining a seat whose corresponding first seat area is closest to the detection frame of the target occupant and is not bound to other detection frames as the seat corresponding to the detection frame of the target occupant. A method for determining a passenger's seat in a vehicle according to any one of the preceding claims.

9. A vehicle control method executed by an electronic device, comprising: determining a detection frame corresponding to each of the seat areas based on the method for determining seats of passengers in a vehicle according to any one of claims 1 to 8; detecting a target action performed by a target occupant within a target detection frame, and performing vehicle control based on the target action and a seat area corresponding to the target detection frame.

10. 1. An apparatus for determining a seat for an occupant in a vehicle, comprising: an acquisition unit configured to acquire vehicle images inside the vehicle; a first determination unit configured to determine a plurality of first seating areas in the vehicle image, each first seating area corresponding to one seat; a second determination unit configured to detect occupants in the vehicle based on the vehicle image and determine a detection frame for each of the occupants in the vehicle image; a third determination unit configured to determine, for each of the occupant detection frames, a seat corresponding to the detection frame based on a first matching degree between the detection frame and each of the first seat areas; a fourth determination unit configured to determine a plurality of second seating areas in the vehicle image, each of the second seating areas corresponding to a row or a column of seats; a fifth determination unit configured to determine a target second seat area corresponding to the detection frame of the target occupant based on a second matching degree between the detection frame of the target occupant and each of the second seat areas when a detection frame of the target occupant of the corresponding target first seat area is not determined based on the first matching degree; A device for determining a seat of an occupant in a vehicle, comprising: a sixth determination unit configured to determine a seat corresponding to the detection frame of the target occupant based on the position range of each seat in a row or column of seats corresponding to the target second seat area and the detection frame of the target occupant.

11. The first determination unit is further configured to determine a first seat area corresponding to each seat in the vehicle image based on seat distribution setting information of the vehicle.

11. An apparatus for determining a seat of an occupant in a vehicle according to claim 10.

12. the third determination unit is further configured to traverse each of the first seat areas according to a preset order, and for each of the traversed first seat areas, calculate an overlap degree between the detection frame and the first seat area as a first matching degree between the detection frame and the first seat area; and, when the first matching degree reaches a first threshold and a seat corresponding to the first seat area is not bound to another detection frame, bind the seat corresponding to the first seat area to the detection frame, and determine that the seat corresponding to the detection frame is a seat corresponding to the first seat area. A device for determining a seat of a passenger in a vehicle according to claim 10 or 11.

13. The detection frame of each of the occupants in the vehicle image is at least one of a face detection frame and a human body detection frame. A device for determining a seat of a passenger in a vehicle according to any one of claims 10 to 12.

14. the fifth determination unit is further configured to traverse the second seat area for each target occupant detection frame in accordance with a preset order, calculate an overlap degree between the target occupant detection frame and the second seat area for each traversed second seat area as the second matching degree, and determine that the second seat area is a target second seat area corresponding to the target occupant detection frame when the second matching degree reaches a second threshold value. A device for determining a seat of a passenger in a vehicle according to any one of claims 10 to 13.

15. the sixth determination unit is further configured to determine, based on the detection frame of the target occupant and a position range of each seat within the target second seat area, that a seat corresponding to the position range in which a center point of the detection frame of the target occupant is located is a candidate seat corresponding to the detection frame of the target occupant, and, if the candidate seat is not bound to another detection frame, to determine that the candidate seat is the seat corresponding to the detection frame of the target occupant, and to bind the seat corresponding to the candidate seat to the detection frame of the target occupant. A device for determining a seat of a passenger in a vehicle according to any one of claims 10 to 14.

16. the fifth determination unit is further configured to, for each traversed second seat area, determine that a second seat area having a maximum overlap area with the detection frame of the target occupant is a target second seat area when the overlap degree does not reach a second threshold.

15. An apparatus for determining a seat of an occupant in a vehicle according to claim 14.

17. the seventh determination unit is further configured, when a target second seat area corresponding to the detection frame of the target occupant is not determined, to determine a seat whose corresponding first seat area is closest to the detection frame of the target occupant and is not bound to another detection frame, as the seat corresponding to the detection frame of the target occupant. A device for determining a seat of a passenger in a vehicle according to any one of claims 10 to 16.

18. A vehicle control device, an eighth determination unit configured to determine a detection frame corresponding to each of the seat areas based on the method for determining seats of passengers in a vehicle according to any one of claims 1 to 8; A vehicle control device comprising: a detection unit configured to detect a target action performed by a target occupant within a target detection frame, and to perform vehicle control based on the target action and a seat area corresponding to the target detection frame.

19. A computing device comprising a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the computing device is operating, and the processor executing the machine-readable instructions to perform steps of the method for determining a seat of an occupant in a vehicle according to any one of claims 1 to 8 or to perform steps of the vehicle control method according to claim 9.

20. A computer-readable storage medium having stored thereon a computer program which, when executed by a processor, causes the processor to perform steps of the method for determining a seat of an occupant in a vehicle according to any one of claims 1 to 8, or to perform steps of the vehicle control method according to claim 9.

21. A computer program product including computer readable code, which when executed in an electronic device, causes a processor in the electronic device to perform steps of the method for determining a seat of an occupant in a vehicle according to any one of claims 1 to 8, or to perform steps of the vehicle control method according to claim 9.

Citation Information

Patent Citations

  • Vehicular occupant detection system

    JP2005186878A

  • Physique estimation device and physique estimation method

    WO2019180876A1