Control method of electronic device and electronic device

By designing a multi-mode laser projector and processor in a mobile phone to determine the usage status, the problem of limited use scenarios and high cost of the laser projector is solved, and the efficient use and cost saving of the laser projector in various statuses are achieved.

CN113810530BActive Publication Date: 2024-10-11GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111107307.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-05-31
Publication Date
2024-10-11
Estimated Expiration
2039-05-31

AI Technical Summary

Technical Problem

The laser projectors in existing mobile phones are mainly used for short-range front-facing use, resulting in limited usage scenarios, and two laser projectors are required to be used in different usage states, which increases the cost.

Method used

An electronic device is designed, including a casing, a first display screen, a second display screen and a laser projector. The use state is determined by a processor. The laser projector projects laser in different modes under different use states. The second mode The laser energy is greater than that of the first mode, enabling the laser projector to be used in a variety of usage states, reducing the number of laser projectors and saving costs.

Benefits of technology

It expands the use scenarios of laser projectors, avoids the need for two laser projectors in different use states, reduces production costs, and improves the use experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113810530B_ABST
    Figure CN113810530B_ABST
Patent Text Reader

Abstract

The present application discloses an electronic device and a control method of the electronic device. The electronic device includes a housing, a first display screen, a second display screen and a laser projector. The housing includes a first surface and a second surface opposite to each other. The first display screen and the second display screen are respectively arranged on the first surface and the second surface. The laser projector is arranged on the first surface. The control method includes: determining the use state of the electronic device; when the electronic device is in the first use state, the laser projector projects the laser in a first mode; and, when the electronic device is in the second use state, the laser projector projects the laser in a second mode, and the energy of the laser projected in the second mode is greater than the energy of the laser projected in the first mode. The maximum distance that the laser projector can project in the second use state is greater than the maximum distance that it can project in the first use state, so that the laser projector can be used in the first use state and the second use state at the same time, increasing the scenarios in which the user can use the electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of consumer electronic products, and in particular to a control method of an electronic device and an electronic device. Background Art

[0002] In existing mobile phones with laser projectors, the laser projector is generally set on the front shell of the mobile phone, and the laser projector is only used in the front usage state with a short shooting distance. For example, the laser projector is only used in the front usage state of acquiring depth images, resulting in fewer scenarios in which mobile phone users can use the laser projector. Summary of the invention

[0003] Embodiments of the present application provide a control method for an electronic device and an electronic device.

[0004] The control method of an electronic device of the present application, the electronic device includes a housing, a first display screen, a second display screen and a laser projector, the housing includes a first surface and a second surface opposite to each other, the first display screen and the second display screen are respectively arranged on the first surface and the second surface, and the laser projector is arranged on the first surface; the control method includes: determining the use state of the electronic device; when the electronic device is in the first use state, the laser projector projects the laser in a first mode; and, when the electronic device is in the second use state, the laser projector projects the laser in a second mode, the energy of the laser projected in the second mode being greater than the energy of the laser projected in the first mode.

[0005] The electronic device of the present application includes a housing, a first display screen, a second display screen, a laser projector and a processor, the housing includes a first surface and a second surface opposite to each other, the first display screen and the second display screen are respectively arranged on the first surface and the second surface, and the laser projector is arranged on the first surface; the processor is used to determine the use status of the electronic device; the laser projector is used to project laser in a first mode when the electronic device is in a first use status, and is used to project laser in a second mode when the electronic device is in a second use status, and the energy of the laser projected in the second mode is greater than the energy of the laser projected in the first mode.

[0006] In the electronic device and the control method of the electronic device of the present application, the first display screen and the second display screen are respectively arranged on opposite sides of the casing, the laser projector and the first display screen are arranged on the same side of the casing, and the maximum distance that the laser projector can project in the second usage state is greater than the maximum distance that it can project in the first usage state, so that the laser projector can be used in the first usage state and the second usage state at the same time, increasing the scenarios in which the user can use the electronic device; at the same time, there is no need to set two laser projectors on the electronic device to be used in the first usage state and the second usage state respectively, saving the cost of the electronic device.

[0007] Additional aspects and advantages of the embodiments of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0009] Figure 1 and Figure 2 It is a schematic diagram of the structure of an electronic device of certain embodiments of the present application.

[0010] Figure 3 It is a flowchart of a control method of an electronic device in certain embodiments of the present application.

[0011] Figure 4 It is a schematic diagram of the structure of a laser light source of a laser projector of an electronic device in certain embodiments of the present application.

[0012] Figure 5 It is a schematic diagram of the three-dimensional structure of an electronic device according to some embodiments of the present application.

[0013] Figure 6 and Figure 7 It is a flowchart of a control method of an electronic device in certain embodiments of the present application.

[0014] Figure 8 It is a schematic diagram of the three-dimensional structure of an electronic device according to some embodiments of the present application.

[0015] Fig. 9 yes Figure 8 The electronic device is shown in a cross-sectional view along line IX-IX.

[0016] Figures 10 to 12 The electronic device of some embodiments of the present application is along with Figure 8 The cross-sectional view shown is taken along the same section line as line IX-IX.

[0017] Fig.13and Fig.14 It is a schematic diagram of the structure of an electronic device of certain embodiments of the present application.

[0018] Fig.15 and Fig.16 The electronic device of some embodiments of the present application is along with Figure 8 The cross-sectional view shown is taken along the same section line as line IX-IX.

[0019] Fig.17 It is a schematic diagram of the system architecture of an electronic device according to certain embodiments of the present application.

[0020] Fig.18 It is a flowchart of a control method of an electronic device in certain embodiments of the present application.

[0021] Fig.19 It is a schematic diagram of the principle of a control method for an electronic device in certain embodiments of the present application.

[0022] Figure 20 to Figure 23 It is a flowchart of a control method of an electronic device in certain embodiments of the present application.

[0023] Fig.24 It is a schematic diagram of the principle of a control method for an electronic device in certain embodiments of the present application.

[0024] Fig.25 It is a flowchart of a control method of an electronic device in certain embodiments of the present application. DETAILED DESCRIPTION

[0025] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals represent the same or similar elements or elements having the same or similar functions from beginning to end. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the embodiments of the present application, and cannot be understood as limiting the embodiments of the present application.

[0026] See also Figures 1 to 3 , a control method of an electronic device 100 of the present application, wherein the electronic device 100 includes a housing 11, a first display screen 12, a second display screen 13 and a laser projector 14, the housing 11 includes a first surface 111 and a second surface 112 opposite to each other, the first display screen 12 and the second display screen 13 are respectively arranged on the first surface 111 and the second surface 112, and the laser projector 14 is arranged on the first surface 111, and the control method includes:

[0027] 031, determining the usage status of the electronic device 100;

[0028] 032, when the electronic device 100 is in the first use state, the laser projector 14 projects laser light in the first mode; and

[0029] 033. When the electronic device 100 is in the second usage state, the laser projector 14 projects laser light in a second mode, and the energy of the laser light projected in the second mode is greater than the energy of the laser light projected in the first mode.

[0030] The electronic device 100 of the present application can be used to implement the above control method. Specifically, the electronic device 100 further includes a processor 20, step 031 can be implemented by the processor 20, and both steps 032 and 033 can be implemented by the laser projector 14. That is, the processor 20 can be used to determine the use state of the electronic device 100, and the laser projector 14 can be used to project the laser in a first mode when the electronic device 100 is in a first use state, and to project the laser in a second mode when the electronic device 100 is in a second use state.

[0031] The electronic device 100 may be a mobile phone, a tablet computer, a laptop computer, a smart wearable device (smart watch, smart bracelet, smart helmet, smart glasses, etc.), a virtual reality device, etc. This application takes the electronic device 100 as a mobile phone as an example for explanation, but the form of the electronic device 100 is not limited to a mobile phone.

[0032] The electronic device 100 further includes an image collector 15 disposed on the first surface 111. The laser projector 14 cooperates with the image collector 15 to obtain depth information of the object to be measured for three-dimensional modeling, generation of three-dimensional images, distance measurement, etc. The laser projector 14 and the image collector 15 can be installed on a bracket, and then the bracket, the laser projector 14 and the image collector 15 are installed together in the housing 11.

[0033] In the embodiment of the present application, the use state of the electronic device 100 includes a first use state and a second use state. Relative to the user of the electronic device 100, the orientation of the laser projector 14 in the first use state and the second use state is opposite. Among them, the first use state can be a front use state. When the electronic device 100 is in the front use state, the first display screen 12 and the laser projector 14 face the user of the electronic device 100. At this time, the user can view the content displayed on the first display screen 12 and can use the laser projector 14 to project a laser toward the user's side. The user can use the laser projector 14 (and the image collector 15) for face recognition, iris recognition, etc. The second usage state may be a rear usage state. When the electronic device 100 is in the rear usage state, the first display screen 12 and the laser projector 14 face away from the user of the electronic device 100, and the second display screen 13 faces the user of the electronic device 100. At this time, the user can watch the content displayed on the second display screen 13 and can use the laser projector 14 to project a laser toward a side away from the user. For example, the user can use the laser projector 14 (and the image collector 15) to obtain a depth image of the object to be measured on the side of the electronic device 100 away from the user.

[0034] In the embodiment of the present application, the mode in which the laser projector 14 projects the laser includes a first mode and a second mode, wherein the first mode corresponds to the laser projector 14 being in a front-end use state, the second mode corresponds to the laser projector 14 being in a rear-end use state, and the energy of the laser projected in the second mode is greater than the energy of the laser projected in the first mode. Specifically, the power of the laser projector 14 in projecting the laser in the first mode may be less than the power of the laser projected in the second mode, so that the energy of the laser projected in the second mode is greater than the energy of the laser projected in the first mode, and at this time, the maximum distance (projection distance) that the laser projected by the laser projector 14 in the second mode can reach is greater than the maximum distance (projection distance) that the laser projected in the first mode can reach. At the same time, the rear distance range that the laser projector 14 and the image collector 15 can detect in the rear use state is greater than the front distance range that the laser projector 14 and the image collector 15 can detect in the front use state, for example: the front distance range that the laser projector 14 and the image collector 15 can detect is within 25 cm, while the rear distance range that the laser projector 14 and the image collector 15 can detect is greater than 25 cm (the accuracy of the distance range within 25 cm is very poor); or, the front distance range and the rear distance range have a slight intersection, for example, the front distance range that the laser projector 14 and the image collector 15 can detect is within 25 cm, while the rear distance range that the laser projector 14 and the image collector 15 can detect is greater than 20 cm.

[0035] In the electronic device 100 and the control method of the electronic device 100 of the present application, the first display screen 12 and the second display screen 13 are respectively arranged on opposite sides of the housing 11, the laser projector 14 and the first display screen 12 are arranged on the same side of the housing 11, and the maximum distance that the laser projector 14 can project in the second usage state is greater than the maximum distance that it can project in the first usage state, so that the laser projector 14 can be used in the first usage state and the second usage state at the same time, increasing the scenarios in which the user can use the electronic device 100; at the same time, there is no need to set two laser projectors 14 on the electronic device 100 to be used in the first usage state and the second usage state respectively, saving the cost of the electronic device 100.

[0036] See also Figure 4 In some embodiments, the laser projector 14 includes a laser light source 140, and the laser light source 140 includes a plurality of point light sources 141. The plurality of point light sources 141 can be independently controlled. Specifically, each point light source 141 can be independently turned on and off. The number of point light sources 141 turned on by the laser projector 14 in the first mode is less than the number of point light sources 141 turned on in the second mode. At this time, the power of the laser projected by each point light source 141 can be the same, so that the energy of the laser projected in the second mode is greater than the energy of the laser projected in the first mode, and the maximum distance that the laser projected by the laser projector 14 in the second mode can reach is also greater than the maximum distance that the laser projected in the first mode can reach.

[0037] See also Figure 4 In some embodiments, a plurality of point light sources 141 form a plurality of light arrays 142, and the plurality of light arrays 142 are independently controlled. Specifically, the plurality of point light sources 141 in each light array 142 can be turned on and off at the same time, and at this time, the power of the plurality of point light sources 141 in each light array 142 can be the same. In other embodiments, the plurality of point light sources 141 in each light array 142 can also be independently controlled.

[0038] In this embodiment, a plurality of light arrays 142 are arranged in a ring shape. The laser light emitted by the point light source 141 in the light array 142 arranged in a ring shape can cover a wider field of view, so that more depth information of the object to be measured can be obtained. The ring shape can be a square ring shape or a circular ring shape.

[0039] See also Figure 4 In some embodiments, as the projection distance increases, the light array 142 is turned on in the following manner: the light array 142 that is farther from the center of the laser light source 140 is turned on first. Figure 4, the total number of light-emitting arrays 142 is 6, and the 6 light-emitting arrays 142 include 5 annular sub-arrays 144 and 1 square sub-array 143. The 5 annular sub-arrays 144 are arranged in sequence along the direction close to the center of the laser light source 140, and the 5 annular sub-arrays 144 arranged in sequence are numbered A, B, C, D, and E. In this embodiment, the laser projector 14 turns on the point light sources 141 in the annular sub-arrays 144 numbered A and B in the first mode; the laser projector 14 can turn on the point light sources 141 in the annular sub-arrays 144 numbered A, B, and C, or turn on the point light sources 141 in the annular sub-arrays 144 numbered A, B, C, and D, or turn on the point light sources 141 in the annular sub-arrays 144 numbered A, B, C, D, and E, or turn on the point light sources 141 in the annular sub-arrays 144 numbered A, B, C, D, and E and the point light sources 141 in the square sub-array 143 in the second mode.

[0040] In this embodiment, the number of point light sources 141 turned on by the laser projector 14 in the first mode is less than the number of point light sources 141 turned on in the second mode, so that the energy of the laser projected by the electronic device 100 when it is in the first usage state is less than the energy of the laser projected when it is in the second usage state.

[0041] It can be understood that the diffractive optical element 146 ( Fig. 9 The diffraction ability of the laser light source 140 is limited, that is, part of the laser light emitted by the laser light source 140 will not be diffracted but will be directly emitted, and the directly emitted laser light will not be diffracted by the diffraction attenuation effect of the diffraction optical element 146. However, the energy of the directly emitted laser light is relatively large, and it is very likely to cause harm to the user's eyes. Therefore, when the electronic device 100 is in the first use state, the laser projector 14 projects the laser light in the first mode, that is, when the projection distance is small, the laser projector 14 first turns on the annular sub-array 144 away from the center of the laser light source 140, which can prevent the laser light projected by the laser light source 140 from being directly projected to the user's eyes without the diffraction attenuation effect of the diffraction optical element 146, thereby improving the safety of the laser projector 14; when the electronic device 100 is in the second use state, the laser projector 14 projects the laser light in the second mode, that is, when the projection distance is large, the laser projector 14 simultaneously turns on the annular sub-array 144 away from the center of the laser light source 140 and the annular sub-array 144 close to the center of the laser light source 140, thereby increasing the maximum distance that the laser light projected by the laser projector 14 can reach.

[0042] See also Figure 5 and Figure 6In some embodiments, the electronic device 100 further includes a gravity sensor 16. The determination of the use state of the electronic device 100 can be achieved by the gravity sensor 16. Specifically, the control method includes:

[0043] 0611, obtain the value of the z-axis of the gravity sensor 16;

[0044] 0612, when the value of the z-axis is greater than the first preset value, determining that the electronic device 100 is in the first use state;

[0045] 0613, when the value of the z-axis is less than the second preset value, determining that the electronic device 100 is in the second use state;

[0046] 062, when the electronic device 100 is in the first use state, the laser projector 14 projects laser light in the first mode; and

[0047] 063. When the electronic device 100 is in the second usage state, the laser projector 14 projects laser light in a second mode, and the energy of the laser light projected in the second mode is greater than the energy of the laser light projected in the first mode.

[0048] The above control method can also be implemented by the electronic device 100, wherein step 0611, step 0612 and step 0613 can be sub-steps of step 031 described above, step 062 is substantially the same as step 032 described above, and step 063 is substantially the same as step 033 described above. Specifically, the processor 20 is electrically connected to the gravity sensor 16, and the processor 20 can also be used to determine the use state of the electronic device 100 through the gravity sensor 16, and the processor 20 can also be used to implement steps 0611, step 0612 and step 0613. That is, the processor 20 can also be used to obtain the value of the z-axis of the gravity sensor 16, determine that the electronic device 100 is in the first use state when the value of the z-axis is greater than the first preset value, and determine that the electronic device 100 is in the second use state when the value of the z-axis is less than the second preset value.

[0049] In this embodiment, the gravity sensor 16 includes a three-axis acceleration sensor 16. Figure 5 , Figure 5 FIG. 1 is a schematic diagram showing the principle of the three-axis acceleration sensor 16 determining the usage status of the electronic device 100. Figure 5 As shown, the x-axis, y-axis, and z-axis are all relative to the position of the housing 11. Usually, the direction of the y-axis is the upward direction of the housing 11, the direction of the x-axis is the rightward direction of the housing 11, and the direction of the z-axis is the outward direction perpendicular to the first surface 111. The value of the z-axis (acceleration value) corresponds to the orientation of the first display screen 12.

[0050] From the perspective of a user using the electronic device 100 (mobile phone), when the electronic device 100 is placed flat on a table with the first display screen 12 facing upward, the value of the x-axis defaults to 0, the value of the y-axis defaults to 0, and the value of the z-axis defaults to 9.81 m / s 2 When the electronic device 100 is placed on the table with the first display screen 12 facing downward, the value of the x-axis defaults to 0, the value of the y-axis defaults to 0, and the value of the z-axis defaults to -9.81 m / s 2 ; When the electronic device 100 is tilted to the left, the value of the x-axis is a positive value; when the electronic device 100 is tilted to the right, the value of the x-axis is a negative value; when the electronic device 100 is tilted upward, the value of the y-axis is a negative value; when the electronic device 100 is tilted downward, the value of the y-axis is a positive value.

[0051] In this embodiment, if the value of the z-axis of the gravity sensor 16 obtained by the processor 20 is greater than the first preset value, for example, the value of the z-axis of the gravity sensor 16 obtained by the processor 20 is 6 m / s 2 , greater than the first preset value 3m / s 2 , it is determined that the first display screen 12 is facing the user of the electronic device 100. At this time, the processor 20 determines that the electronic device 100 is in the first use state; if the value of the z-axis of the gravity sensor 16 obtained by the processor 20 is less than the second preset value, for example, the value of the z-axis of the gravity sensor 16 obtained by the processor 20 is -6m / s 2 , less than the second preset value -3m / s 2 , it is determined that the second display screen 13 is facing the user of the electronic device 100. At this time, the processor 20 determines that the electronic device 100 is in the second usage state.

[0052] The electronic device 100 and control method of the embodiment of the present application determine the usage status of the electronic device 100 through the gravity sensor 16, so that the laser projector 14 can project laser in a corresponding mode without the user manually selecting the usage status of the electronic device 100, thereby improving the user experience of the electronic device 100.

[0053] See also Figure 7 In some embodiments, the first display screen 12 and the second display screen 13 are both touch display screens. The determination of the use state of the electronic device 100 can be achieved by a first touch signal detected by the first display screen 12 and / or a second touch signal detected by the second display screen 13. Specifically, the control method includes:

[0054] 0711, when the first display screen 12 detects a first touch signal, it is determined that the electronic device 100 is in a first use state;

[0055] 0712, when the second display screen 13 detects a second touch signal, determining that the electronic device 100 is in a second usage state;

[0056] 072, when the electronic device 100 is in the first use state, the laser projector 14 projects laser light in the first mode; and

[0057] 073. When the electronic device 100 is in the second usage state, the laser projector 14 projects the laser in a second mode, and the energy of the laser projected in the second mode is greater than the energy of the laser projected in the first mode.

[0058] The above control method can also be implemented by the electronic device 100, wherein step 0711 and step 0712 can be sub-steps of step 031 described above, step 072 is substantially the same as step 032 described above, and step 073 is substantially the same as step 033 described above. Specifically, the processor 20 can also be used to determine the use state of the electronic device 100 through the first touch signal detected by the first display screen 12 and / or the second touch signal detected by the second display screen 13, and the processor 20 can also be used to implement step 0711 and step 0712. That is, the processor 20 can also be used to determine that the electronic device 100 is in the first use state when the first display screen 12 detects the first touch signal, and to determine that the electronic device 100 is in the second use state when the second display screen 13 detects the second touch signal.

[0059] The first touch signal and the second touch signal can both be capacitive signals. The processor 20 is electrically connected to the first display screen 12 and the second display screen 13, and the processor 20 can also obtain the first touch signal detected by the first display screen 12 and the second touch signal detected by the second display screen 13. When the user of the electronic device 100 touches the first display screen 12, the capacitive signal of the first display screen 12 changes and is detected by the first display screen 12 (that is, the first display screen 12 detects the first touch signal). At this time, the first display screen 12 faces the user of the electronic device 100 and is used by the user, and the processor 20 determines that the electronic device 100 is in the first use state. When the user of the electronic device 100 touches the second display screen 13, the capacitive signal of the second display screen 13 changes and is detected by the second display screen 13 (that is, the second display screen 13 detects the second touch signal). At this time, the second display screen 13 faces the user of the electronic device 100 and is used by the user, and the processor 20 determines that the electronic device 100 is in the second use state.

[0060] The electronic device 100 and the control method of the embodiment of the present application determine the use status of the electronic device 100 through the first display screen 12 or the second display screen 13, so that no additional hardware is required on the electronic device 100, thereby saving the production cost of the electronic device 100.

[0061] See also Figure 8 In some embodiments, the electronic device 100 further includes a state selection button 17 electrically connected to the processor 20, and the determination of the use state of the electronic device 100 (step 010) can be implemented by the state selection button 17. Specifically, the processor 20 can also be used to determine the use state of the electronic device 100 through the state selection button 17. The state selection button 17 can be a physical button and includes a first state button 171 and a second state button 172. When the processor 20 detects that the first state button 171 is triggered, the processor 20 determines that the electronic device 100 is in the first use state; when the processor 20 detects that the second state button 172 is triggered, the processor 20 determines that the electronic device 100 is in the second use state. In other embodiments, the state selection button 17 can also be a virtual button, and the state selection button 17 can be displayed by the first display screen 12 and the second display screen 13. For example, the state selection button 17 can be a state switching button displayed by the first display screen 12 or the second display screen 13, and the state switching button is used to switch between the first use state and the second use state.

[0062] The electronic device 100 and the control method of the embodiment of the present application determine the use state of the electronic device 100 through the state selection button 17, so that the user can accurately select the required use state according to needs.

[0063] See also Figure 1 In some embodiments, the electronic device 100 further includes a visible light camera 40, and the visible light camera 40 includes a main camera 41 and a sub-camera 42, and both the main camera 41 and the sub-camera 42 are mounted on the first surface 111 of the housing 11. The main camera 41 can be a wide-angle camera. The wide-angle camera has low sensitivity to motion, and a relatively low shutter speed can ensure the clarity of image capture. The wide-angle camera has a large viewing angle, which can cover a wide range of scenes, and can emphasize the foreground and highlight the near-far contrast. The sub-camera 42 can be a telephoto camera, and the telephoto lens of the telephoto camera can identify objects farther away. Or the main camera 41 is a color camera, and the sub-camera 42 is a black and white camera. The cameras here can be multiple, three or four or more. In this embodiment, the laser projector 14, the sub-camera 42, the main camera 41 and the image collector 15 are arranged in sequence and are located on the same straight line.

[0064] See also Figure 1 and Figure 2The first display screen 12 is mounted on the first surface 111 of the housing 11, and the first display screen 12 can cover 85% or more of the area of ​​the first surface 111, for example, 85%, 86%, 87%, 88%, 89%, 90%, 91%, 92%, 93%, 95% or even 100%. The second display screen 13 is mounted on the second surface 112 of the housing 11, and the second display screen 13 can cover 85% or more of the area of ​​the second surface 112, for example, 85%, 86%, 87%, 88%, 89%, 90%, 91%, 92%, 93%, 95% or even 100%. Both the first display screen 12 and the second display screen 13 can be used to display images, and the images can be text, images, videos, icons and other information.

[0065] The first display screen 12 includes a display area 122, which can be used to display images. To adapt to different types of electronic devices 100 and different user requirements, the display area 122 can be circular, oval, racetrack, rounded rectangle, rectangle, etc.

[0066] Please combine Fig. 9 The display area 122 is formed with a front side 123 and a back side 124 opposite to each other. The display area 122 can be used to display images. The light emitted by the first display screen 12 is emitted outward along the back side 124 pointing to the front side 123. When the electronic device 100 is in the first use state (the user is on the side of the first surface 111), the light can be received by the user after passing through the front side 123, that is, the user can observe the image displayed on the first display screen 12 from the front side 123. It can be understood that the front side 123 is the display surface, and the back side 124 is the surface opposite to the display surface. Both the front side 123 and the back side 124 can be flat or curved.

[0067] In some examples, the first display screen 12 may also include a non-display area, which may be formed at the periphery of the display area 122. The non-display area may not be used for display, but may be used to combine with the housing 11 or for wiring. For example, the non-display area may be combined with the housing 11 by adhesive without affecting the display function of the display area 122. The first display screen 12 may also be a touch display screen with an integrated touch function. After the user obtains the image information displayed on the first display screen 12, he may touch the first display screen 12 to implement a predetermined interactive operation.

[0068] See also Figure 8 In some embodiments, the display area 122 includes a plurality of pixels, and the plurality of pixels are arranged in a predetermined manner, and there are microscopic gaps between adjacent pixels. The display area 122 includes a first sub-display area 1221 and a second sub-display area 1222. The pixel density of the first sub-display area 1221 is less than the pixel density of the second sub-display area 1222.

[0069] The pixel density of the first sub-display area 1221 is smaller than that of the second sub-display area 1222, that is, the microscopic gap of the first sub-display area 1221 is larger than that of the second sub-display area 1222, the first sub-display area 1221 has a smaller light blocking effect, and the light transmittance passing through the first sub-display area 1221 is higher. In other embodiments, the pixel density of the first sub-display area 1221 may also be greater than that of the second sub-display area 1222, or the pixel density of the first sub-display area 1221 may also be equal to that of the second sub-display area 1222.

[0070] In some embodiments, the shapes of the first sub-display area 1221 and the second sub-display area 1222 can be set according to specific needs, which is not limited here. For example, the first sub-display area 1221 can be set to a runway shape, a water drop shape, etc., and the second sub-display area 1222 and the first sub-display area 1221 can complement each other and jointly form a display area 122 in a rectangular or rounded rectangular shape. The first sub-display area 1221 can be located near the edge of the display area 122, and the second sub-display area 1222 can be located in the middle of the display area 122. The first sub-display area 1221 can be used to display the status icon of the electronic device 100. For example, the first sub-display area 1221 can be used to display the battery power, network connection status, system time, etc. of the electronic device 100.

[0071] See also Fig. 9 , the first display screen 12 and the second display screen 13 are both full screens. The laser projector 14 is arranged on the side where the back surface 124 of the first display screen 12 is located, or in other words, the laser projector 14 is arranged below the display area 122 (for example, it can be arranged below the first sub-display area 1221), and the laser projector 14 is used to emit laser light through the display area 122. Specifically, the laser projector 14 may include a laser light source 140, a collimating element 145 and a diffractive optical element 146. The light (for example, an infrared laser) emitted by the laser light source 140 is first collimated by the collimating element 145, and then diffracted by the diffractive optical element 146, and then emitted from the laser projector 14, and then passes through the display area 122 to be projected to the outside world. Diffraction occurs when light passes through microscopic gaps, that is, the microscopic gaps of the display area 122 and the diffractive structures on the diffractive optical element 146 both have a diffraction effect on the light emitted by the laser light source 140.

[0072] The laser light that passes through the display area 122 and enters the outside world may include a pattern formed by diffraction of the diffractive optical element 146 (the pattern includes a plurality of spots diffracted by the diffractive optical element 146), and a pattern formed by diffraction of the microscopic gaps of the first display screen 12 (the pattern includes a plurality of spots diffracted by the diffractive optical element 146 and by the first display screen 12), so that the speckle pattern after passing through the display area 122 has a high degree of irrelevance, which is conducive to the subsequent processing of the obtained speckle pattern. In one example, the transmittance of the display area 122 can reach 60% or more, so that the laser light emitted by the laser projector 14 has a small loss when passing through the display area 122.

[0073] The image collector 15 may be an infrared camera. The laser is emitted to the object to be tested, and after being modulated by the object to be tested, it can be acquired by the image collector 15. After receiving the modulated laser, the image collector 15 obtains a speckle image. After the speckle image is processed, the depth data of the object to be tested is obtained. The image collector 15 may also be arranged on the side where the back surface 124 of the first display screen 12 is located, that is, arranged under the first display screen 12 (for example, it may be arranged under the first sub-display area 1221). At this time, the light incident surface of the image collector 15 may be aligned with the display area 122, and the laser modulated by the object to be tested may be received by the image collector 15 after passing through the display area 122. Specifically, the laser modulated by the object to be tested may be diffracted by the microscopic gap of the first display screen 12 and then received by the image collector 15.

[0074] See also Fig.10 In some embodiments, the electronic device 100 further includes a floodlight 50, which can be used to emit supplementary light outwards. The supplementary light can be used to supplement the light intensity in the environment when the ambient light is weak. In one example, the supplementary light can be infrared light. After the supplementary light is emitted to the object to be tested and reflected by the object to be tested, it can be acquired by the image collector 15 to obtain a two-dimensional image of the object to be tested, and the two-dimensional image information can be used for identity recognition. The floodlight 50 can also be set on the side where the back surface 124 of the first display screen 12 is located, that is, it can be set under the first display screen 12 (for example, it can be set under the first sub-display area 1221). Specifically, the floodlight 50 can be set on the same bracket as the laser projector 14 and the image collector 15. At this time, the supplementary light emitted by the floodlight 50 passes through the microscopic gap of the display area 122 and enters the external environment. The supplementary light after being reflected can pass through the microscopic gap again to be received by the image collector 15.

[0075] In summary, since the laser projector 14 and the image collector 15 are arranged on the side where the back surface 124 of the first display screen 12 is located, there is no need to open an opening on the first display screen 12 to align with the laser projector 14 and the image collector 15, and the screen-to-body ratio of the electronic device 100 is relatively high. In addition, in the embodiment of the present application, the laser projector 14 and the image collector 15 are arranged below the first display screen 12. Compared with the flight time that can collect depth information, the resolution of the depth image obtained by the laser projector 14 and the image collector 15 is relatively high. Using a depth image with a higher resolution in face recognition can improve the accuracy of face recognition, and using a depth image with a higher resolution in three-dimensional scene modeling can improve the matching degree between the modeled three-dimensional scene and the actual scene.

[0076] If the laser projector 14 is arranged below the first display screen 12, the laser projected by the laser projector 14 will be affected by the microscopic gaps in the first display screen 12 when passing through the first sub-display area 1221, that is, the spots in the speckle image projected into the scene include both spots formed by the laser being diffracted only once by the diffraction optical element 146 of the laser projector 14, and spots formed by the laser being diffracted once by the diffraction optical element 146 and then diffracted twice by the first display screen 12. The image collector 15 is arranged below the first display screen 12, and the image collector 15 receives the laser light diffracted by the first display screen 12 after being reflected by the object to be measured and then passing through the first display screen 12. Then, the spots in the speckle image collected by the image collector 15 include spots formed by the laser light being diffracted only once by the diffractive optical element 146 and reflected by the object to be measured, spots formed by the laser light being diffracted once by the diffractive optical element 146 and then being diffracted twice by the first display screen 12 and reflected by the object to be measured, and spots formed by the laser light being diffracted once by the diffractive optical element 146 and then being diffracted twice by the first display screen 12 and then being reflected by the object to be measured and then being diffracted three times by the first display screen 12. When calculating the depth image, the following two calculation methods are included:

[0077] (1) Depth calculation is performed directly based on all the spots in the speckle image. At this time, the reference spots in the reference image include reference spots formed by laser light being diffracted only once by the diffractive optical element 146 and reflected by the calibration object, reference spots formed by laser light being diffracted once by the diffractive optical element 146 and then being diffracted twice by the first display screen 12 and reflected by the calibration object, and reference spots formed by laser light being diffracted once by the diffractive optical element 146 and then being diffracted twice by the first display screen 12 and then being reflected by the calibration object and then being diffracted three times by the first display screen 12.

[0078] (2) Only the spots formed by the laser being diffracted once by the diffractive optical element 146 and reflected by the object to be measured are retained and the remaining spots are filtered out, so as to perform depth calculation based on the remaining spots. At this time, the reference spots in the reference image only include the reference spots formed by the laser being diffracted once by the diffractive optical element 146 and reflected by the calibration object. Among them, the brightness of the spots formed after diffraction of different diffraction times is different. Therefore, various types of spots can be distinguished by brightness, so that unnecessary spots can be filtered out.

[0079] See also Fig.11 In some embodiments, the first display screen 12 is an open screen with an opening 121 at one end, the laser projector 14 is installed in the opening 121, and the image collector 15 is arranged below the second display screen 12. In this case, the laser projector 14 is arranged below the first display screen 12, and the laser projected by the laser projector 14 is not affected by the microscopic gap of the first display screen 12 when passing through the first display screen 12 (that is, the first display screen 12 forms a gap). Figure 5 The spots in the speckle image collected by the image collector 15 disposed below the first display screen 12 include spots formed by the laser being diffracted once by the diffractive optical element 146 and reflected by the object to be measured, and spots formed by the laser being diffracted once by the diffractive optical element 146 and reflected by the object to be measured and then being diffracted twice by the first display screen 12. When calculating the depth image, the following two calculation methods are included:

[0080] (1) Depth calculation is performed directly based on all the spots in the speckle image. At this time, the reference spots in the reference image include both reference spots formed by the laser being diffracted once by the diffractive optical element 146 and reflected by the calibration object, and reference spots formed by the laser being diffracted once by the diffractive optical element 146 and reflected by the calibration object and then being diffracted twice by the first display screen 12.

[0081] (2) Only the spots formed by the laser being diffracted only once by the incident optical element 213 and reflected by the object to be measured are retained and the remaining spots are filtered out, so as to perform depth calculation based on the remaining spots. At this time, the reference spots in the reference image only include the reference spots formed by the laser being diffracted only once by the incident optical element 213 and reflected by the calibration object. Among them, the brightness of the spots formed after diffraction of different diffraction times is different. Therefore, various types of spots can be distinguished by brightness, so that unnecessary spots can be filtered out.

[0082] See also Fig.12In some embodiments, the first display screen 12 is formed with an opening 121, and the opening 121 does not have a display function. The opening 121 passes through the front surface 123 and the back surface 124. The laser projector 14 is arranged on the side where the back surface 124 of the first display screen 12 is located, and the laser projector 14 is aligned with the opening 121, and the laser projector 14 is used to emit a laser through the opening 121. In one embodiment, the opening 121 can be opened on the first sub-display area 1221.

[0083] At this time, the light emitting surface of the laser projector 14 can be aligned with the opening 121, and the laser emitted by the laser projector 14 enters the outside world after passing through the opening 121. In this embodiment, the laser entering the outside world does not need to pass through the microscopic gap of the display area 122, and will not be diffracted again by the microscopic gap, so that after the image collector 15 obtains the speckle image, the difficulty of subsequent processing of calculating the depth image based on the speckle image can be reduced.

[0084] Specifically, in Fig.13 In the example shown, the opening 121 includes a notch formed on the edge of the first display screen 12, or in other words, the opening 121 intersects with the edge of the first display screen 12. The notch can be formed on any one or more edges such as the upper edge, the lower edge, the left edge, and the right edge of the first display screen 12. The shape of the notch can be any shape such as a triangle, a semicircle, a rectangle, a racetrack, etc., which is not limited here.

[0085] In such Fig.14 In the example shown, the opening 121 includes a through hole spaced apart from the edge of the first display screen 12, or in other words, the opening 121 is opened within the range surrounded by the edge of the first display screen 12. The through hole can be located near any one or more edges such as the upper edge, the lower edge, the left edge, and the right edge of the first display screen 12. The shape of the through hole can be any shape such as a triangle, a circle, a rectangle, a racetrack, etc., which is not limited here.

[0086] See also Fig.15 In some embodiments, the electronic device 100 further includes a cover plate 10, which is disposed on the side where the front surface 123 of the first display screen 12 is located. When the first display screen 12 is provided with an opening 121, and the laser projector 14 and the image collector 15 are both aligned with the opening 121, an infrared transmission layer 61 is disposed on the area of ​​the cover plate 10 corresponding to the laser projector 14 and the image collector 15. At this time, the number of the openings 121 can be one or two.

[0087] The cover 10 can be made of a material with good light transmittance such as glass or sapphire. The infrared transmission layer 61 can be an infrared transmission ink or an infrared transmission film. The infrared transmission layer 61 has a high transmittance to infrared light (e.g., light with a wavelength of 940 nanometers), for example, the transmittance can reach 85% or more, while the transmittance to light other than infrared light is low or light other than infrared light is completely impermeable. Therefore, it is difficult for the user to see the laser projector 14 or the image collector 15 aligned with the opening 121 through the cover 10, and the appearance of the electronic device 100 is more beautiful.

[0088] See also Fig.16 In some embodiments, the electronic device 100 further includes a cover plate 10 , which is disposed on a side of the front surface 123 of the first display screen 12 , and an infrared anti-reflection film 62 is formed on the area of ​​the cover plate 10 corresponding to the laser projector 14 .

[0089] The infrared anti-reflection film 62 can increase the transmittance of infrared light. When the laser projector 14 projects infrared laser light, the infrared anti-reflection film 62 can increase the transmittance of the infrared laser light through the cover plate 10, so as to reduce the loss of the infrared laser light when passing through the cover plate 10, thereby reducing the power consumption of the electronic device 100. Specifically, the infrared anti-reflection film 62 can be plated on the upper surface or the lower surface of the cover plate 10, or on both the upper surface and the lower surface.

[0090] Of course, the area on the cover plate 10 corresponding to the image collector 15 may also be formed with an infrared anti-reflection film 62 to reduce the loss of external infrared light passing through the cover plate 10 before reaching the image collector 15. The area on the cover plate 10 corresponding to the floodlight 50 may also be formed with an infrared anti-reflection film 62 to reduce the loss of supplementary light emitted by the floodlight 50 when passing through the cover plate 10. The position of the cover plate 10 corresponding to the visible light camera 40 (including the main camera 41 and the auxiliary camera 42) may be provided with a visible light anti-reflection film 63 to reduce the loss of external visible light passing through the cover plate 10 before reaching the visible light camera 40.

[0091] See also Fig.17In some embodiments, the laser projector 14 includes a laser light source 140 and a first driver 147. The first driver 147 can be used to drive the laser light source 140 to project laser light to the object to be measured. The laser projector 14 and the image collector 15 are both connected to the processor 20. The processor 20 can provide an enable signal for the laser projector 14. Specifically, the processor 20 can provide an enable signal for the first driver 147. The image collector 15 is connected to the processor 20 via an I2C bus. The laser projector 14 can emit a laser, such as an infrared laser, outwardly. The laser is reflected after reaching an object in the scene. The reflected laser can be received by the image collector 15. The processor 20 can calculate the depth information of the object based on the laser emitted by the laser projector 14 and the laser received by the image collector 15. In one example, the laser projector 14 and the image collector 15 can obtain depth information through the time of flight (TOF) ranging method. In another example, the laser projector 14 and the image collector 15 can obtain depth information through the structured light ranging principle. This application specification takes the example of a laser projector 14 and an image collector 15 obtaining depth information through the structured light ranging principle. In this case, the laser projector 14 is an infrared laser transmitter and the image collector 15 is an infrared camera.

[0092] When the image collector 15 is used in conjunction with the laser projector 14, in one example, the image collector 15 can control the projection timing of the laser projector 14 through a strobe signal, wherein the strobe signal is generated according to the timing of the image collector 15 acquiring the captured image, and the strobe signal can be regarded as an electrical signal with alternating high and low levels, and the laser projector 14 projects the laser according to the laser projection timing indicated by the strobe. Specifically, the processor 20 can send an image acquisition instruction through the I2C bus to enable the laser projector 14 and the image collector 15, and make the laser projector 14 and the image collector 15 work. After receiving the image acquisition instruction, the image acquisition device 15 controls the switch device 30 through the strobe signal. If the strobe signal is at a high level, the switch device 30 sends a first pulse signal (pwn1) to the first driver 147, and the first driver 147 drives the laser light source 140 to project laser into the scene according to the first pulse signal. If the strobe signal is at a low level, the switch device 30 stops sending the first pulse signal to the first driver 147, and the laser light source 140 does not project laser. Alternatively, when the strobe signal is at a low level, the switch device 30 sends the first pulse signal to the first driver 147, and the first driver 147 drives the laser light source 140 to project laser into the scene according to the first pulse signal. When the strobe signal is at a high level, the switch device 30 stops sending the first pulse signal to the first driver 147, and the laser light source 140 does not project laser. In another example, the image collector 15 may not need to use a strobe signal when cooperating with the laser projector 14. In this case, the processor 20 sends an image acquisition instruction to the image collector 15 and simultaneously sends a laser projection instruction to the first driver 147. After receiving the image acquisition instruction, the image collector 15 starts to acquire the acquired image. When the first driver 147 receives the laser projection instruction, it drives the laser light source 140 to project the laser. When the laser projector 14 projects the laser, the laser forms a laser pattern with spots and projects it onto the object to be tested in the scene. The image collector 15 collects the laser pattern reflected by the object to be tested to obtain a speckle image, and sends the speckle image to the processor 20 through the Mobile Industry Processor Interface (MIPI). Every time the image collector 15 sends a frame of speckle image to the processor 20, the processor 20 receives a data stream. The processor 20 can calculate the depth image based on the speckle image and the reference image pre-stored in the processor 20.

[0093] In some embodiments, the visible light camera 40 is also connected to the processor 20 via the I2C bus, that is, both the main camera 41 and the auxiliary camera 42 can be connected to the processor 20 via the I2C bus. The visible light camera 40 can be used to collect visible light images; that is, both the main camera 41 and the auxiliary camera 42 can be used to collect visible light images, or the main camera 41 and the auxiliary camera 42 can cooperate and be used together to collect visible light images; in other words, any one or both of the main camera 41 and the auxiliary camera 42 can be used to collect visible light images. Each time the visible light camera 40 (the main camera 41 and / or the auxiliary camera 42) sends a frame of visible light image to the processor 20, the processor 20 receives a data stream. The visible light camera 40 can be used alone, that is, when the user only wants to obtain a visible light image, the processor 20 sends an image acquisition instruction to the visible light camera 40 (any one or both of the main camera 41 and the auxiliary camera 42) via the I2C bus to enable the visible light camera 40 to work. After receiving the image acquisition instruction, the visible light camera 40 acquires the visible light image of the scene and sends the visible light image to the processor 20 through the mobile industry processor interface. The visible light camera 40 (any one of the main camera 41 and the auxiliary camera 42, or the main camera 41 and the auxiliary camera 42 together) can also be used in conjunction with the laser projector 14 and the image collector 15, that is, when the user wants to obtain a three-dimensional image through a visible light image and a depth image, if the image collector 15 and the visible light camera 40 have the same operating frequency, the image collector 15 and the visible light camera 40 are synchronized by hardware through the sync signal. Specifically, the processor 20 sends the image acquisition instruction to the image collector 15 through the I2C bus. After receiving the image acquisition instruction, the image collector 15 can control the switch device 30 to send a first pulse signal (pwn1) to the first driver 147 through the strobe signal, so that the first driver 147 drives the laser light source 140 to emit laser according to the first pulse signal; at the same time, the image collector 15 and the visible light camera 40 are synchronized through the sync signal, and the sync signal controls the visible light camera 40 to acquire the visible light image.

[0094] The electronic device 100 may further include a floodlight 50 disposed on the first surface 111. The floodlight 50 may emit uniform surface light into the scene. The floodlight 50 includes a floodlight light source 51 and a second driver 52. The second driver 52 may be used to drive the floodlight light source 51 to emit uniform surface light. The light emitted by the floodlight 50 may be infrared light or other invisible light, such as ultraviolet light. The present application is described by taking the floodlight 50 emitting infrared light as an example, but the form of light emitted by the floodlight 50 is not limited thereto. The floodlight 50 is connected to the processor 20, and the processor 20 may provide an enable signal for driving the floodlight 50. Specifically, the processor 20 may provide an enable signal for the second driver 52. The floodlight 50 may cooperate with the image collector 15 to capture infrared images. When the image collector 15 is used in conjunction with the floodlight 50, in one example, the image collector 15 can control the emission timing of infrared light emitted by the floodlight 50 through a selection signal (a strobe signal, which and the strobe signal of the image collector 15 controlling the laser projector 14 are two independent strobe signals). The strobe signal is generated based on the timing of the image collector 15 acquiring the captured image. The strobe signal can be regarded as an electrical signal alternating between high and low levels. The floodlight 50 emits infrared light according to the infrared light emission timing indicated by the strobe signal. Specifically, the processor 20 can send an image acquisition instruction to the image acquisition device 15 through the I2C bus. After receiving the image acquisition instruction, the image acquisition device 15 controls the switch device 30 through the strobe signal. If the strobe signal is at a high level, the switch device 30 sends a second pulse signal (pwn2) to the second driver 52, and the second driver 52 controls the floodlight source 51 to emit infrared light according to the second pulse signal. If the strobe signal is at a low level, the switch device 30 stops sending the second pulse signal to the second driver 52, and the floodlight source 51 does not emit infrared light; or, when the strobe signal is at a low level, the switch device 30 sends the second pulse signal to the second driver 52, and the second driver 52 controls the floodlight source 51 to emit infrared light according to the second pulse signal. When the strobe signal is at a high level, the switch device 30 stops sending the second pulse signal to the second driver 52, and the floodlight source 51 does not emit infrared light. When the floodlight 50 emits infrared light, the image acquisition device 15 receives the infrared light reflected by the objects in the scene to form an infrared image, and sends the infrared image to the processor 20 through the mobile industry processor interface. Each time the image collector 15 sends a frame of infrared image to the processor 20, the processor 20 receives a data stream. The infrared image is usually used for iris recognition, face recognition, etc.

[0095] See also Figure 1 and Fig.18In some embodiments, the electronic device 100 further includes an image collector 15, which is disposed on the first surface 111. When the laser projector 14 projects the laser (when the laser projector 14 projects the laser in the first mode, or when the laser projector 14 projects the laser in the second mode), the laser projector 14 projects the laser to the scene at the first operating frequency, and the control method further includes:

[0096] 0184, the image collector 15 acquires the captured image at a second operating frequency, where the second operating frequency is greater than the first operating frequency;

[0097] 0185, distinguishing in the captured images a first image captured when the laser projector 14 is not projecting laser light and a second image captured when the laser projector 14 is projecting laser light; and

[0098] 0186, calculate a depth image according to the first image, the second image and the reference image.

[0099] That is, the control methods include:

[0100] 0181, determine the usage status of the electronic device 100;

[0101] 0182, when the electronic device 100 is in the first use state, the laser projector 14 projects laser light in the first mode;

[0102] 0183, when the electronic device 100 is in the second use state, the laser projector 14 projects the laser in the second mode, and the energy of the laser projected in the second mode is greater than the energy of the laser projected in the first mode;

[0103] 0184, the image collector 15 acquires the captured image at a second operating frequency, where the second operating frequency is greater than the first operating frequency;

[0104] 0185, distinguishing in the captured images a first image captured when the laser projector 14 is not projecting laser light and a second image captured when the laser projector 14 is projecting laser light; and

[0105] 0186, calculate a depth image according to the first image, the second image and the reference image.

[0106] The above control method can also be implemented by the electronic device 100, wherein step 0181 is substantially the same as step 031 described above, step 0182 is substantially the same as step 032 described above, and step 0183 is substantially the same as step 033 described above. The image collector 15 can be used to implement step 0184, and the processor 20 can also be used to implement steps 0185 and 0186. That is, the image collector 15 is used to acquire a captured image at a second operating frequency, and the processor 20 is also used to distinguish in the captured image a first image captured when the laser projector 14 does not project a laser and a second image captured when the laser projector 14 projects a laser, and calculate a depth image based on the first image, the second image, and the reference image.

[0107] Specifically, when the operating frequencies of the image collector 15 and the laser projector 14 are different (i.e., the second operating frequency is greater than the first operating frequency), if a depth image needs to be acquired, such as in usage scenarios such as unlocking, payment, decryption, and three-dimensional modeling. In one example, the processor 20 simultaneously sends an image acquisition instruction to acquire a depth image to the image collector 15 and the first driver 147 via the I2C bus. After receiving the image acquisition instruction, the first driver 147 drives the laser light source 140 to emit an infrared laser to the scene at the first operating frequency; after receiving the image acquisition instruction, the image collector 15 acquires the infrared laser reflected back by the objects in the scene at the second operating frequency to obtain the acquired image. For example Fig.19 As shown, the solid line represents the timing of the laser projector 14 emitting lasers, the dotted line represents the timing of the image collector 15 acquiring the captured images and the number of frames of the captured images, and the dot-dash line represents the number of frames of the third image obtained according to the first image and the second image. Fig.19 From top to bottom, there are solid lines, dashed lines and dot-dash lines, where the second operating frequency is twice the first operating frequency. Fig.19 In the solid and dotted parts, the image collector 15 first receives infrared light in the environment (hereinafter referred to as ambient infrared light) when the laser projector 14 does not project laser light to obtain the Nth frame of captured image (the first image at this time, also referred to as the background image), and sends the Nth frame of captured image to the processor 20 through the mobile industrial processor interface; then, the image collector 15 can receive the ambient infrared light and the infrared laser emitted by the laser projector 14 when the laser projector 14 projects laser light to obtain the N+1th frame of captured image (the second image at this time, also referred to as the interference speckle image), and sends the N+1th frame of captured image to the processor 20 through the mobile industrial processor interface; then, the image collector 15 receives the ambient infrared light again when the laser projector 14 does not project laser light to obtain the N+2th frame of captured image (the first image at this time), and sends the N+2th frame of captured image to the processor 20 through the mobile industrial processor interface, and so on, the image collector 15 alternately obtains the first image and the second image.

[0108] In another example, the processor 20 sends an acquisition instruction for acquiring a depth image to the image collector 15 via the I2C bus. After receiving the image acquisition instruction, the image collector 15 controls the switch to send a first pulse signal to the first driver 147 via the strobe signal. The first driver 147 drives the laser light source 140 to project the laser at the first operating frequency (i.e., the laser projector 14 projects the laser at the first operating frequency) according to the first pulse signal. At the same time, the image collector 15 collects the infrared laser reflected by the object in the scene at the second operating frequency to obtain the collected image. Fig.19 As shown, the solid line represents the timing of the laser projector 14 emitting lasers, the dotted line represents the timing of the image collector 15 acquiring the captured images and the number of frames of the captured images, and the dot-dash line represents the number of frames of the third image obtained according to the first image and the second image. Fig.19 From top to bottom, there are solid lines, dashed lines and dot-dash lines, where the second operating frequency is twice the first operating frequency. Fig.19 In the solid and dotted parts, the image collector 15 first receives ambient infrared light to obtain the Nth frame of image acquisition (the first image at this time, also called the background image) when the laser projector 14 is not projecting laser, and sends the Nth frame of image acquisition to the processor 20 through the mobile industrial processor interface; then, the image collector 15 can receive ambient infrared light and the infrared laser emitted by the laser projector 14 to obtain the N+1th frame of image acquisition (the second image at this time, also called the interference speckle image) when the laser projector 14 is projecting laser, and send the N+1th frame of image acquisition to the processor 20 through the mobile industrial processor interface; then, the image collector 15 receives ambient infrared light again to obtain the N+2th frame of image acquisition (the first image at this time) when the laser projector 14 is not projecting laser, and sends the N+2th frame of image acquisition to the processor 20 through the mobile industrial processor interface, and so on, the image collector 15 alternately acquires the first image and the second image.

[0109] It should be noted that the image collector 15 can simultaneously acquire the acquired image while sending the acquired image to the processor 20. In addition, the image collector 15 can also acquire the second image first, then acquire the first image, and acquire the acquired image alternately in this order. In addition, the above-mentioned multiple relationship between the second operating frequency and the first operating frequency is only an example. In other embodiments, the multiple relationship between the second operating frequency and the first operating frequency can also be three times, four times, five times, six times, etc.

[0110] After receiving each frame of captured image, the processor 20 will distinguish the received captured image and determine whether the captured image is the first image or the second image. After the processor 20 receives at least one frame of the first image and at least one frame of the second image, it can calculate the depth image based on the first image, the second image and the reference image. Specifically, since the first image is captured when the laser projector 14 is not projecting laser light, the light forming the first image only includes ambient infrared light, and the second image is captured when the laser projector 14 is projecting laser light, the light forming the second image includes both ambient infrared light and infrared laser light emitted by the laser projector 14. Therefore, the processor 20 can remove the portion of the captured image formed by ambient infrared light in the second image based on the first image, thereby obtaining a captured image formed only by infrared laser light (i.e., a speckle image formed by infrared laser light).

[0111] It can be understood that the ambient light includes infrared light with the same wavelength as the infrared laser emitted by the laser projector 14 (for example, including 940nm ambient infrared light), and when the image collector 15 acquires the captured image, this part of infrared light will also be received by the image collector 15. When the brightness of the scene is high, the proportion of ambient infrared light in the light received by the image collector 15 will increase, resulting in unclear laser spots in the captured image, thereby affecting the calculation of the depth image.

[0112] The control method of the present application controls the laser projector 14 and the image collector 15 to operate at different operating frequencies. The image collector 15 can collect a first image formed only by ambient infrared light and a second image formed by both ambient infrared light and infrared laser emitted by the laser projector 14, and remove the image portion of the second image formed by ambient infrared light based on the first image, thereby being able to distinguish laser speckles, and using the collected image formed only by infrared laser emitted by the laser projector 14 to calculate the depth image, without affecting the laser speckle matching, thereby avoiding partial or complete loss of depth information, thereby improving the accuracy of the depth image.

[0113] See also Figure 1 and Fig. 20 In some embodiments, the control method comprises:

[0114] 0201, determine the usage status of the electronic device 100;

[0115] 0202, when the electronic device 100 is in a first use state, the laser projector 14 projects laser light in a first mode;

[0116] 0203, when the electronic device 100 is in the second use state, the laser projector 14 projects the laser in the second mode, and the energy of the laser projected in the second mode is greater than the energy of the laser projected in the first mode;

[0117] 0204, the image collector 15 acquires an image at a second operating frequency, where the second operating frequency is greater than the first operating frequency;

[0118] 02051, add image type for each frame of acquired image; and

[0119] 02052, distinguishing the first image from the second image according to the image type; and

[0120] 0206. Calculate a depth image according to the first image, the second image and the reference image.

[0121] See also Figure 1 and Fig.21 In some embodiments, the control method comprises:

[0122] 0211, determining the usage status of the electronic device 100;

[0123] 0212, when the electronic device 100 is in the first use state, the laser projector 14 projects laser light in the first mode;

[0124] 0213, when the electronic device 100 is in the second use state, the laser projector 14 projects the laser in the second mode, and the energy of the laser projected in the second mode is greater than the energy of the laser projected in the first mode;

[0125] 0214, the image collector 15 acquires the captured image at a second operating frequency, where the second operating frequency is greater than the first operating frequency;

[0126] 021511, determining the working state of the laser projector 14 at the acquisition time according to the acquisition time of each frame of the acquired image;

[0127] 021512, add image type for each frame of acquired image according to the working status;

[0128] 02152, distinguishing the first image from the second image according to the image type; and

[0129] 0216. Calculate a depth image according to the first image, the second image and the reference image.

[0130] The above control method can also be implemented by the electronic device 100, wherein step 0201 is substantially the same as step 031 described above, step 0202 is substantially the same as step 032 described above, step 0203 is substantially the same as step 033 described above, step 0204 is substantially the same as step 0184 described above, steps 02051 and 02052 can be sub-steps of step 0185 described above, and step 0206 is substantially the same as step 0186 described above; step Step 0211 is substantially the same as step 031 described above, step 0212 is substantially the same as step 032 described above, step 0213 is substantially the same as step 033 described above, step 0214 is substantially the same as step 0184 described above, steps 021511 and 021512 may be sub-steps of step 02051 described above, step 02152 is substantially the same as step 02052 described above, and step 0216 is substantially the same as step 0186 described above. Step 02051, step 02052, step 021511, step 021512 and step 02152 may all be implemented by the processor 20. That is, the processor 20 may also be used to add an image type to each frame of the acquired image, and to distinguish the first image from the second image according to the image type. When the processor 20 is used to add an image type for each frame of captured image, it is specifically used to determine the working state of the laser projector 14 at the capture time according to the capture time of each frame of captured image, and to add an image type for each frame of captured image according to the working state.

[0131] Specifically, each time the processor 20 receives a frame of captured image from the image collector 15, it will add an image type (stream_type) to the captured image, so that the first image and the second image can be distinguished according to the image type in subsequent processing. Specifically, during the period when the image collector 15 acquires the captured image, the processor 20 will monitor the working state of the laser projector 14 in real time through the I2C bus. Each time the processor 20 receives a frame of captured image from the image collector 15, it will first obtain the acquisition time of the captured image, and then determine whether the working state of the laser projector 14 at the acquisition time of the captured image is projecting laser or not projecting laser according to the acquisition time of the captured image, and add the image type to the captured image based on the judgment result. Among them, the acquisition time of the captured image can be the start time, end time, any time between the start time and the end time, etc. when the image collector 15 acquires each frame of captured image. In this way, the correspondence between each frame of captured image and the working state (projecting laser or not projecting laser) of the laser projector 14 during the acquisition of the frame of captured image can be achieved, and the type of the captured image can be accurately distinguished. In an example, the structure of the image type stream_type is shown in Table 1:

[0132] Table 1

[0133]

[0134] When stream is 0 in Table 1, it means that the data stream at this time is an image formed by infrared light and / or infrared laser. When light is 00, it means that the data stream at this time is acquired when there is no device projecting infrared light and / or infrared laser (only ambient infrared light), then the processor 20 can add an image type of 000 to the acquired image to identify this acquired image as the first image. When light is 01, it means that the data stream at this time is acquired when the laser projector 14 projects infrared laser (both ambient infrared light and infrared laser). The processor 20 can add an image type of 001 to the acquired image to identify this acquired image as the second image. The processor 20 can subsequently distinguish the image type of the acquired image according to stream_type.

[0135] See also Figure 1 and Fig. 22 In some embodiments, the control method comprises:

[0136] 0221, determine the usage status of the electronic device 100;

[0137] 0222, when the electronic device 100 is in the first use state, the laser projector 14 projects laser light in the first mode;

[0138] 0223, when the electronic device 100 is in the second use state, the laser projector 14 projects the laser in the second mode, and the energy of the laser projected in the second mode is greater than the energy of the laser projected in the first mode;

[0139] 0224, the image collector 15 acquires an image at a second operating frequency, where the second operating frequency is greater than the first operating frequency;

[0140] 0225, distinguishing in the collected images a first image collected when the laser projector 14 is not projecting laser light and a second image collected when the laser projector 14 is projecting laser light;

[0141] 02261, calculating a third image according to the first image and the second image, wherein a difference between an acquisition time of the first image and an acquisition time of the second image is less than a predetermined difference; and

[0142] 02262, calculate a depth image based on the third image and the reference image.

[0143] The above control method can also be implemented by the electronic device 100, wherein step 0221 is substantially the same as step 031 described above, step 0222 is substantially the same as step 032 described above, step 0223 is substantially the same as step 033 described above, step 0224 is substantially the same as step 0184 described above, step 0225 is substantially the same as step 0185 described above, and steps 02261 and 02262 can be sub-steps of step 0186 described above; both steps 02261 and 02262 can be implemented by the processor 20. That is, the processor 20 can also be used to calculate the third image based on the first image and the second image, and calculate the depth image based on the third image and the reference image, wherein the difference between the acquisition time of the first image and the acquisition time of the second image is less than the predetermined difference.

[0144] In the process of calculating the depth image, the processor 20 can first distinguish the first image from the second image, and then select the second image of any frame and the first image of a specific frame corresponding to the second image of the arbitrary frame according to the acquisition time, wherein the difference between the acquisition time of the first image of the specific frame and the acquisition time of the second image of the arbitrary frame is less than a predetermined difference. Subsequently, the processor 20 calculates the third image based on the first image of the specific frame and the second image of the arbitrary frame. The third image is the acquisition image formed only by the infrared laser emitted by the laser projector 14, and can also be called an actual speckle image. Specifically, the multiple pixel points in the first image correspond one-to-one to the multiple pixel points in the second image. Assuming that the first image is P1, the second image is P2, and the third image is P3, the processor 20 can select the pixel point P2 in the second image. i,j The pixel value of the first image is subtracted from the pixel P1 i,j The pixel value of the third image is obtained by i,j The pixel value, that is, P3 i,j =P2 i,j -P1 i,j , i∈N+, j∈N+. Subsequently, the processor 20 can calculate the depth image based on the third image and the reference image, wherein the number of frames of the second image, the number of frames of the third image, and the number of frames of the depth image are all equal. It can be understood that since the difference between the acquisition time of the first image and the acquisition time of the second image is small, the intensity of the ambient infrared light in the first image is closer to the intensity of the ambient infrared light in the second image, and the third image calculated based on the first image and the second image has higher accuracy, which is conducive to further reducing the influence of ambient infrared light on the acquisition of the depth image.

[0145] In some embodiments, the processor 20 may also add image types to the third image and the depth image to facilitate distinguishing the various data streams obtained after processing the captured images. As shown in Table 2:

[0146] Table 2

[0147]

[0148] When stream in Table 2 is 0, it means that the data stream at this time is an image formed by infrared light and / or infrared laser, and when stream is 1, it means that the data stream at this time is a depth image. When light is 11, it means background subtraction processing, which means removing the part formed by ambient infrared light in the captured image. Then the processor 20 can add an image type of 011 to the data stream after background subtraction processing to identify this data stream as the third image. When Light is XX, X means that the value is not limited. The processor 20 can add an image type of 1XX to the data stream obtained after depth calculation to identify this data stream as a depth image.

[0149] In some embodiments, in the first image and the second image involved in the depth image calculation, the acquisition time of the first image may be before the acquisition time of the second image, or may be after the acquisition time of the second image, which is not limited here.

[0150] In certain embodiments, when the difference between the acquisition time of the first image and the acquisition time of the second image is less than a predetermined difference, the first image and the second image may be images of adjacent frames or images of non-adjacent frames. For example, when the second operating frequency is twice the first operating frequency, the first image and the second image whose difference is less than the predetermined difference are images of adjacent frames; when the multiple between the second operating frequency and the first operating frequency is greater than two times, for example, when the second operating frequency is three times the first operating frequency, the first image and the second image whose difference is less than the predetermined difference may be images of adjacent frames or images of non-adjacent frames (in this case, there is still a frame of the first image between the first image and the second image).

[0151] In some embodiments, the number of frames of the first image involved in the depth image calculation can also be multiple frames. For example, when the second operating frequency is three times the first operating frequency, two adjacent first images and a second image adjacent to the two first images can be selected to calculate the third image. At this time, the processor 20 can first fuse the two first images, for example, add the pixel values ​​of the corresponding pixels of the two first images and then take the average to obtain the fused first image, and then use the fused first image and the adjacent second image to calculate the third image.

[0152] In some embodiments, the processor 20 may calculate multiple frames of third images, such as Fig.19The third image of the (N+1)-N frames, the third image of the (N+3)-(N+2) frames, the third image of the (N+5)-(N+4) frames, and so on, and multiple frames of depth images are calculated corresponding to the multiple frames of the third image. Of course, in other embodiments, the processor 20 may also only calculate one frame of the third image, and calculate one frame of depth image corresponding to one frame of the third image. The number of frames of the third image can be determined according to the security level of the application scenario. Specifically, when the security level of the application scenario is high, for example, for application scenarios with a high security level such as payment, the number of frames of the third image should be large. At this time, it is required that the matching of multiple frames of depth images with the user's depth template is successful before the payment action is executed to improve the security of the payment; for application scenarios with a low security level, for example, for application scenarios based on depth information for portrait beauty, the number of frames of the third image can be small, for example, one frame. At this time, one frame of depth image is sufficient for portrait beauty. In this way, the amount of calculation and power consumption of the processor 20 can be reduced, and the speed of image processing can be improved.

[0153] See also Figure 1 and Fig.23 In some embodiments, the control method further comprises:

[0154] 0237, collecting a visible light image at a third operating frequency, where the third operating frequency is greater than or less than the second operating frequency;

[0155] 0238, adding acquisition time to each frame of visible light image and each frame of acquisition image; and

[0156] 0239. Determine the frame-synchronized visible light image and the second image according to the acquisition time of the visible light image, the acquisition time of the acquired image, and the image type of the acquired image.

[0157] That is, the control methods include:

[0158] 0231, determine the usage status of the electronic device 100;

[0159] 0232, when the electronic device 100 is in the first use state, the laser projector 14 projects laser light in the first mode;

[0160] 0233, when the electronic device 100 is in the second use state, the laser projector 14 projects the laser in the second mode, and the energy of the laser projected in the second mode is greater than the energy of the laser projected in the first mode;

[0161] 0234, the image collector 15 acquires the captured image at a second operating frequency, where the second operating frequency is greater than the first operating frequency;

[0162] 0235, distinguishing in the collected images a first image collected when the laser projector 14 is not projecting laser light and a second image collected when the laser projector 14 is projecting laser light;

[0163] 0236, calculating a depth image according to the first image, the second image and the reference image;

[0164] 0237, collecting a visible light image at a third operating frequency, where the third operating frequency is greater than or less than the second operating frequency;

[0165] 0238, adding acquisition time to each frame of visible light image and each frame of acquisition image; and

[0166] 0239. Determine the frame-synchronized visible light image and the second image according to the acquisition time of the visible light image, the acquisition time of the acquired image, and the image type of the acquired image.

[0167] The above control method can also be implemented by the electronic device 100, wherein step 0231 is substantially the same as step 031 described above, step 0232 is substantially the same as step 032 described above, step 0233 is substantially the same as step 033 described above, step 0234 is substantially the same as step 0184 described above, step 0235 is substantially the same as step 0185 described above, and step 0236 is substantially the same as step 0186 described above; step 0237 can be implemented by the visible light camera 40 (any one of the main camera 41 and the auxiliary camera 42, or the main camera 41 and the auxiliary camera 42 together). Steps 0238 and 0239 can be implemented by the processor 20. That is, the visible light camera 40 can be used to collect visible light images at a third operating frequency, and the third operating frequency is greater than or less than the second operating frequency. The processor 20 may be used to add acquisition time to each frame of visible light image and each frame of acquired image, and determine the frame-synchronized visible light image and second image according to the acquisition time of the visible light image, the acquisition time of the acquired image and the image type of the acquired image.

[0168] In some application scenarios, for example, in the application scenario of three-dimensional modeling of objects in the scene, it is necessary to obtain the depth information of the objects in the scene with the help of the image collector 15 and the color information of the objects in the scene with the help of the visible light camera 40 to achieve three-dimensional modeling. At this time, the processor 20 needs to turn on the image collector 15 to obtain the depth image and turn on the visible light camera 40 to obtain the visible light image at the same time.

[0169] If the image collector 15 and the visible light camera 40 have the same operating frequency, that is, the image collector 15 and the visible light camera 40 both operate at the second operating frequency, the processor 20 can send an image acquisition instruction to the image collector 15 through the I2C bus. After the image collector 15 receives the image acquisition instruction, the image collector 15 and the visible light camera 40 are synchronized through a sync signal, and the sync signal controls the visible light camera 40 to start collecting visible light images, so as to achieve hardware synchronization between the image collector 15 and the visible light camera 40. At this time, the number of frames of the collected image is consistent with the number of frames of the visible light image, and each frame of the collected image corresponds to each frame of the visible light image.

[0170] However, when the image collector 15 and the visible light camera 40 have different operating frequencies, that is, when the image collector 15 operates at the second operating frequency and the visible light camera 40 operates at the third operating frequency that is not equal to the second operating frequency, the image collector 15 and the visible light camera 40 cannot achieve hardware synchronization. At this time, the processor 20 needs to achieve synchronization between the image collector 15 and the visible light camera 40 by software synchronization. Specifically, the processor 20 sends an image acquisition instruction to the image collector 15 through the I2C bus connected to the image collector 15, and at the same time sends an image acquisition instruction to the visible light camera 40 through the I2C bus connected to the visible light camera 40. Each time the processor 20 receives a frame of captured image, it will add an image type to each frame of captured image, and will also add a capture time to each frame of captured image. In addition, each time the processor 20 receives a frame of visible light image, it will add a capture time to each frame of visible light image. Among them, the acquisition time of the acquisition image can be the start time, end time, any time between the start time and the end time, etc. of each frame of the acquisition image acquired by the image acquisition device 15; the acquisition time of the visible light image can be the start time, end time, any time between the start time and the end time, etc. of each frame of the visible light image acquired by the visible light camera 40. Then, when further processing is performed based on the depth image and the visible light image (such as three-dimensional modeling, portrait beauty processing with the help of depth information, etc.), the processor 20 can first determine the frame-synchronized visible light image and the second image according to the acquisition time of the visible light image, the acquisition time of the acquisition image, and the type of the acquisition image. Among them, frame synchronization means that the difference between the determined acquisition time of the second image and the acquisition time of the visible light image is less than the preset time difference, and the acquisition time of the visible light image can be before the acquisition time of the second image or after the acquisition time of the second image. Subsequently, the processor 20 selects the first image based on the determined second image to further calculate the depth image based on the second image, the first image and the reference image. Finally, the processor 20 performs subsequent processing based on the depth image and the determined visible light image.

[0171] In some embodiments, the processor 20 may also add an acquisition time to each frame of the depth image, and then determine the frame-synchronized visible light image and the depth image according to the acquisition time of the visible light image and the acquisition time of the depth image, and finally perform subsequent processing on the frame-synchronized visible light image and the depth image. The acquisition time of each frame of the depth image is the acquisition time of the second image corresponding to the frame of the depth image.

[0172] See also Fig.24 In some embodiments, the captured image also includes an infrared image, which is an image obtained by the image collector 15 capturing infrared light emitted by the floodlight 50. When the processor 20 adds an image type to each frame of the captured image, it also adds an image type to the infrared image. In one example, the image type of the infrared image is shown in Table 3:

[0173] Table 3

[0174]

[0175] When stream in Table 3 is 0, it means that the data stream at this time is an image formed by infrared light and / or infrared laser. When light is 10, it means that the data stream at this time is obtained when the floodlight 50 projects infrared light and the laser projector 14 does not project laser. Then, when the processor 20 adds the image type of 010 to the captured image, it indicates that this frame of captured image is an infrared image.

[0176] In some application scenarios, such as the application scenario of realizing identity authentication based on the matching of depth image and depth template and the matching of infrared image and infrared template, the image collector 15 needs to be used in conjunction with the floodlight 50 and the laser projector 14, and the image collector 15 can acquire the first image, the second image and the infrared image in a time-sharing manner. Fig.24 As shown, the solid line represents the timing of the laser projector 14 emitting laser light, the double-dotted line represents the timing of the floodlight 50 emitting infrared light, the dotted line represents the timing of the image collector 15 acquiring the captured image and the frame number of the captured image, and the dotted line represents the frame number of the third image obtained according to the first image and the second image. Fig.24From top to bottom, there are solid lines, double dot-dash lines, dotted lines and dot-dash lines, wherein the second operating frequency is three times the first operating frequency, and the second operating frequency is three times the fourth operating frequency. The processor 20 can monitor the working state of the floodlight 50 in real time through the I2C bus. Each time the processor 20 receives a frame of captured image from the image collector 15, it will first obtain the acquisition time of the captured image, and then determine whether the working state of the floodlight 50 is emitting infrared light or not emitting infrared light at the acquisition time of the captured image according to the acquisition time of the captured image, and add an image type to the captured image based on the judgment result. The processor 20 can subsequently determine the infrared image and the second image whose acquisition time difference is less than the set difference based on the acquisition time of the infrared image and the acquisition time of the second image. Further, the processor 20 can determine the infrared image and the depth image, and use the infrared image and the depth image for identity authentication.

[0177] See also Figure 1 and Fig.25 In some embodiments, the control method further comprises:

[0178] 0251, get the brightness and type of the scene;

[0179] 0252, determine whether the brightness is greater than the brightness threshold and the type is outdoor scene;

[0180] If yes, the process proceeds to the step of determining the usage status of the electronic device 100 (step 0253 ).

[0181] That is, the control methods include:

[0182] 0251, get the brightness and type of the scene;

[0183] 0252, determine whether the brightness is greater than the brightness threshold and the type is outdoor scene;

[0184] 0253, if yes, determine the usage status of the electronic device 100;

[0185] 0254, when the electronic device 100 is in the first use state, the laser projector 14 projects laser light in the first mode;

[0186] 0255, when the electronic device 100 is in the second use state, the laser projector 14 projects the laser in the second mode, and the energy of the laser projected in the second mode is greater than the energy of the laser projected in the first mode;

[0187] 0256, the image collector 15 acquires the captured image at a second operating frequency, where the second operating frequency is greater than the first operating frequency;

[0188] 0257, distinguishing in the captured images a first image captured when the laser projector 14 is not projecting laser light and a second image captured when the laser projector 14 is projecting laser light; and

[0189] 0258. Calculate a depth image according to the first image, the second image and the reference image.

[0190] The above control method can also be implemented by the electronic device 100, wherein step 0253 is substantially the same as step 031 described above, step 0254 is substantially the same as step 032 described above, step 0255 is substantially the same as step 033 described above, step 0256 is substantially the same as step 0184 described above, step 0257 is substantially the same as step 0185 described above, and step 0258 is substantially the same as step 0186 described above; both step 0251 and step 0252 can be implemented by the processor 20. That is, the processor 20 can be used to obtain the brightness and type of the scene, and to determine whether the brightness is greater than the brightness threshold and the type is an outdoor scene. The laser projector 14 can be used to project laser light to the scene at a first operating frequency when the brightness is greater than the brightness threshold and the type is an outdoor scene.

[0191] Specifically, the brightness of the scene can be obtained by analyzing the captured image acquired by the image collector 15 or the visible light image acquired by the visible light camera 40 (any one of the main camera 41 and the auxiliary camera 42, or the main camera 41 and the auxiliary camera 42 together); or, the brightness of the scene can also be directly detected by the light sensor, and the processor 20 reads the detected signal from the light sensor to obtain the brightness of the scene. The type of the scene can be obtained by analyzing the captured image acquired by the image collector 15 or the visible light image acquired by the visible light camera 40, for example, analyzing the objects in the captured image or the visible light image acquired by the visible light camera 40 to determine whether the type of the scene is an outdoor scene or an indoor scene; the type of the scene can also be directly determined according to the geographical location. Specifically, the processor 20 can obtain the positioning result of the scene by the global satellite positioning system, and then further determine the type of the scene according to the positioning result. For example, if the positioning result is a certain office building, it means that the scene is an indoor scene; if the positioning scene is a certain park, it means that the scene is an outdoor scene; if the positioning scene is a certain street, it means that the scene is an outdoor scene, and so on.

[0192] It can be understood that when the brightness of the scene is high (for example, the brightness is greater than the brightness threshold), the proportion of ambient infrared light in the captured image will be relatively large, which will have a greater impact on the recognition of spots. At this time, the interference of ambient infrared light needs to be removed. However, when the brightness of the scene is low, the proportion of ambient infrared light in the captured image will be relatively small, and the impact on the recognition of spots is small and can be ignored. At this time, the image collector 15 and the laser projector 14 can work at the same operating frequency, and the processor 20 directly calculates the depth image based on the captured image (i.e., the second image) obtained by the image collector 15 and the reference image. In addition, when the brightness of the scene is high, it may be caused by the strong light indoors. Since the light does not include infrared light, it will not have a greater impact on the recognition of spots. At this time, the image collector 15 and the laser projector 14 work at the same operating frequency, and the processor 20 directly calculates the depth image based on the captured image (i.e., the second image) obtained by the image collector 15 and the reference image. In this way, the operating frequency of the image collector 15 can be reduced, and the power consumption of the image collector 15 can be reduced.

[0193] Of course, in some embodiments, the control method may also determine whether to execute step 0253 based only on the brightness of the scene. Specifically, the processor 20 only obtains the brightness of the scene and determines whether the brightness of the scene is greater than the brightness threshold. When the brightness is greater than the brightness threshold, the laser projector 14 projects laser light to the scene at the first operating frequency.

[0194] In some implementations, the processor 20 may also add status information (status) to each data stream. In one example, as shown in Table 4:

[0195] Table 4

[0196]

[0197] When the status information status is 0, it indicates that the data stream has not been processed by background reduction, and when the status information status is 1, it indicates that the data stream has been processed by background reduction. 0000 in Table 4 indicates the first image; 0010 indicates the second image; 0100 indicates the infrared image acquired by the image collector 15 when the floodlight 50 is turned on; 0111 indicates the third image; 1XX1 indicates the depth image processed by background reduction; 1XX0 indicates the depth image not processed by background reduction. In this way, status information is added to each data stream so that the processor 20 can distinguish whether each data stream has been processed by background reduction.

[0198] In some embodiments, the processor 20 includes a first storage area, a second storage area, and a logic subtraction circuit, and the logic subtraction circuit is connected to both the first storage area and the second storage area. Among them, the first storage area is used to store the first image, the second storage area is used to store the second image, and the logic subtraction circuit is used to process the first image and the second image to obtain a third image. Specifically, the logic subtraction circuit reads the first image from the first storage area, reads the second image from the second storage area, and after acquiring the first image and the second image, performs subtraction processing on the first image and the second image to obtain the third image. The logic subtraction circuit is also connected to a depth calculation module in the processor 20 (for example, it can be an integrated circuit ASIC specifically used to calculate depth, etc.), and the logic subtraction circuit sends the third image to the depth calculation module, and the depth calculation module calculates the depth image based on the third image and the reference image.

[0199] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "an example", "example", "specific example" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0200] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0201] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A control method for an electronic device, characterized in that: The electronic device comprises a housing, a first display screen, a second display screen and a laser projector, the housing comprises a first surface and a second surface opposite to each other, the first display screen and the second display screen are respectively arranged on the first surface and the second surface, and the laser projector is arranged on the first surface; the control method comprises: Determine a use state of the electronic device, the use state comprising a front use state and a rear use state, when the electronic device is in the front use state, the first display screen and the laser projector face the user of the electronic device; when the electronic device is in the rear use state, the first display screen and the laser projector face away from the user of the electronic device, and the second display screen faces the user of the electronic device; When the electronic device is in the pre-use state, the laser projector projects laser light in a first mode; and When the electronic device is in the post-use state, the laser projector projects laser light in a second mode, and energy of the laser light projected in the second mode is greater than energy of the laser light projected in the first mode.

2. The control method according to claim 1, characterized in that: The electronic device further includes a gravity sensor, and determining the usage status of the electronic device includes: The usage status of the electronic device is determined by the gravity sensor.

3. The control method according to claim 2, characterized in that: The determining the usage status of the electronic device by using the gravity sensor includes: Obtaining the value of the z-axis of the gravity sensor; When the value of the z-axis is greater than a first preset value, determining that the electronic device is in the pre-use state; and When the value of the z-axis is less than a second preset value, it is determined that the electronic device is in the post-use state.

4. The control method according to claim 1, characterized in that: The determining the usage status of the electronic device includes: The use status of the electronic device is determined by a first touch signal detected by the first display screen and / or a second touch signal detected by the second display screen.

5. The control method according to claim 4, characterized in that: The determining the use state of the electronic device through the first touch signal detected by the first display screen and / or the second touch signal detected by the second display screen includes: When the first display screen detects the first touch signal, determining that the electronic device is in the front-use state; and When the second display screen detects the second touch signal, it is determined that the electronic device is in the post-use state.

6. The control method according to claim 1, characterized in that: The electronic device further includes a state selection button, and the determining the use state of the electronic device includes: The use status of the electronic device is determined by the status selection button.

7. The control method according to any one of claims 1 to 6, characterized in that: The laser projector projects the laser light with less power in the first mode than in the second mode; and / or The laser projector includes a plurality of point light sources, and the plurality of point light sources are independently controlled; the number of the point light sources turned on by the laser projector in the first mode is less than the number of the point light sources turned on in the second mode.

8. The control method according to any one of claims 1 to 6, characterized in that: The electronic device further comprises an image collector, and the image collector is arranged on the first surface; When the laser projector projects the laser, the laser projector projects the laser toward the scene at a first operating frequency; The control method further comprises: The image collector acquires the captured image at a second operating frequency, and the second operating frequency is greater than the first operating frequency; distinguishing in the captured images a first image captured when the laser projector is not projecting laser light and a second image captured when the laser projector is projecting laser light; and A depth image is calculated according to the first image, the second image, and a reference image.

9. An electronic device, characterized in that: The electronic device includes a housing, a first display screen, a second display screen, a laser projector and a processor, the housing includes a first surface and a second surface opposite to each other, the first display screen and the second display screen are respectively arranged on the first surface and the second surface, and the laser projector is arranged on the first surface; the processor is used to determine the use state of the electronic device, the use state includes a front use state and a rear use state, when the electronic device is in the front use state, the first display screen and the laser projector face the user of the electronic device; when the electronic device is in the rear use state, the first display screen and the laser projector face away from the user of the electronic device, and the second display screen faces the user of the electronic device; the laser projector is used to project laser in a first mode when the electronic device is in the front use state, and is used to project laser in a second mode when the electronic device is in the rear use state, and the energy of the laser projected in the second mode is greater than the energy of the laser projected in the first mode.

10. The electronic device according to claim 9, characterized in that: The electronic device further includes a gravity sensor, and the processor is configured to determine a usage status of the electronic device through the gravity sensor.

11. The electronic device according to claim 10, characterized in that: The processor is further configured to: Obtaining the value of the z-axis of the gravity sensor; When the value of the z-axis is greater than a first preset value, determining that the electronic device is in the pre-use state; and When the value of the z-axis is less than a second preset value, it is determined that the electronic device is in the post-use state.

12. The electronic device according to claim 9, characterized in that: The processor is used to determine the usage status of the electronic device according to the first touch signal detected by the first display screen and / or the second touch signal detected by the second display screen.

13. The electronic device according to claim 12, characterized in that: The processor is used to: When the first display screen detects the first touch signal, determining that the electronic device is in the front-use state; and When the second display screen detects the second touch signal, it is determined that the electronic device is in the post-use state.

14. The electronic device according to claim 9, characterized in that: The electronic device further comprises a state selection button, and the processor is used to determine the use state of the electronic device through the state selection button.

15. The electronic device according to any one of claims 9 to 14, characterized in that: The laser projector projects the laser light with less power in the first mode than in the second mode; and / or The laser projector includes a plurality of point light sources, and the plurality of point light sources are independently controlled; the number of the point light sources turned on by the laser projector in the first mode is less than the number of the point light sources turned on in the second mode.

16. The electronic device according to any one of claims 9 to 14, characterized in that: The electronic device further includes an image collector, which is disposed on the first surface; when the laser projector projects the laser, the laser projector is used to project the laser to the scene at a first operating frequency; the image collector is used to acquire an image at a second operating frequency, and the second operating frequency is greater than the first operating frequency; the processor is also used to: distinguishing in the captured images a first image captured when the laser projector is not projecting laser light and a second image captured when the laser projector is projecting laser light; and A depth image is calculated according to the first image, the second image, and a reference image.

17. The electronic device according to any one of claims 9 to 14, characterized in that: The first display screen is an open screen with an opening at one end, the second display screen is a full screen, and the laser projector is installed in the opening; or The first display screen and the second display screen are both full screens, and the laser projector is arranged below the first display screen.