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

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

Info

Publication number
CN113747067B
CN113747067B CN202111045276.8A CN202111045276A CN113747067B CN 113747067 B CN113747067 B CN 113747067B CN 202111045276 A CN202111045276 A CN 202111045276A CN 113747067 B CN113747067 B CN 113747067B
Authority
CN
China
Prior art keywords
photographing
focusing
photosensitive
areas
area
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
CN202111045276.8A
Other languages
Chinese (zh)
Other versions
CN113747067A (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

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

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 areas, wherein the N photographing areas are obtained by carrying out area division on a current photographing scene, and N is an integer larger than 1; determining focusing parameters of the N photographing areas according to the focusing information; and shooting an image based on the focusing parameters to obtain a target image.

Description

Photographing method, photographing device, electronic equipment and storage medium
Technical Field
The application belongs to the technical field of photographing, and particularly relates to a photographing method, a photographing device, electronic equipment and a storage medium.
Background
In recent years, with the popularization 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 being simple to operate, convenient and fast to take a picture and the like.
In the prior art, when photographing, 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 to generate an image. However, for some close-range photographing scenes, the close-range photographing scenes are limited by the photographing depth of field, and the image photographed by one-time focusing photographing can generate the problem of local defocus blur, so that 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, which can solve the problems of local defocus blur and poor photographing effect of a photographed image in the prior art.
In a first aspect, an embodiment of the present application provides a photographing method, where the method includes:
acquiring focusing information of N photographing areas, wherein the N photographing areas are obtained by carrying out area division on a current photographing scene, and N is an integer larger than 1;
determining focusing parameters of the N photographing areas 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 acquisition module is used for acquiring focusing information of N photographing areas, wherein the N photographing areas are obtained by carrying out area division on a current photographing scene, and N is an integer greater than 1;
the determining module is used for determining focusing parameters of the N photographing areas according to the focusing information;
and the photographing module is used for photographing an image based on the focusing parameters to obtain a target image.
In a third aspect, embodiments of the present application provide an electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, the program or instruction implementing the steps of the method according to the first aspect when executed by the processor.
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 implement the steps of the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
In the embodiment of the application, for a current photographing scene, a camera in an electronic device can focus different areas of the current photographing scene at the same time, acquire 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 the field of view object in different areas of the current photographing scene and the camera lens, and photograph images of the current photographing scene based on the focusing information of the different areas, so that defocusing and blurring are avoided in the photographed images when photographing some short-distance scenes, the photographed images are clear and accurate, and the photographing 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 a diagram illustrating focusing performed by a photosensitive chip according to the prior art;
FIG. 4 is an exemplary diagram of focusing a photosensitive chip provided in an embodiment of the present application;
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 schematic hardware structure of an electronic device implementing various embodiments 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 embodiment of the application provides a photographing method, a photographing device, electronic equipment and a storage medium.
The photographing method provided by the embodiment of the application is described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
Fig. 1 is a flowchart of a photographing method according to an embodiment of the present application, as shown in fig. 1, the method may include the following steps: step 101, step 102 and step 103, wherein,
in step 101, focusing information of N photographing areas is obtained, where the N photographing areas are obtained by dividing a current photographing scene into areas, and N is an integer greater than 1.
In the embodiment of the application, N photographing areas form a complete current photographing scene.
In the embodiment of the present application, the focusing information may include: a focusing 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 this embodiment of the present application, at least two of the N photographing regions have different focusing information.
In this embodiment of the present application, when a focusing instruction is received, focusing information of N photographing areas is obtained, where the focusing instruction may be triggered by a user. For example, when a user has a photographing requirement, the electronic device is taken out, the camera is opened, and a focusing instruction can be triggered by clicking a camera screen.
In this embodiment, the camera of the 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 photosensitive chip, which may be equally divided by 3×3 to obtain 9 photosensitive areas with the same size, i.e., photosensitive area 1, photosensitive area 2, photosensitive area 3, photosensitive area 4, photosensitive area 5, photosensitive area 6, photosensitive area 7, photosensitive area 8, and photosensitive area 9.
The process of the photosensitive chip works as follows: 1) An optical particle signal receiver (sensor) on the photosensitive chip receives the photon signal; 2) The analog current signal received by the optical particle signal receiver is amplified into a voltage signal through a signal amplifier; 3) The analog signals are converted into digital signals through the ADC, and finally the digital signals at different pixel positions are output by the photosensitive chip.
In this embodiment, when the photosensitive chip is divided into N photosensitive areas, the step 101 may specifically include the following steps:
focusing N photographing areas simultaneously through N photosensitive areas in the camera to obtain N pieces of focusing information; the N photosensitive areas are obtained by dividing one 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 electronic equipment camera focuses on one photographing area in the current photographing scene, and N photosensitive areas focus on N photographing areas at the same time.
In one embodiment provided in the present application, the N photographing regions may be focused by controlling the deformation of the photosensitive film in each of the photosensitive regions, specifically:
for each photographing region, controlling the photosensitive film of the photosensitive region corresponding to the photographing region to deform by adjusting the electromagnetic force of different intensities, and calculating the contrast of the 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 this embodiment of the present application, the photosensitive chip may be divided into a plurality of areas, and the photosensitive film in each area may be deformed by electromagnetic control, so that the photosensitive chip may generate relative displacement, and then the digital signal in the area may be obtained through the steps 2) and 3).
In one example, taking focusing of the photosensitive area 1 as an example, during focusing, the photosensitive area 1 is deformed to different degrees by electromagnetic forces with different intensities, specifically, the photosensitive film of the photosensitive area can be 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, the closer the photosensitive film is to the lens, and the farther the focusing distance is.
In the embodiment of the application, in the process of uniformly deforming the photosensitive film, the focusing distance is uniformly changed, and the digital image contrast 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 in the present application, the mechanical structure of the photosensitive chip may be changed, so that each photosensitive area of the photosensitive chip may freely move back and forth along the direction of the center line of the lens, to focus on N photographing areas, specifically:
each photosensitive area is connected with a voice coil motor, the photosensitive areas are driven to move through the voice coil motor so as to support the free movement of each photosensitive area of the photosensitive chip, the contrast of digital images of the photosensitive areas at different positions is calculated, and focusing information of photographing areas corresponding to the photosensitive areas is obtained.
In the embodiment of the present application, the electronic device may further include: and the movable photosensitive chips correspond 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 between the corresponding field objects, and respective focusing information is adjusted through contrast focusing.
In this embodiment of the present 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 areas shown in fig. 2, and when focusing is performed, the lens divides the current photographing scene into 9 photographing areas through the photographing preview interface according to the division rule of the photosensitive areas shown in fig. 2, and each photosensitive area corresponds to one photographing area.
In this embodiment of the present application, the current photographing scene may be divided into regions according to other rules, for example, the photographing scene is halved from left to right according to a rule preset by a user, so as to obtain 3 photographing regions, which is not limited in this embodiment of the present application.
In step 102, focusing parameters of the N photographing regions are determined according to the focusing information.
In one embodiment provided in the present application, when the focusing information includes a focusing distance, the step 102 may specifically include the following steps:
for each photographing region, determining the focusing distance of the photographing region as the focusing parameter of the photographing region.
In the embodiment of the application, for each photographing region, the deformation of the photosensitive film of the photosensitive region corresponding to the photographing region is controlled by adjusting the electromagnetic force of different intensities, the contrast of the digital image of the photosensitive region under different intensities is calculated, the focusing distance of the photographing region corresponding to the photosensitive region is obtained, 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 in the present application, when the focusing information includes a focusing distance and a photographed color parameter, the step 102 may specifically include the following steps:
calculating target color parameters according to the color parameters of the N photographing areas;
for each photographing region, determining a focusing distance of the photographing region and a target color parameter as focusing parameters of the photographing region, wherein the color parameters comprise one or more of the following: 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, one-time focusing photographing is completed according to the automatic focusing distance, besides the problem that local defocus blur exists in a photographed image, focusing parameters such as brightness, contrast, white balance and the like obtained through one-time focusing are inaccurate, some areas in the photographed image are dark, other areas are bright, and the reduction degree of the photographed image to a photographed scene is low.
In order to solve the above problem, in the embodiment of the present application, different focusing distances are considered to correspond to different color parameters, and different color parameters correspond to different imaging effects, so in order to ensure that a finally photographed image can highly restore a photographed scene, after a plurality of photosensitive areas focus on different photographed areas of a current photographed scene in an electronic device, the focusing distances of a plurality of photographed areas are obtained, and at the same time, the color parameters of the plurality of photographed areas under the focusing distances of the plurality of photographed areas are obtained.
In one example, the camera of the electronic device includes 9 photosensitive areas shown in fig. 2, and after focusing is completed, the focusing distances of the photographing areas corresponding to the 9 photosensitive areas are obtained, and meanwhile, the color parameters of the 9 photographing areas are obtained.
In this embodiment, after the color parameters of the plurality of photographing regions are obtained, a suitable target color parameter is calculated according to the color parameters of the plurality of photographing regions, for example, suitable brightness, contrast and white balance are calculated.
In this embodiment of the present application, when calculating the target color parameter according to the color parameters of the plurality of photographing regions, the average value of the color parameters of the plurality of photographing regions may be calculated, and the average value is determined as the target color parameter.
For example, according to the brightness of different photographing areas, a uniform brightness parameter is obtained by calculating the average value of the brightness; according to the contrast of different photographing areas, a unified contrast parameter is obtained by calculating a contrast average value; and according to the white balance of different photographing areas, obtaining a uniform white balance parameter 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 each photosensitive area of the lens, and the color parameters of each photosensitive area are adjusted to the target color parameters.
In the embodiment of the application, when focusing is performed, different photographing areas can respectively adjust respective focusing distances according to the distance between the object in the corresponding field of view in the current photographing scene, so that when photographing some short-distance scenes, defocusing and blurring are avoided in the photographed images, and the photographed images are clear and accurate; in addition, the uniform color parameters are adopted in different photographing areas, so that the photographed image has higher and more real reduction degree on a photographing scene, and the photographing effect is improved.
In step 103, an image is captured based on the focus parameter, and a target image is obtained.
In the embodiment of the application, under the condition that N photosensitive areas are positioned at focusing positions corresponding to focusing distances respectively and photographing color parameters of the N photosensitive areas are all adjusted to target color parameters, a lens in a camera is controlled to photograph, and RGB values of pixel points in the N photosensitive areas are obtained; and generating a target image according to the RGB values of each pixel point in the N photosensitive areas.
To facilitate understanding of the differences between the technical solutions of the present application and the prior art, the description is made in connection with the examples shown in fig. 3 and 4.
Fig. 3 shows a focusing scheme in the prior art, wherein a camera of an electronic device only comprises a photosensitive chip, and when a shooting scene comprises a far view and a near view at the same time, the focusing position of the photosensitive chip is a position 1 for the far view; for close-up, the focusing position of the photosensitive chip is the position 2, and because the photosensitive chip can only uniformly move and can only have one focusing position for one shooting, the position 1 and the position 2 cannot be simultaneously considered, only one compromise position can be calculated, and shooting is carried out at the compromise position, so that the shot image has local defocus blur.
Fig. 4 shows a focusing scheme in the present application, in which a camera of an electronic device includes a photosensitive chip, and the photosensitive chip is divided into several areas, for example, 9, and each photosensitive area is freely movable. For convenience of description, taking 3 photosensitive areas out of 9 as an example, when a shooting scene contains a far view, a near view 1 and a near view 2 at the same time, for the far view, the focusing position of the photosensitive area 1 is a position 1; for close-up 1, the focus position of photosensitive area 2 is position 2; for close-up 2, the focus position of photosensitive area 3 is position 3; because each region of the photosensitive chip can move respectively, one photosensitive region can correspond to one focusing position, and different photosensitive regions can correspond to different focusing positions, and the position 1, the position 2 and the position 3 can be simultaneously considered, the shot image is clearer, and local defocusing and blurring do not exist.
In the embodiment, for the current photographing scene, the camera in the electronic device may focus different areas of the current photographing scene at the same time, 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 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 the field of view object in different areas of the current photographing scene and the camera lens, and photograph images of the current photographing scene based on the focusing information of the different areas, so that defocusing and blurring are avoided in the photographed images when photographing some short-distance scenes, the photographed images are clear and accurate, and the photographing effect is improved.
It should be noted that, in the photographing method provided in the embodiment of the present application, the execution body may be a photographing device, or a control module in the photographing device for executing the loading photographing method. In the embodiment of the present application, a photographing device executing a loading photographing method is taken as an example, and the photographing device 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, a photographing apparatus 500 may include: an acquisition module 501, a determination module 502, and a photographing module 503, wherein,
the acquiring module 501 is configured to acquire focusing information of N photographing areas, where the N photographing areas are obtained by performing area 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 areas according to the focusing information;
and a photographing module 503, configured to photograph an image based on the focusing parameter, and obtain a target image.
In the embodiment, for the current photographing scene, the camera in the electronic device may focus different areas of the current photographing scene at the same time, 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 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 the field of view object in different areas of the current photographing scene and the camera lens, and photograph images of the current photographing scene based on the focusing information of the different areas, so that defocusing and blurring are avoided in the photographed images when photographing some short-distance scenes, the photographed images are clear and accurate, and the photographing effect is improved.
Optionally, as an embodiment, the focusing information includes: a focusing distance;
the determining module 502 may include:
and the first determining submodule is used for determining the focusing distance of each photographing area as the focusing parameter of the photographing area.
Optionally, as an embodiment, the focusing information includes: focusing distance and a color parameter of a photograph, the color parameter comprising one or more of: light intensity, contrast, and white balance;
the determining module 502 may include:
the calculating sub-module is used for calculating target color parameters according to the color parameters of the N photographing areas;
and the second determining submodule is used for determining the focusing distance of each photographing area and the target color parameter as the focusing parameter of the photographing area.
Optionally, as an embodiment, the obtaining module 501 may include:
the focusing sub-module is used for focusing the N photographing areas through the N photosensitive areas in the camera at the same time to obtain N pieces of focusing information; the N photosensitive areas are obtained by dividing one 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 photosensitive film of the photosensitive area corresponding to each photographing area to deform by adjusting the electromagnetic force of different intensities, calculating the contrast of the digital image of the photosensitive area under different intensities, obtaining 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.
Alternatively, as an embodiment, the photographing module 503 may include:
the photographing sub-module is used for controlling a lens in the camera to photograph under the condition that the N photosensitive areas are positioned at focusing positions corresponding to focusing distances respectively and photographing color parameters of the N photosensitive areas are all adjusted to be the target color parameters, so as to obtain RGB values of all pixel points in the N photosensitive areas;
and the generating sub-module is used for generating a target image according to the RGB values of each pixel point in the N photosensitive areas.
The photographing device in the embodiment of the application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a cell phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, wearable device, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device may 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 with 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 this embodiment of the present application can implement each process implemented in the method embodiment of fig. 1, and in order to avoid repetition, a description is omitted here.
Optionally, as shown in fig. 6, the embodiment of the present application further provides an electronic device 600, including a processor 601, a memory 602, and a program or an instruction stored in the memory 602 and capable of running on the processor 601, where the program or the instruction implements each process of the above-mentioned photographing method embodiment when executed by the processor 601, and the same technical effects can be achieved, 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 described above.
Fig. 7 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 700 includes, but is not limited to: radio frequency unit 701, network module 702, audio output unit 703, input unit 704, sensor 705, display unit 706, user input unit 707, interface unit 708, memory 709, and processor 710.
Those skilled in the art will appreciate that the electronic device 700 may also include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 710 via a power management system so as to perform functions such as managing charge, discharge, and power consumption 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 shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
The processor 710 is configured to obtain focusing information of N photographing areas, where the N photographing areas are obtained by performing area division on a current photographing scene, and N is an integer greater than 1; determining focusing parameters of the N photographing areas 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 focusing information of different areas according to the distance between the field of view object in different areas of the current photographing scene and the camera lens, and photograph images of the current photographing scene based on the focusing information of different areas, so that defocusing blur is avoided in the photographed images when photographing some close-range scenes, the photographed images are clear and accurate, and the photographing effect is improved.
Optionally, as an embodiment, the focusing information includes: a focusing distance;
the processor 710 is further configured to determine, for each photographing region, a focusing distance of the photographing region as a focusing parameter of the photographing region.
Optionally, as an embodiment, the focusing information includes: focusing distance and a color parameter of a photograph, the color parameter comprising one or more of: light intensity, contrast, and white balance;
the processor 710 is further configured to calculate a target color parameter 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 areas simultaneously through the N photosensitive areas in the camera to obtain N focusing information; the N photosensitive areas are obtained by dividing one 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 area, adjust electromagnetic forces with different intensities, control the photosensitive film of the photosensitive area corresponding to the photographing area to deform, calculate the contrast size of the digital image of the photosensitive area under different intensities, obtain the focusing distance of the photographing area corresponding to the photosensitive area, and determine 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 processor 710 is further configured to control a lens in the camera to perform shooting to obtain RGB values of each pixel point in the N photosensitive areas when the N photosensitive areas are 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; and generating a target image according to the RGB values of each pixel point in the N photosensitive areas.
It should be appreciated that in embodiments of the present application, the input unit 704 may include a graphics processor (Graphics Processing Unit, GPU) 7041 and a microphone 7042, with the graphics processor 7041 processing image data of still pictures or video 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, 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, a joystick, and so forth, 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, application programs and an operating system. The processor 710 may integrate an application processor that primarily processes operating systems, user interfaces, applications, etc., with a modem processor that primarily processes wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 710.
The electronic device 700 can implement each process implemented by the electronic device in the foregoing embodiment, and in order to avoid repetition, a description is omitted here.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored, and when the program or the instruction is executed by a processor, the program or the instruction realizes each process of the embodiment of the photographing method, and the same technical effect can be achieved, so that repetition is avoided, and no further description is given here.
Wherein the processor is a 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 (Random Access Memory, RAM), a magnetic disk or an optical disk, 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, and the processor is used for running a program or an instruction, so that each process of the embodiment of the photographing method can be realized, 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.
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 described in 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 (10)

1. A photographing method, the method comprising:
acquiring focusing information of N photographing areas, wherein the N photographing areas are obtained by carrying out area division on a current photographing scene, and N is an integer larger than 1;
determining focusing parameters of the N photographing areas according to the focusing information;
shooting an image based on the focusing parameters to obtain a target image;
for each photographing region, controlling the photosensitive film of the photosensitive region corresponding to the photographing region to deform by adjusting electromagnetic force of different intensities, calculating the contrast of the digital image of the photosensitive region under different intensities, obtaining 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.
2. The method of claim 1, wherein the focus information further comprises: a color parameter of a photograph, the color parameter comprising one or more of: light intensity, contrast, and white balance;
the determining the focusing parameters of the N photographing areas according to the focusing information includes:
calculating target color parameters according to the color parameters of the N photographing areas;
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.
3. The method according to any one of claims 1 to 2, wherein the acquiring focus information of the N photographing areas includes:
focusing N photographing areas simultaneously through N photosensitive areas in the camera to obtain N pieces of focusing information; the N photosensitive areas are obtained by dividing one photosensitive chip in the camera into areas, and one photosensitive area corresponds to one photographing area.
4. A method according to claim 3, wherein capturing an image based on the focusing parameters results in a target image, comprising:
controlling a lens in the camera to shoot under the condition that the N photosensitive areas are positioned at focusing positions corresponding to focusing distances respectively and shooting color parameters of the N photosensitive areas are all adjusted to be the target color parameters, so as to obtain RGB values of pixel points in the N photosensitive areas;
and generating a target image according to the RGB values of each pixel point in the N photosensitive areas.
5. A photographing apparatus, the apparatus comprising:
the acquisition module is used for acquiring focusing information of N photographing areas, wherein the N photographing areas are obtained by carrying out area division on a current photographing scene, and N is an integer greater than 1;
the determining module is used for determining focusing parameters of the N photographing areas according to the focusing information;
the photographing module is used for photographing an image based on the focusing parameters to obtain a target image;
the determining module includes: a first determination submodule, the first determination submodule comprising: the focusing parameter determining unit is used for controlling the photosensitive film of the photosensitive area corresponding to each photographing area to deform by adjusting the electromagnetic force of different intensities, calculating the contrast of the digital image of the photosensitive area under different intensities, obtaining 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.
6. The apparatus of claim 5, wherein the focus information further comprises: a color parameter of a photograph, the color parameter comprising one or more of: light intensity, contrast, and white balance;
the determining module includes:
the calculating sub-module is used for calculating target color parameters according to the color parameters of the N photographing areas;
and the second determining submodule is used for determining the focusing distance of each photographing area and the target color parameter as the focusing parameter of the photographing area.
7. The apparatus of any one of claims 5 to 6, wherein the acquisition module comprises:
the focusing sub-module is used for focusing the N photographing areas through the N photosensitive areas in the camera at the same time to obtain N pieces of focusing information; the N photosensitive areas are obtained by dividing one photosensitive chip in the camera into areas, and one photosensitive area corresponds to one photographing area.
8. The apparatus of claim 7, wherein the photographing module comprises:
the photographing sub-module is used for controlling a lens in the camera to photograph under the condition that the N photosensitive areas are positioned at focusing positions corresponding to focusing distances respectively and photographing color parameters of the N photosensitive areas are all adjusted to be the target color parameters, so as to obtain RGB values of all pixel points in the N photosensitive areas;
and the generating sub-module is used for generating a target image according to the RGB values of each pixel point in the N photosensitive areas.
9. An electronic device comprising a processor, a memory and a program or instruction stored on said memory and executable on said processor, said program or instruction when executed by said processor implementing the steps of the photographing method according to any of claims 1 to 4.
10. A readable storage medium, wherein a program or instructions is stored on the readable storage medium, which when executed by a processor, implements the steps of the photographing method according to any one of claims 1 to 4.
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 CN113747067A (en) 2021-12-03
CN113747067B true 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)

Families Citing this family (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
CN115460389B (en) * 2022-09-20 2023-05-26 北京拙河科技有限公司 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

Also Published As

Publication number Publication date
CN113747067A (en) 2021-12-03

Similar Documents

Publication Publication Date Title
CN110493538B (en) Image processing method, image processing device, storage medium and electronic equipment
KR20200019728A (en) Shooting mobile terminal
CN109889724B (en) Image blurring method and device, electronic equipment and readable storage medium
CN110493526B (en) Image processing method, device, equipment and medium based on multiple camera modules
CN113747067B (en) Photographing method, photographing device, electronic equipment and storage medium
KR20120022512A (en) Electronic camera, image processing apparatus, and image processing method
CN110569822A (en) image processing method and device, electronic equipment and storage medium
CN112822412B (en) Exposure method, exposure 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
CN111756989A (en) Method and device for controlling focusing of lens
CN112312035B (en) Exposure parameter adjusting method, exposure parameter adjusting device and electronic equipment
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
CN112669231B (en) Image processing method, training method, device and medium of image processing model
KR101797040B1 (en) Digital photographing apparatus and control method thereof
CN113866782A (en) Image processing method and device and electronic equipment
CN114286011B (en) Focusing method and device
CN110602397A (en) Image processing method, device, terminal and storage medium
CN112653841B (en) Shooting method and device and electronic equipment
CN115134532A (en) Image processing method, image processing device, storage medium 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
CN112399092A (en) Shooting 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