Data processing method and electronic device

By emitting and receiving ranging optical signals to process the distance value of the obstructing object, it solves the problem of high power consumption and processing load of electronic devices when determining whether the user is in front of the device, and achieves high-accuracy user detection.

CN111624617BActive Publication Date: 2024-10-18LENOVO (BEIJING) LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202010470423.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-05-28
Publication Date
2024-10-18
Estimated Expiration
2040-05-28

AI Technical Summary

Technical Problem

When existing electronic devices determine whether the user is in front of the device, they need to continuously capture images, resulting in large data processing volume and power consumption, which increases the processing load of the device.

Method used

Using the method of simultaneously emitting ranging light signals and receiving reflected signals, the ranging light signal is processed to determine the distance value set of obstructions in the target area and determine whether there are specific types of obstructions, including the human body. The logic is simple and the accuracy is high. , reduce the processing load and power consumption of the device.

Benefits of technology

It can effectively determine whether the user is in front of the device without taking an image. The determination process is simple and highly accurate, significantly reducing the processing load and power consumption of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111624617B_ABST
    Figure CN111624617B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a data processing method and an electronic device, the method comprising: simultaneously transmitting a first number of ranging light signals; receiving ranging light signals reflected back by obstructions in a target area, and determining a first set of distance values ​​between each of the obstructions and the electronic device based on the reflected ranging light signals; processing the first set of distance values, and determining whether there is a specific type of obstruction in the target area based at least on the distribution of values ​​in the first distance values ​​that meet a specific range; wherein the first number is 10-150. The data processing method of the embodiment of the present application has low power consumption and can effectively determine whether a specific type of obstruction including a user is located in the target area.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of smart devices, and in particular to a data processing method and an electronic device. Background Art

[0002] At present, when electronic devices determine whether a target object, such as a user, is in front of the device, they usually use a method of directly capturing an image and identifying whether the user is in front of the device based on the image. In specific applications, the camera is always in working state to collect images in real time or at a fixed time to ensure that the device can determine whether the user is in front of the device at the first time. Although this method is highly efficient, its data processing volume and power consumption are also quite large, which seriously increases the processing load of the device.

[0003] Application Contents

[0004] The embodiments of the present application provide a data processing method with low power consumption that can effectively determine whether a specific type of obstruction, such as a user, is located within a target area, and an electronic device using the method.

[0005] In order to solve the above technical problems, the present application provides a data processing method, including:

[0006] Simultaneously transmitting a first number of ranging light signals;

[0007] Receiving a ranging light signal reflected by an obstruction in a target area, and determining a first distance value set between each obstruction and the electronic device based on the reflected ranging light signal;

[0008] Processing the first set of distance values, determining whether there is a specific type of occluder in the target area based at least on a distribution of values ​​in the first distance values ​​that conform to a specific range;

[0009] Wherein, the first quantity is 10-150.

[0010] Preferably, the specific type of obstructing object is a human body, and the first number is 12-30, or 15-50, or 16-25.

[0011] Preferably, the processing the first distance value set comprises:

[0012] Determine specific values ​​of all first distance values ​​in the first distance value set;

[0013] Determine a first distance value among the specific values ​​that meets the specific range;

[0014] At least determine the distribution information of the first distance value that meets the specific range, and the distribution information at least includes the ratio of the first distance value that meets the specific range to all distance values ​​in the first distance value set, or the location information of the collection point used to collect the distance measurement data of the first distance value that meets the specific range.

[0015] Preferably, determining whether there is a specific type of obstruction in the target area based at least on the distribution of values ​​in the first distance value that conform to a specific range comprises:

[0016] Determine whether there is a specific type of obstruction in the target area based on the distribution of values ​​in the first distance values ​​that meet a specific range and historical distribution data;

[0017] The historical distribution data includes distribution information of the distance value between the obstruction and the device when there is a specific type of obstruction in the target area.

[0018] Preferably, determining whether there is a specific type of obstruction in the target area based on the distribution of values ​​that conform to a specific range and historical distribution data comprises:

[0019] If the distribution of values ​​that meet a specific range in the first distance value set collected at the previous moment can determine that there is a specific type of obstruction in the target area, then based on the distribution of values ​​that meet the specific range in the first distance value set collected at the current moment and the distribution of the first distance value that meets the specific range collected at the previous moment, it is determined whether there is a specific type of obstruction in the target area.

[0020] Preferably, the historical distribution data is distribution data of first distance values ​​within a specific range that are collected when the device collects biometric information of the user for identity authentication; or

[0021] The historical distribution data is distribution data of the first distance value that meets a specific range and is obtained after accumulation and learning by the device.

[0022] Preferably, determining whether there is a specific type of obstruction in the target area based on the distribution of values ​​that conform to a specific range and historical distribution data comprises:

[0023] When it is determined that the difference between the distribution based on the values ​​that meet the specific range and the historical distribution data meets the threshold range, it is determined that there is a specific type of obstruction in the target area.

[0024] Preferably, determining whether there is a specific type of obstruction in the target area based on the distribution of values ​​that conform to a specific range and historical distribution data comprises:

[0025] Determine a ratio of the first distance value that meets the specific range to the first distance value set;

[0026] If the difference between the ratio and the ratio of values ​​in the historical distribution data that conform to a specific range meets a threshold range, it is determined that there is a specific type of obstruction in the target area.

[0027] The present application also provides an electronic device, including:

[0028] A light source matrix, which is used to simultaneously emit a first number of ranging light signals;

[0029] a processor, configured to receive a ranging light signal reflected by an obstruction in a target area, determine a first set of distance values ​​between each of the obstructions and the electronic device based on the reflected ranging light signal, and process the first set of distance values ​​to determine whether there is a specific type of obstruction in the target area based at least on a distribution of values ​​in the first distance values ​​that fall within a specific range;

[0030] Wherein, the first quantity is 10-150.

[0031] Preferably, the specific type of obstructing object is a human body, and the first number is 12-30, or 15-50, or 16-25.

[0032] Based on the disclosure of the above embodiments, it can be known that the beneficial effects of the embodiments of the present application include being able to effectively determine whether a user or other specific types of obstructions are in the target area, such as whether they are in front of the device, without having to shoot or analyze images. The judgment process is simple in logic, the judgment result is highly accurate, and it can significantly reduce the processing load and power consumption of the device. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 Flow chart of the data processing method in an embodiment of the present application.

[0034] Figure 2 This is a flow chart of a data processing method in another embodiment of the present application.

[0035] Figure 3 This is a flow chart of a data processing method in another embodiment of the present application.

[0036] Figure 4 This is distribution information determined by an electronic device in another embodiment of the present application.

[0037] Figure 5 This is distribution information determined by an electronic device in another embodiment of the present application.

[0038] Figure 6 It is a structural block diagram of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION

[0039] Below, specific embodiments of the present application are described in detail with reference to the accompanying drawings, but are not intended to limit the present application.

[0040] It should be understood that various modifications may be made to the embodiments disclosed herein. Therefore, the following description should not be considered as limiting, but merely as an example of an embodiment. Other modifications within the scope and spirit of the present disclosure will occur to those skilled in the art.

[0041] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present disclosure and, together with the general description of the present disclosure given above and the detailed description of the embodiments given below, serve to explain the principles of the present disclosure.

[0042] These and other characteristics of the present application will become apparent from the following description of a preferred form of embodiment given as a non-limiting example with reference to the accompanying drawings.

[0043] It should also be understood that, although the present application has been described with reference to some specific examples, those skilled in the art will be able to realize many other equivalent forms of the present application that have the features described in the claims and are therefore within the scope of protection defined thereby.

[0044] The above and other aspects, features and advantages of the present disclosure will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings.

[0045] Specific embodiments of the present disclosure are described hereinafter with reference to the accompanying drawings; however, it should be understood that the disclosed embodiments are merely examples of the present disclosure, which may be implemented in a variety of ways. Well-known and / or repeated functions and structures are not described in detail to avoid obscuring the present disclosure with unnecessary or redundant details. Therefore, the specific structural and functional details disclosed herein are not intended to be limiting, but merely serve as a basis and representative basis for the claims to teach those skilled in the art to use the present disclosure in a variety of ways with substantially any suitable detailed structure.

[0046] This specification may use the phrases "in one embodiment," "in another embodiment," "in a further embodiment," or "in other embodiments," all of which may refer to one or more of the same or different embodiments according to the present disclosure.

[0047] Below, embodiments of the present application are described in detail with reference to the accompanying drawings.

[0048] like Figure 1 As shown, an embodiment of the present application provides a data processing method, the method comprising:

[0049] Simultaneously transmitting a first number of ranging light signals;

[0050] Receiving a ranging light signal reflected by an obstruction in the target area, and determining a first distance value set between each obstruction and the electronic device based on the reflected ranging light signal;

[0051] Processing the first set of distance values, determining whether there is a specific type of occluder in the target area based at least on a distribution of values ​​in the first distance values ​​that fit within a specific range;

[0052] Among them, the first quantity is 10-150.

[0053] For example, the electronic device has a light source matrix, such as a 6*6 matrix, an 8*8 light source matrix, etc., which can simultaneously emit a first number of ranging light signals, that is, it can emit a first number of light for ranging. The specific number of the first number of ranging light signals can be 10-150. In actual application, any value within the range can be selected to determine the number of ranging light signals. Further, the light signal will be emitted into the target area, which can be an area in front of the device, such as an area facing the device. There will be an obstruction in the target area for blocking the propagation of the light signal. The ranging light signal will at least partially return to the location of the device after being reflected by the obstruction and received by the sensor set on the device. When applied, a sensor matrix can be set on the electronic device to receive the ranging light signal reflected by the obstruction. When the sensor receives the ranging light signal, it will be sent to the processor of the electronic device, so that the processor determines the first distance value between each obstruction and the electronic device based on the reflected ranging light signal. The multiple first distance values ​​are equal or unequal and form a set, that is, the first distance value set. In order to determine whether there is a specific type of obstruction in the target area, the processor will process the first distance value in the obtained first distance value set to determine the value in the first distance value that meets the specific range, and then determine the distribution information of the first distance value that meets the range, and determine whether there is a specific type of obstruction in the target area based on the distribution information.

[0054] Based on the disclosure of the above embodiments, it can be known that the beneficial effects of the embodiments of the present application include the ability to effectively determine whether a user or other specific types of obstructions are within the target area, such as whether they are in front of the device, without having to take or analyze photos or other images. Even if the user or other specific types of obstructions moves, the electronic device can quickly determine whether they are still within the target area. The judgment process has simple logic and high accuracy, and can significantly reduce the processing load and power consumption of the device.

[0055] Specifically, in the present embodiment, the specific type of obstruction is a human body, or a part of a human body, and the number of ranging light signals emitted by the dot matrix light source, that is, the first number, is preferably 12-30, but may be other numbers.

[0056] Furthermore, if Figure 2As shown, in this embodiment, processing the first distance value set includes:

[0057] Determine specific values ​​of all first distance values ​​in the first distance value set;

[0058] Determine a first distance value in the specific value that meets a specific range;

[0059] At least distribution information of the first distance value that meets the specific range is determined, and the distribution information at least includes the ratio of the first distance value that meets the specific range to all distance values ​​in the first distance value set, or the location information of the collection point used to collect the distance measurement data of the first distance value that meets the specific range.

[0060] For example, the sensor matrix on the electronic device collects the reflected ranging light signal and transmits it to the processor of the device. The processor determines the first distance values ​​calculated based on each reflected ranging light signal based on the data transmitted by the sensor. The multiple first distance values ​​at least represent the distance values ​​between each obstruction in the target area and the device. After determining each first distance value in the first distance value set, the processor can judge and filter all the first distance values ​​in the first distance value combination based on the preset judgment standard or screening standard that characterizes the distance between the target obstruction and the device to obtain a first distance value that meets a specific range. For example, the first distance value set includes values ​​of 0-800mm, and the judgment standard and screening standard can be 600mm, 500mm-600mm, etc., which are not specific. After determining the first distance value within the specific range in the first distance value set, the processor may at least determine the distribution information of the first distance value within the specific range (or determine the distribution information of all first distance values), the distribution information at least includes the ratio of the first distance value within the specific range to all distance values ​​in the first distance value set, or the location information of the collection point used to collect the distance measurement data for the first distance value within the specific range, that is, the processor calculates the first distance value within the specific range based on which ranging light signals are collected, and the ranging light signals corresponding to the first distance value within the specific range are emitted by which light sources, so as to determine the above-mentioned location information of the collection point based on the location information of the light source. After obtaining the location information, the processor can determine the outline of the target obstruction based on multiple location information, and use the outline to assist in determining whether there is a target obstruction in the target area. Alternatively, the determined proportion information is used to assist in determining whether there is a target obstruction in the target area, especially when it has been determined that there is a target obstruction in the target area, but the target obstruction has moved, such as when the target obstruction is a human body. When the user moves his body, or lowers his head to write something, or bends down to pick up something, the user's body shape has changed. If the determination of whether the user is in the target area is made based solely on the user's body contour, there may be certain errors. Therefore, at this time, the ratio information of the first distance value that meets the specific range relative to all the first distance values ​​can be used to assist in determining whether the user is still in the target area, with higher accuracy.

[0061] Further, in this embodiment, determining whether there is a specific type of obstruction in the target area based on at least the distribution of values ​​in the first distance value that conform to a specific range includes:

[0062] Determine whether there is a specific type of obstruction in the target area based on the distribution of values ​​in the first distance value that match a specific range and historical distribution data;

[0063] The historical distribution data includes distribution information of the distance value between a specific type of obstruction and the device when there is an obstruction of the specific type in the target area.

[0064] That is, historical distribution data is determined in advance, and the historical distribution data is at least distribution information of the first distance value that meets the specific range when the target obstruction is determined to exist in the target area. After the device determines the distribution information of the first distance value that currently meets the specific range, the distribution information of the current first distance value can be compared and calculated with the historical distribution information to determine whether the distribution information of the current first distance value indicates that there is a target obstruction in the target area based on the historical distribution information.

[0065] Specifically, in this embodiment, determining whether there is a specific type of obstruction in the target area based on the distribution of values ​​that meet a specific range and historical distribution data includes:

[0066] If the distribution of values ​​that satisfy a specific range in the first distance value set collected at the previous moment can determine that there is a specific type of obstruction in the target area, then based on the distribution of values ​​that satisfy the specific range in the first distance value set collected at the current moment and the distribution of the first distance values ​​that satisfy the specific range collected at the previous moment, it is determined whether there is a specific type of obstruction in the target area.

[0067] That is, at the last moment, if the device determines based on the collected information that there is a target obstruction in the target area, the first distance value and its distribution information can be stored for use as verification data when the device determines whether there is a target obstruction in the target area at the next moment.

[0068] For example, at the first moment, the device collects a set of reflected ranging light signals, and determines a first distance value set based on the light signals, and then processes the first distance value set according to the aforementioned steps to obtain distribution information of the first distance value that meets a specific range, and after determining that the distribution information can represent that the user is in the target area in front of the device, the device will store and record the distribution information calculated and determined at the first moment. When the second moment after the first moment is reached, the device collects a new reflected ranging light signal, and calculates and determines new distribution information of the first distance value that meets the specific range based on the ranging light signal, the device can judge the distribution information calculated and determined at the second moment based on the stored distribution information calculated and determined at the corresponding first moment, and then determine whether the user is still in the target area based on the distribution information determined at the second moment. By using the distribution information calculated and determined at the previous moment to characterize the presence of a target obstruction in the target area as verification data for whether the distribution information calculated and determined at the next moment can determine whether the presence of a target obstruction in the target area is present, the data processing load of the device can be effectively reduced, especially compared with comparing the distribution information corresponding to the user's initial posture each time, the data processing load of the device can be greatly reduced. Because the user's posture changes when using the device, if the data distribution is compared with the user's initial state data distribution each time, the amount of data processing is large and the accuracy of the processing result is reduced to a certain extent. Therefore, if the method of this embodiment is adopted, since the data is compared with the data of the previous moment that can determine that the target obstruction is located in the target area each time, the amount of data change will not change significantly, thereby reducing the data processing load and making it easier for the device to track the position of the target obstruction and quickly determine whether there is a target obstruction in the target area.

[0069] Further, continuing with the previous embodiment, after the device determines the distribution information calculated at the first moment, if it wants to determine that the distribution information can represent the presence of target obstructions in the target area, the distribution information at the first moment can be compared with the historical distribution data to determine whether the distribution information at the first moment can determine that there are target obstructions in the target area based on the historical distribution data. The historical distribution data may be the distribution data of the first distance value that meets the specific range when the device collects the user's biometric information for identity authentication. For example, when the device uses the facial recognition function to scan the user's facial features to unlock and start the device system, the user must be in front of the device. Therefore, the device collects and determines the first distance value set while collecting the user's facial features, and calculates and determines the distribution information based on the first distance value in the first distance value set. At this time, the distribution information can definitely determine that there is a target obstruction in the target area, so the distribution information device can be used as the verification data by default, which is the user's initial state data; or, the historical distribution data may be obtained when the user starts the camera of the device to take a photo, and the photo is not used for facial recognition. For example, the user only uses the camera to take life photos, ID photos, chats, video conferences, or live broadcasts, record videos, etc.; or, the historical distribution data may be the distribution data of the first distance value that meets the specific range obtained by the device after accumulation and learning. That is, the device will continuously learn based on the distribution information collected and calculated by the device each time the user uses the device, and then obtain the distribution information that can characterize the target obstruction in the target area, so as to verify the distribution information obtained at the first moment based on the distribution information.

[0070] In addition, the previous moment may also be directly the moment when the user uses the facial recognition function to start the device, that is, the moment when the user logs into the system in face verification mode, or the moment when the user enables the camera to take a picture of it. At this time, the distribution information determined does not need to be verified by historical distribution data.

[0071] Furthermore, in this embodiment, determining whether there is a specific type of obstruction in the target area based on the distribution of values ​​that meet a specific range and historical distribution data includes:

[0072] When it is determined that the difference between the distribution based on the values ​​that meet the specific range and the historical distribution data meets the threshold range, it is determined that there is a specific type of occluder in the target area.

[0073] For example, Figure 3 As shown, the specific ones are:

[0074] Determine a ratio of the first distance value that meets the specific range to the first distance value set;

[0075] If the difference between the ratio and the ratio of values ​​in the historical distribution data that meet the specific range meets the threshold range, it is determined that there is a specific type of occluder in the target area.

[0076] Specifically, for example Figure 4 and 5 As shown, 600mm is taken as the distance value of the target obstruction from the device, and the first distance value of 600mm is the first distance value that meets the specific range. The distribution of the first distance values ​​recorded in block 1 can indicate that there is a target obstruction in the target area. Specifically, there are 8 first distance values ​​of 600mm in block 1, and 7 first distance values ​​of 600mm in block 2. The ratio of their respective percentages can be compared with the reference range value of the preset value. For example, if the reference range value is 30%-50%, if the ratio of the percentages meets the reference range value, it can be determined that the distribution of the first distance values ​​recorded in block 2 can determine that there is a target obstruction in the target area.

[0077] Alternatively, the distribution and percentage of the first distance value of 0 mm in each block can also be determined to determine whether there is a target obstruction in the target area. The method is the same as the method of determining whether there is a target obstruction in the target area by using the distribution and percentage of the first distance value of 600 mm that meets a specific range.

[0078] In addition, when determining the distribution of the first distance value that meets the specific range, the first distance value of the center point of the area surrounded by the multiple first distance values ​​can also be determined at the same time. For example, at the first moment, the distribution of the first distance value that meets the specific range is the distribution of the distance value of 600mm in block 1. At this time, the center point can be determined based on the multiple 600mm distribution areas, such as the circular mark in the figure, which is the center point of the area. At the second moment, the distribution of the first distance value that meets the specific range is the distribution of the distance value of 600mm in block 2. At this time, the center point can be determined based on the multiple 600mm distribution areas, such as the circular mark in the figure, which is the center point of the area. The processor can determine whether there are still target obstructions in the target area by determining whether the first distance values ​​of the two center point positions are consistent. For example, at the first moment, the user is sitting upright in front of the device, and at the second moment, the user leans to the left on the armrest of the seat. At this time, his body shape and posture change, so the distribution of the first distance value calculated in block 2 is changed compared to the first distance value in block 1 calculated at the first moment. At this time, the processor can determine whether the user is still in front of the device based on the first distance values ​​in the two blocks that meet a specific range, such as whether the first distance values ​​at the center point of the distribution area of ​​600mm are consistent, or meet a certain threshold.

[0079] In order to better illustrate the technical solution of the present application, the following is a detailed description with specific embodiments:

[0080] Embodiment 1:

[0081] For example, when the electronic device is currently in operation, in order to ensure whether the user is currently in front of the device, it will project about 12-30 ranging light signals to the user. The sensor matrix on the electronic device collects the reflected ranging light signals and transmits them to the processor of the device. The processor determines the first distance values ​​calculated one by one based on each reflected ranging light signal based on the data transmitted by the sensor. After determining each first distance value in the first distance value set, the processor can judge and screen all the first distance values ​​in the first distance value set based on the preset judgment standard or screening standard that characterizes the distance between the human body and the device to obtain a first distance value that meets a specific range, such as a value within 500mm-600mm. Then, the processor determines the distribution information of the first distance value that meets the specific range (or determines the distribution information of all first distance values), specifically including the proportion and percentage of the first distance value that meets the specific range relative to all distance values ​​in the first distance value set. After obtaining the distribution information of the first distance value, the electronic device can call out the historical distribution data collected and calculated when the user was in front of the device in the past time period, such as the data at the last collection time, or the data collected when the user logged into the device, etc., and determine the difference between the first distance value distribution information currently collected and processed and the ratio or percentage of the historical distribution data, and finally determine whether it is within the preset threshold based on the difference. If so, it is determined that the current user is in front of the device, otherwise not in front of the device. Or by comparing whether the center point position of the first distance value distribution is consistent with the center point position of the historical distribution data, if it is consistent, it means that the user is in front of the device, otherwise not, or by comparing whether the number of specific distance values ​​is equivalent, to determine whether the user is in front of the device, for example, whether the collected data is approximately consistent with the number of distance values ​​of 500mm or 600mm in the historical data, if it is approximately consistent, such as there are 6 in the collected data and 7 in the historical data, it is determined that the user is in front of the device, otherwise, not in front of the device.

[0082] Embodiment 2:

[0083] When the user turns on the camera to log in to the system by taking a photo for face recognition, the device starts to "track" the user to determine whether the user is still in front of the device. The judgment method is to emit a ranging light signal to the front of the device, and calculate and determine based on the returned light signal. The specific process can refer to the first embodiment. When the electronic device finds that the first distance value distribution information changes greatly in the current or surrounding time period based on the first distance value distribution information calculated by the reflected ranging light signal, it can notify the processor to control the camera to take a photo to determine whether the user is still in front of the device based on the photo. If it is still in front of the device, the processor can determine the angle between the actual position of the user and the device based on the photo, and then control and adjust the emission angle of the ranging light signal based on the angle. Alternatively, the processor can control the camera to start the camera once at a time to assist the device to accurately determine whether the user is still in front of the device. When taking a photo, the device can control the ranging light signal to be emitted at the same time to calculate the new first distance value distribution information based on the reflected light signal. If the distribution information can still determine that the user is in front of the device, the first distance value distribution information used as verification data before can be updated based on the distribution information. In addition, preferably, when the user turns on the camera to take a photo, the user's identity can be determined through the captured photo or the face recognition result. For example, the electronic device is a household device, and there are elderly people and children, or disabled people in the family. When it is determined based on the photo or the recognition result that the user currently in front of the device is an elderly or disabled person, the camera's shooting frequency can be controlled to be reduced because such users move and act relatively slowly. When the user is determined to be a child, the camera's shooting frequency can be controlled to be increased because children are flexible and active, so as to assist the device in more quickly determining whether the user is still in front of the device.

[0084] like Figure 6 As shown, the embodiment of the present application also provides an electronic device, including:

[0085] A light source matrix, which is used to simultaneously emit a first number of ranging light signals;

[0086] a processor, configured to receive a ranging light signal reflected by an obstruction in a target area, determine a first set of distance values ​​between each obstruction and the electronic device based on the reflected ranging light signal, and process the first set of distance values ​​to determine whether there is a specific type of obstruction in the target area based at least on a distribution of values ​​in the first distance values ​​that fall within a specific range;

[0087] Among them, the first quantity is 10-150.

[0088] For example, the electronic device has a light source matrix, such as a 6*6 matrix, an 8*8 light source matrix, etc., which can simultaneously emit a first number of ranging light signals, that is, it can emit a first number of light for ranging. The specific number of the first number of ranging light signals can be 10-150. In actual application, any value within the range can be selected to determine the number of ranging light signals. Further, the light signal will be emitted into the target area, which can be an area in front of the device, such as an area facing the device. There will be an obstruction in the target area for blocking the propagation of the light signal. The ranging light signal will at least partially return to the location of the device after being reflected by the obstruction and received by the sensor set on the device. When applied, a sensor matrix can be set on the electronic device to receive the ranging light signal reflected by the obstruction. When the sensor receives the ranging light signal, it will be sent to the processor of the electronic device, so that the processor determines the first distance value between each obstruction and the electronic device based on the reflected ranging light signal. The multiple first distance values ​​are equal or unequal and form a set, that is, the first distance value set. In order to determine whether there is a specific type of obstruction in the target area, the processor will process the first distance value in the obtained first distance value set to determine the value in the first distance value that meets the specific range, and then determine the distribution information of the first distance value that meets the range, and determine whether there is a specific type of obstruction in the target area based on the distribution information.

[0089] Based on the disclosure of the above embodiments, it can be known that the beneficial effects of the embodiments of the present application include the ability to effectively determine whether a user or other specific types of obstructions are within the target area, such as whether they are in front of the device, without having to take or analyze photos or other images. Even if the user or other specific types of obstructions moves, the electronic device can quickly determine whether they are still within the target area. The judgment process has simple logic and high accuracy, and can significantly reduce the processing load and power consumption of the device.

[0090] Specifically, in the present embodiment, the specific type of obstruction is a human body, or a part of a human body, and the number of ranging light signals emitted by the dot matrix light source, that is, the first number, is preferably 12-30, but may be other numbers.

[0091] Furthermore, in this embodiment, the processor processes the first distance value set including:

[0092] Determine specific values ​​of all first distance values ​​in the first distance value set;

[0093] Determine a first distance value in the specific value that meets a specific range;

[0094] At least distribution information of the first distance value that meets the specific range is determined, and the distribution information at least includes the ratio of the first distance value that meets the specific range to all distance values ​​in the first distance value set, or the location information of the collection point used to collect the distance measurement data of the first distance value that meets the specific range.

[0095] For example, the sensor matrix on the electronic device collects the reflected ranging light signal and transmits it to the processor of the device. The processor determines the first distance values ​​calculated based on each reflected ranging light signal based on the data transmitted by the sensor. The multiple first distance values ​​at least represent the distance values ​​between each obstruction in the target area and the device. After determining each first distance value in the first distance value set, the processor can judge and filter all the first distance values ​​in the first distance value combination based on the preset judgment standard or screening standard that characterizes the distance between the target obstruction and the device to obtain a first distance value that meets a specific range. For example, the first distance value set includes values ​​of 0-800mm, and the judgment standard and screening standard can be 600mm, 500mm-600mm, etc., which are not specific. After determining the first distance value within the specific range in the first distance value set, the processor may at least determine the distribution information of the first distance value within the specific range (or determine the distribution information of all first distance values), the distribution information at least includes the ratio of the first distance value within the specific range to all distance values ​​in the first distance value set, or the location information of the collection point used to collect the distance measurement data for the first distance value within the specific range, that is, the processor calculates the first distance value within the specific range based on which ranging light signals are collected, and the ranging light signals corresponding to the first distance value within the specific range are emitted by which light sources, so as to determine the above-mentioned location information of the collection point based on the location information of the light source. After obtaining the location information, the processor can determine the outline of the target obstruction based on multiple location information, and use the outline to assist in determining whether there is a target obstruction in the target area. Alternatively, the determined proportion information is used to assist in determining whether there is a target obstruction in the target area, especially when it has been determined that there is a target obstruction in the target area, but the target obstruction has moved, such as when the target obstruction is a human body. When the user moves his body, or lowers his head to write something, or bends down to pick up something, the user's body shape has changed. If the determination of whether the user is in the target area is made based solely on the user's body contour, there may be certain errors. Therefore, at this time, the ratio information of the first distance value that meets the specific range relative to all the first distance values ​​can be used to assist in determining whether the user is still in the target area, with higher accuracy.

[0096] Further, in this embodiment, the processor determines whether there is a specific type of obstruction in the target area based on at least the distribution of values ​​in the first distance value that conform to a specific range, including:

[0097] Determine whether there is a specific type of obstruction in the target area based on the distribution of values ​​in the first distance value that match a specific range and historical distribution data;

[0098] The historical distribution data includes distribution information of the distance value between a specific type of obstruction and the device when there is an obstruction of the specific type in the target area.

[0099] That is, historical distribution data is determined in advance, and the historical distribution data is at least distribution information of the first distance value that meets the specific range when the target obstruction is determined to exist in the target area. After the device determines the distribution information of the first distance value that currently meets the specific range, the distribution information of the current first distance value can be compared and calculated with the historical distribution information to determine whether the distribution information of the current first distance value indicates that there is a target obstruction in the target area based on the historical distribution information.

[0100] Specifically, in this embodiment, determining whether there is a specific type of obstruction in the target area based on the distribution of values ​​that meet a specific range and historical distribution data includes:

[0101] If the distribution of values ​​that satisfy a specific range in the first distance value set collected at the previous moment can determine that there is a specific type of obstruction in the target area, then based on the distribution of values ​​that satisfy the specific range in the first distance value set collected at the current moment and the distribution of the first distance values ​​that satisfy the specific range collected at the previous moment, it is determined whether there is a specific type of obstruction in the target area.

[0102] That is, at the last moment, if the device determines based on the collected information that there is a target obstruction in the target area, the first distance value and its distribution information can be stored for use as verification data when the device determines whether there is a target obstruction in the target area at the next moment.

[0103] For example, at the first moment, the device collects a set of reflected ranging light signals, and determines a first distance value set based on the light signals, and then processes the first distance value set according to the aforementioned steps to obtain distribution information of the first distance value that meets a specific range, and after determining that the distribution information can represent that the user is in the target area in front of the device, the device will store and record the distribution information calculated and determined at the first moment. When the second moment after the first moment is reached, the device collects a new reflected ranging light signal, and calculates and determines new distribution information of the first distance value that meets the specific range based on the ranging light signal, the device can judge the distribution information calculated and determined at the second moment based on the stored distribution information calculated and determined at the corresponding first moment, and then determine whether the user is still in the target area based on the distribution information determined at the second moment. By using the distribution information calculated and determined at the previous moment to characterize the presence of a target obstruction in the target area as verification data for whether the distribution information calculated and determined at the next moment can determine whether the presence of a target obstruction in the target area is present, the data processing load of the device can be effectively reduced, especially compared with comparing the distribution information corresponding to the user's initial posture each time, the data processing load of the device can be greatly reduced. Because the user's posture changes when using the device, if the data distribution is compared with the user's initial state data distribution each time, the amount of data processing is large and the accuracy of the processing result is reduced to a certain extent. Therefore, if the method of this embodiment is adopted, since the data is compared with the data of the previous moment that can determine that the target obstruction is located in the target area each time, the amount of data change will not change significantly, thereby reducing the data processing load and making it easier for the device to track the position of the target obstruction and quickly determine whether there is a target obstruction in the target area.

[0104] Further, continuing with the previous embodiment, after determining the distribution information calculated at the first moment, if the device wants to determine whether the distribution information can represent the presence of a target obstruction in the target area, the distribution information at the first moment can be compared with the historical distribution data to determine whether the distribution information at the first moment can determine the presence of a target obstruction in the target area based on the historical distribution data. The historical distribution data can be the distribution data of the first distance value that meets a specific range and is collected when the device collects the user's biometric information for identity authentication. For example, when the device uses the facial recognition function to scan the user's facial features to unlock and start the device system, the user must be in front of the device. Therefore, when the device collects the user's facial features, it collects and determines the first distance value set, and calculates and determines the distribution information based on the first distance value in the first distance value set. At this time, the distribution information can definitely determine that there is a target obstruction in the target area, so the distribution information device can be used as the verification data by default, which is the user's initial state data; or the historical distribution data is the distribution data of the first distance value that meets the specific range obtained by the device after accumulation and learning. That is, the device will continuously learn based on the distribution information collected and calculated by the device each time the user uses the device, and then obtain distribution information that can characterize the target obstruction in the target area, so as to verify the distribution information obtained at the first moment based on the distribution information.

[0105] Furthermore, in this embodiment, the processor determines whether there is a specific type of obstruction in the target area based on the distribution of values ​​that meet a specific range and historical distribution data, including:

[0106] When it is determined that the difference between the distribution based on the values ​​that meet the specific range and the historical distribution data meets the threshold range, it is determined that there is a specific type of occluder in the target area.

[0107] For example, it can be:

[0108] Determine a ratio of the first distance value that meets the specific range to the first distance value set;

[0109] If the difference between the ratio and the ratio of values ​​in the historical distribution data that meet the specific range meets the threshold range, it is determined that there is a specific type of occluder in the target area.

[0110] Specifically, for example, as shown in the figure, 600mm is taken as the distance value of the target obstruction from the device, and the first distance value of 600mm is the first distance value that meets the specific range. The distribution of the first distance values ​​recorded in block 1 can characterize the presence of target obstructions in the target area. Specifically, there are 8 first distance values ​​of 600mm in block 1, and 7 first distance values ​​of 600mm in block 2. The ratio of their respective percentages can be compared with the reference range value of the preset value. For example, the reference range value is 30%-50%. If the ratio of the percentages meets the reference range value, it can be determined that the distribution of the first distance values ​​recorded in block 2 can determine that there is a target obstruction in the target area.

[0111] Alternatively, the distribution and percentage of the first distance value of 0 mm in each block can also be determined to determine whether there is a target obstruction in the target area. The method is the same as the method of determining whether there is a target obstruction in the target area by using the distribution and percentage of the first distance value of 600 mm that meets a specific range.

[0112] In addition, when determining the distribution of the first distance value that meets the specific range, the first distance value of the center point of the area surrounded by the multiple first distance values ​​can also be determined at the same time. For example, at the first moment, the distribution of the first distance value that meets the specific range is the distribution of the distance value of 600mm in block 1. At this time, the center point can be determined based on the multiple 600mm distribution areas, such as the circular mark in the figure, which is the center point of the area. At the second moment, the distribution of the first distance value that meets the specific range is the distribution of the distance value of 600mm in block 2. At this time, the center point can be determined based on the multiple 600mm distribution areas, such as the circular mark in the figure, which is the center point of the area. The processor can determine whether there are still target obstructions in the target area by determining whether the first distance values ​​of the two center point positions are consistent. For example, at the first moment, the user is sitting upright in front of the device, and at the second moment, the user leans to the left on the armrest of the seat. At this time, his body shape and posture change, so the distribution of the first distance value calculated in block 2 is changed compared to the first distance value in block 1 calculated at the first moment. At this time, the processor can determine whether the user is still in front of the device based on the first distance values ​​in the two blocks that meet a specific range, such as whether the first distance values ​​at the center point of the distribution area of ​​600mm are consistent, or meet a certain threshold.

[0113] The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present application. The protection scope of the present application is defined by the claims. Those skilled in the art may make various modifications or equivalent substitutions to the present application within the essence and protection scope of the present application, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present application.

Claims

1. A data processing method, applied to an electronic device; the method comprising: Simultaneously transmitting a first number of ranging optical signals, the first number being a plurality; Receiving a ranging light signal reflected by an obstruction in a target area, and determining a first distance value set between each obstruction and the electronic device at different times based on the reflected ranging light signal; In the event that the obstruction moves, distribution information of first distance values ​​that fall within a specific range in a first distance value set at a first moment corresponding to the movement of the obstruction and distribution information of first distance values ​​that fall within a specific range in a first distance value set at a second moment are obtained, and based on a comparison between the distribution information of the first distance values ​​at the first moment and the distribution information of the first distance values ​​at the second moment, it is determined whether there is a specific type of obstruction in the target area when the camera is not in a working state, so as to at least reduce the operating power consumption of the camera for the electronic device.

2. The method according to claim 1, wherein: The specific type of obstruction is a human body, obtaining distribution information of first distance values ​​that meet a specific range in a first distance value set at a first moment corresponding to the movement of the obstruction, and distribution information of first distance values ​​that meet a specific range in a first distance value set at a second moment, and comparing the distribution information of the first distance values ​​at the first moment with the distribution information of the first distance values ​​at the second moment, and determining whether there is a specific type of obstruction in the target area when the camera is not in operation, including: Determine a first center point position based on distribution information of a first distance value at a first moment; Determine the second center point position based on the distribution information of the first distance value at the second moment; If the difference between the first center point position and the second center point position is within a preset threshold, it is determined that there is a specific type of obstruction in the target area.

3. The method according to claim 1, processing the first distance value set at least in the following manner: Determine specific values ​​of all first distance values ​​in the first distance value set; Determine a first distance value among the specific values ​​that meets the specific range; At least determine the distribution information of the first distance value that meets the specific range, and the distribution information at least includes the ratio of the first distance value that meets the specific range to all distance values ​​in the first distance value set, or the location information of the collection point used to collect the distance measurement data of the first distance value that meets the specific range.

4. The method according to claim 3, wherein: Determining whether there is a specific type of obstruction in the target area includes: Determine whether there is a specific type of obstruction in the target area based on the distribution of values ​​in the first distance values ​​that meet a specific range and historical distribution data; The historical distribution data includes distribution information of the distance value between a specific type of obstruction and the device when there is an obstruction of the specific type in the target area.

5. The method according to claim 4, wherein: The determining whether there is a specific type of obstruction in the target area based on the distribution of values ​​that conform to a specific range and historical distribution data includes: If the distribution of values ​​that meet a specific range in the first distance value set collected at the previous moment can determine that there is a specific type of obstruction in the target area, then based on the distribution of values ​​that meet the specific range in the first distance value set collected at the current moment and the distribution of the first distance value that meets the specific range collected at the previous moment, it is determined whether there is a specific type of obstruction in the target area.

6. The method according to claim 4, wherein: The historical distribution data is distribution data of first distance values ​​within a specific range that are collected when the device collects biometric information of the user for identity authentication; or The historical distribution data is distribution data of the first distance value that meets a specific range and is obtained after accumulation and learning by the device.

7. The method according to claim 4, wherein: The determining whether there is a specific type of obstruction in the target area based on the distribution of values ​​that conform to a specific range and historical distribution data includes: When it is determined that the difference between the distribution based on the values ​​that meet the specific range and the historical distribution data meets the threshold range, it is determined that there is a specific type of obstruction in the target area.

8. The method according to claim 4, wherein: The determining whether there is a specific type of obstruction in the target area based on the distribution of values ​​that conform to a specific range and historical distribution data includes: Determine a ratio of the first distance value that meets the specific range to the first distance value set; If the difference between the ratio and the ratio of values ​​in the historical distribution data that conform to a specific range meets a threshold range, it is determined that there is a specific type of obstruction in the target area.

9. An electronic device, comprising: A light source matrix, which is used to simultaneously emit a first number of ranging light signals, wherein the first number is a plurality; A processor is used to receive a ranging light signal reflected by an obstruction in a target area, and determine a first distance value set between each obstruction and the electronic device at different times based on the reflected ranging light signal, and in the case where the obstruction moves, obtain distribution information of first distance values ​​that meet a specific range in the first distance value set at the first moment corresponding to the movement of the obstruction, and distribution information of first distance values ​​that meet a specific range in the first distance value set at the second moment, and compare the distribution information of the first distance values ​​at the first moment with the distribution information of the first distance values ​​at the second moment, and determine whether there is a specific type of obstruction in the target area when the camera is not in operation, so as to at least reduce the operating power consumption of the camera for the electronic device.

10. The electronic device according to claim 9, wherein: The specific type of obstruction is a human body, obtaining distribution information of first distance values ​​that meet a specific range in a first distance value set at a first moment corresponding to the movement of the obstruction, and distribution information of first distance values ​​that meet a specific range in a first distance value set at a second moment, and comparing the distribution information of the first distance values ​​at the first moment with the distribution information of the first distance values ​​at the second moment, and determining whether there is a specific type of obstruction in the target area when the camera is not in operation, including: Determine a first center point position based on distribution information of a first distance value at a first moment; Determine the second center point position based on the distribution information of the first distance value at the second moment; If the difference between the first center point position and the second center point position is within a preset threshold, it is determined that there is a specific type of obstruction in the target area.

Citation Information

Patent Citations

  • Terminal and control method thereof

    CN106125920A

  • Unlocking method and device based on laser ranging, device and mobile terminal

    CN106339614A

  • Image processing method and device

    CN108513664A

  • Face recognition method, device and equipment and computer readable storage medium

    CN110956134A