CN113747067A - Photographing method and device, electronic equipment and storage medium - Google Patents

Photographing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113747067A
CN113747067A CN202111045276.8A CN202111045276A CN113747067A CN 113747067 A CN113747067 A CN 113747067A CN 202111045276 A CN202111045276 A CN 202111045276A CN 113747067 A CN113747067 A CN 113747067A
Authority
CN
China
Prior art keywords
photographing
focusing
photosensitive
region
areas
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.)
Granted
Application number
CN202111045276.8A
Other languages
Chinese (zh)
Other versions
CN113747067B (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 CN202111045276.8A priority Critical patent/CN113747067B/en
Publication of CN113747067A publication Critical patent/CN113747067A/en
Application granted granted Critical
Publication of CN113747067B publication Critical patent/CN113747067B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/67Focus control based on electronic image sensor signals
    • H04N23/675Focus control based on electronic image sensor signals comprising setting of focusing regions

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Automatic Focus Adjustment (AREA)

Abstract

The application discloses a photographing method, a photographing device, electronic equipment and a storage medium, which belong to the technical field of photographing, and the method comprises the following steps: acquiring focusing information of N photographing regions, wherein the N photographing regions are obtained by performing region division on a current photographing scene, and N is an integer greater than 1; determining focusing parameters of the N photographing regions according to the focusing information; and shooting an image based on the focusing parameters to obtain a target image.

Description

Photographing method and device, electronic equipment and storage medium
Technical Field
The application belongs to the technical field of photographing, and particularly relates to a photographing method and device, electronic equipment and a storage medium.
Background
In recent years, with the spread of electronic devices, more and more users take pictures using cameras in the electronic devices. Compared with professional photographic equipment, the camera in the electronic equipment has the advantages of simplicity in operation, convenience in photographing and the like.
In the prior art, when taking a picture, the electronic device calculates an automatic focusing distance by focusing once or for many times, and finishes focusing and taking a picture once according to the automatic focusing distance to generate an image. However, for some close-range photographing scenes, the depth of field is limited, and the image photographed by one-time focusing photographing has a problem of local out-of-focus blur, and the photographing effect is poor.
Disclosure of Invention
The embodiment of the application aims to provide a photographing method, a photographing device, electronic equipment and a storage medium, and can solve the problems that in the prior art, a photographed image is locally out of focus and blurred, and the photographing effect is poor.
In a first aspect, an embodiment of the present application provides a photographing method, where the method includes:
acquiring focusing information of N photographing regions, wherein the N photographing regions are obtained by performing region division on a current photographing scene, and N is an integer greater than 1;
determining focusing parameters of the N photographing regions according to the focusing information;
and shooting an image based on the focusing parameters to obtain a target image.
In a second aspect, an embodiment of the present application provides a photographing apparatus, including:
the system comprises an acquisition module, a display module and a control module, wherein the acquisition module is used for acquiring focusing information of N photographing regions, the N photographing regions are obtained by performing region division on a current photographing scene, and N is an integer greater than 1;
the determining module is used for determining the focusing parameters of the N photographing regions according to the focusing information;
and the photographing module is used for photographing images based on the focusing parameters to obtain target images.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, for a current photographing scene, a camera in the electronic device can focus different areas of the current photographing scene at the same time to obtain focusing information of the different areas, determine focusing parameters of the different areas according to the focusing information, and photograph an image based on the determined focusing parameters to obtain a target image. Compared with the prior art, in the embodiment of the application, the camera can acquire focusing information of different areas according to the distance between a field object in different areas of a current shooting scene and the camera lens, and shoots images of the current shooting scene based on the focusing information of the different areas, so that when some close-range scenes are shot, the images obtained by shooting are prevented from being out of focus and blurred, the shot images are clear and accurate, and the shooting effect is improved.
Drawings
Fig. 1 is a flowchart of a photographing method provided in an embodiment of the present application;
FIG. 2 is an exemplary diagram of a photosensitive chip provided in an embodiment of the present application;
FIG. 3 is an exemplary illustration of a prior art sensor chip for focusing;
FIG. 4 is a diagram illustrating an example of focusing performed by the photo sensor chip according to an embodiment of the present disclosure;
fig. 5 is a block diagram of a photographing apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 7 is a hardware structure diagram of an electronic device implementing various embodiments of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The embodiment of the application provides a photographing method and device, electronic equipment and a storage medium.
The photographing method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Fig. 1 is a flowchart of a photographing method provided in an embodiment of the present application, and as shown in fig. 1, the method may include the following steps: step 101, step 102 and step 103, wherein,
in step 101, focus information of N photo-taking regions is obtained, where the N photo-taking regions are obtained by performing region division on a current photo-taking scene, and N is an integer greater than 1.
In the embodiment of the application, the N shooting areas form a complete current shooting scene.
In the embodiment of the present application, the focusing information may include: a focus distance; alternatively, the focusing information may include: a focus distance and a color parameter of the photograph, wherein the color parameter may include one or more of: light intensity, contrast, and white balance.
In the embodiment of the application, focusing information of at least two photographing regions in the N photographing regions is different.
In the embodiment of the application, when a focusing instruction is received, the focusing information of the N photographing regions is acquired, wherein the focusing instruction can be triggered by a user. For example, when a user needs to take a picture, the user takes out the electronic device, opens the camera, and clicks a camera screen to trigger a focusing instruction.
In the embodiment of the present application, a camera of an electronic device may include a photosensitive chip, and the photosensitive chip may be divided into a plurality of photosensitive areas, where each photosensitive area is a part of the photosensitive chip. For example, as shown in fig. 2, the camera includes a photo chip, which may be divided into 3 × 3 equal parts to obtain 9 photo-sensitive areas with the same size, namely, photo-sensitive area 1, photo-sensitive area 2, photo-sensitive area 3, photo-sensitive area 4, photo-sensitive area 5, photo-sensitive area 6, photo-sensitive area 7, photo-sensitive area 8, and photo-sensitive area 9.
The process of the photosensitive chip works as follows: 1) a light particle signal receiver (sensor) on the photosensitive chip receives a photon signal; 2) the analog current signal received by the optical particle signal receiver is amplified into a voltage signal by a signal amplifier; 3) the analog signals are converted into digital signals through the ADC, and finally the photosensitive chip outputs the digital signals on different pixel positions.
In this embodiment of the application, when the photosensitive chip is divided into N photosensitive regions, the step 101 may specifically include the following steps:
focusing the N photographing areas through N photosensitive areas in the camera to obtain N focusing information; the N photosensitive areas are obtained by dividing a photosensitive chip in the camera into areas, and one photosensitive area corresponds to one photographing area.
In the embodiment of the application, one photosensitive area in the camera of the electronic device focuses on one photographing area in the current photographing scene, and the N photosensitive areas focus on the N photographing areas simultaneously.
In an embodiment provided by the present application, focusing may be performed on N photographing regions by controlling deformation of a photosensitive film in each photosensitive region, specifically:
for each photographing region, controlling the deformation of a photosensitive film of a photosensitive region corresponding to the photographing region by adjusting the electromagnetic force with different intensities, and calculating the contrast of a digital image of the photosensitive region under different intensities to obtain focusing information of the photographing region corresponding to the photosensitive region; the photosensitive areas are obtained by distinguishing and dividing one photosensitive chip in the camera, and one photosensitive area corresponds to one photographing area.
In the embodiment of the application, the photosensitive chip can be divided into a plurality of areas, the photosensitive film in each area can be deformed by electromagnetically controlling the film of the photosensitive chip, so that the photosensitive chip generates relative displacement, and then the digital signal in the area is obtained through the steps 2) and 3).
In an example, taking the focusing of the photosensitive area 1 as an example, during the focusing, the photosensitive area 1 is deformed to different degrees by electromagnetic forces with different intensities with respect to the photosensitive area 1, and specifically, the photosensitive film of the photosensitive area is uniformly deformed by uniformly changing the electromagnetic intensity from weak to strong.
In the embodiment of the application, the stronger the electromagnetic force is, the larger the deformation of the photosensitive film of the photosensitive chip is, the farther the photosensitive film is from the lens, and the closer the focusing distance is; the weaker the electromagnetic force is, the smaller the deformation of the photosensitive film on the photosensitive chip is, and the closer the photosensitive film is to the lens, the farther the focusing distance is.
In the embodiment of the application, in the process that the photosensitive film is uniformly deformed, the focusing distance is also uniformly changed, and the contrast of the digital image of the current photosensitive area under different intensities is calculated to obtain the optimal focusing position of the area. All photosensitive areas of the whole photosensitive chip are focused in the same way.
In another embodiment provided by the present application, a mechanical structure of the photosensitive chip may be changed, so that each photosensitive area of the photosensitive chip can freely move back and forth along a central line direction of the lens, to focus the N photographing areas, specifically:
each photosensitive area is connected with the voice coil motor, the voice coil motor drives the photosensitive areas to move so as to support each photosensitive area of the photosensitive chip to move freely, the contrast of digital images of the photosensitive areas at different positions is calculated, and focusing information of the photographing areas corresponding to the photosensitive areas is obtained.
In the embodiment of the present application, the electronic device may also include: the photosensitive chip comprises a plurality of movable photosensitive chips, and each photosensitive chip corresponds to one photosensitive area.
In the embodiment of the application, when focusing is performed, different photosensitive areas can move back and forth along the central axis direction of the lens according to the distance of the corresponding field object, and respective focusing information is adjusted through contrast focusing.
In the embodiment of the application, when the current photographing scene is divided into regions, the division rule may be the same as the division rule of the photosensitive regions, and one photographing region in the current photographing scene corresponds to one photosensitive region of the photosensitive chip. For example, the camera includes 9 photosensitive regions shown in fig. 2, and when focusing is performed, the lens divides the current photographing scene into 9 photographing regions through the photographing preview interface according to the division rule of the photosensitive regions shown in fig. 2, where each photosensitive region corresponds to one photographing region.
In the embodiment of the present application, the current photographing scene may also be divided into three regions according to other rules, for example, the photographing scene is divided into three equal parts from left to right according to a rule preset by a user, so as to obtain 3 photographing regions, which is not limited in the embodiment of the present application.
In step 102, focusing parameters of the N photographing regions are determined according to the focusing information.
In an embodiment provided by the present application, when the focusing information includes a focusing distance, the step 102 may specifically include the following steps:
for each photographing region, the focusing distance of the photographing region is determined as the focusing parameter of the photographing region.
In the embodiment of the application, for each photographing region, deformation of a photosensitive film of a photosensitive region corresponding to the photographing region is controlled by adjusting electromagnetic force with different intensities, the contrast of digital images of the photosensitive region under different intensities is calculated to obtain the focusing distance of the photographing region corresponding to the photosensitive region, and the focusing distance of the photographing region is determined as the focusing parameter of the photographing region; the photosensitive areas are obtained by distinguishing and dividing one photosensitive chip in the camera, and one photosensitive area corresponds to one photographing area.
In another embodiment provided by the present application, when the focusing information includes a focusing distance and a color parameter for photographing, the step 102 may specifically include the following steps:
calculating target color parameters according to the color parameters of the N photographing regions;
for each photographing region, determining the focusing distance and the target color parameter of the photographing region as the focusing parameters of the photographing region, wherein the color parameters comprise one or more of the following items: light intensity, contrast, and white balance.
In consideration of the fact that in the prior art, an electronic device calculates an automatic focusing distance through one or more times of focusing, and completes one-time focusing photographing according to the automatic focusing distance, the photographed image has the problem of local defocus blur, and besides, the information of focusing parameters such as brightness, contrast, white balance and the like acquired through one-time focusing is inaccurate, some areas in the photographed image are dark, other areas are bright, and the image has low restoration degree to the photographed scene.
In order to solve the above problem, in the embodiment of the present application, it is considered that different focus distances correspond to different color parameters, and different color parameters correspond to different imaging effects, so that in order to ensure that a finally shot image can highly restore a shooting scene, after a plurality of photosensitive regions in an electronic device respectively focus different shooting regions of a current shooting scene, the focus distances of the plurality of shooting regions are obtained, and simultaneously, the color parameters of the plurality of shooting regions at the focus distances are obtained.
In one example, a camera of the electronic device includes 9 photosensitive areas shown in fig. 2, and after focusing is completed, the focusing distance of a photographing area corresponding to the 9 photosensitive areas is obtained, and the color parameters of the 9 photographing areas are obtained at the same time.
In the embodiment of the present application, after the color parameters of the plurality of photographing regions are obtained, a suitable target color parameter, such as a suitable brightness, a suitable contrast, and a suitable white balance, is calculated according to the color parameters of the plurality of photographing regions.
In the embodiment of the application, when the target color parameter is calculated according to the color parameters of the plurality of photographing regions, the average value of the color parameters of the plurality of photographing regions can be calculated, and the average value is determined as the target color parameter.
For example, a uniform brightness parameter is obtained by calculating the average brightness value according to the brightness of different photographing regions; according to the contrast of different photographing areas, a uniform contrast parameter is obtained by calculating the average value of the contrast; and according to the white balance of different photographing areas, a uniform white balance parameter is obtained by calculating the average value of the white balance.
In the embodiment of the application, after the reasonable target color parameters are calculated, the target color parameters are sent to all photosensitive areas of the lens, and the color parameters of all the photosensitive areas are adjusted to the target color parameters.
Therefore, in the embodiment of the application, when focusing is performed, the focusing distances of different shooting areas can be respectively adjusted according to the distances of the objects corresponding to the field of view in the current shooting scene, so that when some close-range scenes are shot, the shot images are prevented from being out of focus and blurred, and the shot images are clear and accurate; in addition, the different photographing areas adopt uniform color parameters, so that the photographed image has higher reduction degree and is more real to the photographing scene, and the photographing effect is improved.
In step 103, an image is captured based on the focusing parameters to obtain a target image.
In the embodiment of the application, under the condition that the N photosensitive areas are at the focusing positions corresponding to the respective focusing distances and the photographing color parameters of the N photosensitive areas are adjusted to be the target color parameters, a lens in a camera is controlled to photograph, so that the RGB values of all pixel points in the N photosensitive areas are obtained; and generating a target image according to the RGB values of all the pixel points in the N photosensitive areas.
In order to facilitate understanding of the differences between the technical solutions of the present application and the prior art, the description is made with reference to the examples shown in fig. 3 and 4.
Fig. 3 illustrates a focusing scheme in the prior art, in which a camera of an electronic device includes only one photosensitive chip, and when a photographed scene includes a long shot and a short shot at the same time, a focusing position of the photosensitive chip is position 1 for the long shot; for a close shot, the focusing position of the photosensitive chip is position 2, and since the photosensitive chip can only move uniformly and only one focusing position can be provided for one-time shooting, and the position 1 and the position 2 cannot be considered simultaneously, only a compromise position can be calculated, and the shot image is shot at the compromise position, so that the shot image has local out-of-focus blur.
Fig. 4 shows a focusing scheme in the present application, and a camera of an electronic device includes a photosensitive chip, which is divided into several areas, for example, 9 areas, and each photosensitive area can move freely. For convenience of description, taking 3 photosensitive regions out of 9 as an example, when a photographed scene includes a long shot, a short shot 1, and a short shot 2, the focus position of the photosensitive region 1 is position 1 for the long shot; for the close shot 1, the focus position of the photosensitive area 2 is position 2; for the close shot 2, the focus position of the photosensitive area 3 is position 3; because each area of the photosensitive chip can move respectively, one photosensitive area can correspond to one focusing position after being shot once, different photosensitive areas can correspond to different focusing positions after being shot once, and the position 1, the position 2 and the position 3 can be considered simultaneously, the shot image is clearer, and the local defocus blur does not exist.
As can be seen from the above embodiments, in the embodiment, for the current photographing scene, a camera in the electronic device may focus different regions of the current photographing scene at the same time, obtain focusing information of the different regions, determine focusing parameters of the different regions according to the focusing information, and photograph an image based on the focusing parameters to obtain a target image. Compared with the prior art, in the embodiment of the application, the camera can acquire focusing information of different areas according to the distance between a field object in different areas of a current shooting scene and the camera lens, and shoots images of the current shooting scene based on the focusing information of the different areas, so that when some close-range scenes are shot, the images obtained by shooting are prevented from being out of focus and blurred, the shot images are clear and accurate, and the shooting effect is improved.
It should be noted that, in the photographing method provided in the embodiment of the present application, the execution main body may be a photographing device, or a control module in the photographing device for executing the loading photographing method. The embodiment of the present application takes the example where the photographing apparatus executes the loading photographing method, and the photographing apparatus provided in the embodiment of the present application is described.
Fig. 5 is a block diagram of a photographing apparatus according to an embodiment of the present application, and as shown in fig. 5, the photographing apparatus 500 may include: an acquisition module 501, a determination module 502, and a photographing module 503, wherein,
an obtaining module 501, configured to obtain focusing information of N photographing regions, where the N photographing regions are obtained by performing region division on a current photographing scene, and N is an integer greater than 1;
a determining module 502, configured to determine focusing parameters of the N photographing regions according to the focusing information;
and a photographing module 503, configured to photograph an image based on the focusing parameter to obtain a target image.
As can be seen from the above embodiments, in the embodiment, for the current photographing scene, a camera in the electronic device may focus different regions of the current photographing scene at the same time, obtain focusing information of the different regions, determine focusing parameters of the different regions according to the focusing information, and photograph an image based on the focusing parameters to obtain a target image. Compared with the prior art, in the embodiment of the application, the camera can acquire focusing information of different areas according to the distance between a field object in different areas of a current shooting scene and the camera lens, and shoots images of the current shooting scene based on the focusing information of the different areas, so that when some close-range scenes are shot, the images obtained by shooting are prevented from being out of focus and blurred, the shot images are clear and accurate, and the shooting effect is improved.
Optionally, as an embodiment, the focusing information includes: a focus distance;
the determining module 502 may include:
the first determining submodule is used for determining the focusing distance of the photographing region as the focusing parameter of the photographing region for each photographing region.
Optionally, as an embodiment, the focusing information includes: a focus distance and a color parameter of the photograph, the color parameter including one or more of: light intensity, contrast and white balance;
the determining module 502 may include:
the calculation submodule is used for calculating target color parameters according to the color parameters of the N photographing regions;
and the second determining submodule is used for determining the focusing distance of the photographing region and the target color parameter as the focusing parameter of the photographing region for each photographing region.
Optionally, as an embodiment, the obtaining module 501 may include:
the focusing submodule is used for simultaneously focusing the N photographing areas through the N photosensitive areas in the camera to obtain N pieces of focusing information; the N photosensitive areas are obtained by dividing a photosensitive chip in the camera into areas, and one photosensitive area corresponds to one photographing area.
Optionally, as an embodiment, the first determining sub-module may include:
the focusing parameter determining unit is used for controlling the deformation of a photosensitive film of a photosensitive area corresponding to each photographing area by adjusting the electromagnetic force with different intensities for each photographing area, calculating the contrast of digital images of the photosensitive area under different intensities to obtain the focusing distance of the photographing area corresponding to the photosensitive area, and determining the focusing distance of the photographing area as the focusing parameter of the photographing area; the photosensitive areas are obtained by distinguishing and dividing one photosensitive chip in the camera, and one photosensitive area corresponds to one photographing area.
Optionally, as an embodiment, the photographing module 503 may include:
the photographing submodule is used for controlling a lens in the camera to photograph under the condition that the N photosensitive areas are at focusing positions corresponding to respective focusing distances and photographing color parameters of the N photosensitive areas are adjusted to be the target color parameters, so as to obtain RGB values of all pixel points in the N photosensitive areas;
and the generation submodule is used for generating a target image according to the RGB values of all the pixel points in the N photosensitive areas.
The photographing device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The photographing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The photographing device provided in the embodiment of the present application can implement each process implemented in the embodiment of the method in fig. 1, and is not described here again to avoid repetition.
Optionally, as shown in fig. 6, an electronic device 600 is further provided in an embodiment of the present application, and includes a processor 601, a memory 602, and a program or an instruction stored in the memory 602 and executable on the processor 601, where the program or the instruction is executed by the processor 601 to implement each process of the foregoing photographing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710.
Those skilled in the art will appreciate that the electronic device 700 may also include a power supply (e.g., a battery) for powering the various components, and the power supply may be logically coupled to the processor 710 via a power management system, such that the functions of managing charging, discharging, and power consumption may be performed via the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 710 is configured to acquire focusing information of N photographing regions, where the N photographing regions are obtained by performing region division on a current photographing scene, and N is an integer greater than 1; determining focusing parameters of the N photographing regions according to the focusing information; and shooting an image based on the focusing parameters to obtain a target image.
Therefore, in the embodiment of the application, the camera can acquire the focusing information of different areas according to the distance between the field of view objects in different areas of the current shooting scene and the camera lens, and shoots images of the current shooting scene based on the focusing information of the different areas, so that when some close-range scenes are shot, the images obtained by shooting are prevented from being out of focus and blurred, the shot images are clear and accurate, and the shooting effect is improved.
Optionally, as an embodiment, the focusing information includes: a focus distance;
the processor 710 is further configured to determine, for each photographing region, a focus distance of the photographing region as a focus parameter of the photographing region.
Optionally, as an embodiment, the focusing information includes: a focus distance and a color parameter of the photograph, the color parameter including one or more of: light intensity, contrast and white balance;
the processor 710 is further configured to calculate target color parameters according to the color parameters of the N photographing regions; and for each photographing region, determining the focusing distance of the photographing region and the target color parameter as the focusing parameter of the photographing region.
Optionally, as an embodiment, the processor 710 is further configured to focus the N photographing regions through the N photosensitive regions in the camera at the same time, so as to obtain N pieces of focusing information; the N photosensitive areas are obtained by dividing a photosensitive chip in the camera into areas, and one photosensitive area corresponds to one photographing area.
Optionally, as an embodiment, the processor 710 is further configured to, for each photographing region, control a photosensitive film of a photosensitive region corresponding to the photographing region to deform by adjusting electromagnetic forces with different intensities, calculate a contrast of a digital image of the photosensitive region under different intensities, obtain a focus distance of the photographing region corresponding to the photosensitive region, and determine the focus distance of the photographing region as a focus parameter of the photographing region; the photosensitive areas are obtained by distinguishing and dividing one photosensitive chip in the camera, and one photosensitive area corresponds to one photographing area.
Optionally, as an embodiment, the processor 710 is further configured to control a lens in the camera to shoot when the N photosensitive areas are located at focusing positions corresponding to respective focusing distances and the shooting color parameters of the N photosensitive areas are all adjusted to the target color parameters, so as to obtain RGB values of each pixel point in the N photosensitive areas; and generating a target image according to the RGB values of all the pixel points in the N photosensitive areas.
It should be understood that in the embodiment of the present application, the input Unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042, and the Graphics Processing Unit 7041 processes image data of still pictures or videos obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071 is also referred to as a touch screen. The touch panel 7071 may include two parts of a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. Memory 709 may be used to store software programs as well as various data, including but not limited to applications and operating systems. Processor 710 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 710.
The electronic device 700 is capable of implementing the processes implemented by the electronic device in the foregoing embodiments, and in order to avoid repetition, the details are not described here.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the foregoing photographing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the foregoing photographing method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (14)

1. A method of taking a picture, the method comprising:
acquiring focusing information of N photographing regions, wherein the N photographing regions are obtained by performing region division on a current photographing scene, and N is an integer greater than 1;
determining focusing parameters of the N photographing regions according to the focusing information;
and shooting an image based on the focusing parameters to obtain a target image.
2. The method of claim 1, wherein the focus information comprises: a focus distance;
the determining the focusing parameters of the N photographing regions according to the focusing information comprises:
and for each photographing region, determining the focusing distance of the photographing region as the focusing parameter of the photographing region.
3. The method of claim 1, wherein the focus information comprises: a focus distance and a color parameter of the photograph, the color parameter including one or more of: light intensity, contrast and white balance;
the determining the focusing parameters of the N photographing regions according to the focusing information comprises:
calculating target color parameters according to the color parameters of the N photographing regions;
and for each photographing region, determining the focusing distance of the photographing region and the target color parameter as the focusing parameter of the photographing region.
4. The method according to any one of claims 1 to 3, wherein the acquiring the focusing information of the N photographing regions comprises:
focusing the N photographing areas through N photosensitive areas in the camera to obtain N focusing information; the N photosensitive areas are obtained by dividing a photosensitive chip in the camera into areas, and one photosensitive area corresponds to one photographing area.
5. The method according to claim 2, wherein the determining, for each photographing region, the focal distance of the photographing region as the focus parameter of the photographing region comprises:
for each photographing region, controlling the deformation of a photosensitive film of a photosensitive region corresponding to the photographing region by adjusting electromagnetic force with different intensities, calculating the contrast of a digital image of the photosensitive region under different intensities to obtain the focusing distance of the photographing region corresponding to the photosensitive region, and determining the focusing distance of the photographing region as the focusing parameter of the photographing region; the photosensitive areas are obtained by distinguishing and dividing one photosensitive chip in the camera, and one photosensitive area corresponds to one photographing area.
6. The method of claim 4, wherein capturing the image based on the focusing parameter to obtain the target image comprises:
controlling a lens in the camera to shoot under the condition that the N photosensitive areas are at focusing positions corresponding to respective focusing distances and the shooting color parameters of the N photosensitive areas are adjusted to be the target color parameters, so as to obtain RGB values of all pixel points in the N photosensitive areas;
and generating a target image according to the RGB values of all the pixel points in the N photosensitive areas.
7. A photographing apparatus, characterized in that the apparatus comprises:
the system comprises an acquisition module, a display module and a control module, wherein the acquisition module is used for acquiring focusing information of N photographing regions, the N photographing regions are obtained by performing region division on a current photographing scene, and N is an integer greater than 1;
the determining module is used for determining the focusing parameters of the N photographing regions according to the focusing information;
and the photographing module is used for photographing images based on the focusing parameters to obtain target images.
8. The apparatus of claim 7, wherein the focus information comprises: a focus distance;
the determining module comprises:
the first determining submodule is used for determining the focusing distance of the photographing region as the focusing parameter of the photographing region for each photographing region.
9. The apparatus of claim 7, wherein the focus information comprises: a focus distance and a color parameter of the photograph, the color parameter including one or more of: light intensity, contrast and white balance;
the determining module comprises:
the calculation submodule is used for calculating target color parameters according to the color parameters of the N photographing regions;
and the second determining submodule is used for determining the focusing distance of the photographing region and the target color parameter as the focusing parameter of the photographing region for each photographing region.
10. The apparatus of any one of claims 7 to 9, wherein the obtaining module comprises:
the focusing submodule is used for simultaneously focusing the N photographing areas through the N photosensitive areas in the camera to obtain N pieces of focusing information; the N photosensitive areas are obtained by dividing a photosensitive chip in the camera into areas, and one photosensitive area corresponds to one photographing area.
11. The apparatus of claim 8, wherein the first determination submodule comprises:
the focusing parameter determining unit is used for controlling the deformation of a photosensitive film of a photosensitive area corresponding to each photographing area by adjusting the electromagnetic force with different intensities for each photographing area, calculating the contrast of digital images of the photosensitive area under different intensities to obtain the focusing distance of the photographing area corresponding to the photosensitive area, and determining the focusing distance of the photographing area as the focusing parameter of the photographing area; the photosensitive areas are obtained by distinguishing and dividing one photosensitive chip in the camera, and one photosensitive area corresponds to one photographing area.
12. The apparatus of claim 10, wherein the photographing module comprises:
the photographing submodule is used for controlling a lens in the camera to photograph under the condition that the N photosensitive areas are at focusing positions corresponding to respective focusing distances and photographing color parameters of the N photosensitive areas are adjusted to be the target color parameters, so as to obtain RGB values of all pixel points in the N photosensitive areas;
and the generation submodule is used for generating a target image according to the RGB values of all the pixel points in the N photosensitive areas.
13. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the photographing method according to any one of claims 1 to 6.
14. A readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the photographing method according to any one of claims 1 to 6.
CN202111045276.8A 2021-09-07 2021-09-07 Photographing method, photographing device, electronic equipment and storage medium Active CN113747067B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111045276.8A CN113747067B (en) 2021-09-07 2021-09-07 Photographing method, photographing device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111045276.8A CN113747067B (en) 2021-09-07 2021-09-07 Photographing method, photographing device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113747067A true CN113747067A (en) 2021-12-03
CN113747067B CN113747067B (en) 2024-02-02

Family

ID=78736791

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111045276.8A Active CN113747067B (en) 2021-09-07 2021-09-07 Photographing method, photographing device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113747067B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114650369A (en) * 2022-03-01 2022-06-21 维沃移动通信有限公司 Image forming method and apparatus
CN115460389A (en) * 2022-09-20 2022-12-09 北京拙河科技有限公司 Image white balance area optimization method and device

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004126087A (en) * 2002-10-01 2004-04-22 Olympus Corp Imaging equipment and its control method
CN101064779A (en) * 2006-04-27 2007-10-31 中兴通讯股份有限公司 Method for realizing minisize camera automatic focusing and minisize camera thereof
TW201238326A (en) * 2011-03-04 2012-09-16 Tung-Fa Wu Real-time interactive 3D entertainment device and 3D replication
CN103685905A (en) * 2012-09-17 2014-03-26 联想(北京)有限公司 Photographing method and electronic equipment
CN105204270A (en) * 2015-10-15 2015-12-30 广东欧珀移动通信有限公司 Adjusting method and device for focusing distance of photographing terminal
CN105491294A (en) * 2013-03-05 2016-04-13 佳能株式会社 Image processing apparatus, image capturing apparatus, and image processing method
CN105578024A (en) * 2015-05-27 2016-05-11 宇龙计算机通信科技(深圳)有限公司 Camera focusing method, focusing device and mobile terminal
CN106210509A (en) * 2016-06-28 2016-12-07 珠海市魅族科技有限公司 A kind of focusing control method and photographing device
CN106254780A (en) * 2016-08-31 2016-12-21 宇龙计算机通信科技(深圳)有限公司 A kind of dual camera camera control method, photographing control device and terminal
CN107483819A (en) * 2017-08-22 2017-12-15 北京小米移动软件有限公司 Focusing method, focusing mechanism and electronic equipment
CN207820069U (en) * 2018-01-25 2018-09-04 深圳市杰普特光电股份有限公司 Focusing mechanism and camera
CN109819152A (en) * 2019-02-27 2019-05-28 维沃移动通信有限公司 Focusing camera mould group and terminal device
JP2020043522A (en) * 2018-09-12 2020-03-19 キヤノン株式会社 Imaging apparatus and control method of the same, program, and storage medium
CN111601021A (en) * 2020-05-11 2020-08-28 维沃移动通信有限公司 Photographing device, electronic apparatus, and control method
CN112135034A (en) * 2019-06-24 2020-12-25 Oppo广东移动通信有限公司 Photographing method and device based on ultrasonic waves, electronic equipment and storage medium
CN113242375A (en) * 2021-06-11 2021-08-10 维沃移动通信有限公司 Camera module and electronic equipment

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004126087A (en) * 2002-10-01 2004-04-22 Olympus Corp Imaging equipment and its control method
CN101064779A (en) * 2006-04-27 2007-10-31 中兴通讯股份有限公司 Method for realizing minisize camera automatic focusing and minisize camera thereof
TW201238326A (en) * 2011-03-04 2012-09-16 Tung-Fa Wu Real-time interactive 3D entertainment device and 3D replication
CN103685905A (en) * 2012-09-17 2014-03-26 联想(北京)有限公司 Photographing method and electronic equipment
CN105491294A (en) * 2013-03-05 2016-04-13 佳能株式会社 Image processing apparatus, image capturing apparatus, and image processing method
CN105578024A (en) * 2015-05-27 2016-05-11 宇龙计算机通信科技(深圳)有限公司 Camera focusing method, focusing device and mobile terminal
CN105204270A (en) * 2015-10-15 2015-12-30 广东欧珀移动通信有限公司 Adjusting method and device for focusing distance of photographing terminal
CN106210509A (en) * 2016-06-28 2016-12-07 珠海市魅族科技有限公司 A kind of focusing control method and photographing device
CN106254780A (en) * 2016-08-31 2016-12-21 宇龙计算机通信科技(深圳)有限公司 A kind of dual camera camera control method, photographing control device and terminal
CN107483819A (en) * 2017-08-22 2017-12-15 北京小米移动软件有限公司 Focusing method, focusing mechanism and electronic equipment
CN207820069U (en) * 2018-01-25 2018-09-04 深圳市杰普特光电股份有限公司 Focusing mechanism and camera
JP2020043522A (en) * 2018-09-12 2020-03-19 キヤノン株式会社 Imaging apparatus and control method of the same, program, and storage medium
CN109819152A (en) * 2019-02-27 2019-05-28 维沃移动通信有限公司 Focusing camera mould group and terminal device
CN112135034A (en) * 2019-06-24 2020-12-25 Oppo广东移动通信有限公司 Photographing method and device based on ultrasonic waves, electronic equipment and storage medium
CN111601021A (en) * 2020-05-11 2020-08-28 维沃移动通信有限公司 Photographing device, electronic apparatus, and control method
CN113242375A (en) * 2021-06-11 2021-08-10 维沃移动通信有限公司 Camera module and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114650369A (en) * 2022-03-01 2022-06-21 维沃移动通信有限公司 Image forming method and apparatus
CN115460389A (en) * 2022-09-20 2022-12-09 北京拙河科技有限公司 Image white balance area optimization method and device
CN115460389B (en) * 2022-09-20 2023-05-26 北京拙河科技有限公司 Image white balance area optimization method and device

Also Published As

Publication number Publication date
CN113747067B (en) 2024-02-02

Similar Documents

Publication Publication Date Title
US9113075B2 (en) Image processing method and apparatus and digital photographing apparatus using the same
KR20120022512A (en) Electronic camera, image processing apparatus, and image processing method
CN112822412B (en) Exposure method, exposure device, electronic equipment and storage medium
KR20070097550A (en) Electronic device and method in an electronic device for processing image data
US9218681B2 (en) Image processing apparatus and image processing method
CN113747067B (en) Photographing method, photographing device, electronic equipment and storage medium
CN108040204B (en) Image shooting method and device based on multiple cameras and storage medium
CN113099122A (en) Shooting method, shooting device, shooting equipment and storage medium
CN112738397A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN114390201A (en) Focusing method and device thereof
CN112422798A (en) Photographing method and device, electronic equipment and storage medium
KR101797040B1 (en) Digital photographing apparatus and control method thereof
CN112669231B (en) Image processing method, training method, device and medium of image processing model
CN113866782A (en) Image processing method and device and electronic equipment
CN112492198B (en) Shooting method, shooting device, electronic equipment and readable storage medium
JP6645711B2 (en) Image processing apparatus, image processing method, and program
CN114286011B (en) Focusing method and device
CN112653841B (en) Shooting method and device and electronic equipment
CN115134532A (en) Image processing method, image processing device, storage medium and electronic equipment
CN111654623B (en) Photographing method and device and electronic equipment
CN113989387A (en) Camera shooting parameter adjusting method and device and electronic equipment
CN114025100A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN114125226A (en) Image shooting method and device, electronic equipment and readable storage medium
CN112399092A (en) Shooting method and device and electronic equipment
CN112367464A (en) Image output method and device and electronic equipment

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