Shooting method and device, electronic equipment, storage medium and computer program product

By using the display screen of electronic devices to compensate for light, the shooting effect in dark scenes is enhanced, solving the shooting problem caused by insufficient light and achieving efficient fill light effect and flexible hardware utilization.

CN121357412APending Publication Date: 2026-01-16BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410954421.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2026-01-16

AI Technical Summary

Technical Problem

In low light conditions, electronic devices suffer from problems such as blurriness, excessive noise, and color distortion in their shooting. They lack intelligence, offer limited effects, and are constrained by hardware support and scene limitations.

Method used

Light compensation is achieved through the display screen of electronic devices, increasing backlight brightness and/or adjusting display content. Light compensation is performed according to the shooting scene and object characteristics, and the versatility of the display screen provides a variety of fill light effects.

Benefits of technology

It improves the robustness of shooting in low-light scenes, saves costs and is more flexible, can adapt to different low-light environments, and improves image quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121357412A_ABST
    Figure CN121357412A_ABST
Patent Text Reader

Abstract

The invention relates to a shooting method and device, electronic equipment, a storage medium and a computer program product. The method comprises the following steps: determining a current shooting scene; in response to the fact that the shooting scene is a dark scene, acquiring an image of a shooting object after light compensation is performed through a first display screen; wherein the display surface of the first display screen faces the shooting object; and displaying the acquired image on a second display screen. Through the method, rich light supplementing effects can be provided, the cost can be saved, and the method is more flexible.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of photographing, and in particular, to a photographing method and device, electronic device, storage medium and computer program product. BACKGROUND

[0002] The photographing function is a common function provided by an electronic device, and a user can take photos and record videos through the electronic device. However, in the case of insufficient light, such as night shooting, problems such as blurred photos, many noise points, and color distortion often occur. In order to alleviate these problems, the electronic device usually supports improving the quality of shooting through multi-frame synthesis, noise reduction and other technologies in the night mode; in addition, the brightness of the photo can be increased to improve the effect of night shooting by adjusting the sensitivity (ISO) and shutter speed, flash or using surrounding light sources such as street lamps and car lights. However, there is a problem of insufficient intelligence and single effect. SUMMARY

[0003] To overcome the problems in the related art, the present disclosure provides a photographing method, device, electronic device, storage medium and computer program product.

[0004] According to a first aspect of an embodiment of the present disclosure, a photographing method is provided, the method comprising:

[0005] determining a current shooting scene;

[0006] in response to the shooting scene being a dark scene, collecting an image of a shooting object after light compensation through a first display screen; wherein a display surface of the first display screen faces the shooting object;

[0007] displaying the collected image on a second display screen.

[0008] In some embodiments, the collecting the image of the shooting object after light compensation through the first display screen in response to the shooting scene being the dark scene comprises:

[0009] in response to the shooting scene being the dark scene, increasing the backlight brightness of the first display screen to collect the image after light compensation; and / or,

[0010] in response to the shooting scene being the dark scene, adjusting the display content on the first display screen to collect the image after light compensation.

[0011] In some embodiments, the method further comprises:

[0012] determining a distance between the shooting object and the electronic device;

[0013] The method further includes:

[0014] The method further includes:

[0015] In some embodiments, the method further includes:

[0016] The method further includes:

[0017] The method further includes:

[0018] The method further includes:

[0019] In some embodiments, the method further includes:

[0020] The method further includes:

[0021] The method further includes:

[0022] The method further includes:

[0023] In some embodiments, the method further includes:

[0024] The method further includes:

[0025] The method further includes:

[0026] The method further includes:

[0027] In some embodiments, the adjusting the display content on the first display screen for light compensation before collecting the image in response to the shooting scene being the dark field scene comprises:

[0028] adjusting a display area on the first display screen to adjust the display content for light compensation before collecting the image in response to the shooting scene being the dark field scene.

[0029] In some embodiments, the method further comprises:

[0030] obtaining environment information and / or space-time information of a current shooting;

[0031] The determining the current shooting scene comprises:

[0032] determining the shooting scene based on the environment information and / or the space-time information.

[0033] In some embodiments, the determining the current shooting scene comprises:

[0034] determining the shooting scene in response to the foldable screen device being in an unfolded state, wherein the first display screen is an outer screen of the foldable screen device, and the second display screen is an inner screen of the foldable screen device.

[0035] According to a second aspect of the embodiments of the present disclosure, a shooting device is provided, and the device comprises:

[0036] a first determining module configured to determine a current shooting scene;

[0037] a compensation collecting module configured to collect an image of a shooting object through a first display screen for light compensation in response to the shooting scene being a dark field scene, wherein a display surface of the first display screen faces the shooting object;

[0038] a display module configured to display the collected image on a second display screen.

[0039] In some embodiments, the compensation collecting module is configured to increase a backlight brightness of the first display screen for light compensation before collecting the image in response to the shooting scene being the dark field scene, and / or to adjust the display content on the first display screen for light compensation before collecting the image in response to the shooting scene being the dark field scene.

[0040] In some embodiments, the device further comprises:

[0041] a second determining module configured to determine a distance between the shooting object and the device;

[0042] The compensation acquisition module is configured to, in response to the shooting scene being the dark field scene, acquire the image after light compensation by increasing the backlight brightness of the first display screen based on the distance; wherein the increase value of the backlight brightness is positively correlated with the distance.

[0043] In some embodiments, the apparatus further comprises:

[0044] The third determination module is configured to determine the brightness of the shooting object in the preview image displayed by the second display screen based on the preview image of the shooting object.

[0045] The compensation acquisition module is configured to, in response to the shooting scene being the dark field scene, acquire the image after light compensation by increasing the backlight brightness of the first display screen based on the brightness of the shooting object in the preview image; wherein the increase value of the backlight brightness is negatively correlated with the brightness of the shooting object.

[0046] In some embodiments, the apparatus further comprises:

[0047] The first acquisition module is configured to acquire the adjustment range of the backlight brightness corresponding to the first display screen.

[0048] The compensation acquisition module is configured to, in response to the shooting scene being the dark field scene, acquire the image after light compensation by increasing the backlight brightness of the first display screen within the adjustment range.

[0049] In some embodiments, the apparatus further comprises:

[0050] The fourth determination module is configured to determine the color of the shooting object in the preview image displayed by the second display screen based on the preview image of the shooting object.

[0051] The compensation acquisition module is configured to, in response to the shooting scene being the dark field scene, acquire the image after light compensation by adjusting the display color of the first display screen based on the difference between the predetermined real color of the shooting object and the color of the shooting object in the preview image.

[0052] In some embodiments, the compensation acquisition module is configured to, in response to the shooting scene being the dark field scene, acquire the image after light compensation by adjusting the display area on the first display screen to adjust the display content.

[0053] In some embodiments, the apparatus further comprises:

[0054] The second acquisition module is configured to acquire the environmental information and / or space-time information of the current shooting.

[0055] The first determination module is configured to determine the shooting scene based on the environment information and / or the space-time information.

[0056] In some embodiments, the first determination module is configured to determine the shooting scene in response to the folding screen device being in an unfolded state, wherein the first display screen is an outer screen of the folding screen device, and the second display screen is an inner screen of the folding screen device.

[0057] According to a third aspect of the embodiments of the present disclosure, an electronic device is provided, comprising:

[0058] a processor;

[0059] a memory for storing computer programs or instructions;

[0060] The processor executes the computer programs or instructions to implement the steps of the method in the first aspect.

[0061] According to a fourth aspect of the embodiments of the present disclosure, a non-transitory computer readable storage medium is provided, which stores computer programs or instructions, and when the computer programs or instructions in the storage medium are executed by a processor, the steps of the method in the first aspect are implemented.

[0062] According to a fifth aspect of the embodiments of the present disclosure, a computer program product is provided, which comprises computer programs or instructions, and when the computer programs or instructions are executed by a processor, the steps of the method in the first aspect are implemented.

[0063] The technical solutions provided by the embodiments of the present disclosure can include the following beneficial effects:

[0064] In the dark field scene, the electronic device acquires the image of the shooting object after the first display screen facing the shooting object is used to compensate for the light. On the one hand, the display screen can not only light up, but also light up in different colors, so it can provide rich light compensation effects. In addition, it can also adapt to different dark field environments based on the different light compensation, which helps to improve the robustness of dark field scene shooting. On the other hand, without being limited by the shooting scene and additional hardware support, the display screen included in the electronic device is reused for light compensation, which can also save costs and be more flexible.

[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 DRAWINGS

[0066] The accompanying drawings, which are incorporated into and form part of the specification, illustrate embodiments consistent with the present disclosure and, together with the specification, serve to explain the principles of the present disclosure.

[0067] Figure 1 is a flowchart of a photographing method according to an example embodiment.

[0068] Figure 2 is a structural diagram of a folding screen device in an embodiment of the present disclosure.

[0069] Figure 3 is a block diagram of a photographing apparatus according to an example embodiment.

[0070] Figure 4 is a structural block diagram of an electronic device according to an example embodiment. DETAILED DESCRIPTION

[0071] The example embodiments will be described in detail herein with reference to the accompanying drawings. In the following description, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following example embodiments do not represent all implementations consistent with the present disclosure. Instead, they are merely examples of apparatuses and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0072] Figure 1 is a flowchart of a photographing method according to an example embodiment. As shown in Figure 1 , the method mainly includes the following steps:

[0073] S11, determining a current photographing scene;

[0074] S12, in response to the photographing scene being a dark scene, collecting an image of a photographing object after light compensation by a first display screen; wherein a display surface of the first display screen faces the photographing object;

[0075] S13, displaying the collected image on a second display screen.

[0076] In an embodiment of the present disclosure, the photographing method can be applied to a multi-faceted screen electronic device with a photographing function and a photographing screen on both sides, such as a double-faceted screen electronic device or a folding screen electronic device, etc., such as a user equipment (UE), a mobile device, a user terminal, a mobile phone, a tablet computer, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc.

[0077] In step S11, the electronic device determines a current shooting scene; wherein the shooting scene includes a bright scene and a dark scene. In the dark scene, the light of the ambient light is very limited or almost none, and if an image is collected based on the light source provided by the ambient light only, the image brightness is low and the imaging quality is poor; while in the bright scene, the ambient light intensity is moderate or high, and the corresponding collected image brightness is moderate or large. It should be noted that in the embodiments of the present disclosure, the dark scene can be a shooting scene at night, or a shooting scene indoors in the daytime, for example, a poor light scene, or any other poor light scene.

[0078] In some embodiments, the electronic device can determine the current shooting scene based on the preview image, for example, if the ratio of the number of pixels with a brightness value greater than a preset brightness threshold to the total number of pixels in the preview image is less than a preset proportion threshold, it is determined that the current shooting scene is a dark scene; and if the ratio of the number of pixels with a brightness value greater than a preset brightness threshold to the total number of pixels in the preview image is greater than a preset proportion threshold, it is determined that the current shooting scene is a bright scene.

[0079] In some embodiments, the electronic device can determine the current shooting scene based on the user's instruction, for example, the electronic device receives the user's selection instruction of the night shooting mode, and determines that the current shooting scene is a dark scene, or determines that the current shooting scene is a dark scene based on the user's voice instruction indicating that the current light is poor.

[0080] In some other embodiments, the method further includes:

[0081] Obtaining the current shooting environment information and / or space-time information;

[0082] The determination of the current shooting scene includes:

[0083] Determining the shooting scene based on the environment information and / or the space-time information.

[0084] In the embodiments of the present disclosure, the environment information can include at least one of the ambient light brightness and the ambient light color temperature; and the space-time information can include the shooting time and the shooting location. For example, the electronic device can obtain the ambient light brightness and / or the ambient light color temperature through the built-in sensor, can obtain the current shooting location through the positioning service, and can obtain the current shooting time through the timing function, and the embodiments of the present disclosure are not limited in this regard.

[0085] In the embodiments of the present disclosure, when the electronic device determines the shooting scene based on the environment information and / or the space-time information, for example, the current shooting scene can be determined as a dark scene when the ambient light brightness is less than a preset brightness threshold and / or the ambient light color temperature is less than a preset color temperature threshold; for another example, if the current shooting time is within the time period from 7 pm to 4 am, it can be determined as a dark scene; in addition, the shooting time can be combined with the shooting location, for example, the shooting location is in Beijing and the shooting time is within the above-mentioned time period, it is determined as a dark scene, while the shooting location is in Xinjiang and the shooting time is at 7 pm, it is a bright scene.

[0086] In step S12, in the case of determining that the shooting scene is a dark scene, the electronic device collects the image of the shooting object after light compensation of the first display screen facing the shooting object. It should be noted that in the embodiments of the present disclosure, the light compensation is not limited to brightness compensation, but can also include color compensation, for example, the display content of the first display screen can be changed to increase the display brightness of the display screen and / or adjust the display color of the display screen; the light compensation can also be performed by increasing the backlight brightness of the display screen; of course, the display content can also be changed and the backlight brightness can also be increased. In addition, in the embodiments of the present disclosure, the shooting object can be a person, but also other animals or vehicles, buildings and other arbitrary objects, which are not limited in the embodiments of the present disclosure.

[0087] In the embodiments of the present disclosure, when the light compensation is performed through the first display screen, in some embodiments, the electronic device can set the light compensation of the first display screen with fixed parameters, for example, the display area, display color and backlight brightness of the first display screen are fixedly set; in some embodiments, the electronic device can also determine the required compensation brightness and compensation color according to the actual light brightness, color temperature and the like of the shooting scene to set the display of the first display screen; in other embodiments, the electronic device can also determine the display of the first display screen according to the color of the current shooting object, the positional relationship between the electronic device and the like to perform light compensation. It should be noted that in the embodiments of the present disclosure, the electronic device can also determine the display of the first display screen in combination with multiple ways described above to perform light compensation.

[0088] In step S13, the collected image is displayed on the second display screen of the electronic device.

[0089] In the embodiments of the present disclosure, the second display screen and the first display screen can be different display areas in the same display screen, or the first display screen and the second display screen can be independent display screens. The display surfaces of the first display screen and the second display screen can be the same or opposite.

[0090] In some embodiments, if the first display screen and the second display screen are different display areas in the same display screen, the display surfaces of the first display screen and the second display screen can be opposite to each other by folding; in other embodiments, if the first display screen and the second display screen are independent display screens, the first display screen and the second display screen can be display screens arranged opposite to each other in a non-foldable screen electronic device, in addition, the first display screen can also be an outer screen of a foldable screen device, and correspondingly, the second display screen can be an inner screen of the foldable screen device.

[0091] It should be noted that in the embodiments of the present disclosure, when the electronic device is foldable or non-foldable, the display surface of the second display screen displaying the captured image after light compensation based on the first display screen can also be in the same direction as the display surface of the first display screen, so that in a selfie scenario, for example, the subject can instantly view the captured image after light compensation through the second display screen.

[0092] In the embodiments of the present disclosure, for the first display screen and the second display screen formed in any way, the display sizes of the first display screen and the second display screen can be the same or different, for example, when the first display screen and the second display screen are display screens opposite to each other by folding, the display size of the first display screen can be equal to the display size of the second display screen; for example, when the first display screen is an outer screen of a foldable screen device and the second display screen is an inner screen of the foldable screen device, the display size of the first display screen can be smaller than the display size of the second display screen.

[0093] It should be noted that in the embodiments of the present disclosure, before the second display screen displays the captured image after light compensation based on the first display screen, a preview image can be displayed on the first display screen and / or the second display screen; in addition, after the first display screen completes the light compensation task, the captured image can also be displayed on the second display screen, or the second display screen displays a specific image after completing the light compensation, for example, an "OK" pattern or other interesting patterns, etc. In the embodiments of the present disclosure, the electronic device can further include at least one third display screen in addition to the first display screen and the second display screen, and the third display screen can be displayed on the side of the electronic device, so as to connect the first screen and the second screen through the third screen; the third display screen can also be a display screen independent of the first display screen and the second display screen in an electronic device supporting multiple folds. The embodiments of the present disclosure do not limit the content displayed on the display screens of the electronic device before and after image capture, and also do not limit the number of display screens included in the electronic device.

[0094] In the related art, in a dark field scene such as night shooting, the shooting effect is improved by means of an image synthesis algorithm. The robustness is not good enough for different shooting objects or different illuminations in a dark field scene, which is limited by the performance of the algorithm. By adjusting the flash or the surrounding light source to provide white light, the light compensation effect is single, and the light provided by the surrounding light source is limited by the shooting location. In general, the shooting in a dark field scene in the related art is not smart enough and the effect is single.

[0095] In the embodiments of the present disclosure, in a dark field scene, the electronic device acquires the image of the shooting object after light compensation by the first display screen facing the shooting object. On the one hand, the display screen can not only light up but also light up in different colors, so it can provide rich light compensation effects. In addition, it can also adapt to different dark field environments based on the different light compensation, which helps to improve the robustness of the dark field scene shooting. On the other hand, it does not need to be limited by the shooting scene and additional hardware support, and it can also save costs and be more flexible by reusing the display screen included in the electronic device for light compensation.

[0096] In some embodiments, in response to the shooting scene being a dark field scene, the image of the shooting object is acquired after light compensation by the first display screen, comprising:

[0097] In response to the shooting scene being the dark field scene, the image is acquired after increasing the backlight brightness of the first display screen for light compensation; and / or,

[0098] In response to the shooting scene being the dark field scene, the image is acquired after adjusting the display content on the first display screen for light compensation.

[0099] In the embodiments of the present disclosure, the electronic device can increase the backlight brightness of the first display screen for light compensation in a dark field scene. Generally, display screen lighting usually requires backlight, and backlight is an important part of the display screen, which is located at the back of the display screen and provides light source for the display screen. The main function of the backlight is to ensure that the content on the display screen is still clear and visible in the case of insufficient or no ambient light. For example, in a strong light environment, a higher backlight brightness can make the display screen more visible; in a dark light environment (i.e. a dark field scene), a lower backlight brightness can make the display screen more visible, and by adjusting the backlight brightness, the user can see the content on the screen more clearly. In the embodiments of the present disclosure, considering that the electronic device has multiple display screens, when the camera application is started, the first display screen facing the shooting object has less demand for display quality, so the embodiments of the present disclosure can increase the backlight brightness of the first display screen in a dark field scene, and the light emitted by the backlight of the first display screen can improve the ambient light brightness, thereby achieving the purpose of light compensation.

[0100] In the embodiments of the present disclosure, the electronic device can also adjust the display content on the first display screen to perform light compensation in a dark field scene. For example, the electronic device can increase the display brightness of the display image on the basis of the original display image; for another example, the electronic device can transform the display content and the overall display color, etc.

[0101] In the embodiments of the present disclosure, the light compensation can also be optimized by simultaneously increasing the backlight brightness and adjusting the display content.

[0102] It can be understood that, in the embodiments of the present disclosure, the electronic device performs light compensation by one or more of the above-mentioned manners, can make full use of the adjustable content of the first display screen to provide diversified light compensation effects, thereby improving the shooting quality of the electronic device in a dark field scene.

[0103] In some embodiments, the method further includes:

[0104] determining a distance between the electronic device and the shooting object;

[0105] after the electronic device increases the backlight brightness of the first display screen to perform light compensation in response to the shooting scene being the dark field scene, the electronic device collects the image.

[0106] after the electronic device increases the backlight brightness of the first display screen to perform light compensation in response to the shooting scene being the dark field scene, the electronic device collects the image based on the distance; wherein the increase value of the backlight brightness is positively correlated with the distance.

[0107] In the embodiments of the present disclosure, the electronic device can determine the distance between the electronic device and the shooting object based on a built-in distance sensor, which can be an optical distance sensor, an infrared distance sensor, an ultrasonic distance sensor, or a laser distance sensor, etc., and the present disclosure does not limit the distance sensor.

[0108] In the embodiments of the present disclosure, since the backlight brightness is too high, more electric energy can be consumed, which can affect the endurance of the electronic device. Therefore, in the embodiments of the present disclosure, the backlight brightness of the first display screen is increased in a manner that the distance and the increase value of the backlight brightness are positively correlated based on the distance between the electronic device and the shooting object, which can balance the light compensation effect and the power consumption of the electronic device, and has good intelligence.

[0109] In some embodiments, the method further includes:

[0110] determining the brightness of the shooting object in the preview image based on the preview image of the shooting object displayed by the second display screen;

[0111] The image is captured after the brightness of the backlight of the first display screen is increased for light compensation in response to the shooting scene being the dark scene.

[0112] The image is captured after the brightness of the backlight of the first display screen is increased for light compensation in response to the shooting scene being the dark scene.

[0113] In the embodiments of the present disclosure, as described above, before the image of the shooting object is captured, the second display screen of the electronic device can display a preview image of the shooting object, based on which the electronic device can analyze the preview image to obtain the actual imaging brightness, so as to perform brightness compensation according to the actual imaging brightness.

[0114] In the embodiments of the present disclosure, considering that the shooting object is the imaging subject and is also the part that the user pays more attention to, the embodiments of the present disclosure can make the brightness compensation more targeted by analyzing the brightness of the shooting object in the preview image and performing light compensation based on the brightness of the shooting object. In some embodiments, in the portrait shooting mode, the electronic device can perform face detection to determine the shooting object in the preview image and further analyze the brightness of the shooting object in the preview image. In other embodiments, the electronic device can detect a salient object by a saliency detection algorithm without knowing the shooting object, and further analyze the brightness of the salient object in the preview image, the salient object being the shooting object.

[0115] In the embodiments of the present disclosure, when performing brightness compensation, taking the preview image in the RGB color space as an example, the preview image in RGB can be converted to the HSV (Hue, Saturation, Value) space, where H represents hue, indicating the type of color; S represents saturation, indicating the depth or purity of color; and V represents lightness, indicating the light and dark degree of color. The higher the brightness, the brighter the color, and the lower the brightness, the darker the color. The electronic device can determine the brightness of the preview image by the V component value of each pixel point included in the shooting object in the image in the HSV space.

[0116] For example, the electronic device can determine a statistical value corresponding to the V component value of each pixel point included in the shooting object, and increase the brightness of the backlight of the first display screen based on the statistical value. For example, the statistical value can be a mean value, a median value, a maximum value, or a minimum value, and the embodiments of the present disclosure are not limited thereto.

[0117] It can be understood that, in the embodiments of the present disclosure, the backlight brightness of the first display screen is increased in a manner of negative correlation with the increase of the brightness of the shooting object and the backlight brightness, which can balance the light compensation effect and the power consumption of the electronic device; and as described above, the light compensation based on the brightness of the shooting object in the preview image can also make the brightness compensation more targeted, which can improve the accuracy of the brightness compensation.

[0118] In some embodiments, the method further includes:

[0119] obtaining an adjustment range of the backlight brightness corresponding to the first display screen;

[0120] after the backlight brightness of the first display screen is increased for light compensation in response to the shooting scene being the dark scene, the image of the shooting object is captured, including:

[0121] in response to the shooting scene being the dark scene, the image is captured after the backlight brightness of the first display screen is increased in the adjustment range for light compensation.

[0122] Generally, there are various types of backlights of display screens, including Light-Emitting Diode (LED) backlight, Cold Cathode Fluorescent Lamp (CCFL) backlight, or backlight based on organic light-emitting materials, etc. Due to different types of backlights, there are differences in performance, such as power consumption, heat generation, and maximum supported brightness, so the adjustment ranges of the backlight brightness corresponding to different display screens will also be different. In this regard, the embodiments of the present disclosure obtain the adjustment range of the backlight brightness corresponding to the first display screen, and increase the backlight brightness of the first display screen within the adjustment range of the backlight brightness supported by the first display screen. It should be noted that in the embodiments of the present disclosure, the adjustable range of the backlight brightness corresponding to the first display screen can be determined based on testing before the electronic device is shipped, and the range is written into the electronic device.

[0123] It can be understood that, in the embodiments of the present disclosure, the backlight is adjusted based on the adjustment range of the backlight brightness supported by the first display screen, which can improve the effectiveness of the brightness adjustment and reduce the loss of the electronic device.

[0124] In some embodiments, the method further includes:

[0125] based on the preview image of the shooting object displayed by the second display screen, determining the color of the shooting object in the preview image;

[0126] after the display content on the first display screen is adjusted for light compensation in response to the shooting scene being the dark scene, the image is captured, including:

[0127] In response to the shooting scene being the dark field scene, the display color on the first display screen is adjusted based on a difference between the predetermined real color of the shooting object and a color of the shooting object in the preview image to collect the image after light compensation.

[0128] In the embodiments of the present disclosure, since the shooting object has its inherent color, for example, for a human face, it can be yellowish skin, and if the color of the light provided based on the display content of the first display screen is not appropriate, it can make the color of the shooting object in the collected image deviate from the actual situation. In this regard, the electronic device analyzes the preview image to obtain the actual imaging color, and then performs color compensation according to the difference between the actual imaging color and the predetermined real color of the shooting object.

[0129] In the embodiments of the present disclosure, when performing color compensation, the electronic device can determine a difference between a statistical value of the H component corresponding to each pixel point included in the shooting object in the HSV space image corresponding to the preview image and an H component value corresponding to the predetermined real color of the shooting object, and determine the display color of the first display screen based on the difference to perform color compensation. The statistical value of the H component can be a mean value, a median value, a maximum value, or a minimum value, and the embodiments of the present disclosure are not limited thereto.

[0130] It can be understood that, in the embodiments of the present disclosure, the display color of the first display screen is determined according to the difference between the color of the shooting object in the preview image and the predetermined real color of the shooting object, which can improve the color compensation effect of the first display screen, thereby improving the collection quality of the image.

[0131] In some embodiments, the adjusting the display content on the first display screen to perform light compensation to collect the image in response to the shooting scene being the dark field scene includes:

[0132] In response to the shooting scene being the dark field scene, the display area on the first display screen is adjusted to adjust the display content to perform light compensation to collect the image.

[0133] In the embodiments of the present disclosure, the first display screen can be displayed in full screen or locally displayed, for example, the four corners of the first display screen are lit. In the embodiments of the present disclosure, the display area can be a display area corresponding to a predetermined pattern, and the display of the predetermined pattern can improve the interest. In addition, the display area can also be an area determined according to the brightness and / or color of the shooting object in the preview image.

[0134] In some embodiments, the preview image can be subjected to brightness analysis, a low-brightness region in the preview image is determined, and the shooting content of the low-brightness region is determined as a display region in the corresponding region on the first display screen. In this case, the electronic device can set the backlight brightness and / or color in the display region. The low-brightness region can be a region with a brightness less than a preset brightness threshold, and the preset brightness threshold can be the mean or median of the brightness in the preview image, and the like, which is not limited in the embodiments of the present disclosure. Similarly, in other embodiments, the electronic device can also analyze the color of the shooting object in the preview image, determine a region with a large color difference of the shooting object in the preview image, and determine the shooting content of the region with a large color difference as a display region in the corresponding region on the first display screen. In this case, the electronic device can set the backlight brightness and / or color in the display region. The region with a large color difference can be a region with a large difference in hue from a preset color threshold, and the preset color threshold can be the mean or median of the hue in the preview image, and the like. Of course, the embodiments of the present disclosure can combine brightness and color and determine the predetermined region based on the same principle.

[0135] It can be understood that, in the embodiments of the present disclosure, the display region is adjusted to adjust the display content for light compensation, and through this kind of detailed control mode, on the one hand, it is helpful to increase the interest by controlling the display region; on the other hand, it is also possible to make the light compensation more targeted based on the control of the display region.

[0136] In some embodiments, the determination of the current shooting scene comprises:

[0137] In response to the folding screen device being in an unfolded state, the shooting scene is determined; wherein the first display screen is an outer screen of the folding screen device, and the second display screen is an inner screen of the folding screen device.

[0138] In the embodiments of the present disclosure, in the unfolded state of the folding screen device, the outer screen and the inner screen of the folding screen device are arranged opposite to each other, and the outer screen faces the shooting object, so that the characteristics of the folding screen device can be utilized to perform the process of the embodiments of the present disclosure to take a photo in the unfolded state.

[0139] It can be understood that the embodiments of the present disclosure make full use of the characteristics of the folding screen device to utilize the outer screen for light compensation, which can save cost and be more flexible.

[0140] Figure 2 FIG. 1 is a structural diagram of a folding screen device in the embodiments of the present disclosure. As shown in FIG. 1, the folding screen device comprises an outer screen 101 and an inner screen 102. The outer screen 101 and the inner screen 102 are arranged opposite to each other, and the outer screen 101 faces the shooting object. Figure 2As shown, L21 is the inner screen of the electronic device, L22 is the outer screen of the electronic device, and L23 is the rear camera of the electronic device. As an example, when the electronic device takes a picture through the rear camera L23, the outer screen L22 can first be used to perform light compensation and then collect the image. Wherein, before detecting the shooting instruction, the inner screen L21 and the outer screen L22 can simultaneously display the preview image, and after the shooting is completed, the inner screen L21 can display the image after shooting, and the outer screen L22 can be displayed in the manner of light compensation, or can display the image after shooting.

[0141] Figure 3 is a shooting device block diagram according to an exemplary embodiment. As shown, the device mainly includes: Figure 3

[0142] A first determination module 301 is configured to determine the current shooting scene.

[0143] A compensation collection module 302 is configured to, in response to the shooting scene being a dark scene, collect the image of the shooting object after light compensation through a first display screen; wherein the display surface of the first display screen faces the shooting object.

[0144] A display module 303 is configured to display the collected image on a second display screen.

[0145] In some embodiments, the compensation collection module 302 is configured to, in response to the shooting scene being the dark scene, increase the backlight brightness of the first display screen to collect the image after light compensation; and / or, in response to the shooting scene being the dark scene, adjust the display content on the first display screen to collect the image after light compensation.

[0146] In some embodiments, the device further includes:

[0147] A second determination module is configured to determine the distance between the shooting object.

[0148] The compensation collection module 302 is configured to, in response to the shooting scene being the dark scene, increase the backlight brightness of the first display screen based on the distance to collect the image after light compensation; wherein the increase value of the backlight brightness is positively correlated with the distance.

[0149] In some embodiments, the device further includes:

[0150] A third determination module is configured to determine the brightness of the shooting object in the preview image of the shooting object displayed by the second display screen based on the preview image.

[0151] ​The compensation acquisition module 302 is configured to, in response to the shooting scene being the dark field scene, increase the backlight brightness of the first display screen based on the brightness of the shooting object in the preview image to perform light compensation and then acquire the image; wherein the increase value of the backlight brightness is negatively correlated with the brightness of the shooting object.

[0152] In some embodiments, the apparatus further comprises:

[0153] The first acquisition module is configured to acquire an adjustment range of the backlight brightness corresponding to the first display screen;

[0154] The compensation acquisition module 302 is configured to, in response to the shooting scene being the dark field scene, increase the backlight brightness of the first display screen within the adjustment range to perform light compensation and then acquire the image.

[0155] In some embodiments, the apparatus further comprises:

[0156] The fourth determination module is configured to determine the color of the shooting object in the preview image displayed by the second display screen based on the preview image of the shooting object displayed by the second display screen;

[0157] The compensation acquisition module 302 is configured to, in response to the shooting scene being the dark field scene, adjust the display color of the first display screen based on the difference between the predetermined real color of the shooting object and the color of the shooting object in the preview image to perform light compensation and then acquire the image.

[0158] In some embodiments, the compensation acquisition module 302 is configured to, in response to the shooting scene being the dark field scene, adjust the display area on the first display screen to adjust the display content to perform light compensation and then acquire the image.

[0159] In some embodiments, the apparatus further comprises:

[0160] The second acquisition module is configured to acquire environmental information and / or space-time information of the current shooting;

[0161] The first determination module 301 is configured to determine the shooting scene based on the environmental information and / or the space-time information.

[0162] In some embodiments, the first determination module 301 is configured to determine the shooting scene in response to the folding screen device being in an unfolded state; wherein the first display screen is an outer screen of the folding screen device, and the second display screen is an inner screen of the folding screen device.

[0163] With regard to the apparatuses in the above-described embodiments, a specific manner in which each module performs an operation has been described in detail in the embodiments related to the method, and thus detailed description will not be made here.

[0164] Figure 4 FIG. 4 is a block diagram of an electronic device 400 according to an exemplary embodiment. The electronic device 400 can be, for example, a mobile phone, a computer, a digital broadcasting terminal, a message transmitting / receiving device, a game console, a tablet device, a medical device, a personal digital assistant, or the like.

[0165] Referring to Figure 4 The electronic device 400 can include one or more of the following components: a processing component 402, a memory 404, a power supply component 406, a multimedia component 408, an audio component 410, an input / output (I / O) interface 412, a sensor component 414, and a communication component 416.

[0166] The processing component 402 generally controls the overall operations of the electronic device 400, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 402 can include one or more processors 420 to execute instructions to complete all or part of steps of the above-described methods. In addition, the processing component 402 can include one or more modules to facilitate interaction between the processing component 402 and other components. For example, the processing component 402 can include a multimedia module to facilitate the interaction between the multimedia component 408 and the processing component 402.

[0167] The memory 404 is configured to store various types of data to support operations of the electronic device 400. Examples of these data include at least one of instructions for at least one application or method operating on the electronic device 400, contact data, phonebook data, messages, pictures, and videos. The memory 404 can be implemented by any type of volatile or nonvolatile memory devices 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, a magnetic disc, or an optical disc.

[0168] The power component 406 provides power to the various components of the electronic device 400. The power component 406 can include at least one of a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the electronic device 400.

[0169] The multimedia component 408 includes a screen providing an output interface between the electronic device 400 and a user. In some embodiments, the screen can 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 a user. The touch panel includes one or more touch sensors to sense touch, slide, and gesture on the touch panel. The touch sensor can not only sense a boundary of a touching or sliding action, but also detect duration and pressure related to the touching or sliding action. In some embodiments, the multimedia component 408 includes a front camera and / or a rear camera. When the electronic device 400 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 a focal length and optical zoom capability.

[0170] The audio component 410 is configured to output and / or input audio signals. For example, the audio component 410 includes a microphone (MIC) that is configured to receive external audio signals when the electronic device 400 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 404 or transmitted via the communication component 416. In some embodiments, the audio component 410 also includes a speaker for outputting audio signals.

[0171] The I / O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which can be a keyboard, a click wheel, and buttons, etc. The buttons can include, but are not limited to, a home button, a volume button, a start button, and a lock button.

[0172] The sensor component 414 includes one or more sensors for providing status assessments for various aspects of the electronic device 400. For example, the sensor component 414 can detect an open / closed position of the electronic device 400, relative positioning of components, such as a display and a keypad of the electronic device 400, a change in position of the electronic device 400 or a component of the electronic device 400, presence or absence of user contact with the electronic device 400, orientation or acceleration / deceleration / g-force and temperature changes of the electronic device 400. The sensor component 414 can include an accelerometer for measuring a change in momentum of the electronic device 400. The sensor component 414 can further include a proximity sensor configured to detect presence of a nearby object without any physical contact. The sensor component 414 can also include a light sensor, such as a complementary metal oxide semiconductor (CMOS) or charge coupled device (CCD) image sensor, utilized in an imaging application. In some embodiments, the sensor component 414 can further include at least one of an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, and a temperature sensor, among others.

[0173] The communication component 416 is configured to facilitate wired or wireless communication between the electronic device 400 and other devices. The electronic device 400 can access a wireless network based on a communication standard, such as Wi-Fi, 4G, 5G, or a combination thereof. In an example embodiment, the communication component 416 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an example embodiment, the communication component 416 can further include 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 Wide Band (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0174] In exemplary embodiments, the electronic device 400 can be implemented with 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, micro-controllers, microprocessors, or other electronic elements.

[0175] In exemplary embodiments, a non-transitory computer-readable storage medium including instructions, such as the memory 404 including executable instructions or a computer program, is also provided, which can be executed by the processor 420 of the electronic device 400 to complete the above-described method. For example, the non-transitory computer-readable storage medium can be a ROM, a Random Access Memory (RAM), a Compact Disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0176] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, causes the electronic device to be able to perform any one of the photographing methods according to the embodiments of the present disclosure.

[0177] The embodiments of the present disclosure provide a computer program product, which includes a computer program or executable instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer program or executable instructions from the computer-readable storage medium, and the processor executes the computer program or executable instructions, so that the electronic device performs any one of the photographing methods according to the embodiments of the present disclosure.

[0178] Other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the aspects disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure following, in general, the principles of the present disclosure and including such

[0179] It should be understood that the present disclosure is not limited to the precise construction that has been described above and shown in the accompanying drawings, and that various modifications and changes can be made by those skilled in the art without departing from the scope of the present disclosure. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A photographing method characterized by comprising: The method comprises: determining a current shooting scene; in response to the shooting scene being a dark scene, collecting an image of a shooting object after light compensation through a first display screen; wherein a display surface of the first display screen faces the shooting object; displaying the collected image on a second display screen.

2. The method of claim 1, wherein, The response to the shooting scene being a dark scene, collecting an image of a shooting object after light compensation through a first display screen, comprises: in response to the shooting scene being the dark scene, increasing the backlight brightness of the first display screen to collect the image after light compensation; and / or, in response to the shooting scene being the dark scene, adjusting the display content on the first display screen to collect the image after light compensation.

3. The method of claim 2, wherein, The method further comprises: determining the distance between the shooting object; The response to the shooting scene being the dark scene, increasing the backlight brightness of the first display screen to collect the image after light compensation, comprises: in response to the shooting scene being the dark scene, increasing the backlight brightness of the first display screen based on the distance to collect the image after light compensation; wherein the increase value of the backlight brightness is positively correlated with the distance.

4. The method of claim 2, wherein, The method further comprises: based on the preview image of the shooting object displayed on the second display screen, determining the brightness of the shooting object in the preview image; The response to the shooting scene being the dark scene, increasing the backlight brightness of the first display screen to collect the image after light compensation, comprises: in response to the shooting scene being the dark scene, increasing the backlight brightness of the first display screen based on the brightness of the shooting object in the preview image to collect the image after light compensation; wherein the increase value of the backlight brightness is negatively correlated with the brightness of the shooting object.

5. The method of claim 2, wherein, The method further comprises: obtaining the adjustment range of the backlight brightness corresponding to the first display screen; The response to the shooting scene being the dark scene, increasing the backlight brightness of the first display screen to collect the image of the shooting object after light compensation, comprises: in response to the shooting scene being the dark scene, increasing the backlight brightness of the first display screen within the adjustment range to collect the image after light compensation.

6. The method of claim 2, wherein, The method further comprises: based on the preview image of the shooting object displayed on the second display screen, determining the color of the shooting object in the preview image; The response to the shooting scene being the dark scene, adjusting the display content on the first display screen to collect the image after light compensation, comprises: in response to the shooting scene being the dark scene, adjusting the display color of the first display screen based on the difference between the predetermined real color of the shooting object and the color of the shooting object in the preview image to collect the image after light compensation.

7. The method of claim 2, wherein, The response to the shooting scene being the dark scene, adjusting the display content on the first display screen to collect the image after light compensation, comprises: in response to the shooting scene being the dark scene, adjusting the display area on the first display screen to adjust the display content to collect the image after light compensation.

8. The method according to any one of claims 1-7, characterized in that, The method further comprises: acquiring current shooting environment information and / or space-time information; The determination of the current shooting scene comprises: determining the shooting scene based on the environment information and / or the space-time information.

9. The method according to any one of claims 1-7, characterized in that, The determination of the current shooting scene comprises: in response to the folding screen device being in an unfolded state, determining the shooting scene; wherein the first display screen is an outer screen of the folding screen device, and the second display screen is an inner screen of the folding screen device.

10. An imaging device, characterized by comprising: The device comprises: a first determination module configured to determine the current shooting scene; a compensation acquisition module configured to, in response to the shooting scene being a dark field scene, acquire an image of a shooting object after light compensation through the first display screen; wherein the display surface of the first display screen faces the shooting object; a display module configured to display the acquired image on the second display screen; wherein the second display screen is arranged opposite to the display surface of the first display screen.

11. An electronic device, comprising: comprise: a processor; a memory for storing computer programs or instructions; wherein the processor executes the computer programs or instructions to implement the steps of the method of any one of claims 1 to 9.

12. A non-transitory computer-readable storage medium storing a computer program or instructions, wherein, When the computer programs or instructions in the storage medium are executed by the processor, the steps of the method of any one of claims 1 to 9 are implemented.

13. A computer program product comprising computer programs or instructions, characterized in that, When the computer programs or instructions are executed by the processor, the steps of the method of any one of claims 1 to 9 are implemented.