Display method and device, electronic equipment and storage medium
By adjusting the display content of the target area on the screen according to the usage scene of the camera module, the image overflow problem caused by ambient light or screen fill light during call is solved, achieving higher quality shooting effects and better user experience.
Patent Information
- Application Number
- CN202311540634.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-17
- Publication Date
- 2025-05-20
AI Technical Summary
When called, the front camera module is susceptible to interference from ambient light or screen fill light, resulting in overexposure of the captured images.
By obtaining the scene in which the camera module is located, it is determined whether the camera module is called, and the display content of the target area is adjusted according to the scene. When the camera module is called, the target area is displayed as a preset color; when not called, the color of the target area is adjusted according to the content of the display interface of the screen.
It effectively avoids interference from ambient light or screen fill light, improves the quality of the captured images, and provides a better user experience.
Smart Images

Figure CN120021269A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of display technologies, and in particular, to a display method, apparatus, electronic device, and storage medium. Background Art
[0002] With the development of electronic devices and to meet the user's demand for the shooting function of electronic devices, the front camera module of an electronic device is usually set by the extreme small hole technology. In this way, when the front camera module is called for shooting, it is easily interfered by ambient light or screen fill light. In related technologies, the area around the front camera module is set to black to avoid the problem that the captured image is overexposed due to interference from ambient light or screen fill light. Summary of the Invention
[0003] To overcome the problems existing in the related technologies, the present disclosure provides a display method, apparatus, electronic device, and storage medium.
[0004] According to a first aspect of an embodiment of the present disclosure, a display method is provided, and the method includes:
[0005] Obtain the scene where the camera module is located, the scene being a first scene or a second scene, the first scene being the scene where the camera module is called, the second scene being the scene where the camera module is not called, and the camera module being the front camera module of the electronic device;
[0006] Adjust the display content of the target area according to the scene, the target area being the area on the screen adjacent to the camera module.
[0007] In some embodiments, the adjusting the display content of the target area according to the scene includes:
[0008] When the scene is the first scene, display the target area in a preset color;
[0009] When the scene is the second scene, adjust the color of the target area according to the content displayed on the display interface of the screen.
[0010] In some embodiments, the adjusting the display content of the target area according to the scene includes:
[0011] When the scene is the first scene, obtain the shooting scene of the camera module;
[0012] When the shooting scene is a first type of scene, display the target area in a preset color, the first type of scene being the scene where an image is output after shooting through the camera module;
[0013] When the shooting scene is a second type of scene, adjust the color of the target area according to the content displayed on the display interface of the screen, where the second type of scene is a scene that does not output an image after being shot by the camera module.
[0014] In some embodiments, before adjusting the display content of the target area according to the scene, the method further includes:
[0015] Obtain preset information, where the preset information is used to characterize the position and shape of the target area;
[0016] Based on the preset information, determine the target area.
[0017] In some embodiments, the preset information includes coordinates and a radius, and based on the preset information, determining the target area includes:
[0018] Based on the coordinates and the radius, determine the target area, where the coordinates are used to characterize the center point position of the target area, and the radius is the radius of the target area.
[0019] In some embodiments, the preset information includes a plurality of the radii, and based on the coordinates and the radius, determining the target area includes:
[0020] Based on the coordinates and a first radius, determine the target area;
[0021] When the target area is displayed in a preset color and when the image captured by the camera module is overexposed, based on the coordinates and a second radius, determine the adjusted target area, where the second radius is greater than the first radius.
[0022] In some embodiments, the obtaining the preset information includes:
[0023] Determine the application program that calls the camera module;
[0024] Obtain the preset information corresponding to the application program, and each application program has corresponding preset information.
[0025] In some embodiments, the displaying the target area in a preset color includes:
[0026] Determine the application program that calls the camera module;
[0027] Display the target area in the preset color corresponding to the application program, and each application program has a corresponding preset color.
[0028] In some embodiments, after displaying the target area in a preset color, the method further includes:
[0029] Detect the relative position relationship between the target area and the reference position point on the screen, where the relative position relationship is used to characterize whether the position of the target area on the screen is skewed;
[0030] When the position of the target area on the screen is skewed, adjust the position of the target area according to the relative position relationship.
[0031] According to the second aspect of the embodiments of the present disclosure, a display device is provided, and the device includes:
[0032] A scene acquisition module, configured to acquire the scene where the camera module is located, where the scene is a first scene or a second scene, the first scene is the scene where the camera module is called, the second scene is the scene where the camera module is not called, and the camera module is the front camera module of the electronic device;
[0033] A display module, configured to adjust the display content of the target area according to the scene, where the target area is the area adjacent to the camera module on the screen.
[0034] In some embodiments, the display module is configured to:
[0035] When the scene is the first scene, display the target area in a preset color;
[0036] When the scene is the second scene, adjust the color of the target area according to the content displayed on the display interface of the screen.
[0037] In some embodiments, the display module is configured to:
[0038] When the scene is the first scene, acquire the shooting scene of the camera module;
[0039] When the shooting scene is a first type of scene, display the target area in the preset color, where the first type of scene is the scene where an image is output after shooting through the camera module;
[0040] When the shooting scene is a second type of scene, adjust the color of the target area according to the content displayed on the display interface of the screen, where the second type of scene is the scene where no image is output after shooting through the camera module.
[0041] In some embodiments, the device further includes:
[0042] An information acquisition module, configured to acquire preset information, where the preset information is used to characterize the position and shape of the target area;
[0043] An area determination module, configured to determine the target area based on the preset information.
[0044] In some embodiments, the preset information includes coordinates and a radius, and the area determination module is configured to:
[0045] Determine the target area based on the coordinates and the radius, where the coordinates are used to represent the center point position of the target area, and the radius is the radius of the target area.
[0046] In some embodiments, the preset information includes a plurality of the radii, and the area determination module is configured to:
[0047] Determine the target area based on the coordinates and a first radius;
[0048] When the target area is displayed in a preset color and when the image captured by the camera module is overexposed, determine the adjusted target area based on the coordinates and a second radius, where the second radius is greater than the first radius.
[0049] In some embodiments, the information acquisition module is configured to:
[0050] Determine the application program that calls the camera module;
[0051] Acquire the preset information corresponding to the application program, and each application program has corresponding preset information.
[0052] In some embodiments, the information acquisition module is configured to:
[0053] Determine the application program that calls the camera module;
[0054] Display the target area in the preset color corresponding to the application program, and each application program has a corresponding preset color.
[0055] In some embodiments, the device further includes:
[0056] A position adjustment module, configured to detect the relative position relationship between the target area and a reference position point on the screen, where the relative position relationship is used to represent whether the position of the target area on the screen is skewed;
[0057] The position adjustment module is further configured to adjust the position of the target area according to the relative position relationship when the position of the target area on the screen is skewed.
[0058] According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, including:
[0059] A processor;
[0060] A memory for storing instructions executable by the processor;
[0061] Wherein, the processor is configured to execute the method described in the first aspect of the embodiments of the present disclosure.
[0062] According to the fourth aspect of the embodiments of the present disclosure, a non-transitory computer-readable storage medium is provided. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method described in the first aspect of the embodiments of the present disclosure.
[0063] Adopting the above method of the present disclosure has the following beneficial effects:
[0064] The method provided by the embodiments of the present disclosure obtains the scene where the camera module is located to determine whether the camera module is called, and then adjusts the display content of the target area according to whether the camera module is called. Compared with the related art in which the area around the front camera module is set to black, the display content of the target area in the present disclosure changes in real time according to whether the camera module is called, avoiding the interference of ambient light or screen fill light while enabling users to have a better use experience.
[0065] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present invention and used together with the specification to explain the principles of the present invention.
[0067] Figure 1 is a flowchart of a display method shown according to an exemplary embodiment;
[0068] Figure 2 is a flowchart of another display method shown according to an exemplary embodiment;
[0069] Figure 3 is a schematic diagram of a display interface shown according to an exemplary embodiment;
[0070] Figure 4 is a flowchart of another display method shown according to an exemplary embodiment;
[0071] Figure 5 is a schematic diagram of a display interface shown according to an exemplary embodiment;
[0072] Figure 6It is a flowchart of another display method shown according to an exemplary embodiment;
[0073] Figure 7 It is a block diagram of a display device shown according to an exemplary embodiment;
[0074] Figure 8 It is a block diagram of an electronic device shown according to an exemplary embodiment. Detailed implementation manners
[0075] Here, the exemplary embodiments will be described in detail, and the examples are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present invention. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0076] The display method provided by the embodiments of the present disclosure is applied to an electronic device, and the electronic device is a device with a front camera module disposed in the screen. For example, the electronic device is a mobile phone, a tablet computer, a laptop computer, a smart terminal, or the like.
[0077] The front camera module is disposed in the screen of the electronic device through the extreme small hole technology. When the front camera module is called to take a picture, it is easily interfered by ambient light or screen fill light. Especially when the ambient light is relatively dim and screen fill light is required, the possibility of light leakage from the front camera module is greater. In the related art, the area around the front camera module is set to black, and the area around the front camera module is black whether the front camera module is called or not, so as to avoid the problem of overexposure of the captured image caused by interference from ambient light or screen fill light. In the embodiments of the present disclosure, the display content of the target area (i.e., the area adjacent to the front camera module) changes in real time according to whether the front camera module is called. For example, when the front camera module is called, the color of the target area is displayed as black, and when the front camera module is not called, the color of the target area is displayed according to the content displayed on the display interface, so as to avoid interference from ambient light or screen fill light while enabling users to have a better user experience.
[0078] Figure 1 It is a flowchart of a display method shown according to an exemplary embodiment, which is executed by an electronic device. Refer to Figure 1 and the method includes the following steps:
[0079] Step S101, obtain the scene where the camera module is located. The scene is a first scene or a second scene. The first scene is the scene where the camera module is called, and the second scene is the scene where the camera module is not called. The camera module is the front camera module of the electronic device.
[0080] Among them, the camera module is the front camera module of the electronic device. Optionally, the camera module can be located at any position on the screen. For example, the camera module is located in the middle position above the screen, or the camera module is located in the upper left corner position or the upper left corner position of the screen. The specific position of the camera module is not limited in the embodiments of the present disclosure.
[0081] Obtain the scene where the camera module is located, that is, determine whether the camera module is called. For this camera module, the scene where the camera module is located includes a first scene and a second scene. The first scene is the scene where the camera module is called, and the second scene is the scene where the camera module is not called. Among them, calling the camera module means using the camera module for shooting. For example, the scenes where the camera module is called can include: using the camera module to take pictures, using the camera module to shoot videos, using the camera module for video calls, using the camera module for face recognition, etc.; not calling the camera module means not using the camera module for shooting.
[0082] Step S102, adjust the display content of the target area according to the scene, where the target area is the area adjacent to the camera module on the screen.
[0083] After obtaining the scene where the camera module is located, adjust the display content of the target area according to the scene, that is, the display content of the target area is different when the scene where the camera module is located is different. Among them, the display content of the target area at least includes the color of the target area. The target area is the area adjacent to the camera module on the screen, and the target area can be of any shape and size. For example, the target area is an annular area adjacent to the camera module.
[0084] The method provided by the embodiments of the present disclosure obtains the scene where the camera module is located to determine whether the camera module is called, and then adjusts the display content of the target area according to whether the camera module is called. Compared with the method of setting the area around the front camera module to black in the related art, the display content of the target area in the present disclosure changes in real time according to whether the camera module is called, avoiding the interference of ambient light or screen fill light while enabling users to have a better user experience.
[0085] In some embodiments of the present disclosure, the display content of the target area is different in different scenes. Among them, the display content at least includes color.
[0086] Figure 2 It is a flowchart of another display method shown according to an exemplary embodiment, which is executed by an electronic device. See Figure 2 and this method includes the following steps:
[0087] Step S201, obtain the scene where the camera module is located.
[0088] For the implementation of step S201, refer to the above step S101.
[0089] In some embodiments, the scene where the camera module is located is obtained, and it is detected whether the camera module is called. When it is detected that the camera module is called, it is determined that the camera module is in the first scene. When it is detected that the camera module is not called, it is determined that the camera module is in the second scene.
[0090] Optionally, detecting whether the camera module is called includes: obtaining the camera service corresponding to the camera module through a first application, and returning a callback function to the first application. The callback function is used to indicate whether the first application can call the camera module. When the callback function indicates that the camera module can be called, it is detected that the camera module is called. When the callback function indicates that the camera module cannot be called, it is detected that the camera module is not called.
[0091] For example, the electronic device is configured with CameraBlackCoveredManager.java file and CameraCircleBlackView.java file. Among them, the CameraBlackCoveredManager.java file is used to manage the process of setting the target area to a preset color, and the CameraCircleBlackView.java file is used to set the target area to a preset color. The CameraCircleBlackView.java file includes a method body systemReady(). The method body systemReady() includes:
[0092] mCameraManager = (CameraManager) mContext.getSystemService(Context.CAMERA
[0093] _SERVICE);
[0094] mCameraManager.registerAvailabilityCallback(mAvailabilityCallback, mHandler).
[0095] The meaning of the above method body systemReady() is: obtain the camera service corresponding to the camera module, register and return the callback function. Among them, mAvailabilityCallback includes any one of the two parameters onCameraAvailable and onCameraUnavailable. onCameraAvailable indicates calling the callback function stopCameraAnimation0, and onCameraUnavailable indicates calling the callback function startCameraAnimation0. Among them, stopCameraAnimation0 indicates that the camera module cannot be called, and startCameraAnimation0 can be called.
[0096] In the embodiments of the present disclosure, different parameters are executed for the target area in different scenarios. When the scenario is the first scenario, step S202 is executed, and when the scenario is the second scenario, step S203 is executed.
[0097] Step S202, when the scenario is the first scenario, display the target area in a preset color.
[0098] In the embodiments of the present disclosure, when the scenario is the first scenario, it indicates that the camera module is called. At this time, in order to avoid the interference of ambient light or screen fill light, the target area is displayed in a preset color. Among them, the preset color can be colors with darker colors such as black, dark gray, dark blue, dark purple, etc., and colors that are not easy to leak light.
[0099] For example, the method body systemReady() also includes:
[0100] startCameraAnimation0 calls the sendMessage(msg) method, where msg.what = FRONT__CAMERA_OPEN; msg.obj = mDisplay.getRotation0;
[0101] handleMessage is selected through a switch0 statement. When msg.what == FRONT_CAMERA_OPEN, setRadius0, addView).
[0102] The meaning of the above method body systemReady() is: when the front camera module is opened, obtain the parameters for determining the target area, and draw a preset color in the target area.
[0103] Among them, for the determination process of the target area, refer to the following Figure 4 shown embodiments, which will not be elaborated here.
[0104] In some embodiments, an application program that calls the camera module is determined, and the target area is displayed as a preset color corresponding to the application program. Each application program has a corresponding preset color. For example, the preset color corresponding to the camera application is black, and the preset color corresponding to the payment application is dark blue, etc. In the embodiments of the present disclosure, setting a corresponding preset color for each application program enriches the display mode of the target area and makes the color displayed in the target area more flexible.
[0105] In some embodiments, after the target area is displayed as a preset color, it is also necessary to detect whether the position of the target area on the screen is skewed. That is, the relative position relationship between the target area and the reference position point on the screen is detected. The relative position relationship is used to characterize whether the position of the target area on the screen is skewed. When the position of the target area on the screen is skewed, the position of the target area is adjusted according to the relative position relationship. The reference position point is any position point on the screen. For example, the reference position point is the center point of the screen or other position points. The phase position relationship includes the distance and direction between the center point of the target area and the reference position point. For example, the camera module is in the middle position above the screen, and the target area is also in the middle position. When the reference position point is the center point of the screen, the center point of the target area needs to be directly above the reference position point. If it is determined that the center point of the target area is not directly above the reference position point, it is determined that the position of the target area on the screen is skewed. If the center point of the target area is to the left of the reference position point, the center point needs to be moved to the right. If the center point of the target area is to the right of the reference position point, the center point needs to be moved to the left.
[0106] Step S203, when the scene is the second scene, adjust the color of the target area according to the content displayed on the display interface of the screen.
[0107] In the embodiments of the present disclosure, when the scene is the second scene, it means that the camera module is not called. At this time, there is no need to consider the problems during camera module shooting, and only the content that originally needs to be displayed needs to be displayed. That is, the color of the target area is adjusted according to the content displayed on the display interface of the screen. The display interface can be any interface displayed on the screen. For example, the display interface is an interface in a certain application, or the display interface is the system settings interface, or the display interface can also be other interfaces.
[0108] For example, if the content displayed on the display interface is the home page content of a certain application, then the corresponding home page content can be directly displayed in the target area, and there is no need to specifically set the color of the target area to the preset color. In this case, the display content of the target area may include not only color but also content such as text and patterns.
[0109] For example, seeFigure 3 A schematic diagram of the display interface shown. The display interface on the left is the display interface in the first scenario, and the display interface on the right is the display interface in the second scenario. From Figure 3 it can be seen that in the first scenario, the target area is set to black, and in the second scenario, the target area does not need to be set to black ( Figure 3 the target area is not marked in the figure).
[0110] The method provided by the embodiments of the present disclosure obtains the scenario where the camera module is located. When the camera module is called, the color of the target area is displayed as a preset color. When the camera module is not called, the color of the target area is adjusted according to the content displayed on the display interface of the screen. Compared with the method of setting the area around the front camera module to black in the related art, the displayed content of the target area in the present disclosure changes in real time according to whether the camera module is called, avoiding the interference of ambient light or screen fill light while enabling users to have a better user experience.
[0111] In some embodiments, in the scenario where the camera module is called, the shooting scenarios of the camera module are different, and the displayed content of the target area is also different.
[0112] Figure 4 is a flowchart of another display method shown according to an exemplary embodiment, which is executed by an electronic device. Refer to Figure 4 and this method includes the following steps:
[0113] Step S401, obtain the scenario where the camera module is located.
[0114] For the implementation manner of step S401, refer to the above step S201 and will not be elaborated here.
[0115] Step S402, when the scenario is the first scenario, obtain the shooting scenario of the camera module.
[0116] In the embodiments of the present disclosure, the electronic device can call the camera module to take pictures under different circumstances. For example, when the user takes a selfie, the camera module is called; when the user has a video call with other users, the camera module is called; when face recognition is performed, the camera module is called, etc. Among them, the shooting scenarios of the camera module are different under different circumstances.
[0117] According to whether there is an image output after shooting, the shooting scenarios can be divided into two categories, namely the first type of scenario and the second type of scenario. Among them, the first type of scenario is a scenario where an image is output after shooting by the camera module, and the second type of scenario is a scenario where no image is output after shooting by the camera module. Outputting an image means that the captured image will be displayed on the interface of the electronic device, and not outputting an image means that the captured image will not be displayed on the interface of the electronic device. For example, the user's self-shooting scenario and the video call scenario belong to the first type of scenario, and the face recognition scenario belongs to the second type of scenario.
[0118] In different shooting scenarios, different quality requirements are imposed on the captured images or videos. Therefore, in different shooting scenarios, the setting of the target area also varies. When the shooting scenario is the first type of scenario, step S403 is executed. When the shooting scenario is the second type of scenario, step S404 is executed.
[0119] Step S403: When the shooting scenario is the first type of scenario, display the target area in a preset color.
[0120] In the first type of scenario, it is necessary to display the captured image or video. Then, the quality of the image or video needs to be as high as possible, and the problem of overexposure of the image or video should be avoided as much as possible. Therefore, when the shooting scenario is the first type of scenario, the target area is displayed in a preset color.
[0121] Step S404: When the shooting scenario is the second type of scenario, adjust the color of the target area according to the content displayed on the display interface of the screen.
[0122] In the second type of scenario, it is not necessary to display the captured image or video. Then, the quality of the image or video only needs to meet the shooting requirements, and it is not necessary to have excellent quality. The problem of overexposure of the image or video can be ignored. Therefore, when the shooting scenario is the second type of scenario, the color of the target area is adjusted according to the content displayed on the display interface of the screen.
[0123] For the implementation methods of setting the color of the target area in steps S403 and S404, refer to the above steps S202 and S203, which will not be elaborated here.
[0124] For example, referring to Figure 5 the schematic diagram of the display interface shown, the left display interface is the display interface in the first type of scenario, and the right display interface is the display interface in the second type of scenario. As can be seen from Figure 5 it, in the first type of scenario (video call scenario), the target area is set to black. In the second type of scenario (face recognition unlocking scenario), the target area does not need to be set to black ( Figure 5 the target area is not marked in it).
[0125] When the method provided by the embodiment of the present disclosure is called for the camera module, the shooting scene of the camera module is determined, and the target area is set according to different shooting scenes. When the shooting scene is the first type of scene, the color of the target area is displayed as a preset color. When the shooting scene is the second type of scene, the color of the target area is adjusted according to the content displayed on the display interface of the screen. Compared with the related art in which the area around the front camera module is set to black, the display content of the target area in the present disclosure changes according to the shooting scene of the camera module, avoiding the interference of ambient light or screen fill light while providing a better user experience for the user.
[0126] In some embodiments, before adjusting the display content of the target area according to the scene, it is necessary to first determine the target area. For the implementation manner of determining the target area, refer to the following Figure 6 .
[0127] Figure 6 is a flowchart of another display method shown according to an exemplary embodiment, which is executed by an electronic device. Refer to Figure 6 , and the method includes the following steps:
[0128] Step S601, obtain the scene where the camera module is located.
[0129] For the implementation manner of step S601, refer to step S201 above, and details will not be repeated here.
[0130] Step S602, obtain preset information.
[0131] Among them, the preset information is used to represent the position and shape of the target area, and the preset information is the information pre-stored in the electronic device. Optionally, the target area is a circular area, and the preset information can be coordinates and a radius. The coordinates are used to represent the center point position of the target area, and the radius is the radius of the target area; or, the target area is a square area, and the preset information can be coordinates and a length. The coordinates are used to represent the center point position of the target area, and the length is the side length of the target area; or, the target area can also be other shapes. Among them, the coordinates can be one or more. For example, the coordinates can be the center point coordinates of the target area, or the coordinates are the coordinates of the outermost multiple points that can represent the position of the target area.
[0132] In some embodiments, when the scene where the camera module is located is the first scene, preset information is obtained, including: determining the application program that calls the camera module; obtaining the preset information corresponding to the application program, and each application program has corresponding preset information. Optionally, the shapes of the target areas corresponding to different application programs are different. For example, when the application program is a camera application, the target area is set to a circle; when the application program is an instant messaging application, the target area is set to a square. Or, the shapes of the target areas corresponding to different application programs are the same but the sizes are different. For example, the target area is a circle, and the radius of the target area corresponding to the camera application is greater than the radius of the target area corresponding to the instant messaging application.
[0133] In the embodiments of the present disclosure, for different application programs, a corresponding target area can be set for the application program, and target areas of different shapes can be displayed in different application programs, enriching the form of the target area and making the target area more diverse.
[0134] Step S603, based on the preset information, determine the target area.
[0135] In some embodiments, the preset information includes coordinates and a radius. The coordinates are used to represent the center point position of the target area, and the radius is the radius of the target area. Based on the preset information, determining the target area includes: based on the coordinates and the radius, determining the target area, and the determined target area is a circular area.
[0136] In some embodiments, the preset information includes multiple radii. Based on the coordinates and the radius, determining the target area includes: based on the coordinates and the first radius, determining the target area; when the target area is displayed in a preset color and when the image captured by the camera module is overexposed, based on the coordinates and the second radius, determining the adjusted target area, and the second radius is greater than the first radius. In the embodiments of the present disclosure, in order to make the display interface more beautiful, the smaller the radius is, the better, that is, the smaller the target area is, the better. However, in some cases, such as when the ambient light is very bright, it is possible that the captured image is still overexposed after setting the target area according to a smaller radius. At this time, the radius needs to be increased, that is, the target area is increased, to avoid the captured image being overexposed.
[0137] Optionally, during the shooting process, after setting the target area, detect whether the first captured image is overexposed. If it is overexposed, increase the target area until the target area is increased to the maximum area that can be set, or until the captured image is not overexposed.
[0138] It should be noted that, in some embodiments, when the scene where the camera module is located is the second scene, steps S602 and S603 do not need to be executed, that is, the target area does not need to be determined. That is to say, according to the content displayed on the display interface of the screen, the color of the display interface is adjusted, where adjusting the color of the display interface includes adjusting the color of the target area.
[0139] Step S604, adjust the display content of the target area according to the scene.
[0140] For the implementation manner of step S604, refer to the above steps S202 - S203 and steps S402 - S404, which will not be elaborated here.
[0141] In the embodiments of the present disclosure, according to the preset information, the target area is determined, and the target area is set as an appropriate area to avoid overexposure of the captured image, so that during the subsequent process of capturing an image, light is blocked through the target area to avoid the interference of ambient light or screen fill light.
[0142] Figure 7 It is a block diagram of a display device shown according to an exemplary embodiment, configured in an electronic device. The device includes:
[0143] A scene acquisition module 701, configured to acquire the scene where the camera module is located. The scene is the first scene or the second scene. The first scene is the scene where the camera module is called, and the second scene is the scene where the camera module is not called. The camera module is the front camera module of the electronic device;
[0144] A display module 702, configured to adjust the display content of the target area according to the scene. The target area is the area adjacent to the camera module on the screen.
[0145] The device provided by the embodiments of the present disclosure acquires the scene where the camera module is located to determine whether the camera module is called, and then adjusts the display content of the target area according to whether the camera module is called. Compared with the related art in which the area around the front camera module is set to black, the display content of the target area in the present disclosure changes in real time according to whether the camera module is called, avoiding the interference of ambient light or screen fill light while enabling users to have a better user experience.
[0146] In some embodiments, the display module 702 is configured to:
[0147] When the scene is the first scene, display the target area in a preset color;
[0148] When the scene is the second scene, adjust the color of the target area according to the content displayed on the display interface of the screen.
[0149] In some embodiments, the display module 702 is configured to:
[0150] When the scene is the first scene, obtain the shooting scene of the camera module;
[0151] When the shooting scene is the first type of scene, display the target area in a preset color, where the first type of scene is the scene of the image output after shooting by the camera module;
[0152] When the shooting scene is the second type of scene, adjust the color of the target area according to the content displayed on the display interface of the screen, where the second type of scene is the scene where no image is output after shooting by the camera module.
[0153] In some embodiments, the device further includes:
[0154] An information acquisition module, configured to acquire preset information, where the preset information is used to characterize the position and shape of the target area;
[0155] An area determination module, configured to determine the target area based on the preset information.
[0156] In some embodiments, the preset information includes coordinates and a radius, and the area determination module is configured to:
[0157] Determine the target area based on the coordinates and the radius, where the coordinates are used to characterize the center point position of the target area, and the radius is the radius of the target area.
[0158] In some embodiments, the preset information includes multiple radii, and the area determination module is configured to:
[0159] Determine the target area based on the coordinates and the first radius;
[0160] When the target area is displayed in the preset color and when there is overexposure in the image captured by the camera module, determine the adjusted target area based on the coordinates and the second radius, where the second radius is greater than the first radius.
[0161] In some embodiments, the information acquisition module is configured to:
[0162] Determine the application program that calls the camera module;
[0163] Acquire the preset information corresponding to the application program, and each application program has corresponding preset information.
[0164] In some embodiments, the information acquisition module is configured to:
[0165] Determine the application program that calls the camera module;
[0166] Display the target area in the preset color corresponding to the application program, and each application program has a corresponding preset color.
[0167] In some embodiments, the device further includes:
[0168] a position adjustment module configured to detect a relative position relationship between a target area and a reference position point on the screen, the relative position relationship being used to characterize whether the position of the target area on the screen is skewed;
[0169] The position adjustment module is further configured to adjust the position of the target area according to the relative position relationship when the position of the target area on the screen is skewed.
[0170] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated here.
[0171] Embodiments of the present disclosure further provide an electronic device, including: a processor; a memory for storing processor-executable instructions; wherein, the processor is configured to execute the display method in the above embodiments.
[0172] Figure 8 is a block diagram of an electronic device 800 shown according to an exemplary embodiment.
[0173] Referring to Figure 8 , the electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.
[0174] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0175] The memory 804 is configured to store various types of data to support the operation of the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, and the like. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0176] The power supply component 806 provides power to various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
[0177] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can not only sense the boundaries of touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
[0178] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC) that is configured to receive external audio signals when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 further includes a speaker for outputting audio signals.
[0179] The I / O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which can be a keyboard, a click wheel, buttons, etc. These buttons can include, but are not limited to: a home button, a volume button, a power-on button, and a lock button.
[0180] The sensor assembly 814 includes one or more sensors for providing an assessment of various aspects of the status of the electronic device 800. For example, the sensor assembly 814 can detect the on / off state of the electronic device 800, the relative positioning of components, such as the display and keypad of the electronic device 800. The sensor assembly 814 can also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor assembly 814 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0181] The communication component 816 is configured to facilitate communication between the electronic device 800 and other devices in a wired or wireless manner. The electronic device 800 can access a wireless network based on communication standards, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0182] In an exemplary embodiment, the electronic device 800 can be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above method.
[0183] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the above instructions can be executed by a processor 820 of the electronic device 800 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0184] Embodiments of the present disclosure also provide a non-transitory computer-readable storage medium. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the display method in the above embodiments.
[0185] Those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present invention, which follow the general principles of the present invention and include common general knowledge or conventional technical means in the technical field not disclosed in the present disclosure. The specification and embodiments are only to be considered as exemplary, and the true scope and spirit of the present invention are pointed out by the following claims.
[0186] It should be understood that the present invention is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present invention is only limited by the appended claims.
Claims
1. A display method, characterized in that: The method comprises: Acquire a scene in which the camera module is located, the scene being a first scene or a second scene, the first scene being a scene in which the camera module is called, the second scene being a scene in which the camera module is not called, and the camera module being a front camera module of the electronic device; According to the scene, the display content of the target area is adjusted, and the target area is the area of the screen adjacent to the camera module.
2. The method according to claim 1, characterized in that The adjusting the display content of the target area according to the scene includes: When the scene is the first scene, displaying the target area in a preset color; When the scene is the second scene, the color of the target area is adjusted according to the content displayed on the display interface of the screen.
3. The method according to claim 1, characterized in that The adjusting the display content of the target area according to the scene includes: When the scene is the first scene, obtaining a shooting scene of the camera module; When the shooting scene is a first type of scene, the target area is displayed in a preset color, and the first type of scene is a scene that outputs an image after being shot by the camera module; When the shooting scene is a second type of scene, the color of the target area is adjusted according to the content displayed on the display interface of the screen, and the second type of scene is a scene that does not output an image after being shot by the camera module.
4. The method according to claim 2 or 3, characterized in that: Before adjusting the display content of the target area according to the scenario, the method further includes: Acquire preset information, where the preset information is used to characterize the position and shape of the target area; Based on the preset information, the target area is determined.
5. The method according to claim 4, characterized in that The preset information includes coordinates and a radius, and determining the target area based on the preset information includes: The target area is determined based on the coordinates and the radius, wherein the coordinates are used to represent the center point position of the target area, and the radius is the radius of the target area.
6. The method according to claim 5, characterized in that The preset information includes a plurality of radii, and determining the target area based on the coordinates and the radii includes: Determining the target area based on the coordinates and the first radius; When the target area is displayed as a preset color and the image captured by the camera module is overexposed, the adjusted target area is determined based on the coordinates and a second radius, and the second radius is greater than the first radius.
7. The method according to claim 4, characterized in that The obtaining of preset information includes: Determining an application program that calls the camera module; Acquire preset information corresponding to the application, each of the application has corresponding preset information.
8. The method according to claim 2 or 3, characterized in that: Displaying the target area as a preset color includes: Determining an application program that calls the camera module; The target area is displayed as a preset color corresponding to the application, and each of the application has a corresponding preset color.
9. The method according to claim 2 or 3, characterized in that: After displaying the target area as a preset color, the method further includes: Detecting a relative position relationship between the target area and a reference position point in the screen, wherein the relative position relationship is used to indicate whether the position of the target area in the screen is skewed; When the position of the target area in the screen is skewed, the position of the target area is adjusted according to the relative position relationship.
10. A display device, characterized in that: The device comprises: A scene acquisition module is configured to acquire a scene in which the camera module is located, the scene being a first scene or a second scene, the first scene being a scene in which the camera module is called, the second scene being a scene in which the camera module is not called, and the camera module being a front camera module of the electronic device; The display module is configured to adjust the display content of the target area according to the scene, and the target area is an area of the screen adjacent to the camera module.
11. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the method as claimed in any one of claims 1 to 9.
12. A non-transitory computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method as claimed in any one of claims 1 to 9.