Calibration method, device and electronic equipment
By determining the target calibration mode in the monitoring system and collecting face image data to extract feature information, the problem of poor accuracy of calibration parameters of the monitoring system is solved, personalized calibration and higher monitoring accuracy are achieved, and the safety of intelligent driving is ensured. sex.
Patent Information
- Application Number
- CN201910994212.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-10-18
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2039-10-18
AI Technical Summary
In intelligent driving, human-computer interaction and security monitoring applications, the accuracy of the calibration parameters of the monitoring system is affected by factors such as vehicle type and camera installation location, resulting in large differences in monitoring results and affecting accuracy.
By determining the target calibration mode when the login request information is detected, and based on the target calibration mode and the current face image, the face image data is collected and processed, feature information is extracted, personalized calibration parameters are determined, and loaded into the monitoring system. to improve the accuracy of monitoring results.
It achieves personalized calibration for different users and application scenarios, improves the accuracy of the monitoring system and assisted driving precision, and ensures driving safety.
Smart Images

Figure CN112686958B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer vision technology, and in particular to a calibration method, device and electronic equipment. Background Art
[0002] The monitoring system plays an important role in applications such as intelligent driving, human-computer interaction, and security monitoring. In terms of human-computer interaction, by locating the three-dimensional position of the human eye in space and combining it with the three-dimensional line of sight, the position of the person's gaze point in the three-dimensional space is obtained and output to the machine for further interactive processing. In terms of attention detection, by estimating the line of sight of the human eye, the person's area of interest is obtained by judging the direction of the person's gaze, and then judging whether the person's attention is focused. In terms of intelligent driving, by monitoring the driver's gaze area, line of sight direction and other information, it is monitored whether the driver is driving fatigued or distracted. Taking intelligent driving as an example, the above monitoring function uses the driver's head posture and eye line of sight data. When the driver drives different models or the monitoring system's camera is installed in different positions in the same cabin, the use of fixed calibration parameters will lead to a large difference in monitoring results, affecting the accuracy of monitoring.
[0003] It can be seen that how to improve the accuracy of the calibration parameters of the monitoring system is a technology that is being studied by those skilled in the art. Summary of the invention
[0004] The present application provides a calibration method, device and electronic equipment.
[0005] According to a first aspect of an embodiment of the present application, a calibration method is provided, which is applied to a monitoring system of a predetermined three-dimensional space, and the method includes:
[0006] When a login request message for the monitoring system is detected, determining a target calibration mode;
[0007] Determining calibration parameters of the monitoring system suitable for a current application scenario according to the target calibration mode and a face image currently detected in the predetermined three-dimensional space;
[0008] The calibration parameters are loaded into the monitoring system.
[0009] Optionally, when detecting login request information for the monitoring system, determining the target calibration mode includes:
[0010] When the login request information is detected, a preset calibration mode is determined as the target calibration mode.
[0011] Optionally, when detecting login request information for the monitoring system, determining the target calibration mode includes:
[0012] When the login request information is detected, triggering entry into a calibration selection mode;
[0013] In response to detecting a selection operation for a preset calibration mode option, the preset calibration mode indicated by the selection operation is determined as the target calibration mode.
[0014] Optionally, the login request information includes:
[0015] A face image is detected at a specified position in the predetermined three-dimensional space; or,
[0016] User information entered by the user to request to log in to the system.
[0017] Optionally, the preset calibration mode includes any one of the following: real-time calibration mode, history matching mode, and default calibration mode.
[0018] Optionally, the target calibration mode is the real-time calibration mode;
[0019] The step of determining calibration parameters of the monitoring system suitable for the current application scenario according to the target calibration mode and the face image currently detected in the predetermined three-dimensional space includes:
[0020] When a preset trigger condition is met, a facial image of a current person at a specified position in the predetermined three-dimensional space is collected to obtain a facial image set;
[0021] Performing feature extraction on each face image in the face image set to obtain calibration sample data;
[0022] The calibration parameters of the monitoring system suitable for the current person in the current application scenario are determined based on the calibration sample data.
[0023] Optionally, the predetermined three-dimensional space is a cabin space of a smart vehicle, and when a preset trigger condition is met, collecting a facial image of a current person at a specified position in the predetermined three-dimensional space includes:
[0024] When the driving speed of the intelligent vehicle exceeds a preset speed threshold, a facial image of a person in the driver area in the cabin space is collected.
[0025] Optionally, the predetermined three-dimensional space is a cabin space of a smart vehicle, and when a preset trigger condition is met, collecting a facial image of a current person at a specified position in the predetermined three-dimensional space includes:
[0026] When the image acquisition device for acquiring images at the driver's position in the smart vehicle is powered on, facial images of people in the driver's area in the cabin space are acquired.
[0027] Optionally, the predetermined three-dimensional space is a cabin space of an intelligent vehicle, and when a preset trigger condition is met, collecting a facial image of a current person at a specified position in the predetermined three-dimensional space includes:
[0028] When a preset instruction is received and the image acquisition device in the smart vehicle for acquiring images at the driver's position is powered on, facial images of people in the driver's area in the cabin space are acquired.
[0029] Optionally, the facial image of the current person is acquired in any of the following ways:
[0030] Collecting a facial image of the current person within a preset time period;
[0031] Collect a preset number of facial images of the current person.
[0032] Optionally, determining, according to the calibration sample data, calibration parameters of the monitoring system applicable to the current person in the current application scenario includes:
[0033] Performing clustering processing on the calibration sample data to obtain the cluster center of the calibration sample data;
[0034] Determining calibration parameters of the monitoring system applicable to the current person in the current application scenario based on the cluster center of the calibration sample data;
[0035] The calibration sample data includes: head posture data and / or eye sight data of the person in the face image.
[0036] Optionally, the target calibration mode is the history matching mode;
[0037] The step of determining calibration parameters of the monitoring system suitable for the current application scenario according to the target calibration mode and the face image currently detected in the predetermined three-dimensional space includes:
[0038] Collecting a facial image of a current person at a specified position in the predetermined three-dimensional space;
[0039] Determine whether there is a target facial image matching the facial image of the current person in a calibration database, the calibration database comprising: facial images of different users and their corresponding historical calibration parameters;
[0040] In response to the target facial image existing in the calibration database, historical calibration parameters corresponding to the target facial image are determined as calibration parameters of the monitoring system applicable to the current person in the current application scenario.
[0041] Optionally, the method further comprises:
[0042] In response to the target facial image not existing in the calibration database, calibration parameters of the monitoring system applicable to the current person in the current application scenario are determined in real-time calibration mode.
[0043] Optionally, the target calibration mode is a default calibration mode;
[0044] The step of determining calibration parameters of the monitoring system suitable for the current application scenario according to the target calibration mode and the face image currently detected in the predetermined three-dimensional space includes:
[0045] The calibration parameters set by default in the system are determined as the calibration parameters of the monitoring system applicable to the current person in the current application scenario.
[0046] Optionally, the method further comprises:
[0047] The person in the face image in the current application scene is monitored according to the calibration parameters.
[0048] Optionally, monitoring a person in the face image in the current application scenario according to the calibration parameters includes:
[0049] Performing visual monitoring on a person in the face image in the current application scenario according to the calibration parameters;
[0050] The method further comprises:
[0051] Obtain visual monitoring results;
[0052] Determining the attention monitoring result of the person corresponding to the face image according to the visual monitoring result;
[0053] Output the attention monitoring result, and / or output distraction prompt information according to the attention monitoring result.
[0054] Optionally, monitoring a person in the face image in the current application scenario according to the calibration parameters includes:
[0055] Performing visual monitoring on a person in the face image in the current application scenario according to the calibration parameters;
[0056] The method further comprises:
[0057] Obtaining visual monitoring results, wherein the visual monitoring results include gaze area category detection results;
[0058] Determining a control instruction corresponding to the gaze area category detection result;
[0059] The electronic device is controlled to execute an operation corresponding to the control instruction.
[0060] Optionally, the method further comprises:
[0061] The correspondence between the space type information of the predetermined three-dimensional space and the calibration parameters is stored, wherein the space type information of the predetermined three-dimensional space includes the structural information of the three-dimensional space and / or the relative position information between the image acquisition device that detects the face image and the three-dimensional space.
[0062] According to a second aspect of an embodiment of the present application, a calibration device is provided, which is arranged in a monitoring system of a predetermined three-dimensional space, and the device includes:
[0063] a target mode determination module, configured to determine a target calibration mode when a login request information for the monitoring system is detected;
[0064] a calibration parameter determination module, configured to determine calibration parameters of the monitoring system suitable for a current application scenario according to the target calibration mode and a face image currently detected in the predetermined three-dimensional space;
[0065] A parameter loading module is configured to load the calibration parameters into the monitoring system.
[0066] Optionally, the target mode determination module is configured to determine a preset calibration mode as the target calibration mode when the login request information is detected.
[0067] Optionally, the target mode determination module includes:
[0068] A selection mode triggering submodule is configured to trigger entering a calibration selection mode when the login request information is detected;
[0069] The target mode determination submodule is configured to, in response to detecting a selection operation for a preset calibration mode option, determine the preset calibration mode indicated by the selection operation as the target calibration mode.
[0070] Optionally, the login request information includes:
[0071] A face image is detected at a specified position in the predetermined three-dimensional space; or,
[0072] User information entered by the user to request to log in to the system.
[0073] Optionally, the preset calibration mode includes any one of the following: real-time calibration mode, history matching mode, and default calibration mode.
[0074] Optionally, the target calibration mode is the real-time calibration mode;
[0075] The calibration parameter determination module comprises:
[0076] The image acquisition submodule is configured to acquire a face image of a current person at a specified position in the predetermined three-dimensional space to obtain a face image set when a preset trigger condition is met;
[0077] A feature extraction submodule is configured to extract features from each face image in the face image set to obtain calibration sample data;
[0078] The first determination submodule is configured to determine calibration parameters of the monitoring system applicable to the current person in the current application scenario based on the calibration sample data.
[0079] Optionally, the predetermined three-dimensional space is the cabin space of an intelligent vehicle, and the image acquisition submodule is configured to capture facial images of people in the driver area in the cabin space when the driving speed of the intelligent vehicle exceeds a preset speed threshold.
[0080] Optionally, the predetermined three-dimensional space is a cabin space of a smart vehicle;
[0081] The image acquisition submodule is configured to acquire facial images of people in the driver area in the vehicle cabin space when the image acquisition device for acquiring images at the driver's position in the smart vehicle is powered on.
[0082] Optionally, the predetermined three-dimensional space is a cabin space of a smart vehicle;
[0083] The image acquisition submodule is configured to acquire facial images of people in the driver area in the cabin space when a preset instruction is received and the image acquisition device for acquiring images at the driver's position in the smart vehicle is powered on.
[0084] Optionally, the image acquisition submodule acquires the facial image of the current person in any of the following ways:
[0085] Collecting a facial image of the current person within a preset time period;
[0086] Collect a preset number of facial images of the current person.
[0087] Optionally, the first determining submodule includes:
[0088] A cluster processing unit, configured to perform cluster processing on the calibration sample data to obtain a cluster center of the calibration sample data;
[0089] A parameter determination unit, configured to determine, based on a cluster center of the calibration sample data, calibration parameters of the monitoring system applicable to the current person in the current application scenario;
[0090] The calibration sample data includes: head posture data and / or eye sight data of the person in the face image.
[0091] Optionally, the target calibration mode is the history matching mode;
[0092] The calibration parameter determination module comprises:
[0093] A face image acquisition submodule is configured to acquire a face image of a current person at a specified position in the predetermined three-dimensional space;
[0094] A matching submodule is configured to determine whether there is a target face image matching the face image of the current person in a calibration database, wherein the calibration database includes: face images of different users and their corresponding historical calibration parameters;
[0095] The second determination submodule is configured to determine, in response to the target facial image existing in the calibration database, the historical calibration parameters corresponding to the target facial image as the calibration parameters of the monitoring system applicable to the current person in the current application scenario.
[0096] Optionally, the device further comprises:
[0097] The third determination submodule is configured to determine, in response to the target facial image not existing in the calibration database, calibration parameters of the monitoring system applicable to the current person in the current application scenario in a real-time calibration mode.
[0098] Optionally, the target calibration mode is a default calibration mode;
[0099] The calibration parameter determination module is configured to determine the calibration parameters set by default in the system as calibration parameters of the monitoring system applicable to the current person in the current application scenario.
[0100] Optionally, the device further comprises:
[0101] The monitoring module is configured to monitor the person in the face image in the current application scene according to the calibration parameters.
[0102] Optionally, the monitoring module is configured to perform visual monitoring of the person in the face image in the current application scenario according to the calibration parameters;
[0103] The device also includes:
[0104] A first monitoring result acquisition module is configured to acquire visual monitoring results;
[0105] an attention determination module, configured to determine an attention monitoring result of a person corresponding to the face image according to the visual monitoring result;
[0106] The output module is configured to output the attention monitoring result and / or output distraction prompt information according to the attention monitoring result.
[0107] Optionally, the monitoring module is configured to perform visual monitoring of the person in the face image in the current application scenario according to the calibration parameters;
[0108] The device also includes:
[0109] A second monitoring result acquisition module is configured to acquire visual monitoring results, wherein the visual monitoring results include gaze area category detection results;
[0110] A control instruction determination module, configured to determine a control instruction corresponding to the gaze area category detection result;
[0111] The control module is configured to control the electronic device to perform operations corresponding to the control instructions.
[0112] Optionally, the device further comprises:
[0113] The storage module is configured to store the correspondence between the spatial type information of the predetermined three-dimensional space and the calibration parameters, wherein the spatial type information of the predetermined three-dimensional space includes structural information of the three-dimensional space, and / or relative position information between an image acquisition device that detects a facial image and the three-dimensional space.
[0114] According to a third aspect of an embodiment of the present application, a computer-readable storage medium is provided, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the method described in any one of the first aspects is implemented.
[0115] According to a fourth aspect of an embodiment of the present application, there is provided an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in any one of the first aspects when executing the program.
[0116] By adopting the calibration method provided in the embodiment of the present application, personalized calibration parameters can be configured for three-dimensional spaces of different structures, different application scenarios, and even different users, so as to perform personalized calibration on the monitoring system of the predetermined three-dimensional space, so that the monitoring system can better monitor the user's status. Therefore, when the predetermined three-dimensional space is the cabin space and the monitoring system is the driver monitoring system (DMS), the calibration method provided in the embodiment of the present application can realize personalized calibration of the DMS, so that the DMS can better monitor the current user's driving status, ensure driving safety, and improve the accuracy of assisted driving.
[0117] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0118] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0119] Figure 1 is a flow chart of a calibration method according to an exemplary embodiment of the present application;
[0120] Figure 2-1 is a schematic diagram of an application scenario of a calibration method according to an exemplary embodiment of the present application;
[0121] Figure 2-2 is a schematic diagram of a calibration method according to an exemplary embodiment of the present application;
[0122] Figure 3 is a flow chart of another calibration method according to an exemplary embodiment of the present application;
[0123] Figure 4 is a schematic diagram of an application scenario of another calibration method according to an exemplary embodiment of the present application;
[0124] Figure 5 is a flow chart of another calibration method according to an exemplary embodiment of the present application;
[0125] Figure 6 is a flow chart of another calibration method according to an exemplary embodiment of the present application;
[0126] Figure 7 is a schematic diagram of another calibration method according to an exemplary embodiment of the present application;
[0127] Figure 8 is a flow chart of another calibration method according to an exemplary embodiment of the present application;
[0128] Fig. 9 is a flow chart of another calibration method according to an exemplary embodiment of the present application;
[0129] Fig.10 is a structural block diagram of a calibration device according to an exemplary embodiment of the present application;
[0130] Fig.11 is a structural block diagram of another calibration device according to an exemplary embodiment of the present application;
[0131] Fig.12 is a structural block diagram of another calibration device according to an exemplary embodiment of the present application;
[0132] Fig.13 is a structural block diagram of another calibration device according to an exemplary embodiment of the present application;
[0133] Fig.14 is a structural block diagram of another calibration device according to an exemplary embodiment of the present application;
[0134] Fig.15 is a structural block diagram of another calibration device according to an exemplary embodiment of the present application;
[0135] Fig.16 is a structural block diagram of another calibration device according to an exemplary embodiment of the present application;
[0136] Fig.17 It is a schematic diagram of the structure of an electronic device according to an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0137] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0138] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0139] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0140] This application provides a calibration method that can be applied to a monitoring system in a predetermined three-dimensional space. The predetermined three-dimensional space can be a space where operators need to be monitored, such as a smart cabin, a smart engine room, and a smart operation room. This method can be applied to application scenarios such as smart driving, human-computer interaction, and security monitoring. This application will take the application of the monitoring system in the smart driving scenario as an example for detailed description.
[0141] In the embodiment of the present application, the execution subject involved may include: a computer system in the monitoring system and an image acquisition device, such as a camera, arranged in a predetermined three-dimensional space such as the cabin space of an intelligent vehicle (hereinafter referred to as the intelligent cabin). Among them, the camera is used to collect images at a specified position of the intelligent cabin, and after collecting the face image, the collected face image data is sent to the above-mentioned computer system, so that the computer system uses an artificial neural network to process the above-mentioned face image data, determine the corresponding head posture data and / or human eye sight data, and process the above-mentioned data, and further determine the calibration parameters in the above-mentioned monitoring system for offset correction of the head posture and / or eye sight. Furthermore, the calibration parameters can also be used to update the monitoring system, so that the updated monitoring system can output more accurate monitoring results, so that the computer system can output accurate operation control information such as the control instructions of the intelligent driving vehicle, etc., or prompt information, such as distraction reminder information or fatigue driving reminder information according to the above-mentioned monitoring results.
[0142] The above-mentioned computer system can be set in a server, a server cluster or a cloud platform, or it can be a computer system in a personal computer system, a vehicle-mounted device, a mobile terminal or other electronic device. The above-mentioned image acquisition device can be a vehicle-mounted device such as a camera in a driving recorder, a camera of an intelligent terminal, etc.; the above-mentioned intelligent terminal can be specifically an electronic device such as a smart phone, a PDA (Personal Digital Assistant), a tablet computer, a vehicle-mounted device, etc. In the specific implementation process, the camera and the computer system are independent of each other, but at the same time interconnected, and jointly implement the calibration method provided in the embodiment of the present application. Taking the computer system as an example, the calibration method provided in the present disclosure is described in detail below.
[0143] See also Figure 1 According to a flowchart of a calibration method shown in an exemplary embodiment, the method may include the following steps:
[0144] In step 11, when a login request message for the monitoring system is detected, a target calibration mode is determined;
[0145] The embodiment of the present application will be described by taking the monitoring system as a driver monitoring system (DMS) set in the cabin space of an intelligent vehicle as an example. In the embodiment of the present application, the DMS can dynamically detect the user's login request information, and after detecting the login request information, determine the target calibration mode suitable for the current application scenario according to the login request information.
[0146] In the present application, the DMS may provide at least two preset calibration modes, and the computer system of the DMS determines a target calibration mode suitable for the current application scenario from the at least two preset calibration modes according to the login request information.
[0147] In this application, the triggering of the login request information may be automatic or manual.
[0148] In one embodiment of the present application, the login request information may be automatically triggered when an image acquisition device for acquiring images at the driver's position in the monitoring system is powered on and acquires a face image of a person located in the driver's area. The login request information may include: the face image.
[0149] In another embodiment of the present application, the login request information may also be the login request information manually triggered by the user through the preset application interface of the DMS. For example, after the user clicks the "Start Calibration" virtual button on the DMS application interface, the generated login request information is triggered; or, after the user enters user information such as user name, password, login email, mobile phone number, etc. through the login interface of the DMS application, the generated login request information is triggered. In the embodiment of the present application, the trigger of the above-mentioned login request information may be the driver or the assistant nearby. Still taking the smart vehicle as an example, the above-mentioned assistant nearby may be a person sitting in a non-driver seat such as the co-pilot. The above-mentioned user may input the above-mentioned login request information through the DMS application interface operation entrance built into the smart car cabin; or the user may input the above-mentioned login request information using the monitoring APP installed on the smart terminal or the monitoring PC-side tool installed on the computer. The embodiment of the present application does not limit the user who inputs the login request information and the device that generates the above-mentioned login request information.
[0150] In an embodiment of the present application, after detecting the above-mentioned login request information, the DMS can determine a preset calibration mode as the target calibration mode, or, in response to a calibration mode selection operation input by the user, determine the preset calibration mode manually selected by the user as the above-mentioned target calibration mode.
[0151] When the target calibration mode is determined, it can be determined whether parameter calibration is currently required, or, when it is determined that calibration is required, the method to be used for parameter calibration can be determined.
[0152] In the embodiment of the present application, the target calibration mode may be any of the following:
[0153] Real-time calibration mode, which determines the calibration parameters of the DMS in real time based on the facial image of the current person at a specified position in a predetermined three-dimensional space;
[0154] History matching mode, determine the calibration parameters by referring to the historical calibration parameters recorded by the system;
[0155] Default calibration mode uses the calibration parameters set by the system defaults.
[0156] In step 12, calibration parameters of the monitoring system suitable for the current application scenario are determined according to the target calibration mode and the face image currently detected in the predetermined three-dimensional space.
[0157] As for why the monitoring system needs to be calibrated, the accuracy of the DMS output monitoring results is affected by factors such as the vehicle model, the installation position of the camera in the cabin, and the driver's personal characteristics such as the distance between the eyes or the distribution of the eyes in the entire face. For example, for the same vehicle model, if the camera is installed in different positions in the smart cabin, such as Figure 2-1 As shown, the head posture information and eye sight information in the world coordinate system determined according to the actual captured image and the camera coordinate system of the camera are also different. In order to ensure that the monitoring results output by the computer system, such as the visual monitoring results, are not affected by the camera installation position, vehicle model, and personal characteristics of the driver, before monitoring, the head posture and eye sight information determined according to the face image captured by the camera need to be offset corrected, that is, the offset angle of the head posture or sight direction relative to the camera is corrected so that the corrected face image is equivalent to a face image captured by a virtual camera facing the face.
[0158] During the monitoring stage, the normalized face image in the virtual camera coordinate system determined by the computer system according to the calibration parameters is input into the neural network to obtain the monitoring result to ensure the accuracy of the monitoring result.
[0159] For example, see Figure 2-2A schematic diagram of a calibration method according to an exemplary embodiment is shown, wherein the image P0 is an actual vehicle-mounted camera C0, such as a camera mounted on a vehicle. Figure 2-1 The camera at position 1 shown in the figure captures a facial image of the driver. Image P1 represents a normalized facial image in a virtual camera coordinate system obtained after rotation, affine, scaling and other transformations. That is, it is equivalent to a frame of facial image captured by a virtual camera C1 facing the driver's head.
[0160] The computer system can use the position transformation relationship between the actual camera coordinate system and the virtual camera coordinate system to perform rotation, affine, scaling and other transformations on the face image to obtain a normalized face image in the virtual camera coordinate system. Solving the position transformation relationship between the actual camera coordinate system and the virtual camera coordinate system can be understood as determining the calibration parameters.
[0161] In this application, according to different target calibration modes, the implementation of step 12 may include the following situations:
[0162] In the first case, if the target calibration mode is the above-mentioned real-time calibration mode, step 12 may be specifically as follows: under a preset trigger condition, the calibration parameters of the system are determined according to the face image data collected in real time by the image acquisition device.
[0163] In the second case, if the target calibration mode is a historical matching mode, step 12 may be specifically as follows: according to the facial image, the historical calibration parameters for the same user stored in the system are determined as the calibration parameters applicable to the current person in the current application scenario.
[0164] In the third case, if the target calibration mode is the above-mentioned default calibration mode, step 12 may specifically include: determining the system default calibration parameters as calibration parameters suitable for the current application scenario. In other words, the calibration parameters determined in the third case are irrelevant to the person corresponding to the face image currently captured by the image acquisition device.
[0165] Among them, the default calibration parameters of the above system can be the calibration parameters set by the technicians based on the experience values when the DMS is set up at the factory, which are applicable to all operating users in the predetermined three-dimensional space, such as all drivers of the same model, or all drivers of the same vehicle; the calibration parameters are no longer obtained in a targeted manner according to the different identities of the operating users.
[0166] In step 13, the determined calibration parameters are loaded into the monitoring system, thereby achieving calibration of the monitoring system. Therefore, after the calibration parameters of the DMS are determined, the calibration parameters can be loaded into the DMS to complete the calibration of the DMS.
[0167] It can be seen that by adopting the calibration method provided in the embodiment of the present application, when the monitoring system detects the login request information, it can determine the target calibration mode of the monitoring system according to the user's needs, and then determine the calibration parameters of the monitoring system suitable for the current application scenario, so that the monitoring system can use the currently determined calibration parameters to monitor the current operator in the predetermined three-dimensional space, which can not only meet the personalized needs of monitoring and determine different calibration parameters for different users to improve the monitoring accuracy, but also use the default calibration parameters according to user needs to save system calibration time.
[0168] Regarding how to determine the target calibration mode, step 11 may include at least the following two implementations:
[0169] Implementation method 1: The system automatically selects the target calibration mode
[0170] In an embodiment of the present application, the above step 11 may specifically include: when the login request information is detected, determining a preset calibration mode as the target calibration mode.
[0171] Among them, the preset calibration modes in the embodiments of the present application may include: real-time calibration mode, historical matching mode, and default calibration mode.
[0172] In the embodiment of the present application, the calibration mode adopted by the DMS may be pre-set, and when the system detects the above-mentioned login request information, it automatically determines the preset calibration mode as the target calibration mode.
[0173] For example, assuming that the system pre-agrees to use the above-mentioned default calibration mode, when the DMS detects the above-mentioned user login request information, it automatically determines the above-mentioned default calibration mode as the target calibration mode. Similarly, if the system is pre-set to use the above-mentioned real-time calibration mode or historical calibration mode, when the DMS detects the above-mentioned user login request information, it automatically determines the above-mentioned real-time calibration mode or historical calibration mode as the target calibration mode, thereby performing a real-time calibration operation, or determining the calibration parameters suitable for the current application scenario according to the historical calibration parameters recorded by the system.
[0174] In the embodiment of the present application, when the system detects user login request information, it can automatically determine a preset calibration mode as the target calibration mode, thereby saving calibration time.
[0175] Implementation method 2: Manually select target calibration mode
[0176] See also Figure 3 According to a flowchart of another calibration method shown in an exemplary embodiment, the above step 11 may include:
[0177] In step 111, when the login request information is detected, entering the calibration selection mode is triggered;
[0178] In an embodiment of the present application, when the monitoring system detects login request information, such as when a user manually triggers a login request; or when a login request is automatically triggered, it can trigger entry into the calibration selection mode.
[0179] The computer system may trigger the entry into the calibration selection mode when detecting any of the following operations:
[0180] Trigger condition 1: When logging into the monitoring system for the first time; such as when the DMS installed in a vehicle is triggered and turned on for the first time, or each time the smart vehicle is started, etc.
[0181] Trigger condition 2: When the user inputs the user information for logging into the monitoring system; the user information includes but is not limited to user name, password, bound email address, bound mobile phone number, etc. The above user information can be understood as the information filled in by the user when registering a personal account in the registration interface provided by the monitoring service platform.
[0182] Trigger condition three: after the image acquisition device used to acquire images at the driver's position in the smart vehicle is powered on, the facial image of a person appearing at the driver's position is detected for the first time.
[0183] In step 112 , in response to detecting a selection operation for a preset calibration mode option, the preset calibration mode indicated by the selection operation is determined as the target calibration mode.
[0184] In the embodiment of the present application, the system may provide at least two preset calibration mode options for the user to select in the calibration selection mode.
[0185] In one embodiment of the present application, various preset calibration mode options can be displayed through a preset user interface, such as Figure 4 As shown, a user operation entrance is provided in the user interface for the user to perform a selection operation on the preset calibration mode option. The preset calibration mode may include:
[0186] Real-time calibration mode, which determines the calibration parameters of the DMS in real time based on the facial image of the current person at a specified position in a predetermined three-dimensional space;
[0187] Historical matching mode uses the historical calibration parameters recorded by the system for the current person;
[0188] Default calibration mode uses the calibration parameters set by the system defaults.
[0189] In an embodiment of the present application, when the computer system detects login request information for the monitoring system, it can trigger entry into the calibration selection mode and provide the user with multiple optional calibration modes, so that the current user, such as the driver or auxiliary operator in the smart cabin, can select the target calibration mode according to actual needs, thereby realizing the personalized calibration function of the monitoring system.
[0190] Depending on the target calibration mode, the implementation of step 12 may include the following situations:
[0191] Case 1: The corresponding target calibration mode is the real-time calibration mode.
[0192] See also Figure 5 According to a flowchart of another calibration method shown in an exemplary embodiment, the above step 12 may include:
[0193] In step 121, when a preset trigger condition is met, a face image of a current person at a specified position in the predetermined three-dimensional space is collected to obtain a face image set;
[0194] Still taking the smart cabin as an example, in one embodiment of the present application, after the computer system determines that the target calibration mode is the real-time calibration mode, if the facial image data of the current person in a normal driving state or a simulated driving state has not been obtained in advance, it can instruct the image acquisition device to collect the facial image data of the current person in the driving position when the preset trigger conditions are met to obtain a facial image set.
[0195] In the embodiment of the present application, taking the predetermined three-dimensional space as the cabin space of a smart vehicle as an example, the above-mentioned preset triggering condition may include any one of the following:
[0196] Trigger condition 1: The moving speed of the smart vehicle exceeds the preset speed threshold;
[0197] When the driving speed of the intelligent vehicle exceeds a preset speed threshold, a facial image of a person in the driver area in the cabin space is collected.
[0198] In one embodiment of the present application, after determining the real-time calibration mode, the computer system can detect the moving speed of the smart vehicle and compare the real-time detected vehicle moving speed with a preset speed threshold. When the moving speed of the smart vehicle exceeds the preset speed threshold, the camera is instructed to collect facial images of people in the driver's area to obtain a facial image set.
[0199] The preset rate threshold may be an empirical value set manually, and is used to indicate that the intelligent vehicle is in a normal driving state. For example, when the moving rate of the intelligent vehicle cabin exceeds the preset rate threshold, such as 10 km / h, it indicates that the current vehicle is in a normal driving state, and accordingly, the collected face image set is a face image set when the driver is in a normal driving state, so that the computer system obtains more accurate calibration parameters using the face image set collected in the normal driving state.
[0200] Trigger condition 2: It is detected that the image acquisition device used to acquire images at the driver's position in the smart vehicle is powered on;
[0201] In one embodiment of the present application, after determining the real-time calibration mode, the computer system can also automatically capture the facial image of the person in the driver area in the cabin space after detecting that the image acquisition device used to capture the image at the driver's position in the smart vehicle, such as a camera placed on the center console, is powered on.
[0202] In another embodiment of the present application, after determining the real-time calibration mode, the computer system may also collect facial image data of the current driver when a "start calibration" instruction is received and the image acquisition device used to collect images at the driver's position is in a powered-on state.
[0203] In the above embodiments, the image acquisition device used to acquire the image at the driver's position in the intelligent vehicle may acquire the facial image of the current person in any of the following ways:
[0204] Method 1: collecting the facial image of the current person within a preset time period;
[0205] For example, the image acquisition device may collect facial image data of people in the driver's area for a preset time period, such as 5 minutes, to obtain a facial image set of the current person.
[0206] Method 2: Collecting a preset number of facial images of the current person;
[0207] For example, the image acquisition device may collect a preset number of facial image data, such as 100 frames, for people in the driver's area to obtain a facial image set.
[0208] In step 122, feature extraction is performed on each face image in the face image set to obtain calibration sample data;
[0209] In an embodiment of the present application, the computer system may use a relevant feature extraction algorithm to perform image feature extraction on each frame of the face image in the above-mentioned face image set to obtain calibration sample data, which includes: head posture data and / or eye sight data of the person in the face image.
[0210] In step 123, calibration parameters applicable to the current person in the current application scenario are determined according to the calibration sample data.
[0211] See also Figure 6 According to a flowchart of another calibration method shown in an exemplary embodiment, the above step 123 may include:
[0212] In step 1231, clustering is performed on the calibration sample data to obtain the cluster center of the calibration sample data;
[0213] In an embodiment of the present application, after determining the calibration sample data according to the face image set, the computer system may use a preset clustering algorithm to perform clustering processing on the calibration sample data to obtain the cluster center of the calibration sample data.
[0214] The calibration sample data may include: head posture data, eye sight data, or head posture data and eye sight data. The preset clustering algorithm may be a clustering algorithm such as MeanShift mean shift algorithm, K-Means algorithm, DBSCAN algorithm principle, BIRCH algorithm, etc.
[0215] In step 1232, based on the cluster center of the calibration sample data, the calibration parameters of the monitoring system applicable to the current person in the current application scenario are determined;
[0216] For example, see Figure 7 According to a schematic diagram of determining cluster centers shown in an exemplary embodiment, assuming that a computer system acquires 100 frames of facial images of the current driver Xiao Ming, the present application can use a neural network to extract head posture data and line of sight direction data in the above facial images, wherein each head posture data and eye line of sight data can be a three-dimensional feature vector composed of three directional angle values of pitch angle, yaw angle, and roll angle. Figure 7 Each feature point in represents a three-dimensional feature vector. The MeanShift algorithm is used to cluster the feature points to obtain two cluster centers D1 and D2, which represent the cluster center of the head posture data and the cluster center of the eye sight data, respectively. According to the cluster centers obtained after clustering, the calibration parameters of the DMS suitable for the current driver Xiao Ming in the current intelligent vehicle can be determined.
[0217] In another embodiment of the present application, if the cluster center cannot be determined based on the calibration sample data determined in step 122 above, the computer system can instruct the camera to re-collect the facial image data of the current person and re-perform clustering processing, repeating the above steps until the cluster center can be obtained, and then determining the calibration parameters applicable to the current person when driving the smart vehicle.
[0218] By adopting the calibration method provided in the embodiment of the present application, each time a login request message is detected, the system calibration parameters suitable for the current person in the current application scenario can be determined based on the set of face images collected in real time, so that the recalibrated monitoring system can monitor more accurately during the process of the current person driving the vehicle.
[0219] Case 2: corresponds to the case where the above target calibration mode is the historical matching mode.
[0220] See also Figure 8 According to a flowchart of another calibration method shown in an exemplary embodiment, the above step 12 may include:
[0221] In step 1201, a facial image of a current person at a specified position in the predetermined three-dimensional space is collected;
[0222] In one embodiment of the present application, if the above-mentioned login request information does not include a facial image, the system can instruct the image acquisition device to acquire a facial image of the current person at a specified position in a predetermined three-dimensional space, so as to subsequently match historical calibration parameters suitable for the current person from the system's calibration database based on the facial image.
[0223] Still taking the smart vehicle as an example, the system can instruct the camera to collect at least one frame of facial image appearing in the driving position in real time, so as to subsequently perform calibration parameter matching based on the facial image.
[0224] In another embodiment of the present application, corresponding to the above-mentioned trigger condition two, that is, the system triggers the system to perform parameter calibration based on the facial image collected after the image acquisition device is powered on, that is, the login request information includes the facial image, and the above-mentioned current facial image can be directly determined based on the login request information.
[0225] In step 1202, it is determined whether there is a target facial image matching the facial image of the current person in a calibration database, wherein the calibration database includes: facial images of different users and their corresponding historical calibration parameters;
[0226] After obtaining the current person's facial image, the system can match the calibration database according to the current person's facial image and query whether there is a target facial image matching the current person's facial image in the calibration database. The calibration database stores facial images of different users and their corresponding historical calibration parameters.
[0227] In one embodiment, the calibration database may record the correspondence between the face images of preset users and the historical calibration parameters, wherein the preset users refer to users whose face images have been used to calibrate the parameters of the monitoring system at a historical moment.
[0228] Taking the calibration database including historical calibration parameters of three users A, B, and C as an example, it can be shown in the following Table 1:
[0229] Table 1
[0230] User face image Historical calibration parameters Image A Parameter 1 Image B Parameter 2 Image C Parameter 3
[0231] Assuming that the facial image of the current person is image P, the computer system can perform image feature matching of image P with images A to C respectively to determine whether the person in image P is the same person as the persons in images A, B, and C. If so, execute step 1203.
[0232] In step 1203, in response to the target face image existing in the calibration database, the historical calibration parameters corresponding to the target face image are determined as calibration parameters of the monitoring system applicable to the current person in the current application scenario;
[0233] As in the above example, assuming that the facial image P of the current person contains the same facial features as image A, the historical calibration parameter 1 is determined as the calibration parameter applicable to the current person in the current application scenario.
[0234] In an embodiment of the present application, when the computer system is configured to determine the calibration parameters applicable to the current person in the current application scenario according to the historical matching mode, it can first use the facial image of the current person to match the calibration database to determine whether there is a target facial image in the calibration database that contains the same facial features as the facial image of the current person. If so, the historical calibration parameters corresponding to the target facial image are determined as the calibration parameters applicable to the current person in the current application scenario, thereby effectively saving the system time in determining the calibration parameters.
[0235] If the target face image cannot be matched in the calibration database, please refer to Fig. 9 According to a flowchart of another calibration method shown in an exemplary embodiment, after the above step 1202, the above step 12 may further include:
[0236] In step 1204, in response to the target facial image not existing in the calibration database, calibration parameters of the monitoring system applicable to the current person in the current application scenario are determined in real-time calibration mode.
[0237] Still using the above example, assuming that the facial features contained in the facial image P of the current person are different from the facial features in images A to C, the calibration parameters of the monitoring system suitable for the current person in the current application scenario can be determined in real time according to the above steps 121 to 123.
[0238] In an embodiment of the present application, when the computer system is configured to determine the calibration parameters applicable to the current application scenario according to the historical matching mode, it can first use the facial image of the current person to match the calibration database to determine whether there is a target facial image in the calibration database that contains the same facial features as the facial image of the current person. If the above-mentioned target facial image does not exist in the calibration database, the calibration parameters applicable to the current person in the current application scenario can be determined in real time according to the real-time calibration mode, thereby meeting the personalized calibration needs.
[0239] Case three corresponds to the case where the above target calibration mode is the system default calibration mode.
[0240] In the embodiment of the present application, the DMS can be calibrated only once, which is applied to all drivers by default, and the default calibration parameters are stored. If the system is calibrated every time it is turned on, the computer system needs to spend time calculating the calibration parameters during each calibration process, which affects the user's ability to quickly use the monitoring function. In this case, the current user can select the default calibration mode, load the calibration parameters determined by the system for all drivers into the current DMS, and quickly enter the visual monitoring state.
[0241] After the computer system determines the calibration parameters applicable to the current application scenario in any of the above-mentioned ways, the calibration parameters can be loaded into the DMS to obtain the updated and calibrated DMS. In the process of updating the monitoring system according to the calibration parameters determined in real time, the calibration parameters of the DMS can be updated according to the cluster center of the head posture data of the current user and / or the cluster center of the eye sight according to the actual application needs to obtain the recalibrated DMS.
[0242] In a predetermined three-dimensional space, after the DMS is calibrated, the recalibrated DMS can be used to monitor the driver during vehicle driving, such as visual monitoring, such as gaze area detection, line of sight direction detection, real-time monitoring of the driver's attention, and achieving better assisted driving functions.
[0243] Therefore, the calibration method provided in the embodiment of the present application further includes:
[0244] The person in the face image in the current application scenario is monitored according to the calibration parameters, such as visual monitoring. Specifically, the face image captured by the camera is input into the recalibrated DMS, and a visual monitoring result is output, which may be information such as line of sight direction information and / or gaze area category value.
[0245] After obtaining the visual monitoring results, further applications can be made based on the visual monitoring results. For example, the attention monitoring results of the person corresponding to the face image can be determined based on the gaze area category detection results. For example, the gaze area category detection result can be "During a preset period of time, the driver's gaze area has always been area 2." Then, if area 2 is the right front windshield, it means that the driver is driving more attentively. If area 2 is the glove box area in front of the co-pilot, it means that the driver is very likely distracted and inattentive.
[0246] After the attention monitoring result is detected, the attention monitoring result can be output, for example, "Drive very attentively" can be displayed in a certain display area in the vehicle. Alternatively, distraction prompt information can be output according to the attention monitoring result, and the driver can be prompted "Please concentrate on driving and ensure driving safety" through a conspicuous display on the display screen or a voice prompt. Of course, when outputting specific information, at least one of the attention monitoring result and the distraction prompt information can be output.
[0247] Determining the attention monitoring results of a person or outputting distraction prompt information through visual monitoring results is of great help in driver attention monitoring. It can effectively detect the driver's inattention, give timely reminders, reduce the risk of accidents, and ensure driving safety.
[0248] The above examples are all based on the example of monitoring driver attention in the application scenario of intelligent driving vehicles. The detection of gaze areas can have many uses. The following examples are some possible applications, but are not limited to them:
[0249] For example, vehicle-machine interaction control based on visual monitoring can be performed. Some electronic devices, such as a multimedia player, can be set up in the vehicle, and the multimedia player can be automatically controlled to start the playback function by detecting the gaze area of the passengers in the vehicle.
[0250] Exemplarily, a facial image of the passenger is captured by a camera deployed in the vehicle, and a gaze area category detection result is detected by a pre-trained neural network. For example, the detection result may be that within a period of time T, the passenger's gaze area has been the area where a "gaze to turn on" option is located on a multimedia player in the vehicle, and it is determined that the passenger wants to turn on the multimedia player, and a corresponding control instruction is output to control the multimedia player to start playing.
[0251] For another example, in addition to car-related applications, it can also include game control, smart home device control, advertising push and other application scenarios. Taking smart home control as an example, the face image of the target controller can be collected, and the visual monitoring system after parameter calibration can detect the gaze area category detection result. For example, the detection result can be: within a period of time T, the controller's gaze area has always been the area where the "gaze to turn on" option on the smart air conditioner is located. According to the above detection results, it can be determined that the controller wants to start the smart air conditioner, and the corresponding control command is output to control the air conditioner to turn on.
[0252] In an embodiment of the present application, after the above step 12, the following steps may also be included:
[0253] Step C, storing the correspondence between the spatial type information of the predetermined three-dimensional space and the calibration parameters; wherein the spatial type information of the predetermined three-dimensional space includes structural information of the three-dimensional space, and / or relative position information between an image acquisition device that detects a facial image and the three-dimensional space.
[0254] In the embodiment of the present application, the space type information of the predetermined three-dimensional space is used to represent the same type of three-dimensional space, and the monitoring systems in the same type of three-dimensional space can use the same calibration parameters. Still taking the predetermined three-dimensional space as the cabin space of a smart vehicle as an example, its space type information can be the model information of the smart vehicle, and / or the position information of the image acquisition device in the cabin space for capturing the driver's face image in the cabin space.
[0255] The embodiment of the present application can be applied to the above situation 2 or situation 3. For the above situation 2, that is, the historical matching mode, the above step C can be specifically as follows: storing the correspondence between the spatial type information of the predetermined three-dimensional space, the facial image of the current person, and the calibration parameters; forming a historical record for storage, and then obtaining an updated calibration database, so that the next time the current person drives the same vehicle, the monitoring system can match the corresponding historical calibration parameters from the calibration database according to the real-time collected facial image, saving the time cost of system calibration. Alternatively, when the current person drives different vehicles of the same model, the above historical calibration parameters are imported into the visual monitoring system of different vehicles of the same model to realize the spatial mobility of the monitoring system between different vehicles of the same model.
[0256] For the third situation mentioned above, that is, the system default calibration mode, when the calibration parameters are not stored in the system, the correspondence between the spatial type information of the above-mentioned predetermined three-dimensional space and the above-mentioned calibration parameters can be stored, so that another driver or the same driver can use the calibration parameters stored in the system when driving the same type of vehicle at a subsequent moment, so as to realize the spatial mobility of the monitoring system for the same space type.
[0257] Regarding the storage location of the above-mentioned data, i.e., the correspondence between the spatial type information of the predetermined three-dimensional space and the calibration parameters, it can be local storage, cloud storage, or stored in removable storage media such as SD cards, U disks, mobile hard disks and other storage media. This application does not limit its storage location.
[0258] For the same type of predetermined three-dimensional space, such as the same vehicle model, there is no need to redefine the calibration parameters. You can directly specify the storage location to obtain the calibration parameters for the same vehicle model, saving the time cost of monitoring system calibration and realizing the spatial mobility of the monitoring system for the same space type.
[0259] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the data processing device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0260] For the aforementioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should know that the present disclosure is not limited by the described order of actions, because according to the present disclosure, certain steps can be performed in other orders or simultaneously.
[0261] Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present disclosure.
[0262] Corresponding to the aforementioned application function implementation method embodiment, the present disclosure also provides an application function implementation device and a corresponding terminal embodiment.
[0263] The present application provides a calibration device, which is arranged in a monitoring system of a predetermined three-dimensional space. Fig.10 According to a structural block diagram of a calibration device shown in an exemplary embodiment, the device may include:
[0264] The target mode determination module 21 is configured to determine a target calibration mode when a login request information for the monitoring system is detected;
[0265] A calibration parameter determination module 22, configured to determine calibration parameters of the monitoring system suitable for a current application scenario according to the target calibration mode and the face image currently detected in the predetermined three-dimensional space;
[0266] The parameter loading module 23 is configured to load the calibration parameters into the monitoring system.
[0267] In another device embodiment of the present application, the target mode determination module 21 may be configured to determine a preset calibration mode as the target calibration mode when the login request information is detected.
[0268] See also Fig.11 According to a structural block diagram of another calibration device shown in an exemplary embodiment, Fig.10 Based on the device embodiment shown, the target mode determination module 21 may include:
[0269] The selection mode triggering submodule 211 is configured to trigger entering the calibration selection mode when the login request information is detected;
[0270] The target mode determination submodule 212 is configured to, in response to detecting a selection operation for a preset calibration mode option, determine the preset calibration mode indicated by the selection operation as the target calibration mode.
[0271] In the embodiment of the present application, the login request information may include:
[0272] A face image is detected at a specified position in the predetermined three-dimensional space; or,
[0273] User information entered by the user to request to log in to the system.
[0274] In the embodiment of the present application, the preset calibration mode may include any one of the following: real-time calibration mode, history matching mode, and default calibration mode.
[0275] In an embodiment of the device of the present application, the target calibration mode is the real-time calibration mode; accordingly, see Fig.12 According to a structural block diagram of another calibration device shown in an exemplary embodiment, Fig.10 Based on the device embodiment shown, the calibration parameter determination module 22 may include:
[0276] The image acquisition submodule 221 is configured to acquire a face image of a current person at a specified position in the predetermined three-dimensional space to obtain a face image set when a preset trigger condition is met;
[0277] The feature extraction submodule 222 is configured to extract features from each face image in the face image set to obtain calibration sample data;
[0278] The first determination submodule 223 is configured to determine calibration parameters of the monitoring system suitable for the current person in the current application scenario according to the calibration sample data.
[0279] In an embodiment of the device of the present application, the predetermined three-dimensional space may be a cabin space of a smart vehicle. Accordingly, the image acquisition submodule 221 may be configured to acquire a facial image of a person in a driver's area in the cabin space when the driving speed of the smart vehicle exceeds a preset speed threshold.
[0280] In another device embodiment of the present application, the predetermined three-dimensional space may be a cabin space of a smart vehicle;
[0281] The image acquisition submodule 221 may be configured to acquire facial images of persons in the driver area in the vehicle cabin space when an image acquisition device for acquiring images at the driver's position in the smart vehicle is powered on.
[0282] In another device embodiment of the present application, the predetermined three-dimensional space is a cabin space of a smart vehicle;
[0283] The image acquisition submodule 221 may be configured to acquire facial images of persons in the driver area in the vehicle cabin space when a preset instruction is received and the image acquisition device for acquiring images at the driver's position in the smart vehicle is powered on.
[0284] In any of the above device embodiments provided in the present application, the image acquisition submodule 221 may acquire the facial image of the current person in any of the following ways:
[0285] Collecting a facial image of the current person within a preset time period;
[0286] Collect a preset number of facial images of the current person.
[0287] See also Fig.13 According to a structural block diagram of another calibration device shown in an exemplary embodiment, Fig.12 Based on the device embodiment shown, the first determining submodule 223 may include:
[0288] The cluster processing unit 2231 is configured to perform cluster processing on the calibration sample data to obtain the cluster center of the calibration sample data;
[0289] The parameter determination unit 2232 is configured to determine the calibration parameters of the monitoring system applicable to the current person in the current application scenario according to the cluster center of the calibration sample data;
[0290] The calibration sample data may include: head posture data and / or eye sight data of the person in the face image.
[0291] In an embodiment of the device of the present application, the target calibration mode may be the historical matching mode; see Fig.14 According to a structural block diagram of another calibration device shown in an exemplary embodiment, Fig.10 Based on the device embodiment shown, the calibration parameter determination module 22 may include:
[0292] The face image acquisition submodule 2201 is configured to acquire a face image of a current person at a specified position in the predetermined three-dimensional space;
[0293] The matching submodule 2202 is configured to determine whether there is a target face image matching the face image of the current person in a calibration database, wherein the calibration database includes: face images of different users and their corresponding historical calibration parameters;
[0294] The second determination submodule 2203 is configured to determine, in response to the target facial image existing in the calibration database, the historical calibration parameters corresponding to the target facial image as the calibration parameters of the monitoring system applicable to the current person in the current application scenario.
[0295] See also Fig.15 A structural block diagram of another calibration device according to an exemplary embodiment is shown. Fig.14 The device embodiments shown are different, and the device may also include:
[0296] The third determination submodule 2204 is configured to determine, in response to the target facial image not existing in the calibration database, calibration parameters of the monitoring system applicable to the current person in the current application scenario in a real-time calibration mode.
[0297] In another calibration device embodiment of the present application, the target calibration mode may be a default calibration mode;
[0298] Correspondingly, the calibration parameter determination module 22 may be configured to determine the calibration parameters set by default in the system as calibration parameters of the monitoring system applicable to the current person in the current application scenario.
[0299] See also Fig.16 According to a structural block diagram of another calibration device shown in an exemplary embodiment, Figures 10 to 15 Based on any of the device embodiments shown, the device may further include:
[0300] The monitoring module 24 is configured to monitor the person in the face image in the current application scene according to the calibration parameters.
[0301] In an embodiment of a calibration device of the present application, the monitoring module 24 may be configured to perform visual monitoring of a person in the face image in the current application scenario according to the calibration parameters;
[0302] Accordingly, the device may further include:
[0303] A first monitoring result acquisition module is configured to acquire visual monitoring results;
[0304] an attention determination module, configured to determine an attention monitoring result of a person corresponding to the face image according to the visual monitoring result;
[0305] The output module is configured to output the attention monitoring result and / or output distraction prompt information according to the attention monitoring result.
[0306] In another calibration device embodiment of the present application, the monitoring module 24 may be configured to perform visual monitoring of the person in the face image in the current application scenario according to the calibration parameters;
[0307] Accordingly, the device may further include:
[0308] A second monitoring result acquisition module is configured to acquire visual monitoring results, wherein the visual monitoring results include gaze area category detection results;
[0309] A control instruction determination module, configured to determine a control instruction corresponding to the gaze area category detection result;
[0310] The control module is configured to control the electronic device to perform operations corresponding to the control instructions.
[0311] In an embodiment of a calibration device of the present application, the device may further include:
[0312] The storage module is configured to store the correspondence between the spatial type information of the predetermined three-dimensional space and the calibration parameters, wherein the spatial type information of the predetermined three-dimensional space includes structural information of the three-dimensional space, and / or relative position information between an image acquisition device that detects a facial image and the three-dimensional space.
[0313] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present application scheme. A person of ordinary skill in the art can understand and implement it without paying any creative work.
[0314] Corresponding to the above calibration method, the present application embodiment also proposes Fig.17 The schematic structural diagram of an electronic device according to an exemplary embodiment of the present application is shown in FIG. Fig.17 At the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and of course may also include hardware required for other services. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a calibration device at the logical level. Of course, in addition to software implementations, this application does not exclude other implementations, such as logic devices or a combination of software and hardware, etc., that is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0315] It should be understood by those skilled in the art that one or more embodiments of the present specification may be provided as a method, system or computer program product. Therefore, one or more embodiments of the present specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, one or more embodiments of the present specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0316] The present specification also provides a computer-readable storage medium, which may store a computer program, which implements the present specification when the program is executed by a processor. Figures 1 to 7 The steps of the calibration method provided in any embodiment.
[0317] The embodiments of the subject matter and functional operations described in this specification may be implemented in the following: digital electronic circuits, tangibly embodied computer software or firmware, computer hardware including the structures disclosed in this specification and their structural equivalents, or a combination of one or more of them. The embodiments of the subject matter described in this specification may be implemented as one or more computer programs, i.e., one or more modules in computer program instructions encoded on a tangible non-temporary program carrier to be executed by a data processing device or to control the operation of the data processing device. Alternatively or additionally, the program instructions may be encoded on an artificially generated propagation signal, such as a machine-generated electrical, optical or electromagnetic signal, which is generated to encode information and transmit it to a suitable receiver device for execution by a data processing device. The computer storage medium may be a machine-readable storage device, a machine-readable storage substrate, a random or serial access memory device, or a combination of one or more of them.
[0318] The processes and logic flows described in this specification can be performed by one or more programmable computers executing one or more computer programs to perform corresponding functions by operating on input data and generating output. The processes and logic flows can also be performed by special purpose logic circuits, such as FPGAs (field programmable gate arrays) or ASICs (application-specific integrated circuits), and the apparatus can also be implemented as special purpose logic circuits.
[0319] Computers suitable for executing computer programs include, for example, general and / or special microprocessors, or any other type of central processing unit. Typically, the central processing unit will receive instructions and data from a read-only memory and / or a random access memory. The basic components of a computer include a central processing unit for implementing or executing instructions and one or more memory devices for storing instructions and data. Typically, the computer will also include one or more large-capacity storage devices for storing data, such as magnetic disks, magneto-optical disks, or optical disks, or the computer will be operably coupled to this large-capacity storage device to receive data from it or to transmit data to it, or both. However, the computer does not necessarily have such a device. In addition, the computer can be embedded in another device, such as a mobile phone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a global positioning system (GPS) receiver, or a portable storage device such as a universal serial bus (USB) flash drive, to name a few.
[0320] Computer readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media and memory devices, including, for example, semiconductor memory devices (e.g., EPROM, EEPROM and flash memory devices), magnetic disks (e.g., internal hard disks or removable disks), magneto-optical disks, and CD ROM and DVD-ROM disks. The processor and memory may be supplemented by, or incorporated in, special purpose logic circuitry.
[0321] Although this specification includes many specific implementation details, these should not be interpreted as limiting the scope of any invention or the scope of protection claimed, but are mainly used to describe the features of the specific embodiments of specific inventions. Certain features described in multiple embodiments in this specification may also be implemented in combination in a single embodiment. On the other hand, the various features described in a single embodiment may also be implemented separately in multiple embodiments or in any suitable sub-combination. In addition, although features may work in certain combinations as described above and even initially claim protection, one or more features from the claimed combination may be removed from the combination in some cases, and the claimed combination may point to a sub-combination or a variation of a sub-combination.
[0322] Similarly, although operations are depicted in a particular order in the accompanying drawings, this should not be understood as requiring that these operations be performed in the particular order shown or performed sequentially, or requiring that all illustrated operations be performed to achieve the desired results. In some cases, multitasking and parallel processing may be advantageous. In addition, the separation of various system modules and components in the above-described embodiments should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product, or packaged into multiple software products.
[0323] Thus, specific embodiments of the subject matter have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the particular order or sequential order shown to achieve the desired results. In some implementations, multitasking and parallel processing may be advantageous.
[0324] The above description is merely a preferred embodiment of one or more embodiments of the present specification and is not intended to limit one or more embodiments of the present specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of one or more embodiments of the present specification shall be included in the scope of protection of one or more embodiments of the present specification.
Claims
1. A calibration method, It is characterized in that Applied to a monitoring system of a predetermined three-dimensional space, the method comprises: When a login request message for the monitoring system is detected, determining a target calibration mode; Determining calibration parameters of the monitoring system suitable for a current application scenario according to the target calibration mode and a face image currently detected in the predetermined three-dimensional space; loading the calibration parameters into the monitoring system; In the case where the target calibration mode is a real-time calibration mode, determining calibration parameters of the monitoring system applicable to the current application scenario according to the target calibration mode and the face image currently detected in the predetermined three-dimensional space includes: When a preset trigger condition is met, a facial image of a current person at a specified position in the predetermined three-dimensional space is collected to obtain a facial image set; Performing feature extraction on each face image in the face image set to obtain calibration sample data; Determining calibration parameters of the monitoring system applicable to the current person in the current application scenario according to the calibration sample data; The step of determining, according to the calibration sample data, calibration parameters of the monitoring system applicable to the current person in the current application scenario includes: Performing clustering processing on the calibration sample data to obtain the cluster center of the calibration sample data; Determining calibration parameters of the monitoring system applicable to the current person in the current application scenario based on the cluster center of the calibration sample data; The calibration sample data includes: head posture data and / or eye sight data of the person in the face image.
2. The method according to claim 1, It is characterized in that The step of determining a target calibration mode when a login request message for the monitoring system is detected includes: When the login request information is detected, a preset calibration mode is determined as the target calibration mode.
3. The method according to claim 1, It is characterized in that The step of determining a target calibration mode when a login request message for the monitoring system is detected includes: When the login request information is detected, triggering entry into a calibration selection mode; In response to detecting a selection operation for a preset calibration mode option, the preset calibration mode indicated by the selection operation is determined as the target calibration mode.
4. The method according to claim 2 or 3, It is characterized in that The login request information includes: A face image is detected at a specified position in the predetermined three-dimensional space; or, User information entered by the user to request to log in to the system.
5. The method according to claim 2 or 3, It is characterized in that The preset calibration mode includes any one of the following: real-time calibration mode, history matching mode, and default calibration mode.
6. The method according to claim 1, It is characterized in that The predetermined three-dimensional space is a cabin space of the intelligent vehicle, and when a preset trigger condition is met, collecting a face image of a current person at a specified position in the predetermined three-dimensional space includes: When the driving speed of the intelligent vehicle exceeds a preset speed threshold, a facial image of a person in the driver area in the cabin space is collected.
7. The method according to claim 1, It is characterized in that The predetermined three-dimensional space is a cabin space of the intelligent vehicle, and when a preset trigger condition is met, collecting a face image of a current person at a specified position in the predetermined three-dimensional space includes: When the image acquisition device for acquiring images at the driver's position in the smart vehicle is powered on, facial images of people in the driver's area in the cabin space are acquired.
8. The method according to claim 1, It is characterized in that The predetermined three-dimensional space is a cabin space of the intelligent vehicle, and when a preset trigger condition is met, collecting a face image of a current person at a specified position in the predetermined three-dimensional space includes: When a preset instruction is received and the image acquisition device in the smart vehicle for acquiring images at the driver's position is powered on, facial images of people in the driver's area in the cabin space are acquired.
9. The method according to claim 1, It is characterized in that The facial image of the current person is acquired in any of the following ways: Collecting a facial image of the current person within a preset time period; Collect a preset number of facial images of the current person.
10. The method according to claim 5, It is characterized in that The target calibration mode is the history matching mode; The step of determining calibration parameters of the monitoring system suitable for the current application scenario according to the target calibration mode and the face image currently detected in the predetermined three-dimensional space includes: Collecting a facial image of a current person at a specified position in the predetermined three-dimensional space; Determine whether there is a target facial image matching the facial image of the current person in a calibration database, wherein the calibration database includes: facial images of different users and their corresponding historical calibration parameters; In response to the target facial image existing in the calibration database, historical calibration parameters corresponding to the target facial image are determined as calibration parameters of the monitoring system applicable to the current person in the current application scenario.
11. The method according to claim 10, It is characterized in that The method further comprises: In response to the target facial image not existing in the calibration database, calibration parameters of the monitoring system applicable to the current person in the current application scenario are determined in real-time calibration mode.
12. The method according to claim 5, It is characterized in that The target calibration mode is a default calibration mode; The step of determining calibration parameters of the monitoring system suitable for the current application scenario according to the target calibration mode and the face image currently detected in the predetermined three-dimensional space includes: The calibration parameters set by default in the system are determined as the calibration parameters of the monitoring system applicable to the current person in the current application scenario.
13. The method according to claim 1, It is characterized in that The method further comprises: The person in the face image in the current application scene is monitored according to the calibration parameters.
14. The method according to claim 13, It is characterized in that The monitoring of the person in the face image in the current application scenario according to the calibration parameters includes: Performing visual monitoring on a person in the face image in the current application scenario according to the calibration parameters; The method further comprises: Obtain visual monitoring results; Determining, based on the visual monitoring result, an attention monitoring result of a person corresponding to the facial image; Output the attention monitoring result, and / or output distraction prompt information according to the attention monitoring result.
15. The method according to claim 13, It is characterized in that The monitoring of the person in the face image in the current application scenario according to the calibration parameters includes: Performing visual monitoring on a person in the face image in the current application scenario according to the calibration parameters; The method further comprises: Obtaining visual monitoring results, wherein the visual monitoring results include gaze area category detection results; Determining a control instruction corresponding to the gaze area category detection result; The electronic device is controlled to execute an operation corresponding to the control instruction.
16. The method according to any one of claims 1, 6 to 9, It is characterized in that The method further comprises: The correspondence between the spatial type information of the predetermined three-dimensional space and the calibration parameters is stored, wherein the spatial type information of the predetermined three-dimensional space includes structural information of the three-dimensional space and / or relative position information of an image acquisition device that detects a face image and the three-dimensional space.
17. A calibration device, It is characterized in that A monitoring system arranged in a predetermined three-dimensional space, the device comprising: a target mode determination module, configured to determine a target calibration mode when a login request information for the monitoring system is detected; a calibration parameter determination module, configured to determine calibration parameters of the monitoring system suitable for a current application scenario according to the target calibration mode and a face image currently detected in the predetermined three-dimensional space; a parameter loading module, configured to load the calibration parameters into the monitoring system; When the target calibration mode is a real-time calibration mode, the calibration parameter determination module includes: The image acquisition submodule is configured to acquire a face image of a current person at a specified position in the predetermined three-dimensional space to obtain a face image set when a preset trigger condition is met; A feature extraction submodule is configured to extract features from each face image in the face image set to obtain calibration sample data; A first determination submodule is configured to determine calibration parameters of the monitoring system applicable to the current person in the current application scenario according to the calibration sample data; The first determining submodule includes: A cluster processing unit, configured to perform cluster processing on the calibration sample data to obtain a cluster center of the calibration sample data; A parameter determination unit, configured to determine, based on a cluster center of the calibration sample data, calibration parameters of the monitoring system applicable to the current person in the current application scenario; The calibration sample data includes: head posture data and / or eye sight data of the person in the face image.
18. The device according to claim 17, It is characterized in that The target mode determination module is configured to determine a preset calibration mode as the target calibration mode when the login request information is detected.
19. The device according to claim 17, It is characterized in that The target mode determination module comprises: A selection mode triggering submodule is configured to trigger entering a calibration selection mode when the login request information is detected; The target mode determination submodule is configured to, in response to detecting a selection operation for a preset calibration mode option, determine the preset calibration mode indicated by the selection operation as the target calibration mode.
20. The device according to claim 18 or 19, It is characterized in that The login request information includes: A face image is detected at a specified position in the predetermined three-dimensional space; or, User information entered by the user to request to log in to the system.
21. The device according to claim 18 or 19, It is characterized in that The preset calibration mode includes any one of the following: real-time calibration mode, history matching mode, and default calibration mode.
22. The device according to claim 17, It is characterized in that The predetermined three-dimensional space is the cabin space of the smart vehicle, and the image acquisition submodule is configured to acquire facial images of people in the driver area in the cabin space when the driving speed of the smart vehicle exceeds a preset speed threshold.
23. The device according to claim 17, It is characterized in that The predetermined three-dimensional space is the cabin space of the smart vehicle; The image acquisition submodule is configured to acquire facial images of people in the driver area in the vehicle cabin space when the image acquisition device for acquiring images at the driver's position in the smart vehicle is powered on.
24. The device according to claim 17, It is characterized in that The predetermined three-dimensional space is the cabin space of the smart vehicle; The image acquisition submodule is configured to acquire facial images of people in the driver area in the cabin space when a preset instruction is received and the image acquisition device for acquiring images at the driver's position in the smart vehicle is powered on.
25. The device according to claim 17, It is characterized in that The image acquisition submodule acquires the face image of the current person in any of the following ways: Collecting a facial image of the current person within a preset time period; Collect a preset number of facial images of the current person.
26. The device according to claim 21, It is characterized in that The target calibration mode is the history matching mode; The calibration parameter determination module comprises: A face image acquisition submodule is configured to acquire a face image of a current person at a specified position in the predetermined three-dimensional space; A matching submodule is configured to determine whether there is a target face image matching the face image of the current person in a calibration database, wherein the calibration database includes: face images of different users and their corresponding historical calibration parameters; The second determination submodule is configured to determine, in response to the target facial image existing in the calibration database, the historical calibration parameters corresponding to the target facial image as the calibration parameters of the monitoring system applicable to the current person in the current application scenario.
27. The device according to claim 26, It is characterized in that The device also includes: The third determination submodule is configured to determine, in response to the target facial image not existing in the calibration database, calibration parameters of the monitoring system applicable to the current person in the current application scenario in a real-time calibration mode.
28. The device according to claim 21, It is characterized in that The target calibration mode is a default calibration mode; The calibration parameter determination module is configured to determine the calibration parameters set by default in the system as calibration parameters of the monitoring system applicable to the current person in the current application scenario.
29. The device according to claim 17, It is characterized in that The device also includes: The monitoring module is configured to monitor the person in the face image in the current application scene according to the calibration parameters.
30. The device according to claim 29, It is characterized in that The monitoring module is configured to perform visual monitoring of the person in the face image in the current application scenario according to the calibration parameters; The device also includes: A first monitoring result acquisition module is configured to acquire visual monitoring results; an attention determination module, configured to determine an attention monitoring result of a person corresponding to the face image according to the visual monitoring result; The output module is configured to output the attention monitoring result and / or output distraction prompt information according to the attention monitoring result.
31. The device according to claim 29, It is characterized in that The monitoring module is configured to perform visual monitoring of the person in the face image in the current application scenario according to the calibration parameters; The device also includes: A second monitoring result acquisition module is configured to acquire visual monitoring results, wherein the visual monitoring results include gaze area category detection results; A control instruction determination module, configured to determine a control instruction corresponding to the gaze area category detection result; The control module is configured to control the electronic device to perform operations corresponding to the control instructions.
32. The device according to any one of claims 17, 22 to 25, It is characterized in that The device also includes: The storage module is configured to store the correspondence between the spatial type information of the predetermined three-dimensional space and the calibration parameters, wherein the spatial type information of the predetermined three-dimensional space includes structural information of the three-dimensional space, and / or relative position information between an image acquisition device that detects a facial image and the three-dimensional space.
33. A computer readable storage medium, It is characterized in that The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 16 is implemented.
34. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the method according to any one of claims 1 to 16 is implemented.
Citation Information
Patent Citations
Real-time electric control engine on-line calibrated monitoring system
CN101067402A
Visual system with real-time parameter monitoring and on-line calibration functions
CN102646277A
Driving behavior warning method based on vehicle bus data
CN102874188A
Calibration method, calibration terminal and calibration system for automobile
CN106218551A
Calibration board, camera calibration method and device
CN106296703A
