Adjustment method

By using sensors in electronic devices to obtain the relative positional relationship between the display area and the target object, and adjusting the display data, the problem of insufficient display screen adjustment accuracy in the existing technology is solved, and the display effect and user experience in various scenarios are improved. .

CN118762672APending Publication Date: 2024-10-11LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410917887.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

In the existing technology, the display screen adjustment of electronic devices relies on ambient light sensors, which results in the inability to accurately reflect the actual environment in some cases, resulting in insufficient display screen adjustment accuracy, especially when there is an offset angle or background between the viewer and the display area. When the light conditions are complex, the user needs to manually adjust.

Method used

By using sensors such as image sensors and depth sensors in electronic devices to obtain the relative positional relationship between the target object and the display area, the display data is adjusted to improve readability, including comprehensive consideration of multiple factors in complex scenarios such as offset angles or direct sunlight. Display data adjustment.

Benefits of technology

It improves the readability and adjustment accuracy of the display area, reduces the user's need for manual adjustment, and enhances the device's automatic adjustment capabilities in a variety of scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118762672A_ABST
    Figure CN118762672A_ABST
Patent Text Reader

Abstract

The invention discloses an adjustment method, and the method comprises the steps: obtaining first target data, the first target data representing a relative position relation between a target object and a target display region of a first device, the target object being located in a collection range of a first sensor of a second device, and the second device being the same device or different devices with the first device; and adjusting display data of the target display area based on the first target data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of adjustment technology, and in particular to an adjustment method. Background Art

[0002] At present, the screen light adjustment scheme for electronic devices is generally: using an ambient light sensor (ALS) to measure the brightness of the current environment, and then adjusting the display screen based on the ambient brightness. Due to the limitations of the sensor, it is unable to truly reflect the current environment, resulting in incorrect adjustment of the display screen of the electronic device and poor adjustment accuracy. Summary of the invention

[0003] In view of this, the present application provides an adjustment method.

[0004] The technical solution of the embodiment of the present application is implemented as follows:

[0005] An embodiment of the present application provides an adjustment method for obtaining first target data, wherein the first target data represents a relative position relationship between a target object and a target display area of ​​a first device, wherein the target object is located within a collection range of a first sensor of a second device, and the second device and the first device are the same device or different devices; based on the first target data, the display data of the target display area is adjusted.

[0006] An embodiment of the present application provides an electronic device, including:

[0007] an acquisition module, configured to acquire first target data, wherein the first target data represents a relative positional relationship between a target object and a target display area of ​​a first device, wherein the target object is located within a collection range of a first sensor of a second device, and the second device and the first device are the same device or different devices;

[0008] An adjustment module is used to adjust display data of the target display area based on the first target data.

[0009] An embodiment of the present application provides an electronic device, including: a processor, a memory, and a communication bus;

[0010] The communication bus is used to realize the communication connection between the processor and the memory;

[0011] The processor is used to execute the computer program stored in the memory to implement the above adjustment method.

[0012] An embodiment of the present application provides a computer-readable storage medium, which stores one or more computer programs. The one or more computer programs can be executed by one or more processors to implement the above-mentioned adjustment method.

[0013] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and are not intended to limit the technical solutions provided in the embodiments of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work, among which:

[0015] Figure 1 A flowchart of an adjustment method provided in an embodiment of the present application;

[0016] Figure 2 An exemplary display data adjustment scenario provided in an embodiment of the present application Figure 1 ;

[0017] Figure 3 A schematic diagram of an exemplary process for adjusting display data provided in an embodiment of the present application Figure 1 ;

[0018] Figure 4 A schematic diagram of an exemplary process for obtaining first target data provided in an embodiment of the present application Figure 1 ;

[0019] Figure 5 A schematic diagram of an exemplary image adjustment provided in an embodiment of the present application;

[0020] Figure 6 A schematic diagram of an exemplary process for obtaining first target data provided in an embodiment of the present application Figure 2 ;

[0021] Figure 7 A schematic diagram of an exemplary process for obtaining first target data provided in an embodiment of the present application Figure 3 ;

[0022] Figure 8 A schematic diagram of an exemplary process for determining parameters provided in an embodiment of the present application;

[0023] Fig. 9 A schematic diagram of an exemplary process for adjusting display data provided in an embodiment of the present application Figure 2 ;

[0024] Fig.10 An exemplary display data adjustment scenario provided in an embodiment of the present application Figure 2 ;

[0025] Fig.11 A schematic diagram of an exemplary process for adjusting display data provided in an embodiment of the present application Figure 3 ;

[0026] Fig.12 An exemplary display data adjustment scenario provided in an embodiment of the present application Figure 3 ;

[0027] Fig.13 A structural schematic diagram of an exemplary adjustment method provided in an embodiment of the present application;

[0028] Fig.14 A schematic diagram of an exemplary process of setting parameters provided in an embodiment of the present application;

[0029] Fig.15 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application Figure 1 ;

[0030] Fig.16 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application Figure 2 . DETAILED DESCRIPTION

[0031] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. It is understood that the specific embodiments described herein are used to explain the related applications, rather than to limit the applications. It should also be noted that, for ease of description, only the parts related to the related applications are shown in the drawings.

[0032] In the related art, when adjusting the display screen parameters, the adjustment is usually made according to the ambient light. However, the inventors of the present application have found that the ideal viewing effect cannot be achieved by adjusting the ambient light alone in some cases, and the user needs to make manual adjustments. For example, when there is a certain offset angle between the viewer and the display area, the readability of the display area gradually decreases as the angle increases, and the readability of the display area changes with the change of the viewing angle, resulting in the lack of accuracy of the automatic adjustment function of the device in the presence of an offset angle, and the user still needs to make manual adjustments.

[0033] The present application embodiment provides an adjustment method, which can be implemented by an electronic device, such as Figure 1 As shown, the steps include the following steps S101 and S102:

[0034] Step S101, obtaining first target data, the first target data representing the relative position relationship between the target object and the target display area of ​​the first device, the target object is located in the collection range of the first sensor of the second device, and the second device and the first device are the same device or different devices.

[0035] In an embodiment of the present application, an electronic device may obtain first target data. Exemplarily, the first target data may be obtained by collecting data within a corresponding collection range through a first sensor of a second device. The first sensor may be an image sensor, such as a computer vision camera (CV camera), a charge-coupled device (CCD) image sensor, and a complementary metal oxide semiconductor (CMOS) image sensor, or a depth sensor, or other sensors capable of determining the relative position relationship between a target object and a target display area of ​​the first device.

[0036] Exemplarily, the target display area of ​​the first device may be the entire display area or a portion of the display area of ​​the display screen on the first device. If the second device and the first device are the same device, then the first sensor may be located on the first device to obtain the relative position relationship between the target object and the target display area of ​​the first device. If the second device and the first device are different devices, the relative position relationship between the target object and the target display area of ​​the first device may be obtained by using the first sensor located on the second device.

[0037] Exemplarily, the relative position relationship may be used to represent the distance between the target object and the target display area, or the offset angle, or other position relationships.

[0038] Exemplarily, in one possible case, the first sensor may be an image sensor, and the setting position of the first sensor in the device may be known. Then, an image containing the target object may be obtained through the image sensor, and then the relative position relationship of the target object with respect to the target display area may be determined based on the position of the target object in the image. Among them, an exemplary way of knowing the setting position of the first sensor in the device may be that the user sees the device position of the first sensor (the setting position of the first sensor input by the electronic device to receive the user), the user may configure the relative position of the first sensor and the display screen on the electronic device, or may use the default setting position for the first sensor on the electronic device, etc., but the present application is not limited thereto, that is, those skilled in the art may adjust or set according to specific needs.

[0039] Exemplarily, in one possible case, the first sensor may be a depth sensor, and the depth sensor may be located in the target display area of ​​the first device. The depth sensor may send pulsed light to the target object, measure the time difference of light propagating at the speed of light and returning through the target object, and then obtain a depth image containing the target object, and then determine the relative position relationship of the target object with respect to the target display area based on the position of the target object in the depth image. This is a discussion of the technical principle of time difference ranging based on the depth sensor. Of course, the ranging principle of the depth sensor may also be the structured light principle, the triangulation principle, or other sound wave, electromagnetic wave and other principles to determine the relative position relationship between the target object and the target display area.

[0040] In one possible scenario, taking the depth sensor as a laser transmitter as an example, the laser transmitter can emit a laser beam to the target object, and the laser beam is captured by the receiver after being reflected by the target object; since there is a certain angle between the laser beam and the target object, and the distance between the laser transmitter and the receiver is known, the distance traveled by the laser beam from emission to reflection can be calculated through the triangle relationship; by detecting the position of the reflected light, the microcontroller can accurately calculate the angle change, and then calculate the distance between the target object and the sensor based on the trigonometric function.

[0041] In other possible cases, taking the depth sensor as a radar (such as millimeter wave radar, etc.) as an example, the millimeter wave radar can transmit millimeter wave signals and measure the distance by receiving the signal reflected from the target object. By measuring the time difference between the transmitted signal and the received signal, the round-trip time of the signal can be calculated to obtain the distance of the target object. At the same time, the millimeter wave radar can also measure the angle of the object relative to the sensor by the phase change of the received signal.

[0042] In other possible cases, for example, the depth sensor is an ultrasonic sensor, which can measure the distance by emitting ultrasonic waves and receiving echoes reflected from the target object; by calculating the time difference between the emitted wave and the reflected echo, the distance between the target object and the sensor can be obtained. The probe of the ultrasonic sensor usually has a certain coverage angle, which can measure the position of the object at different angles.

[0043] It should be noted that the present application does not specifically limit the type of the first sensor, that is, those skilled in the art can adjust its type according to actual conditions. The above situation is only an exemplary description of the types of applications of the first sensor in the present application, but is not limited to the situations described in the above embodiments.

[0044] Step S102: adjusting display data of a target display area based on the first target data.

[0045] Exemplarily, the display data may be brightness, contrast, exposure, color, grayscale, or other display parameters of the target display area that can increase the readability of the display area.

[0046] In an embodiment of the present application, the electronic device can adjust the display data of the target display area based on the relative position relationship between the target object and the target display area. For example, if the first target data is an offset angle between the target object and the target display area, then the larger the offset angle, the worse the readability of the target object to the target display area (e.g., reduced brightness or reduced contrast, etc.), see Figure 2 At this time, the brightness or contrast of the target display area can be increased to increase the readability of the target display area.

[0047] like Figure 2 As shown, a schematic diagram of the relative position relationship between the target object and the target display area is provided. It can be seen that the target display area 21 can be the entire display screen. The figure shows two relative position relationships, one is that the target object 221 is facing the target display area 21, and the other is that the target object 222 is facing the target display area from the side. Figure 2 It can be seen from the correspondence between the brightness and the offset angle of the display screen below that the greater the offset angle of the target object 22 compared to the target display area 21, the lower the brightness of the target display area 21. Therefore, adjusting the display data of the target display area 21 can avoid changes in the expression of the display data of the target display area 21 when the target object 22 looks at the target display area 21 from the side, thereby enabling the target object 22 to obtain a more accurate expression of display parameters.

[0048] Exemplarily, if the first target data is the distance between the target object and the target display area, then the greater the distance, the worse the readability of the target object to the target display area. At this time, the brightness, contrast or screen size of the target display area can be increased to increase the readability of the target display area.

[0049] The present application takes into account the different relative positional relationships between the target object and the target display area, and the different readability of the target object to the target display area. Therefore, a method is provided to adjust the display data of the target display area based on the relative positional relationship between the target object and the target display area, so that the adjusted display data is more adapted to the current relative positional relationship, thereby improving the accuracy of the display data adjustment.

[0050] In some embodiments, when the electronic device executes the above step S102, Figure 3 As shown, the following steps S301 to S303 may be included:

[0051] Step S301: Obtain first display data corresponding to a target display area when the first target data is a first parameter.

[0052] For example, in combination Figure 2 , the first parameter can be that the relative position relationship between the target object 221 and the target display area 21 is a straight view, that is, there is no offset angle between the target object 221 and the target display area 21, or there is an offset angle within an acceptable range, and the corresponding first display data is obtained. Among them, the first display data is the display data with higher readability corresponding to the first target data as the first parameter. The offset angle within the acceptable range is the offset angle that does not affect the readability of the target display area when the first display data is used.

[0053] Exemplarily, in one possible case, the acceptable offset angle is 5 degrees (of course, it can also be set to other offset angle values, for example, 3 degrees, 7 degrees, 10 degrees, etc.), then, the target object and the target display area are within the angle range of 0 to ±5 degrees (correspondingly, 0 to ±3 degrees, 0 to ±7 degrees, 0 to ±10 degrees, etc.) in the above example, and can be regarded as the target object facing the target display area. At this time, the relative position relationship between the target object and the target display area is regarded as unchanged. However, the present application does not specifically limit the acceptable offset angle value, that is, those skilled in the art can adjust its type according to actual conditions. As long as the "acceptable offset angle value" can achieve "the offset angle at which the readability of the target display area is not affected by using the first display data", it is acceptable.

[0054] Exemplarily, display data corresponding to each parameter of a plurality of parameters may be stored in the memory of the electronic device. Then, when the relative position relationship between the target object and the target display data is exactly the first parameter (characterizing that the target object is facing the target display area or there is an offset angle within an acceptable range between the target object and the target display area (for example, the offset angle is in a range greater than -5 degrees and less than +5 degrees. Of course, the offset angle may also be in a range greater than -10 degrees and less than +10 degrees, etc., and the angle range in which the offset angle is located may be set based on actual needs and application scenarios), the corresponding first display data may be directly obtained from the data stored in the memory based on the first parameter. If the display data of the target display area is not the first display data at this time, then the display data of the target display area needs to be adjusted to the first display data. If the display data of the target display area is the first display data at this time, there is no need to change the display data of the target display area.

[0055] Exemplarily, if the relative position relationship between the target object and the target display data is exactly the first parameter (the target object looks sideways at the target display area or there is an offset angle between the target object and the target display area that is within an unacceptable range (for example, the offset angle is greater than +5 degrees, or the offset angle is less than -5 degrees. Of course, the offset angle may also be greater than +10 degrees, or the offset angle is less than -10 degrees, etc. The angle range in which the offset angle is located may be set based on actual needs and application scenarios), the corresponding first display data may be obtained from the data stored in the memory based on the first parameter. If the display data of the target display area is not the first display data at this time, then the display data of the target display area needs to be adjusted to the first display data. If the display data of the target display area is the first display data at this time, then there is no need to change the display data of the target display area.

[0056] Exemplarily, the electronic device obtains the first display data corresponding to the target display area when the first target data is the first parameter by pre-storing the display data corresponding to each parameter in the multiple parameters, which can be obtained based on the first parameter, or when the user manually adjusts the display data of the target display area, the first target data is known, then the manually adjusted first display data can also be known, so that the corresponding display data can be directly obtained. For example, when the user manually adjusts the display data of the target display area, the device can know the relative position with the user (the first target data), and can also know the first display data adjusted by the user, so the device can obtain the corresponding display data, that is, in this possible case, after the user adjusts the display data of the target display area, the device can "obtain the first display data corresponding to the target display area when the first target data is the first parameter".

[0057] Exemplarily, the electronic device may obtain the first display data corresponding to the target display area when the first target data is the first parameter by directly displaying the first target data and the first display data on the display screen. Then, when the first target data is the first parameter, the displayed data may be the first display data.

[0058] Step S302: when the first target data changes from the first parameter to the second parameter, determine the second display data corresponding to the target display area under the second parameter, and the relative position relationship represented by the second parameter is different from the relative position relationship represented by the first parameter.

[0059] For example, in combination Figure 2, the second parameter can be that the relative position relationship between the target pair 222 and the target display area 21 is a side view, that is, there is an unacceptable offset angle between the target object and the target display area, and the second display data corresponding to the target display area under the second parameter is determined. Among them, the first display data is the display data with higher readability corresponding to the first target data when the second parameter is used. The unacceptable offset angle is the offset angle that affects the readability of the target display area using the first display data.

[0060] For example, if the offset angle is greater than ±5 degrees (or greater than ±10 degrees), it can be considered a side view. Then, the offset angle between the target object and the target display area changes from 5 degrees to 10 degrees (or from 10 degrees to 20 degrees), which means that the first target data changes from a front view to a side view, indicating that the first display data under the first parameter does not match the target display area under the second parameter, and the second display data of the target display area under the side view can be determined.

[0061] Exemplarily, in the first scenario, if the above-mentioned first parameter is a characterization of the target object looking directly at the target display area or the target object and the target display area have an offset angle within an acceptable range (for example, the offset angle is in a range greater than -5 degrees and less than +5 degrees, of course, the offset angle can also be in a range greater than -10 degrees and less than +10 degrees, etc., and the angle range in which the offset angle is located can be set based on actual needs and application scenarios), then, the second parameter at this time can be the target object looking sideways at the target display area or the target object and the target display area have an offset angle within an unacceptable range (for example, the offset angle is greater than +5 degrees, or the offset angle is less than -5 degrees, of course, the offset angle can also be greater than +10 degrees, or the offset angle is less than -10 degrees, etc., and the angle range in which the offset angle is located can be set based on actual needs and application scenarios), then, when the first target data changes from the first parameter to the second parameter, based on the corresponding relationship between the offset angle and the brightness of the display screen, the brightness attenuation value of the display screen from the first parameter to the second parameter is obtained, and then the brightness value in the display data is corrected based on the brightness attenuation value.

[0062] Exemplarily, in the second scenario, if the first parameter is that the target object is looking sideways at the target display area or there is an offset angle within an unacceptable range between the target object and the target display area (for example, the offset angle is greater than +5 degrees, or the offset angle is less than -5 degrees, etc., of course, the offset angle may also be greater than +10 degrees, or the offset angle is less than -10 degrees, etc., for example, the offset angle is 10 degrees or 20 degrees), then, the second parameter at this time may be a characterization of the target object looking directly at the target display area or there is an offset angle within an acceptable range between the target object and the target display area (for example, the offset angle is greater than -5 degrees and less than +5, of course, the offset angle may also be greater than -10 degrees and less than +10 degrees), then, when the first target data changes from the first parameter to the second parameter, then, when the first target data changes from the first parameter to the second parameter, the display data under the second parameter can also be obtained from the correspondence between different parameters and display data in the memory.

[0063] Step S303, adjusting the display data from the first display data to the second display data; wherein the display effect represented by the second display data under the second parameter is consistent with the display effect represented by the first display data under the first parameter.

[0064] Exemplarily, the electronic device can adjust the display data from the first display data corresponding to the front view to the second display data corresponding to the side view, and the current second display data better matches the changed side view, so that the display effect represented by the second display data under the side view is basically consistent with the display effect represented by the first display data under the front view. It should be noted that basically consistent means that the display effect of the target display area adjusted by the second display data when the user views the side view is the same as or similar to the display effect of the target display area adjusted by the first display data when the user views the side view.

[0065] Exemplarily, for the first scenario described above, when the target object changes from looking directly at the target display area to looking sideways at the target display area, the first display data corresponding to the direct view will be adjusted to the second display data corresponding to the side view. If the brightness value of the target display area is reduced for the target object after looking sideways, then the readability of the target display area can be increased by increasing the brightness value of the target display area, that is, the brightness value in the first display data is less than the brightness value of the second display data. If the brightness value of the target display area is enhanced for the target object after looking sideways, then the readability of the target display area can be increased by reducing the brightness value of the target display area, that is, the brightness value in the first display data is greater than the brightness value of the second display data.

[0066] Exemplarily, for the second scenario described above, when the target object changes from the side-view target display area to the front-view target display area, the first display data corresponding to the side view will be adjusted to the second display data corresponding to the front view. If the brightness value of the target display area is reduced for the target object after the front view, then the readability of the target display area can be increased by increasing the brightness value of the target display area, that is, the brightness value in the first display data is less than the brightness value of the second display data. If the brightness value of the target display area is enhanced for the target object after the front view, then the readability of the target display area can be increased by reducing the brightness value of the target display area, that is, the brightness value in the first display data is greater than the brightness value of the second display data.

[0067] In this way, the display data that best matches the current relative position relationship can be determined in real time with respect to the relative position relationship between the target object and the target display area, thereby improving the readability of the display area and the accuracy of the display area adjustment.

[0068] In some embodiments, the offset position of the target object and the target display area represented by the second parameter is greater than the offset position of the target object and the target display area represented by the first parameter; and the value represented by the first display data is greater than the value represented by the second display data.

[0069] For example, in combination Figure 2 The corresponding relationship between the brightness (or contrast, etc.) of the display screen and the offset angle is as follows: if the offset position is larger, the brightness (or contrast, etc.) of the target display area 21 is lower, and the value of the display data adjustment must be larger to make the target display area have the same readability, so that the display effect can basically be consistent.

[0070] Exemplarily, when the first parameter represents that the offset position of the target object and the target display area is 40 degrees, the brightness value of the target display area viewed by the target object is expressed as 10; when the second parameter represents that the offset position of the target object and the target display area is 60 degrees (or other values ​​greater than 40 degrees), the brightness value of the target display area viewed by the target object is expressed as 5; that is, as the angle of the offset position between the target object and the target display area increases, the numerical expression of the display data of the target display area viewed by the target object will decrease.

[0071] Therefore, in order to achieve the same display effect (such as consistent brightness value or consistent contrast, etc.), no matter what the relative position relationship between the target object and the target display area is, the method provided in this embodiment can make the brightness value or contrast of the target display area viewed by the target object be the target brightness value or target contrast, etc.

[0072] Exemplarily, taking brightness value (or contrast, etc.) as an example, in one possible case, the target brightness value (or target contrast, etc.) of the target display area (brightness value (or contrast, etc.) with better readability) is 20. In some embodiments, this embodiment can increase the display brightness (or contrast, etc.) corresponding to the normal view by 10 when the offset position between the target object and the target display area represented by the first parameter is 40 degrees. At this time, the brightness value (or contrast, etc.) of the display data is 30. In this case, the target display area with a brightness value (or contrast, etc.) of 30 for the display data seen by the target object and the target display area with a brightness value (or contrast, etc.) of 20 for the display data seen by the target object at a normal view angle are substantially the same or similar.

[0073] In other embodiments, this embodiment can make the brightness value (or contrast, etc.) of the display data corresponding to the second parameter increase by 15 on the basis of the display data corresponding to the normal view when the offset position between the target object and the target display area represented by the second parameter is 60 degrees (or other values ​​greater than 40 degrees). At this time, the brightness value (or contrast, etc.) of the display data is 35. In this case, the target display area with a brightness value (or contrast, etc.) of 35 for the display data seen by the target object and the target display area with a brightness value (or contrast, etc.) of 30 for the display data seen by the target object at the angle represented by the first parameter are substantially the same or similar. That is, the larger the offset position, the larger the value of the display data adjustment can be.

[0074] In some embodiments, when the electronic device executes the above step S302 of "determining the second display data corresponding to the target display area under the second parameter", it can perform the following steps: search for the display data corresponding to the second parameter from the correspondence between the preset parameters and the display data, and determine the found display data as the second display data.

[0075] In an embodiment of the present application, the correspondence between the preset parameters and the display data may be data pre-stored in the electronic device, and the correspondence between the preset parameters and the display data includes the display data corresponding to each parameter in the different parameters. Exemplarily, the correspondence between the preset parameters and the display data may be: the offset angle is 90-80 degrees, the brightness value of the display data is 90; the offset angle is 80-70 degrees, the brightness value of the display data is 80, ..., etc., the offset angle is 10-0 degrees, and the brightness value of the display data is 10. Of course, the correspondence between the preset parameters and the display data may also be: when the deflection angle is 10-0 degrees, the corresponding brightness value (target brightness value) is 10, when the deflection angle is 20-10 degrees, the corresponding brightness difference is +10, that is, +10 in the case of the normal view, and when the deflection angle is 30-20 degrees, the corresponding brightness difference is +20, that is, the target brightness value can be used as a reference. It should be noted that the present application does not specifically limit the correspondence between preset parameters and display data, that is, those skilled in the art can set and adjust according to actual conditions. For example, the correspondence between preset parameters and display data can be: the correspondence between different offset angles and the contrast of display data or the correspondence between different offset angles and the color temperature of display data, etc. The above situation is only an exemplary description of the forms in which the correspondence between preset parameters and display data in the present application can exist, but is not limited to the situations described in the above embodiments.

[0076] Exemplarily, in one possible case, the second parameter can characterize the relative position between the target object and the target display area as having an offset angle of 45 degrees when viewed from the side, and the preset parameters and display data include display data corresponding to a relative position relationship of an offset angle of 40 to 50 degrees when viewed from the side. Then, 45 degrees falls within this numerical range. Then, the display data corresponding to an offset angle of 40 to 50 degrees when viewed from the side in the preset parameters and the display data is the second display data corresponding to the second parameter.

[0077] Exemplarily, in one possible case, the second parameter can characterize the relative position between the target object and the target display area as having an offset angle of 45 degrees when viewed from the side, and the correspondence between the preset parameters and the display data includes a relative position relationship as having an offset angle of 40 to 50 degrees when viewed from the side, corresponding to a brightness difference of +40. Then, the brightness value of the display data can be +50, which can be the second display data corresponding to the second parameter.

[0078] In this way, by presetting the corresponding relationship and determining the change of the first target data, the corresponding display data is searched based on the change, so that the display data of the target display area is adjusted to the searched display data, thereby improving the timeliness and efficiency of display data determination.

[0079] In some embodiments, when the electronic device executes the above step S101, Figure 4 As shown, the following steps S401 to S403 may be included:

[0080] Step S401: Capture a first image containing a target object within a capture range using a first sensor, and obtain a relative position between the first sensor and a target display area.

[0081] In an embodiment of the present application, in one possible case, the first sensor is an image sensor. For example, when the target object is viewing the target display area, the first sensor on the first device where the target display area is located can be used to directly capture a first image containing the target object.

[0082] Exemplarily, in one possible case, the first sensor is a depth sensor. Then, when the target object views the target display area, the first sensor on the first device where the target display area is located can be used to measure a depth image containing the target object.

[0083] In the embodiment of the present application, when the first sensor is located in the first device, the target display area can be the target display area of ​​the first device, then the electronic device can obtain the installation position of the first sensor and the position of the target display area on the display screen, so that the relative position between the first sensor and the target display area can be determined based on the installation position of the first sensor and the position of the target display area on the display screen, for example, the first sensor can be located in which direction of the target display area, how far away, etc. Alternatively, the relative position of the first sensor and the target display area can be pre-stored in the memory of the electronic device, in which case it can be directly obtained.

[0084] Step S402: determining a first target position corresponding to the target object from the first image based on the relative position; the first target position represents a position area of ​​the target object in the first image.

[0085] In an embodiment of the present application, the electronic device may determine the first target position corresponding to the target object from the first image according to the relative position.

[0086] For example, Figure 5 As shown, in one possible case, the first sensor 51 can be located 10 cm to the upper left of the target display area 52. Then, the picture range in the first image 53 can be corrected based on the relative position, that is, the lower right 10 cm in the first image is determined as the center position 54 of the image to obtain the actual position of the target object 55 in the first image 53 relative to the target display area 52, that is, the first target position.

[0087] The main consideration here is that although the target object is located at the edge of the first image, it may not be in a side view state with respect to the target display area. Therefore, the position of the target object in the first image is first corrected based on the relative position relationship, and then the first target data is determined based on the corrected position.

[0088] Exemplarily, when the first sensor is located at the midline position or the center position of the target display area, it means that the first image containing the target object captured by the first sensor is an image based on the center position or the midline position of the target display area. Then, the position of the target object in the first image is the actual position of the target object relative to the target display area. Therefore, the actual position corresponding to the target object can be directly determined based on the captured first image without correction.

[0089] Step S403: determine first target data based on the first target position.

[0090] In an embodiment of the present application, the electronic device can determine the first target data based on the real position of the target object relative to the target display area. Figure 5 As shown, in one possible case, the position of the target object after correction represents that the target object is located at the edge position 56 of the first image, which can indicate that the target object is in a side view relative to the target display area. If the position of the target object after correction represents that the target object is located at the center position 54 of the first image, it can indicate that the target object is in a front view relative to the target display area.

[0091] Exemplarily, in one possible case, the first sensor may be located at the center of the target display area. In this case, no correction is required and it can be directly determined that if the target object is at an edge position in the first image, it can be said that the target object is viewed sideways compared to the target display area. If the target object is at a center position in the first image, it can be said that the target object is viewed frontally compared to the target display area.

[0092] In this way, the relative position between the first sensor and the target display area is taken into account when determining the position of the target object in the first image, so that the determined position of the target object in the first image is closer to the actual position of the target object relative to the target display area, thereby improving the accuracy of determining the relative position relationship.

[0093] In some embodiments, when the electronic device executes the above step S303, Figure 6 As shown, the following steps S601 and S602 may be included:

[0094] Step S601: when the first target position is a preset position area, determine the first target data as a first parameter.

[0095] In an embodiment of the present application, in a possible case, the first parameter may be a normal view target display area, and the preset position area may be a position area set for the first image, for example, in combination with Figure 5 , taking the target display area 52 as a reference, the first image is corrected to obtain a corrected first image 58, and then the middle area 57 near the center position 54 of the corrected first image 58 is divided into a preset position area. If the first target position is within the preset position area, it can be said that the first target data is a normal view target display area. Exemplarily, if there is no need to correct the first image, the preset position area can be divided based on the first image, and the middle area near the center position is divided into the preset position area. If the first target position is within the preset position area, it can be said that the first target data is a normal view target display area.

[0096] Exemplarily, the preset location area may be a rectangular area, such as Figure 5 57 may also be a circle, an ellipse or other regular or irregular areas, and the specific division may be based on actual conditions.

[0097] For example, in some possible cases, the first parameter may be a parameter of the side-view target display area, then the preset position area may be an edge position in the corrected first image, combined with Figure 5 , the first image can be corrected based on the target display area 52 to obtain a corrected first image 58, and then the edge position 56 of the corrected first image 58 can be divided into a preset position area. Then, if the first target position is within the preset position area, it can be said that the first target data is a side-view target display area.

[0098] Step S602: When the first target position is not in the preset position area, determine the first target data as the second parameter.

[0099] In an embodiment of the present application, in one possible case, the second parameter is the side-view target display area, combined with Figure 5 If the first target position is not in the preset position area 57, it can be said that the target object is at the edge position 56 of the corrected first image 58, and the first target data can be said to be a side-view target display area. Exemplarily, if there is no need to correct the first image, and the first target position is not in the preset position area, it can be said that the target object is at the edge position of the first image, that is, the first target data is a side-view target display area.

[0100] For example, in a possible case, the first parameter is to face the target display area, then the non-preset position area can be the center position of the corrected first image, combined with Figure 5 , the first image is corrected based on the target display area 52 to obtain a corrected first image 58, and then the middle area 57 near the center position 54 of the corrected first image 58 is divided into a non-preset position area. Then, if the first target position is within the non-preset position area, it can be said that the first target data is facing the target display area.

[0101] Exemplarily, through the above steps S401 to S403, and steps S601 and S602, the relative position relationship between the target object and the target display area can be determined, that is, whether the target object is viewed sideways or frontally compared to the target display area.

[0102] In another embodiment, if Figure 7 As shown, the electronic device may further include the following steps S701 and S702 when executing the above step S101:

[0103] Step S701: Obtain a second target position corresponding to the target object and a third target position of the target display area.

[0104] In an embodiment of the present application, the electronic device can directly detect the second target position of the target object and the third target position corresponding to the target display area.

[0105] Exemplarily, the second target position and the third target position of the target object may be detected by laser positioning or radar positioning. For example, the position between the second target position and the third target position may be measured by coordinates in the world coordinate system. If the second target position corresponding to the target object is (x1, y1, z1), the third target position of the target display area is (x2, y2, z2). The third target position may be any position on the midline of the target display area. If the target display area is an irregular area, the third target area may also be the center point of the target display area, or other points that can characterize the position of the target display area.

[0106] Exemplarily, obtaining a second target position corresponding to the target object and a third target position of the target display area may also be determined based on the first image, and the target position is determined by image recognition.

[0107] Step S702: determine the offset position between the second target position and the third target position, and determine the first target data based on the relationship between the offset position and the preset offset position.

[0108] In the embodiment of the present application, the electronic device can determine the offset position based on the second target position ((x1, y1, z1)) and the third target position (x2, y2, z2), and then determine the first target data based on the relationship between the offset position and the preset offset position. The preset offset position can be ±5 degrees, or ±10 degrees, or other degrees. The preset offset position can be set based on actual needs and application scenarios, and this application does not limit this.

[0109] Exemplarily, in one possible case, the second target position corresponding to the target object and the third target position of the target display area are determined based on the above-mentioned first image. Then, the offset position between the second target position and the third target position can be directly determined based on the second target position and the third target position, and then the first target data can be determined based on the relationship between the offset position and the preset offset position.

[0110] In this way, the relative position relationship is determined based on the actual positions of the target object and the target display area, which improves the accuracy of the relative position relationship determination, thereby making the display data determined based on the relative position relationship with higher accuracy more accurate.

[0111] In some embodiments, when the electronic device executes the step S702 of “determining the first target data based on the relationship between the offset position and the preset offset position”, Figure 8 As shown, the following steps S801 and S802 may be included:

[0112] Step S801: When the offset position is less than or equal to the preset offset position, determine the first target data as the first parameter.

[0113] For example, in combination Figure 2 In one possible case, the preset offset position (231 and 232) is ±10 degrees (of course, it can also be ±5 degrees, ±7 degrees or other degrees, etc.), then, when the offset position is between -10 degrees and +10 degrees (of course, it can also be between -5 degrees and +5 degrees, between -7 degrees and +7 degrees or other degrees, etc.), it is determined that the relative position relationship between the target object 221 and the target display area 21 is normal view. Among them, the electronic device can obtain the current offset position and the above-mentioned preset offset position. If the obtained offset position is 20, it can be seen that the offset position is greater than the preset offset position (231 and 232) by ±10 (±5 degrees, ±7 degrees, etc.), then, at this time, it can be determined that the first target data is not the first parameter; if the obtained offset position is 3, then it can be seen that the offset position is less than the preset offset position (231 and 232) by ±10 (±5 degrees, ±7 degrees, etc.), at this time, it can be determined that the first target data is not the first parameter, and the first parameter here is normal view.

[0114] Step S802: When the offset position is greater than the preset offset position, determine the first target data as the second parameter.

[0115] For example, in combination Figure 2 In one possible case, the preset offset position (231 and 232) is ±10 degrees (of course, it can also be ±5 degrees, ±7 degrees or other degrees, etc.), then, when the offset position is less than -10 degrees or greater than +10 degrees (of course, it can also be less than -5 degrees or greater than +5 degrees, less than -7 degrees or greater than +7 degrees, or other degree intervals, etc.), the relative position relationship between the target object 222 and the target display area 21 is determined to be a side view. Among them, the electronic device can obtain the current offset position and the above-mentioned preset offset position. If the obtained offset position is 20, it can be seen that the offset position is greater than the preset offset position (231 and 232) by ±10 (±5 degrees, ±7 degrees, etc.), then, at this time, it can be determined that the first target data is the second parameter; if the obtained offset position is 5, then it can be seen that the offset position is less than the preset offset position (231 and 232) by ±10 (±5 degrees, ±7 degrees, etc.), at this time, it can be determined that the first target data is not the second parameter, and the second parameter here is a side view.

[0116] In this way, by setting a preset offset position to distinguish whether the target object and the target display area are viewed from the front or from the side, it is possible to better determine whether the display data of the display screen can be adjusted in time to keep good readability of the target display area.

[0117] The inventors of the present application have discovered that relying solely on adjustment of ambient light cannot achieve an ideal viewing effect in some cases. In addition to the above-mentioned scenario of "when there is a certain offset angle between the viewer and the display area, the readability of the display area gradually decreases as the angle increases, and the readability of the display area will change with the change of the viewing angle, resulting in the automatic adjustment function of the device being insufficiently accurate in the presence of an offset angle, and the user still needs to perform manual adjustment", the inventors also discovered that if the back of the display area is directly exposed to sunlight and the user's background light conditions are dark, then the related technology will adapt to ambient light (dark background light) to adjust the display area. However, due to direct sunlight, the user's pupils will naturally shrink. If the display area is adjusted by relying on dark background light, it will make the human eye more uncomfortable, resulting in the automatic adjustment function of the device being insufficiently accurate in this scenario, and the user still needs to perform manual adjustment.

[0118] In some embodiments, Fig. 9 As shown, the electronic device may also perform the following steps S901 and S902:

[0119] Step S901, obtaining second target data; the second target data represents brightness data of a target object in a first area of ​​a first sensor, where the first area is all or part of a sensing area of ​​the first sensor.

[0120] In an embodiment of the present application, the electronic device can obtain the second target data. For example, the first sensor can be a sensor capable of detecting the brightness data of the first area where the target object is located, such as a pixel array sensor, a spectral ambient light sensor, or a plurality of photosensitive transistors of an ALS sensor, etc. However, the present application is not limited thereto, that is, those skilled in the art can adjust or set the type of the first sensor according to specific needs.

[0121] Exemplarily, if the first sensor is a pixel array sensor, then an image corresponding to the target object is directly obtained, and then an image area corresponding to the target object is identified from the image, thereby determining brightness data corresponding to the image area.

[0122] For example, if the first sensor is a spectral ambient light sensor, then the brightness data can be obtained by analyzing the characteristics of the target object such as absorption, emission and scattering of light of different wavelengths.

[0123] For example, if the first sensor is an ALS sensor, each of the multiple photosensitive transistors of the ALS sensor can be used to sense the surrounding light, and the surrounding light sensed by the multiple photosensitive transistors can be weighted averaged or averaged to obtain brightness data within the sensing range of the ALS sensor.

[0124] Exemplarily, the first area may be all or part of the sensing area of ​​the first sensor. In a possible case, the target display area 21 may be the entire display screen, such as Fig.10 As shown, a schematic diagram of the relative position relationship between the target object and the target display area is provided, in which the target object 222 is shown looking sideways at the target display area 21, and at this time a beam of light 25 is incident on the target display area 21, and is reflected by the target display area 21 to the eye area 24, the head area 26, the neck area 27, etc. of the target object 222. At this time, the first area may be the eye area 24, the head area 26, the neck area 27, etc. corresponding to the target object 22, that is, the part of the sensing area of ​​the first sensor, and the second target data may be the brightness data of the eye area 24, the head area 26, the neck area 27, etc.

[0125] Step S902: Adjust the display data of the target display area based on the second target data.

[0126] In an embodiment of the present application, the electronic device adjusts display data of the target display area based on the obtained second target data.

[0127] For example, in the above Fig.10 In the scenario, the second target data may be brightness data of the eye area, the head area, or the neck area. In this case, the display data of the target display area may be adjusted based on the brightness data of the eye area, the head area, or the neck area.

[0128] Exemplarily, the adjustment of the display data of the target display area based on the brightness data of the eye area (head area or neck area, etc.) may be that there is a correspondence between the preset brightness data and the display data. Then, after knowing the brightness data of the eye area (head area or neck area, etc.), the corresponding display data is found and the display data is adjusted.

[0129] In addition, the inventors also discovered that if the back of the display area is exposed to direct sunlight, the user's background light conditions are dim, and the user is offset from the display area, then simply adjusting the display data of the display area based on a certain situation may result in the device's automatic adjustment function being inaccurate, and the user will still need to perform manual adjustments.

[0130] For example, for Fig.10 In the scene, there is not only the brightness data of the eye region 24 (head region 26 or neck region 27, etc.), but also the target object 222 may look at the target display region 21 from the side. At this time, the brightness data of the eye region 24 (head region 26 or neck region 27, etc.) and the situation of the target object 222 looking at the target display region 21 from the side may be considered comprehensively. Exemplarily, in one possible case, considering the brightness data of the eye region (head region or neck region, etc.), the brightness value of the target display region is 5, and considering the situation of looking from the side, the brightness value of the target display region is 7. Then, the brightness value of the target display region may be the superposition of the two, that is, the brightness value of the target display region is adjusted to 12. Of course, it may also be the superposition of the two after weighting, that is, a weighted value is assigned to the brightness value 5 and the brightness value 7 respectively, and finally the brightness adjustment value of the target display region is obtained; of course, the brightness value 5 and the brightness value 7 may also be assigned the same weighted value to obtain the brightness adjustment value of the target display region.

[0131] In this way, the display data of the target display area can be adjusted according to the actual situation of the target object (for example, direct sunlight, side view, etc.), and the multiple situations are comprehensively considered to make the display data of the target display area finally determined more accurate.

[0132] In some embodiments, when the electronic device executes the above step S902, Fig.11 As shown, the following steps S1101 to S1103 may be included:

[0133] Step S1101: Collect brightness data of a second area in the second sensor through a second sensor, where the second sensor is different from the first sensor.

[0134] In an embodiment of the present application, the electronic device may collect brightness data of a second area in the second sensor through a second sensor, and the second sensor is different from the first sensor.

[0135] Exemplarily, the second sensor may be a sensor that obtains brightness data of the second area (for example, the brightness data may be a weighted average or average value of the brightness values ​​of the second area). For example, the second sensor may be an ALS sensor, or a spectral sensor, etc., for obtaining brightness data within the perception range (the second area). The first sensor may be a sensor that can obtain brightness data and detect the position information of each object therein (what is obtained is actual imaging). For example, the first sensor may be an image sensor (visual camera), or a depth sensor, etc.

[0136] For example, the second area may be all or part of the sensing area of ​​the second sensor. The second area may be an area including the first area, or an area different from the first area. Fig.10 As shown, a schematic diagram of the relative position relationship between the target object and the target display area is provided, and the figure shows that the target object 222 looks sideways at the target display area 21, and at this time a beam of light 25 is emitted into the target display area 21, and is reflected by the target display area 21 to the eye area 24, head area 26, neck area 27, etc. of the target object 22. At this time, the first area may be the eye area 24, head area 26, neck area 27, etc. corresponding to the target object 22, and the second area may be an area that can be sensed by the second sensor and includes the eye area 24, head area 26, neck area 27 corresponding to the target object 22, or may be an area that can be sensed by the second sensor but excluding the eye area 24, head area 26, neck area 27 corresponding to the target object 22.

[0137] Step S1102: If the value of the brightness data represented by the second target data is smaller than the value of the brightness data of the second area, adjust the display data of the target display area based on the second target data.

[0138] In an embodiment of the present application, if the value of the brightness data represented by the second target data is greater than the value of the brightness data of the second area, the display data of the target display area may be adjusted based on the second target data.

[0139] For example, Fig.12As shown, the first area 128 may be the face area (neck area or eye area, etc.) of the target object, and the second target data is the brightness data of the face area of ​​the target object. Fig.12 The second sensor 121 and the first sensor 122 shown can be installed on the back of the first device 123. In this way, the strong light of the sun side 124 cannot be directly sensed. The second sensor 121 can sense that the light condition of the background area where the user 125 is located under the strong light is a dark background 126. If the brightness of the display data of the target display area 127 is dimmed based on the dark background 126 (brightness data of the second area) sensed by the second sensor, it will cause a wrong judgment, because under strong light, the pupil of the target object will naturally shrink. At this time, the brightness of the target display area 127 must be greater to adapt to the current scene, that is, the target display area 127 must have stronger light to make the eyes feel comfortable. Therefore, the display data of the target display area can be adjusted based on the second target data, that is, the brightness data of the face area (neck area or eye area, etc.) of the target object.

[0140] In this way, erroneous adjustment of the display data of the display area by relying on the brightness data of the second area is avoided, the accuracy of the automatic adjustment function of the device in this scenario is improved, and the user does not need to perform manual adjustment.

[0141] For example, if Fig.12 Based on the scene shown, when the target object is still viewed from the side compared to the target display area, the electronic device will also consider the impact of the side view on the brightness of the target display area, and then adjust the display data of the target display area based on the second target data and the side view.

[0142] Step S1103: If the value of the brightness data of the first area represented by the second target data is less than or equal to the value of the brightness data of the second area, the display data of the target display area may be adjusted based on the brightness data of the second area.

[0143] In the embodiment of the present application, if the value of the brightness data of the first area represented by the second target data is less than or equal to the value of the brightness data of the second area, it means that the current target object has not been illuminated by strong light before. Fig.12 The scenes shown are different. At this time, the display data of the target display area can be determined to match the current display area based on the brightness data of the second area.

[0144] For example, another possible scenario is that the target object is wearing a sun hat or other situations in the sun, which blocks the light on the face, but the ambient light is still very bright. In this case, the brightness (display data of the display area) is still adjusted according to the ambient light (brightness data of the second area), rather than according to the light reflected on the target object's face.

[0145] In this way, the situation of misadjusting the target display area based on the dark background can be effectively avoided, thus improving the above Fig.12 The accuracy of display data adjustment for the target display area in the scene.

[0146] like Fig.13 As shown, a schematic diagram of an exemplary display screen adjustment process is provided, wherein the electronic device may include: a first sensor 131, a second sensor 132, an operating system (OS) 133 and a display screen 134. The first sensor 131 can obtain brightness data of the current environment, and the second sensor 132 can detect or identify the current scene information, which can be transmitted to the operating system 133 via a universal device interface (Human Interface Device, HID) 135. Then, if it is determined that it belongs to Fig.12 When the scene shown in the figure is shown, the display data of the display screen 134 can be adjusted based on the data of the second sensor 132. Fig.12 In the case of a scene, the display data of the display screen 134 can be adjusted based on the data of the first sensor 131. Of course, as described above Figure 2 and Fig.10 In the scenario shown, the display data of the display screen 134 can also be adjusted with the help of the data of the second sensor 132, because the first sensor 131 cannot obtain the corresponding information of the target object.

[0147] In some embodiments, when the electronic device executes the above step S901, Fig.14 As shown, the following steps S1401 and S1402 may be included:

[0148] Step S1401: Obtain environmental information of the environment in which the second device is located.

[0149] In an embodiment of the present application, the electronic device may collect first target data and second target data through a first sensor on a second device, wherein the second target data relates to brightness data of a first area, and the first area may be a face area, in which case the electronic device may obtain environmental information of the environment in which the second device is located. Exemplarily, the environmental information may be information such as outdoor, indoor, light intensity, etc.

[0150] Exemplarily, the electronic device may obtain environmental information of the environment in which the second device is located through a first sensor on the second device, or through other sensors that can obtain changes in ambient light, such as the ALS ambient light sensor, spectral ambient light sensor, etc. mentioned above.

[0151] Exemplarily, in one possible case, the sensor that obtains environmental information is an ALS ambient light sensor, which obtains brightness information within the perception range, and then can use the average value or weighted average value of the brightness information as the ambient brightness value, and then determine whether it is outdoors or indoors, and whether the light is strong or weak based on the ambient brightness value.

[0152] Step S1402: according to the environmental information, set acquisition parameters for the first sensor to acquire images; wherein the acquisition parameters include at least one or more of a fixed exposure parameter and a floating exposure parameter.

[0153] In an embodiment of the present application, considering that environmental information affects the acquisition of an image by the first sensor, for example, in the case of overexposure, the second target data obtained by the first sensor may be distorted, so that the display data of the target display area determined based on the second target data may be deviated and there is a mismatch problem. The embodiment of the present application is set according to the environmental information, and the parameters for image acquisition by the first sensor can be set. Exemplarily, a fixed exposure parameter (constant gain, fixed exposure time), a floating exposure parameter (floating gain, floating exposure time) can be set, or image acquisition can be performed in a manner combining fixed exposure parameters and floating exposure parameters, so that the second target data obtained can be more realistic, and the display data adjusted based on the second target data can be more accurate.

[0154] For example, if the environmental information is a brightness value, a fixed exposure parameter may be used when the brightness is within a preset range, and a floating exposure parameter may be used when the brightness is beyond the preset range.

[0155] Among them, the advantage of using fixed exposure parameters is that it can measure brightness with a relatively fixed and intuitive scale. Considering the performance of the device and the actual environment, extremely bright and extremely dark conditions may exceed the reasonable range, resulting in a low reference basis for the image (second target data). For example, a face is completely overexposed and cannot be recognized; the advantage of using floating exposure parameters is that no matter how the light changes, the face can always be seen clearly, but the ambient brightness is not intuitive and requires more complex conversions and calculations. Therefore, the embodiments of the present application can use a combination of fixed exposure parameters and floating exposure parameters to perform image acquisition, so that the second target data obtained can be closer to reality.

[0156] In some embodiments, before executing the above step S902, the electronic device may perform the following steps: perform data processing on the first area to obtain a second area; the second area is at least an image area that eliminates exposure differences and / or color differences of the target object.

[0157] For example, if the acquisition parameters of the first sensor are not set, the first area (such as the face area) that can be obtained may be completely overexposed and unrecognizable due to the face being beyond a reasonable range. In this case, image processing can be performed on the first area. For example, the brightness value of the first area can be reduced, the contrast can be increased, and color and color temperature can be added to perform data processing to obtain a second area that is more in line with reality.

[0158] For example, if the acquisition parameters of the first sensor are set, the target object in the first area (such as the face area) may have a dark or light skin color, which will also affect its brightness value. Therefore, image processing can be performed on the first area. For example, data processing can be performed by adjusting the color difference of the first area according to this skin color situation to obtain a second area that is more in line with reality.

[0159] Correspondingly, the step corresponding to the above step S902 is: adjusting the display data of the target display area based on the brightness data of the second area.

[0160] In the embodiment of the present application, after obtaining the corrected second area, the electronic device can adjust the display data of the target display area based on the brightness data of the second area. Since the second area is an image area that eliminates exposure differences and / or color differences of the target object, the second area is more realistic, so the display data adjusted based on the second area is more accurate.

[0161] The embodiment of the present application provides an adjustment method, obtaining first target data, the first target data characterizing the relative position relationship between the target object and the target display area of ​​the first device, the target object is located in the acquisition range of the first sensor of the second device, and the second device and the first device are the same device or different devices; based on the first target data, adjusting the display data of the target display area. The adjustment method provided in the embodiment of the present application is set to adjust the display data of the target display area based on the relative position relationship between the target object and the target display area, so that the adjusted display data is more adapted to the current relative position relationship, thereby improving the accuracy of the display data adjustment.

[0162] The present application embodiment provides an electronic device 15, such as Fig.15 As shown, including:

[0163] An acquisition module 151 is used to obtain first target data, where the first target data represents a relative position relationship between a target object and a target display area of ​​a first device, where the target object is located within a collection range of a first sensor of a second device, and the second device and the first device are the same device or different devices;

[0164] The adjustment module 152 is configured to adjust display data of a target display area based on the first target data.

[0165] In one embodiment of the present application, the adjustment module 152 is also used to obtain the first display data corresponding to the target display area when the first target data is the first parameter; when the first target data changes from the first parameter to the second parameter, determine the second display data corresponding to the target display area under the second parameter, and the relative position relationship represented by the second parameter is different from the relative position relationship represented by the first parameter; adjust the display data from the first display data to the second display data; wherein the display effect represented by the second display data under the second parameter is consistent with the display effect represented by the first display data under the first parameter.

[0166] In one embodiment of the present application, the offset position of the target object and the target display area represented by the second parameter is greater than the offset position of the target object and the target display area represented by the first parameter; the value represented by the first display data is greater than the value represented by the second display data.

[0167] In an embodiment of the present application, the adjustment module 152 is further configured to search for display data corresponding to the second parameter from the correspondence between the preset parameter and the display data, and determine the searched display data as the second display data.

[0168] In one embodiment of the present application, the acquisition module 151 is also used to capture a first image containing a target object within a capture range through a first sensor, and obtain a relative position between the first sensor and a target display area; based on the relative position, determine a first target position corresponding to the target object from the first image; the first target position represents a position area of ​​the target object in the first image; and determine first target data based on the first target position.

[0169] In one embodiment of the present application, the obtaining module 151 is further used to determine the first target data as the first parameter when the first target position is a preset position area; and to determine the first target data as the second parameter when the first target position is not a preset position area.

[0170] In one embodiment of the present application, the acquisition module 151 is also used to obtain a second target position corresponding to the target object and a third target position of the target display area; the third target position represents the position of the target display area in the first image; determine the offset position between the second target position and the third target position, and determine the first target data based on the relationship between the offset position and the preset offset position.

[0171] In one embodiment of the present application, the obtaining module 151 is further used to determine the first target data as the first parameter when the offset position is less than or equal to the preset offset position; and to determine the first target data as the second parameter when the offset position is greater than the preset offset position.

[0172] In one embodiment of the present application, the acquisition module 151 is also used to obtain second target data; the second target data represents the brightness data of the first area of ​​the target object in the first sensor, and the first area is all or part of the sensing area of ​​the first sensor; the adjustment module 152 is also used to adjust the display data of the target display area based on the second target data.

[0173] In one embodiment of the present application, the adjustment module 152 is also used to collect brightness data of a second area in the second sensor through a second sensor, and the second sensor is different from the first sensor; if the value of the brightness data represented by the second target data is greater than the value of the brightness data of the second area, the display data of the target display area is adjusted based on the second target data; if the value of the brightness data represented by the second target data is less than or equal to the value of the brightness data of the second area, the display data of the target display area is adjusted based on the brightness data of the second area.

[0174] In one embodiment of the present application, the acquisition module 151 is also used to obtain environmental information of the environment in which the second device is located; according to the environmental information, the acquisition parameters of the first sensor for image acquisition are set; wherein the acquisition parameters include at least one or more of a fixed exposure parameter and a floating exposure parameter.

[0175] In one embodiment of the present application, the adjustment module 152 is also used to process data of the first area to obtain a second area; the second area is at least an image area that eliminates exposure differences and / or color differences of the target object; based on the brightness data of the second area, the display data of the target display area is adjusted.

[0176] The present application embodiment provides an electronic device 15, such as Fig.16 As shown, it includes: a processor 161, a memory 162 and a communication bus 163;

[0177] A communication bus 163, used to implement communication connection between the processor 161 and the memory 162;

[0178] The processor 161 is used to execute the computer program stored in the memory 162 to implement the above adjustment method.

[0179] The embodiment of the present application provides an electronic device, which obtains first target data, wherein the first target data represents the relative positional relationship between a target object and a target display area of ​​a first device, wherein the target object is located within the acquisition range of a first sensor of a second device, and the second device and the first device are the same device or different devices; based on the first target data, the display data of the target display area is adjusted. The electronic device provided in the embodiment of the present application is configured to adjust the display data of the target display area based on the relative positional relationship between the target object and the target display area, so that the adjusted display data is more adapted to the current relative positional relationship, thereby improving the accuracy of the display data adjustment.

[0180] The present application provides a computer-readable storage medium, which stores one or more computer programs, and the one or more computer programs can be executed by one or more processors to implement the above adjustment method. The computer-readable storage medium can be a volatile memory (volatile memory), such as a random access memory (Random-Access Memory, RAM); or a non-volatile memory (non-volatile memory), such as a read-only memory (Read-Only Memory, ROM), a flash memory (flash memory), a hard disk (Hard Disk Drive, HDD) or a solid-state drive (Solid-State Drive, SSD); or it can be a respective device including one or any combination of the above memories, such as a mobile phone, a computer, a tablet device, a personal digital assistant, etc.

[0181] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of hardware embodiments, software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.

[0182] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0183] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0184] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0185] It should be understood that although the present application is described according to various embodiments, not every embodiment contains only one independent technical solution. This narrative method of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation methods that can be understood by those skilled in the art.

[0186] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. An adjustment method, the method comprising: Obtaining first target data, where the first target data represents a relative positional relationship between a target object and a target display area of ​​a first device, where the target object is located within a collection range of a first sensor of a second device, and the second device and the first device are the same device or different devices; Based on the first target data, display data of the target display area is adjusted.

2. The method according to claim 1, wherein adjusting the display data of the target display area based on the first target data comprises: Obtaining first display data corresponding to the target display area when the first target data is a first parameter; In a case where the first target data changes from the first parameter to a second parameter, determining second display data corresponding to the target display area under the second parameter, the relative position relationship represented by the second parameter being different from the relative position relationship represented by the first parameter; adjusting the display data from the first display data to the second display data; The display effect represented by the second display data under the second parameter is consistent with the display effect represented by the first display data under the first parameter.

3. According to the method of claim 2, the offset position of the target object and the target display area represented by the second parameter is greater than the offset position of the target object and the target display area represented by the first parameter; the numerical value represented by the first display data is greater than the numerical value represented by the second display data.

4. The method according to claim 2, wherein determining the second display data corresponding to the target display area under the second parameter comprises: The display data corresponding to the second parameter is searched from the correspondence between the preset parameter and the display data, and the searched display data is determined as the second display data.

5. The method according to any one of claims 2 to 4, wherein obtaining the first target data comprises: Acquire, by the first sensor, a first image containing the target object within the acquisition range, and obtain a relative position between the first sensor and the target display area; Based on the relative position, determining a first target position corresponding to the target object from the first image; The first target position represents a position area of ​​the target object in the first image; The first target data is determined based on the first target position.

6. The method according to claim 5, wherein determining the first target data based on the first target position comprises: In a case where the first target position is a preset position area, determining the first target data as the first parameter; When the first target position is not the preset position area, the first target data is determined to be the second parameter.

7. The method according to any one of claims 2 to 4, wherein obtaining the first target data comprises: Obtaining a second target position corresponding to the target object and a third target position of the target display area; The third target position represents the position of the target display area in the first image; An offset position between the second target position and the third target position is determined, and the first target data is determined based on a relationship between the offset position and a preset offset position.

8. The method according to claim 7, wherein determining the first target data based on the relationship between the offset position and a preset offset position comprises: When the offset position is less than or equal to the preset offset position, determining the first target data as the first parameter; When the offset position is greater than a preset offset position, the first target data is determined to be the second parameter.

9. The method according to claim 1, further comprising: obtaining second target data; The second target data represents brightness data of the target object in a first area of ​​the first sensor, where the first area is all or part of a sensing area of ​​the first sensor; Based on the second target data, display data of the target display area is adjusted.

10. The method according to claim 9, wherein adjusting the display data of the target display area based on the second target data comprises: collecting brightness data of a second area in the second sensor by a second sensor, where the second sensor is different from the first sensor; If the value of the brightness data represented by the second target data is greater than the value of the brightness data of the second area, adjusting the display data of the target display area based on the second target data; If the value of the brightness data represented by the second target data is less than or equal to the value of the brightness data of the second area, the display data of the target display area is adjusted based on the brightness data of the second area.

11. The method according to claim 9, further comprising: Obtaining environmental information of an environment in which the second device is located; According to the environmental information, acquisition parameters for the first sensor to acquire images are set; wherein the acquisition parameters include at least one or more of a fixed exposure parameter and a floating exposure parameter.

12. The method according to claim 10, further comprising: Performing data processing on the first region to obtain a second region; The second area is at least an image area where exposure differences and / or color differences existing in the target object are eliminated; Accordingly, adjusting the display data of the target display area based on the second target data includes: Based on the brightness data of the second area, the display data of the target display area is adjusted.