CN113923367B - Shooting method and shooting device - Google Patents

Shooting method and shooting device Download PDF

Info

Publication number
CN113923367B
CN113923367B CN202111406991.XA CN202111406991A CN113923367B CN 113923367 B CN113923367 B CN 113923367B CN 202111406991 A CN202111406991 A CN 202111406991A CN 113923367 B CN113923367 B CN 113923367B
Authority
CN
China
Prior art keywords
area
shooting
image
region
original image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111406991.XA
Other languages
Chinese (zh)
Other versions
CN113923367A (en
Inventor
张佳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202111406991.XA priority Critical patent/CN113923367B/en
Publication of CN113923367A publication Critical patent/CN113923367A/en
Application granted granted Critical
Publication of CN113923367B publication Critical patent/CN113923367B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)

Abstract

The application discloses a shooting method and a shooting device, which belong to the technical field of image processing, wherein the shooting method comprises the following steps: receiving a first input of a shooting control under the condition that the shooting control is displayed in a shooting preview interface of the electronic equipment; in response to a first input, a target image is captured, wherein the target image comprises a first area and a second area, and the first area and the second area are areas captured through different exposure parameters.

Description

Shooting method and shooting device
Technical Field
The application belongs to the technical field of image processing, and particularly relates to a shooting method and a shooting device.
Background
At present, when a user uses a mobile terminal to shoot pictures with different exposure degrees required by a background and a portrait, a photographer needs to keep still for a long time to shoot, or after respectively shooting the background and the portrait, post-synthesis processing is performed, the shooting process is complex, and the sheeting effect is poor.
Disclosure of Invention
The embodiment of the application aims to provide a shooting method and a shooting device, which realize that background images and portrait images do not need to be shot respectively and then are synthesized later, are simple to operate, and improve the sheeting effect of target images.
In a first aspect, an embodiment of the present application provides a photographing method, including: receiving a first input of a shooting control under the condition that the shooting control is displayed in a shooting preview interface of the electronic equipment; in response to a first input, a target image is captured, wherein the target image comprises a first area and a second area, and the first area and the second area are areas captured through different exposure parameters.
In a second aspect, an embodiment of the present application provides a photographing apparatus, including: the receiving module is used for receiving a first input of the shooting control under the condition that the shooting control is displayed in a shooting preview interface of the electronic equipment; the shooting module is used for shooting a target image, wherein the target image comprises a first area and a second area, and the first area and the second area are obtained through shooting through different exposure parameters.
In a third aspect, embodiments of the present application provide an electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform the steps of the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a chip comprising a processor and a communication interface coupled to the processor for running a program or instructions implementing the steps of the method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product stored in a storage medium, the program product being executable by at least one processor to implement the method according to the first aspect.
The shooting method provided by the embodiment of the application is applied to the electronic equipment, and the electronic equipment is provided with the lens. When a picture is shot through a lens of the electronic device, the electronic device displays a shooting preview interface, a shooting control is displayed in the shooting preview interface, and after a user executes first input on the shooting control, the electronic device responds to the first input to shoot a target image comprising a first area and a second area. Specifically, the first area and the second area included in the target image have different image characteristics, and different exposure parameters are adopted to shoot when the image in the first area and the image in the second area are shot, so that the image characteristics in the first area and the image characteristics in the second area can be shot through the proper exposure parameters.
In the embodiment of the application, after the user only needs to send the shooting control instruction to the electronic equipment, the electronic equipment starts shooting the target image, and the electronic equipment exposes different areas in the target image according to different exposure parameters, so that the target image is obtained through shooting, the background image and the portrait image do not need to be shot respectively, and then later synthesis is carried out.
Drawings
Fig. 1 shows one of flow diagrams of a photographing method provided in an embodiment of the present application;
fig. 2 shows a second flowchart of a photographing method according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of a shooting preview interface provided in an embodiment of the present application;
fig. 4 shows a block diagram of a shooting device provided in an embodiment of the present application;
fig. 5 shows a block diagram of an electronic device according to an embodiment of the present application;
fig. 6 shows a schematic hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
Technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application are within the scope of the protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type and not limited to the number of objects, e.g., the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The shooting method, the shooting device, the electronic equipment and the readable storage medium provided in the embodiments of the present application are described in detail below with reference to fig. 1 to 6 by specific embodiments and application scenarios thereof.
In an embodiment of the present application, a photographing method is provided, and fig. 1 shows one of flowcharts of the photographing method according to an embodiment of the present application, as shown in fig. 1, the photographing method includes:
102, receiving a first input of a shooting control under the condition that the shooting control is displayed in a shooting preview interface of electronic equipment;
In step 104, in response to the first input, a target image is captured, the target image including a first region and a second region.
The first area and the second area are areas obtained through different exposure parameter shooting.
The shooting method provided by the embodiment of the application is applied to the electronic equipment, and the electronic equipment is provided with the lens. When a picture is shot through a lens of the electronic device, the electronic device displays a shooting preview interface, a shooting control is displayed in the shooting preview interface, and after a user executes first input on the shooting control, the electronic device responds to the first input to shoot a target image comprising a first area and a second area. Specifically, the first area and the second area included in the target image have different image characteristics, and different exposure parameters are adopted to shoot when the image in the first area and the image in the second area are shot, so that the image characteristics in the first area and the image characteristics in the second area can be shot through the proper exposure parameters.
Wherein the first input may be: the clicking input of the user on the shooting preview interface, or the voice instruction input by the user, or the specific gesture input by the user, may be specifically determined according to the actual use requirement, which is not limited in the embodiment of the present application.
The specific gesture in the embodiment of the application may be any one of a single-click gesture, a sliding gesture, a dragging gesture, a pressure recognition gesture, a long-press gesture, an area change gesture, a double-press gesture and a double-click gesture; the click input in the embodiment of the application may be single click input, double click input, or any number of click inputs, and may also be long press input or short press input.
Specifically, the electronic device is selected as a mobile phone, when a user needs to take a photograph of a starry sky portrait, namely, when the user takes the portrait photograph in a starry sky background, the user invokes the photographing function of the mobile phone, a corresponding photographing preview interface is displayed on a display screen of the mobile phone, and a photographing control is displayed in the preview interface and is a virtual key on the display screen. The user starts shooting an image through a lens by clicking a shooting key, in the shooting process, a display area of a person in a photo is taken as a first area, a starry sky background in the photo is taken as a second area, and the first area and the second area are exposed through different exposure parameters, so that a target image, namely the photo of the starry sky person, is obtained. In the shooting process, the electronic equipment respectively exposes the first area and the second area twice, so that exposure parameters in the shooting process of the first area and the second area in the obtained target image are different, the first area and the second area do not need to be respectively shot, and the shooting effect of the sky portrait photo is improved.
In the embodiment of the application, after the user only needs to send the shooting control instruction to the electronic equipment, the electronic equipment starts shooting the target image, and the electronic equipment exposes different areas in the target image according to different exposure parameters, so that the target image is obtained through shooting, the background image and the portrait image do not need to be shot respectively, and then later synthesis is carried out.
In some embodiments, the shooting modes of the electronic device include a starry sky shooting mode and a starry sky portrait shooting mode. And calling a starry sky shooting mode of the electronic equipment, wherein at the moment, a lens of the electronic equipment collects images and displays the preview images in a shooting preview interface, meanwhile, the electronic equipment starts AI identification on the preview images, and when the existence of the human images in the preview interface is identified, the electronic equipment enters the starry sky human image shooting mode.
In these embodiments, after the electronic device enters the starry sky portrait shooting mode, the user performs a first input on the shooting control, and then the electronic device identifies a first region and a second region in the image and exposes the first region and the second region in the target image through different exposure parameters.
It can be understood that, in the case that the shooting mode of the starry sky image is not entered, in order to improve the shooting efficiency of the image, the image is shot according to a normal shooting mode, that is, the whole target image is subjected to one exposure.
In some embodiments of the present application, fig. 2 shows a second flowchart of a photographing method according to an embodiment of the present application, as shown in fig. 2, photographing a target image, including:
step 202, shooting an original image according to a first exposure parameter;
in step 202, an original image is captured by the first exposure parameters, i.e. all areas in the original image are exposed according to the first exposure parameters.
Step 204, determining a first area and a second area in the original image;
wherein the first region and the second region comprise different image features;
in step 204, the type of the image feature in the original image is identified by the image identification technology, after the image feature in the original image is identified, the first area and the second area are divided according to the type of the image feature, the area of the first feature in the original image is divided into the first area, and the area of the second feature in the original image is divided into the second area.
And step 206, exposing the second area by adopting a second exposure parameter to obtain a target image.
In step 206, the second area is exposed to obtain the target image by using the second exposure parameter, and it can be understood that the first area in the target image is exposed to the electronic device by the first exposure parameter, and the second area is exposed to the electronic device by the second exposure parameter. In this step, only the second region is exposed, so that it is achieved that the exposure parameters of the first region and the second region in the target image in the shooting process are different. Since the image features in the first region and the second region are different, the first region and the second region are exposed through different exposure parameters, so that the display effect of the image features in the first region and the second region in the target image can be improved, and the sheeting effect of the target image can be improved.
In the embodiment of the application, in the process that the electronic device starts to shoot the target image, the whole image is exposed according to the first exposure parameter, so that an original image is obtained. The first region and the second region are identified according to image features in the original image, and it can be understood that the first region and the second region in the original image correspond to the first region and the second region in the target image. After the first area and the second area are identified, the first area in the original image is reserved, the second area shot according to the first exposure parameter is deleted, and the second area in the original image is exposed through the second exposure parameter, so that a target image is obtained, wherein the first area in the target image is the first area in the original image, namely the first area exposed according to the first exposure parameter, and the second area in the target image is the second area exposed according to the second exposure parameter.
According to the method and the device for the image shooting, the first area and the second area are identified according to the image characteristics in the image in the shooting process, different areas in the image are respectively exposed in the shooting process, shooting effects of the first area and the second area in the target image can be different through two different exposures, and shooting film rate is improved. Compared with the prior art, the method has the advantages that the method reduces the subsequent processing steps of the image by shooting different image features twice and then synthesizing the images, and the method can effectively reduce the boundary sense between the first area and the second area in the target image and improve the overall look and feel of the target image because the images in one shooting process are subjected to double exposure.
It should be noted that, the image features corresponding to the first area are portrait features, and the second area is a starry sky background feature. In the process of exposing the second area by the electronic equipment, a person to be shot can leave the shooting range of the lens, and the person to be shot does not need to be kept motionless for a long time in the shooting process, so that the experience of a user in the shooting process is further improved.
In some embodiments of the present application, the first exposure parameter comprises a first exposure duration and the second exposure parameter comprises a second exposure duration, wherein the second exposure duration is greater than the first exposure duration.
In the embodiment of the application, the exposure parameters include exposure time, and the exposure time used when the electronic device shoots the foreground person image and the background scene is different in the process of shooting the target image.
Specifically, the image features in the first region in the target image are portrait features, and the image features in the second region are starry sky background features. In the process of shooting an original image, shooting the original image by adopting a first exposure time length with shorter time length, so that both a foreground human image and a background starry sky in the original image are shot through the first exposure time length. After the first area and the second area in the original image are identified, deleting the second area in the original image, and exposing the second area according to a second exposure time with longer exposure time, so that a target image is obtained.
In the embodiment of the application, the second exposure time is set to be longer than the first exposure time, so that the definition of the first area and the second area in the target image can be improved, and the sheeting effect of the target image is further improved.
In some embodiments, the second exposure time period ranges from 5 seconds to 5 hours.
Wherein, when the user shoots the star field portrait image, the second exposure time is selected to be 10 seconds. After the original image with the portrait is shot, the region where the portrait is located is identified as a first region, the region where the starry sky background is located is identified as a second region, and the second region is exposed according to a second exposure time length of 10 seconds, so that the second region in the target image is the starry sky background.
Wherein, when the user shoots the star sky portrait image, the second exposure time is selected to be 3 hours. After the original image with the portrait is shot, the area where the portrait is located is identified as a first area, the area where the star field is located is identified as a second area, and the second area is exposed according to the second exposure time length of three hours, and the star field in the target image is enabled to be the star field due to the change of the star field within three hours.
In these embodiments, the user can set the second exposure time period by the electronic device according to the background requirement of the shot photo before shooting starts, and different exposure time periods can provide different background images, so that the user experience of shooting by using the electronic device is improved.
In some embodiments of the present application, an electronic device includes a light supplementing device that captures an original image according to a first exposure parameter, including: controlling the light supplementing device to operate according to the set time length; and in the operation process of the light supplementing device, shooting an original image by adopting a first exposure time.
In this embodiment of the application, still be provided with the light filling device in the electronic equipment, the light filling device can select as the flash light. And in the process of shooting the original image by the user, controlling the light supplementing device to supplement light for shooting the original image. And in the operation process of the light supplementing device, the light supplementing device continuously emits light, and the electronic equipment is controlled to shoot the original image according to the first exposure time, so that the original image is shot in the light supplementing state.
In the process of shooting the starry sky images, when the light supplementing device supplements light for the images in the stage of shooting the original images, the brightness of the foreground images in the original images is higher, namely the brightness of the images in the first area is higher, and the brightness of the background starry sky images in the original images is lower. The resolution of the portrait in the target image is improved, and the recognition efficiency of the first area and the second area in the original image is also improved.
It can be understood that the operation time of the light supplementing device completely covers the first exposure time in the process of capturing the original image, so that the person to be captured can determine whether to capture the original image by whether the light supplementing device emits light. After the light supplementing device stops emitting light, the user can know that the shooting of the original image is completed at the moment, namely, the portrait part in the target image is completed, and then the shooting range of the electronic equipment can be left.
In some embodiments of the present application, identifying a first region and a second region in an original image includes: identifying a first feature and a second feature in the original image; the region of the first feature in the original image is determined as a first region, and the region of the second feature in the target image is determined as a second region.
In the embodiment of the application, after the shooting of the original image is completed, the first feature and the second feature in the original image are identified through an image identification technology. The region covered by the first feature in the original image is taken as a first region, and the region covered by the second feature in the original image is taken as a second region.
The first feature is a foreground feature of the image and the second feature is a background feature of the image. In the process of shooting the starry sky figures, the first features are figures, and the second features are starry sky background features. Because the exposure time required when shooting the portrait and the starry sky background is different, the first area and the second area of the original image are divided according to the portrait characteristic and the starry sky background characteristic, and the first area and the second area are exposed through different exposure parameters, so that the definition of the portrait characteristic and the starry sky background characteristic in the target image is improved.
In some embodiments of the present application, in a case where an original image is captured, a prompt message is displayed in a capturing preview interface, where the prompt message is used to prompt that a first area in the original image is exposed.
In the embodiment of the present application, the image features in the first area in the original image are portrait features, and the features in the second area are starry sky background features. The image in the first region in the target image is the same as the image in the first region of the original image and both are human features. And displaying prompt information in a shooting preview interface of the electronic equipment, wherein the prompt information can prompt a photographer that shooting of a portrait part in a target image is completed, and a person to be shot can select to leave a shooting area of the electronic equipment.
Fig. 3 shows a schematic diagram of a shooting preview interface provided in an embodiment of the present application, as shown in fig. 3, the electronic device is a mobile phone, a shooting control 302 is displayed in a shooting preview interface 300 of the mobile phone, after a user clicks the shooting control 302, the mobile phone starts shooting an original image, after shooting the original image, prompt information 304 is displayed in the shooting preview interface 300, and the prompt information 304 is displayed in the shooting preview interface 300 in a floating window form.
In some embodiments of the present application, after capturing the target image, further includes: and smoothing the first area and the second area in the target image.
In the embodiment of the application, the images in the first area and the second area in the target image are obtained by exposing according to different exposure parameters, and after the target image is obtained by shooting, the boundary between the first area and the second area is smoothed, so that the boundary sense between the first area and the second area in the target image can be reduced, and the integrity of the target image is improved.
It is understood that after the target image is captured, the image in the second area is subjected to a non-drawing process, specifically, the hue of the image in the second area is changed, and the color saturation in the second area is changed. Specifically, by changing the hue of the starry sky background in the second region, the saturation of blue, purple and pink in the second region is optimized, and the color atmosphere sense of the starry sky is highlighted.
According to the shooting method provided by the embodiment of the application, the execution subject can be a shooting device. In the embodiment of the present application, taking an example of a photographing method performed by a photographing device, the photographing device provided in the embodiment of the present application is described.
In some embodiments of the present application, a photographing device is provided, fig. 4 shows a block diagram of a photographing device according to an embodiment of the present application, and as shown in fig. 4, a photographing device 400 includes:
a receiving module 402, configured to receive a first input to a shooting control in a case where the shooting control is displayed in a shooting preview interface of an electronic device;
the shooting module 404 is configured to shoot a target image, where the target image includes a first area and a second area, and the first area and the second area are areas shot by different exposure parameters.
The shooting device is applied to electronic equipment, and a lens is arranged on the electronic equipment. When a picture is shot through a lens of the electronic device, the electronic device displays a shooting preview interface, a shooting control is displayed in the shooting preview interface, and after a user executes first input on the shooting control, the electronic device responds to the first input to shoot a target image comprising a first area and a second area. Specifically, the first area and the second area included in the target image have different image characteristics, and different exposure parameters are adopted to shoot when the image in the first area and the image in the second area are shot, so that the image characteristics in the first area and the image characteristics in the second area can be shot through the proper exposure parameters.
Wherein the first input may be: the clicking input of the user on the shooting preview interface, or the voice instruction input by the user, or the specific gesture input by the user, may be specifically determined according to the actual use requirement, which is not limited in the embodiment of the present application.
The specific gesture in the embodiment of the application may be any one of a single-click gesture, a sliding gesture, a dragging gesture, a pressure recognition gesture, a long-press gesture, an area change gesture, a double-press gesture and a double-click gesture; the click input in the embodiment of the application may be single click input, double click input, or any number of click inputs, and may also be long press input or short press input.
Specifically, the electronic device is selected as a mobile phone, when a user needs to take a photograph of a starry sky portrait, namely, when the user takes the portrait photograph in a starry sky background, the user invokes the photographing function of the mobile phone, a corresponding photographing preview interface is displayed on a display screen of the mobile phone, and a photographing control is displayed in the preview interface and is a virtual key on the display screen. The user starts shooting an image through a lens by clicking a shooting key, in the shooting process, a display area of a person in a photo is taken as a first area, a starry sky background in the photo is taken as a second area, and the first area and the second area are exposed through different exposure parameters, so that a target image, namely the photo of the starry sky person, is obtained. In the shooting process, the electronic equipment respectively exposes the first area and the second area twice, so that exposure parameters in the shooting process of the first area and the second area in the obtained target image are different, the first area and the second area do not need to be respectively shot, and the shooting effect of the sky portrait photo is improved.
In the embodiment of the application, after the user only needs to send the shooting control instruction to the electronic equipment, the electronic equipment starts shooting the target image, and the electronic equipment exposes different areas in the target image according to different exposure parameters, so that the target image is obtained through shooting, the background image and the portrait image do not need to be shot respectively, and then later synthesis is carried out.
In some embodiments of the present application, the capturing module 404 is further configured to capture an original image according to the first exposure parameter;
the photographing module 404 photographs the original image through the first exposure parameters, i.e., all areas in the original image are exposed according to the first exposure parameters.
The photographing apparatus further includes:
the determining module is used for determining a first area and a second area in the original image, wherein the first area and the second area contain different image features;
the identification module identifies the types of the image features in the original image through an image identification technology, after the image features in the original image are identified, the first area and the second area are divided according to the types of the image features, the area of the first features in the original image is divided into the first area, and the area of the second features in the original image is divided into the second area.
And the exposure module is used for exposing the second area by adopting the second exposure parameters to obtain a target image.
The exposure module exposes the second area through the second exposure parameter to obtain a target image, and it can be understood that the first area in the target image is exposed by the electronic device through the first exposure parameter, and the second area is exposed by the electronic device through the second exposure parameter. In this step, only the second region is exposed, so that it is achieved that the exposure parameters of the first region and the second region in the target image in the shooting process are different. Since the image features in the first region and the second region are different, the first region and the second region are exposed through different exposure parameters, so that the display effect of the image features in the first region and the second region in the target image can be improved, and the sheeting effect of the target image can be improved.
According to the embodiment of the application, the second area is exposed through the second exposure parameter to obtain the target image, and it can be understood that the first area in the target image is exposed through the first exposure parameter by the electronic equipment, and the second area is exposed through the second exposure parameter by the electronic equipment. In this step, only the second region is exposed, so that it is achieved that the exposure parameters of the first region and the second region in the target image in the shooting process are different. Since the image features in the first region and the second region are different, the first region and the second region are exposed through different exposure parameters, so that the display effect of the image features in the first region and the second region in the target image can be improved, and the sheeting effect of the target image can be improved.
In some embodiments of the present application, the first exposure parameter comprises a first exposure duration and the second exposure parameter comprises a second exposure duration, wherein the second exposure duration is greater than the first exposure duration.
In the embodiment of the application, the exposure parameters include exposure time, and the exposure time used when the electronic device shoots the foreground person image and the background scene is different in the process of shooting the target image.
Specifically, the image features in the first region in the target image are portrait features, and the image features in the second region are starry sky background features. In the process of shooting an original image, shooting the original image by adopting a first exposure time length with shorter time length, so that both a foreground human image and a background starry sky in the original image are shot through the first exposure time length. After the first area and the second area in the original image are identified, deleting the second area in the original image, and exposing the second area according to a second exposure time with longer exposure time, so that a target image is obtained.
In the embodiment of the application, the second exposure time is set to be longer than the first exposure time, so that the definition of the first area and the second area in the target image can be improved, and the sheeting effect of the target image is further improved.
Before shooting starts, the user can set the second exposure time through the electronic equipment according to the background requirement of shooting pictures, different exposure time can provide different background images, and the user experience of shooting by using the electronic equipment is improved.
In some embodiments of the present application, the electronic device includes a light supplementing device, and the photographing device further includes: the control module is used for controlling the light supplementing device to operate according to the set time length; the shooting module 404 is further configured to, during operation of the light supplementing device, shoot an original image with the first exposure duration.
According to the embodiment of the application, the electronic equipment is further provided with the light supplementing device, and the light supplementing device can be a flash lamp. And in the process of shooting the original image by the user, controlling the light supplementing device to supplement light for shooting the original image. And in the operation process of the light supplementing device, the light supplementing device continuously emits light, and the electronic equipment is controlled to shoot the original image according to the first exposure time, so that the original image is shot in the light supplementing state.
In the process of shooting the starry sky images, when the light supplementing device supplements light for the images in the stage of shooting the original images, the brightness of the foreground images in the original images is higher, namely the brightness of the images in the first area is higher, and the brightness of the background starry sky images in the original images is lower. The resolution of the portrait in the target image is improved, and the recognition efficiency of the first area and the second area in the original image is also improved.
It can be understood that the operation time of the light supplementing device completely covers the first exposure time in the process of capturing the original image, so that the person to be captured can determine whether to capture the original image by whether the light supplementing device emits light. After the light supplementing device stops emitting light, the user can know that the shooting of the original image is completed at the moment, namely, the portrait part in the target image is completed, and then the shooting range of the electronic equipment can be left.
In some embodiments of the present application, the photographing apparatus further includes:
the identification module is also used for identifying the first characteristic and the second characteristic in the original image; the determining module is further configured to determine an area of the first feature in the original image as a first area and an area of the second feature in the target image as a second area.
According to the method and the device, after the shooting of the original image is completed, the first features and the second features in the original image are identified through an image identification technology. The region covered by the first feature in the original image is taken as a first region, and the region covered by the second feature in the original image is taken as a second region.
The first feature is a foreground feature of the image and the second feature is a background feature of the image. In the process of shooting the starry sky figures, the first features are figures, and the second features are starry sky background features. Because the exposure time required when shooting the portrait and the starry sky background is different, the first area and the second area of the original image are divided according to the portrait characteristic and the starry sky background characteristic, and the first area and the second area are exposed through different exposure parameters, so that the definition of the portrait characteristic and the starry sky background characteristic in the target image is improved.
In some embodiments of the present application, the photographing apparatus further includes: the display module is used for displaying prompt information in a shooting preview interface under the condition that an original image is obtained through shooting, wherein the prompt information is used for prompting that a first area in the original image is exposed.
In the embodiment of the application, the image features in the first area in the original image are portrait features, and the features in the second area are starry sky background features. The image in the first region in the target image is the same as the image in the first region of the original image and both are human features. And displaying prompt information in a shooting preview interface of the electronic equipment, wherein the prompt information can prompt a photographer that shooting of a portrait part in a target image is completed, and a person to be shot can select to leave a shooting area of the electronic equipment.
In some embodiments of the present application, the photographing apparatus further includes: and the processing module is used for carrying out smoothing processing on the first area and the second area in the target image.
According to the method and the device for processing the image, the images in the first area and the second area in the target image are obtained through exposure according to different exposure parameters, and after the target image is obtained through shooting, the boundary between the first area and the second area is subjected to smoothing processing, so that the sense of the boundary between the first area and the second area in the target image can be reduced, and the integrity of the target image is improved.
It is understood that after the target image is captured, the image in the second area is subjected to a non-drawing process, specifically, the hue of the image in the second area is changed, and the color saturation in the second area is changed. Specifically, by changing the hue of the starry sky background in the second region, the saturation of blue, purple and pink in the second region is optimized, and the color atmosphere sense of the starry sky is highlighted.
The photographing device in the embodiment of the application may be an electronic device, or may be a component in the electronic device, for example, an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. By way of example, the electronic device may be a mobile phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, mobile internet appliance (Mobile Internet Device, MID), augmented reality (augmented reality, AR)/Virtual Reality (VR) device, robot, wearable device, ultra-mobile personal computer, UMPC, netbook or personal digital assistant (personal digital assistant, PDA), etc., but may also be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The photographing device in the embodiment of the application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
The photographing device provided in the embodiment of the present application can implement each process implemented in the photographing method embodiment in fig. 1 to 3, and in order to avoid repetition, a detailed description is omitted here.
Optionally, as shown in fig. 5, the embodiment of the present application further provides an electronic device 500, including a processor 502 and a memory 504, where the memory 504 stores a program or an instruction that can be executed on the processor 502, and the program or the instruction when executed by the processor 502 implements each step of the foregoing shooting method embodiment, and can achieve the same technical effect, so that repetition is avoided, and no further description is given here.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
Fig. 6 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 600 includes, but is not limited to: radio frequency unit 601, network module 602, audio output unit 603, input unit 604, sensor 605, display unit 606, user input unit 607, interface unit 608, memory 609, and processor 610.
Those skilled in the art will appreciate that the electronic device 600 may further include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 610 by a power management system to perform functions such as managing charge, discharge, and power consumption by the power management system. The electronic device structure shown in fig. 6 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
The user input unit 607 is configured to receive, when a shooting control is displayed in a shooting preview interface of the electronic device, a first input to the shooting control;
a processor 610 for photographing a target image, which is an original image corresponding to a target thumbnail, in a server in response to a first input;
and a display unit 606 for capturing a target image including the first region and the second region in response to the first input.
The first area and the second area are obtained through shooting through different exposure parameters.
In the embodiment of the application, after the user only needs to send the shooting control instruction to the electronic equipment, the electronic equipment starts shooting the target image, and the electronic equipment exposes different areas in the target image according to different exposure parameters, so that the target image is obtained through shooting, the background image and the portrait image do not need to be shot respectively, and then later synthesis is carried out.
Further, a processor 610 is configured to capture an original image according to the first exposure parameter; identifying a first region and a second region in the original image, wherein the first region and the second region contain different image features; and exposing the second area according to the second exposure parameter to obtain a target image.
According to the method and the device for the image shooting, the first area and the second area are identified according to the image characteristics in the image in the shooting process, different areas in the image are respectively exposed in the shooting process, shooting effects of the first area and the second area in the target image can be different through two different exposures, and shooting film rate is improved. Compared with the prior art, the method has the advantages that the method reduces the subsequent processing steps of the image by shooting different image features twice and then synthesizing the images, and the method can effectively reduce the boundary sense between the first area and the second area in the target image and improve the overall look and feel of the target image because the images in one shooting process are subjected to double exposure.
Further, the first exposure parameter includes a first exposure duration, and the second exposure parameter includes a second exposure duration, wherein the second exposure duration is greater than the first exposure duration.
In the embodiment of the application, the second exposure time is set to be longer than the first exposure time, so that the definition of the first area and the second area in the target image can be improved, and the sheeting effect of the target image is further improved.
Further, the electronic device includes a light supplementing device, and a processor 610, configured to control the light supplementing device to operate according to a set duration; and in the operation process of the light supplementing device, shooting an original image according to the first exposure time.
In this embodiment of the present invention, in a capturing process of a starry sky image, at a stage of capturing an original image, a light supplementing device supplements light to the image, so that brightness of a foreground image in the original image is higher, that is, brightness of the image in a first area is higher, and brightness of a background starry sky image in the original image is lower. The resolution of the portrait in the target image is improved, and the recognition efficiency of the first area and the second area in the original image is also improved.
Further, the processor 610 is configured to identify a first feature and a second feature in the original image, determine an area of the first feature in the original image as a first area, and determine an area of the second feature in the target image as a second area.
In this embodiment of the present application, the first feature is a foreground feature of the image, and the second feature is a background feature of the image. In the process of shooting the starry sky figures, the first features are figures, and the second features are starry sky background features. Because the exposure time required when shooting the portrait and the starry sky background is different, the first area and the second area of the original image are divided according to the portrait characteristic and the starry sky background characteristic, and the first area and the second area are exposed through different exposure parameters, so that the definition of the portrait characteristic and the starry sky background characteristic in the target image is improved.
Further, the display unit 606 is configured to display, in the case where the original image is obtained by capturing, a prompt message in the capturing preview interface, where the prompt message is used to prompt that the first area in the original image is exposed.
In the embodiment of the present application, the image features in the first area in the original image are portrait features, and the features in the second area are starry sky background features. The image in the first region in the target image is the same as the image in the first region of the original image and both are human features. And displaying prompt information in a shooting preview interface of the electronic equipment, wherein the prompt information can prompt a photographer that shooting of a portrait part in a target image is completed, and a person to be shot can select to leave a shooting area of the electronic equipment.
Further, the processor 610 is configured to perform smoothing processing on the first region and the second region in the target image.
In the embodiment of the application, the images in the first area and the second area in the target image are obtained by exposing according to different exposure parameters, and after the target image is obtained by shooting, the boundary between the first area and the second area is smoothed, so that the boundary sense between the first area and the second area in the target image can be reduced, and the integrity of the target image is improved.
It should be understood that in the embodiment of the present application, the input unit 604 may include a graphics processor (Graphics Processing Unit, GPU) 6041 and a microphone 6042, and the graphics processor 6041 processes image data of still pictures or videos obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 607 includes at least one of a touch panel 6071 and other input devices 6072. The touch panel 6071 is also called a touch screen. The touch panel 6071 may include two parts of a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
The memory 609 may be used to store software programs as well as various data. The memory 609 may mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 609 may include volatile memory or nonvolatile memory, or the memory 609 may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM), static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (ddr SDRAM), enhanced SDRAM (Enhanced SDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DRRAM). Memory 609 in the present embodiment includes, but is not limited to, these and any other suitable types of memory.
The processor 610 may include one or more processing units; optionally, the processor 610 integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, etc., and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
The embodiment of the application further provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements each process of the above method embodiment, and can achieve the same technical effects, so that repetition is avoided, and no further description is given here.
The processor is a processor in the electronic device in the above embodiment. Readable storage media include computer readable storage media such as computer readable memory ROM, random access memory RAM, magnetic or optical disks, and the like.
The embodiment of the application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running a program or instructions, each process of the shooting method embodiment is implemented, the same technical effect can be achieved, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
The embodiments of the present application provide a computer program product stored in a storage medium, where the program product is executed by at least one processor to implement the respective processes of the foregoing shooting method embodiments, and achieve the same technical effects, and for avoiding repetition, a detailed description is omitted herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solutions of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods of the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.

Claims (8)

1. A photographing method, comprising:
receiving a first input of a shooting control under the condition that the shooting control is displayed in a shooting preview interface of electronic equipment;
in response to the first input, shooting a target image, wherein the target image comprises a first area and a second area, the image characteristics in the first area and the image characteristics in the second area are different, and the first area and the second area respectively correspond to different exposure parameters;
the shooting target image includes: shooting an original image according to the first exposure parameters;
identifying a first region and a second region in the original image, reserving the first region in the original image after identifying the first region and the second region, and deleting the second region in the original image;
and the second exposure parameter is adopted to expose the second area only, so that the target image is obtained through two different exposures in one shooting process, and the recombination of the two shooting processes is avoided.
2. The photographing method of claim 1, wherein,
the first exposure parameter comprises a first exposure time period, and the second exposure parameter comprises a second exposure time period, wherein the second exposure time period is longer than the first exposure time period.
3. The photographing method of claim 2, wherein the electronic device comprises a light supplementing device, the photographing the original image according to the first exposure parameter comprises:
controlling the light supplementing device to operate according to a set time length;
and in the operation process of the light supplementing device, shooting the original image by adopting the first exposure time.
4. A photographing method as claimed in any one of claims 1 to 3, wherein said identifying a first region and a second region in said original image comprises:
identifying a first feature and a second feature in the original image;
and determining the area of the first feature in the original image as the first area, and determining the area of the second feature in the original image as the second area.
5. A photographing apparatus applied to an electronic device, comprising:
the electronic equipment comprises a receiving module, a display module and a display module, wherein the receiving module is used for receiving a first input of a shooting control under the condition that the shooting control is displayed in a shooting preview interface of the electronic equipment;
the shooting module is used for responding to the first input to shoot a target image, wherein the target image comprises a first area and a second area, the image characteristics in the first area and the image characteristics in the second area are different, and the first area and the second area respectively correspond to different exposure parameters;
The shooting target image includes:
shooting an original image according to the first exposure parameters;
identifying a first region and a second region in the original image, reserving the first region in the original image after identifying the first region and the second region, and deleting the second region in the original image;
and the second exposure parameter is adopted to expose the second area only, so that the target image is obtained through two different exposures in one shooting process, and the recombination of the two shooting processes is avoided.
6. The photographing device as claimed in claim 5, wherein,
the first exposure parameter comprises a first exposure time period, and the second exposure parameter comprises a second exposure time period, wherein the second exposure time period is longer than the first exposure time period.
7. The photographing device of claim 6, wherein the electronic apparatus comprises a light supplementing device, the photographing device further comprising:
the control module is used for controlling the light supplementing device to operate according to a set time length;
the shooting module is further configured to shoot the original image with the first exposure duration in the operation process of the light supplementing device.
8. The photographing device according to any of the claims 5 to 7, characterized in that,
the identifying a first region and a second region in the original image includes:
identifying a first feature and a second feature in the original image;
and determining the area of the first feature in the original image as the first area, and determining the area of the second feature in the original image as the second area.
CN202111406991.XA 2021-11-24 2021-11-24 Shooting method and shooting device Active CN113923367B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111406991.XA CN113923367B (en) 2021-11-24 2021-11-24 Shooting method and shooting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111406991.XA CN113923367B (en) 2021-11-24 2021-11-24 Shooting method and shooting device

Publications (2)

Publication Number Publication Date
CN113923367A CN113923367A (en) 2022-01-11
CN113923367B true CN113923367B (en) 2024-04-12

Family

ID=79248000

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111406991.XA Active CN113923367B (en) 2021-11-24 2021-11-24 Shooting method and shooting device

Country Status (1)

Country Link
CN (1) CN113923367B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012165193A (en) * 2011-02-07 2012-08-30 Olympus Imaging Corp Electronic imaging device
CN105208281A (en) * 2015-10-09 2015-12-30 广东欧珀移动通信有限公司 Night scene shooting method and device
CN105721787A (en) * 2016-02-01 2016-06-29 广东欧珀移动通信有限公司 Method and device for adjusting local region exposure, and mobile terminal
CN106131449A (en) * 2016-07-27 2016-11-16 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN107087107A (en) * 2017-05-05 2017-08-22 中国科学院计算技术研究所 Image processing apparatus and method based on dual camera
CN107197169A (en) * 2017-06-22 2017-09-22 维沃移动通信有限公司 A kind of high dynamic range images image pickup method and mobile terminal
CN107395997A (en) * 2017-08-18 2017-11-24 维沃移动通信有限公司 A kind of image pickup method and mobile terminal
CN112153301A (en) * 2020-09-27 2020-12-29 维沃移动通信有限公司 Shooting method and electronic equipment
CN112672060A (en) * 2020-12-29 2021-04-16 维沃移动通信有限公司 Shooting method and device and electronic equipment
CN112887624A (en) * 2021-01-26 2021-06-01 维沃移动通信有限公司 Shooting method and device and electronic equipment
CN113225485A (en) * 2021-03-19 2021-08-06 浙江大华技术股份有限公司 Image acquisition assembly, fusion method, electronic device and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012165193A (en) * 2011-02-07 2012-08-30 Olympus Imaging Corp Electronic imaging device
CN105208281A (en) * 2015-10-09 2015-12-30 广东欧珀移动通信有限公司 Night scene shooting method and device
CN105721787A (en) * 2016-02-01 2016-06-29 广东欧珀移动通信有限公司 Method and device for adjusting local region exposure, and mobile terminal
CN106131449A (en) * 2016-07-27 2016-11-16 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN107087107A (en) * 2017-05-05 2017-08-22 中国科学院计算技术研究所 Image processing apparatus and method based on dual camera
CN107197169A (en) * 2017-06-22 2017-09-22 维沃移动通信有限公司 A kind of high dynamic range images image pickup method and mobile terminal
CN107395997A (en) * 2017-08-18 2017-11-24 维沃移动通信有限公司 A kind of image pickup method and mobile terminal
CN112153301A (en) * 2020-09-27 2020-12-29 维沃移动通信有限公司 Shooting method and electronic equipment
CN112672060A (en) * 2020-12-29 2021-04-16 维沃移动通信有限公司 Shooting method and device and electronic equipment
CN112887624A (en) * 2021-01-26 2021-06-01 维沃移动通信有限公司 Shooting method and device and electronic equipment
CN113225485A (en) * 2021-03-19 2021-08-06 浙江大华技术股份有限公司 Image acquisition assembly, fusion method, electronic device and storage medium

Also Published As

Publication number Publication date
CN113923367A (en) 2022-01-11

Similar Documents

Publication Publication Date Title
CN113794831B (en) Video shooting method, device, electronic equipment and medium
CN114390197B (en) Shooting method and device, electronic equipment and readable storage medium
CN105554366A (en) Multimedia photographing processing method and device and intelligent terminal
CN113194256B (en) Shooting method, shooting device, electronic equipment and storage medium
CN114025100A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN114025237B (en) Video generation method and device and electronic equipment
CN113923367B (en) Shooting method and shooting device
CN114222069B (en) Shooting method, shooting device and electronic equipment
CN114500852B (en) Shooting method, shooting device, electronic equipment and readable storage medium
WO2022247766A1 (en) Image processing method and apparatus, and electronic device
CN115967854A (en) Photographing method and device and electronic equipment
CN114125297B (en) Video shooting method, device, electronic equipment and storage medium
CN112383708B (en) Shooting method and device, electronic equipment and readable storage medium
CN114285988A (en) Display method, display device, electronic equipment and storage medium
CN113489901B (en) Shooting method and device thereof
CN114143455B (en) Shooting method and device and electronic equipment
CN112367470B (en) Image processing method and device and electronic equipment
CN114915730B (en) Shooting method and shooting device
CN114286002B (en) Image processing circuit, method, device, electronic equipment and chip
CN116916147A (en) Image processing method, image sending device and electronic equipment
CN116017146A (en) Image processing method and device
CN115209056A (en) Shooting method, shooting device, electronic equipment and storage medium
CN113572961A (en) Shooting processing method and electronic equipment
CN115797160A (en) Image generation method and device
CN116320799A (en) Shooting method, shooting device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant