CN112019738B - Photographing method and terminal equipment - Google Patents

Photographing method and terminal equipment Download PDF

Info

Publication number
CN112019738B
CN112019738B CN202010765564.XA CN202010765564A CN112019738B CN 112019738 B CN112019738 B CN 112019738B CN 202010765564 A CN202010765564 A CN 202010765564A CN 112019738 B CN112019738 B CN 112019738B
Authority
CN
China
Prior art keywords
resolution
image
preview image
shooting mode
focal length
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
CN202010765564.XA
Other languages
Chinese (zh)
Other versions
CN112019738A (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.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius Technology 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 Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN202010765564.XA priority Critical patent/CN112019738B/en
Publication of CN112019738A publication Critical patent/CN112019738A/en
Application granted granted Critical
Publication of CN112019738B publication Critical patent/CN112019738B/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
    • 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/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
    • 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/667Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • H04N23/815Camera processing pipelines; Components thereof for controlling the resolution by using a single image
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects

Landscapes

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

Abstract

The embodiment of the invention discloses a photographing method and terminal equipment, which are applied to the technical field of terminal equipment and can solve the problem that small wearable equipment cannot be provided with a plurality of cameras due to small size so as to affect the image photographing effect. The method comprises the following steps: and adjusting the resolution from the first resolution to the second resolution, adjusting the second resolution to the third resolution after receiving the focal length increasing instruction, and increasing the focal length to acquire an image. The method is applied to scenes in need of taking pictures when the small wearable terminal device is used.

Description

Photographing method and terminal equipment
Technical Field
The embodiment of the invention relates to the technical field of terminal equipment, in particular to a photographing method and terminal equipment.
Background
At present, in order to have better shooting effect in a terminal device, a plurality of (generally 3 or more than 3) cameras need to be arranged to realize a lossless zoom function.
In recent years, telephone watches are also popular, more and more telephone watches are used by children, and because the telephone watches are generally small in size, a plurality of cameras cannot be arranged, so that a lossless zooming function cannot be realized when the telephone watches are used for shooting, and the shot image effect is poor.
Disclosure of Invention
The embodiment of the invention provides a photographing method and terminal equipment, which are used for solving the problems that the prior art cannot realize a lossless zooming function and the photographed image effect is poor. In order to solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, a photographing method is provided, the method including:
adjusting the resolution of a first preview image from a first resolution to a second resolution, wherein the pixel value of the first resolution is N times of the pixel value of the second resolution, and N is an integer greater than or equal to 2;
receiving an instruction to increase the focal length;
adjusting the resolution of the first preview image from a second resolution to a third resolution in response to the instruction to increase the focal length; a pixel value of the third resolution is M times a pixel value of the second resolution, the M being an integer greater than or equal to 2;
increasing the focal length of the first preview image to obtain a second preview image;
and acquiring the second preview image to obtain a target image.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the adjusting the resolution of the first preview image from the second resolution to the third resolution in response to the instruction to increase the focal length includes:
responding to the instruction for increasing the focal length, acquiring a first focal length increase multiple, and determining the third resolution which is set corresponding to the first focal length increase multiple;
and adjusting the resolution of the first preview image from the second resolution to a third resolution.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, before the adjusting the resolution of the first preview image from the first resolution to the second resolution, the method further includes:
acquiring the image brightness of the first preview image, and judging whether the image brightness is within a preset image brightness range;
the adjusting the resolution of the first preview image from the first resolution to the second resolution includes:
if the image brightness is within the preset image brightness range, adjusting the resolution of the first preview image from the first resolution to the second resolution;
if the image brightness is not within the preset image brightness range, adjusting the image brightness of the first preview image to be within the preset image brightness range, and adjusting the resolution of the first preview image from the first resolution to the second resolution.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, after increasing the focal length of the first preview image to obtain the second preview image, the method further includes:
recognizing a photographic subject in the second preview image;
determining the shooting type of the shooting object;
determining a first shooting mode matched with the shooting type according to the shooting type;
detecting whether a current shooting mode is consistent with the first shooting mode;
the acquiring the second preview image to obtain a target image comprises:
if the current shooting mode is consistent with the first shooting mode, acquiring the second preview image in the first shooting mode to obtain the target image;
the acquiring the second preview image to obtain a target image comprises:
and if the current shooting mode is not consistent with the first shooting mode, switching the current shooting mode into the first shooting mode, and acquiring the second preview image in the first shooting mode to obtain the target image.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, after obtaining the target image, the method further includes:
collecting pre-associated friend facial feature information;
outputting prompt information, wherein the prompt information is used for prompting whether the target image is sent to the friend or not;
receiving an operation of determining that the target image is sent to the friend;
detecting whether the communication account information of the friend exists or not;
if the communication account information of the friend is stored, the target image is sent to the friend through the communication account information;
and if the communication account information of the friend does not exist, backing up the target image to associated equipment.
In a second aspect, a terminal device is provided, which includes:
the adjustment module is used for adjusting the resolution of the first preview image from a first resolution to a second resolution, wherein the pixel value of the first resolution is N times of the pixel value of the second resolution, and N is an integer greater than or equal to 2;
the receiving module is used for receiving an instruction of increasing the focal length;
the adjusting module is further configured to adjust the resolution of the first preview image from the second resolution to a third resolution in response to the instruction to increase the focal length; a pixel value of the third resolution is M times a pixel value of the second resolution, the M being an integer greater than or equal to 2;
the processing module is used for increasing the focal length of the first preview image to obtain a second preview image;
and the acquisition module is used for acquiring the second preview image to obtain a target image.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the method further includes:
the determining module is used for responding to the instruction for increasing the focal length, acquiring a first focal length increase multiple and determining the third resolution which is set corresponding to the first focal length increase multiple;
the adjusting module is further configured to adjust the resolution of the first preview image from the second resolution to a third resolution.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the acquiring module is further configured to acquire the image brightness of the first preview image before the adjusting module adjusts the resolution of the first preview image from the first resolution to the second resolution;
the terminal device further includes:
the judging module is used for judging whether the image brightness is within a preset image brightness range;
the adjusting module is further configured to adjust the resolution of the first preview image from the first resolution to the second resolution when the image brightness is within the preset image brightness range;
the adjusting module is further configured to adjust the image brightness of the first preview image to the preset image brightness range when the image brightness is not within the preset image brightness range, and adjust the resolution of the first preview image from the first resolution to the second resolution.
As an optional implementation manner, in a second aspect of the embodiment of the present invention, the acquiring module is further configured to identify a photographic subject in the second preview image;
the determining module is further configured to determine a shooting type to which the shooting object belongs;
the determining module is further used for determining a first shooting mode matched with the shooting type according to the shooting type;
the judging module is further used for detecting whether the current shooting mode is consistent with the first shooting mode;
the processing module is further configured to acquire the second preview image in the first shooting mode to obtain the target image when the current shooting mode is consistent with the first shooting mode;
the processing module is further configured to switch the current shooting mode to the first shooting mode when the current shooting mode is inconsistent with the first shooting mode, and acquire the second preview image in the first shooting mode to obtain the target image.
As an optional implementation manner, in a second aspect of the embodiment of the present invention, the acquiring module is further configured to acquire pre-associated friend facial feature information;
the terminal device further includes:
the output module is used for outputting prompt information, and the prompt information is used for prompting whether the target image is sent to the friend or not;
the receiving module is further configured to receive an operation instruction for determining that the target image is sent to the friend;
the judging module is further configured to detect whether the communication account information of the friend exists;
the sending module is used for sending the target image to the friend through the communication account information when the communication account information of the friend is stored in the terminal equipment;
the sending module is further configured to backup the target image to a related device when the communication account information of the friend is not stored in the terminal device.
In a third aspect, a terminal device is provided, including:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute all or part of the steps of any one of the methods disclosed in the first aspect of the embodiments of the present invention.
In a fourth aspect, a computer-readable storage medium is provided, which stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute all or part of the steps in any one of the methods disclosed in the first aspect of the embodiments of the present invention. The computer readable storage medium includes a ROM/RAM, a magnetic or optical disk, or the like.
In a fifth aspect, there is provided a computer program product for causing a computer to perform some or all of the steps of any one of the methods of the first aspect when the computer program product is run on the computer.
A sixth aspect provides an application publishing platform for publishing a computer program product, wherein the computer program product, when run on a computer, causes the computer to perform some or all of the steps of any one of the methods of the first aspect.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
according to the photographing method provided by the embodiment of the invention, after the first resolution is adjusted to the smaller second resolution, if an instruction that the focal length needs to be increased by a user is received, the second resolution can be adjusted to the larger third resolution corresponding to the instruction, the focal length of the preview image is increased, and the preview image is collected to obtain the target image. Through the scheme, when the adjusted smaller second resolution is adopted for photographing preview, if an instruction that the user needs to increase the focal length is received, the user can consider that the imaging is smaller or unclear and needs to change the focal length, at the moment, the resolution is in the smaller second resolution, and when the focal length is adjusted in response to the instruction, the resolution is improved, so that the preview image can be enlarged (namely, the imaging object in the imaging is enlarged after the focal length is enlarged), the problem of unclear resolution which possibly exists after the focal length is enlarged can be solved, the effect of lossless zooming can be achieved, and the effect of photographing the image is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a first schematic flowchart of a photographing method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart diagram of a photographing method according to an embodiment of the present invention;
fig. 3 is a third schematic flowchart of a photographing method according to an embodiment of the present invention;
fig. 4 is a first schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first" and "second," and the like, in the description and in the claims of the present invention are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first resolution and the second resolution, etc. are for distinguishing different resolutions, not for describing a specific order of resolutions.
The terms "comprises," "comprising," and any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the related art, a plurality of cameras are generally used to realize the lossless zoom technique, but for a small terminal device, the plurality of cameras cannot be arranged due to the limitation of the volume of the terminal device.
Further, the embodiment of the invention provides a photographing method and terminal equipment, which can save the internal space of the equipment and reduce the equipment cost on the basis of realizing lossless zooming without configuring more hardware devices.
The terminal device according to the embodiment of the present invention may be an electronic device such as a Mobile phone, a tablet Computer, a notebook Computer, a palmtop Computer, a vehicle-mounted terminal device, a wearable device, an Ultra-Mobile Personal Computer (UMPC), a netbook, or a Personal Digital Assistant (PDA). The wearable device may be a smart watch, a smart bracelet, a telephone watch, a smart foot ring, a smart earring, a smart necklace, a smart headset, or the like, and the embodiment of the present invention is not limited.
The executing subject of the photographing method provided by the embodiment of the present invention may be the terminal device, or may also be a functional module and/or a functional entity capable of implementing the photographing method in the terminal device, which may be specifically determined according to actual use requirements, and the embodiment of the present invention is not limited. The following takes a terminal device as an example to exemplarily explain the photographing method provided by the embodiment of the present invention.
The photographing method provided by the embodiment of the invention can be applied to a scene of photographing by using small wearable terminal equipment.
Example one
As shown in fig. 1, an embodiment of the present invention provides a photographing method, which may include the following steps:
101. the resolution of the first preview image is adjusted from the first resolution to the second resolution.
Wherein the pixel value of the first resolution is N times the pixel value of the second resolution, and N is an integer greater than or equal to 2.
In the embodiment of the present invention, the first preview image refers to an image displayed in a shooting preview interface on a screen of the terminal device after the camera application is opened and before the image is shot.
In the embodiment of the present invention, the first resolution, the second resolution, the third resolution, and the like all refer to different resolutions.
In the embodiment of the invention, the terminal equipment can support one or more resolutions. For example, 1600W, 800W, 400W, etc., which are not limited in the embodiments of the present invention.
Optionally, the first resolution may be a resolution set by default by a camera application of the terminal device, or may be any one of resolutions supported by the terminal device.
Since the first preview image may be adjusted from the first resolution to the second resolution smaller than the first resolution in the embodiment of the present invention, the first resolution may be a resolution other than the minimum resolution supported by the terminal device.
Illustratively, the default resolution may be 1600W pixels (i.e., the first resolution described above).
For example, assuming that the first preview image is 1600W pixels, after the terminal device opens the camera application in response to the user trigger, the terminal device starts a preset algorithm program, and the algorithm program may synthesize four pixels of the first preview image into one pixel through a pixel synthesis technique, so that a pixel value in the first preview image becomes one fourth of the original value, that is, the first preview image is adjusted to 400W pixels (i.e., the second resolution).
Optionally, before the terminal device adjusts the resolution of the first preview image from the first resolution to the second resolution, the terminal device may be triggered to open the camera application, for example, in a case that it is detected that the user clicks an icon of the camera application, the camera application is opened in response to a clicking operation of the user.
Optionally, after the terminal device receives the click input of the user and before the camera application is opened, whether the user has a false touch condition may be further determined, and the terminal device may determine whether the user has a false touch according to data such as the position, the number, and the area of the touch point of the user touch screen.
Illustratively, the first possible scenario is: if the terminal device detects that the click input of the user on the screen of the terminal device corresponds to a touch point, the touch point is located at the position of the camera application icon, and the area of the touch point is equal to or smaller than the preset touch area, the terminal device considers that the user does not touch by mistake, and the terminal device can open the camera application.
The second possible scenario is: if the terminal device detects that the click input of the user on the screen of the terminal device corresponds to a touch point, the touch point is located at the position of the camera application icon, but the area of the touch point is larger than the area of the preset touch point, the terminal device considers that the user is most likely to be mistaken touch, and the terminal device does not respond to the click input, namely does not start the camera application.
A third possible scenario is: if the terminal device detects that the click input of the user on the screen of the terminal device corresponds to a plurality of touch points, one touch point is located on the camera application icon, and the rest touch points are not located on the camera application, the terminal device considers that the user is most likely to be mistaken touch, and does not respond to the click input, namely does not start the camera application.
Optionally, after the terminal device receives a click input of the user for the camera application program and before the camera application program is opened, the terminal device may obtain facial features of the user, recognize whether the facial features of the user are matched with preset facial features through a built-in face recognition device, open the camera application program if the facial features of the user are matched with the preset facial features, and if the facial features of the user are not matched with the preset facial features, not respond to the click input, that is, not open the camera application program.
Optionally, under the condition that the face recognition device recognizes that the facial features of the user are not matched with the preset facial features, the terminal device may further output prompt information, where the prompt information is used to prompt the user to input the verification information. Wherein, the verification information can be at least one type of verification information of fingerprint, voice, password and security problem.
Through above-mentioned optional implementation, can the discernment of user's facial feature, if user's facial feature does not match with the facial feature that terminal equipment predetermines, will require the user to input authentication information again, can protect terminal equipment like this and can not falsely be used by other people, protected terminal equipment's information safety, avoid revealing of user's privacy information.
102. An instruction to increase the focal length is received.
It can be understood that, at present, the instruction of the terminal device for increasing the focal length is generally realized by sensing the zoom operation of two fingers of the user on the screen, but for some terminal devices with smaller screens, the simultaneous operation of two fingers may be inconvenient. In the embodiment of the invention, the instruction of increasing the focal length can be realized through voice input.
Optionally, the terminal device collects voice information of the user through a microphone, and may analyze the voice information to obtain an instruction for increasing the focal length.
The above-mentioned instruction of obtaining the increase focal length of extracting the speech information includes: first, the terminal device may recognize the content of the voice message, then determine whether the content of the voice message includes preset content (for example, "increase the focal length"), and after determining that the content of the voice message includes the preset content, the terminal device may determine that an instruction to increase the focal length is received, and the terminal device may respond to the instruction.
Further, after the voice message is determined to include the preset content, a voiceprint feature corresponding to the voice message can be determined, then the voiceprint feature is compared with the preset voiceprint feature, if the voiceprint feature is matched with the preset voiceprint feature, the terminal device can determine that an instruction for increasing the focal length is received, the instruction is an instruction sent by a preset user, and the terminal device can respond to the instruction; if the voiceprint feature does not match the preset voiceprint feature, the terminal device may determine that the instruction for increasing the focal length is received, but the instruction is not an instruction sent by a preset user, and the terminal device may not respond to the instruction.
In the implementation mode, the corresponding operation instruction is obtained by collecting the voice information of the user, so that the operation steps of the user can be greatly reduced, the complex operation which can be realized originally only by hands can be realized only through voice, and the man-machine interaction capability is improved. Furthermore, through the comparison of the voiceprint characteristics and the preset voiceprint characteristics, the voice information can be determined to be sent by the preset user, and the phenomenon that the terminal equipment is falsely used by other people to cause the leakage of the privacy information is avoided.
103. In response to the instruction to increase the focal length, the resolution of the first preview image is adjusted from the second resolution to the third resolution.
Wherein the pixel value of the third resolution is M times the pixel value of the second resolution, and M is an integer greater than or equal to 2.
Optionally, the third resolution may be a resolution set by default by a camera application of the terminal device, or may be any one of resolutions supported by the terminal device.
Since the first preview image may be adjusted from the second resolution to the third resolution with a higher resolution in the embodiment of the present invention, the third resolution may be a resolution other than the minimum resolution supported by the terminal device.
For example, assuming that the first resolution is 1600W pixels, the second resolution may be 400W pixels or 800W pixels; assuming that the second resolution is 400W pixels, the corresponding third resolution may be 800W pixels or 1600W pixels; assuming that the second resolution is 800W pixels, the corresponding third resolution may be 1600W pixels.
Optionally, in this embodiment of the application, the terminal device may set different corresponding resolution parameters for different focal length magnification factors, and store the different resolution parameters in the terminal device.
After the terminal device confirms the first focal length magnification, the resolution parameter corresponding to the first focal length magnification can be obtained from the saved resolution parameters.
Illustratively, the terminal device may store different resolution parameters corresponding to different focal length amplification factors in a corresponding relationship, so that when a resolution parameter under a certain focal length amplification factor needs to be obtained, the resolution parameter under the focal length amplification factor may be directly determined through the stored corresponding relationship.
Exemplarily, as shown in table 1, the relationship between different focal length magnifications and different resolution parameters is shown.
TABLE 1
Focal length magnification factor Resolution parameter
First focal length magnification First resolution parameter
Second focal length magnification Second resolution parameter
Third focal length magnification Third resolution parameter
Fourth focal length magnification Fourth resolution parameter
Fifth focal length magnification A fifth resolution parameter
In combination with table 1, when the first focal length magnification is determined, the resolution parameter at the first focal length magnification may be determined as the first resolution parameter by querying in table 1.
Compared with the mode that the resolution parameters under the first focal length amplification factor are determined in real time according to the focal length amplification factors, at least one resolution parameter under different focal length amplification factors is set in advance, and when the resolution parameters under the first focal length amplification factor are needed, the efficiency can be improved and the power consumption of the terminal equipment can be reduced by the mode that the resolution parameters are obtained from the at least one resolution parameter.
104. And increasing the focal length of the first preview image to obtain a second preview image.
In the embodiment of the present invention, the second preview image is a preview image displayed on the screen of the terminal device after the focal length of the first preview image is increased. The target image is an image acquired by the terminal device after receiving an image acquisition instruction (for example, clicking a shutter control) issued by a user.
105. And acquiring a second preview image to obtain a target image.
In the embodiment of the invention, after receiving the image acquisition command, the terminal equipment can acquire the current second preview image to obtain the target image.
The embodiment of the invention provides a photographing method, wherein after a first resolution is adjusted to a smaller second resolution, if an instruction that a user needs to increase a focal length is received, the second resolution can be adjusted to a larger third resolution corresponding to the instruction, the focal length of a preview image is increased, and the preview image is collected to obtain a target image. Through the scheme, when the adjusted smaller second resolution is adopted for photographing preview, if an instruction that the user needs to increase the focal length is received, the user can consider that the imaging is smaller or unclear and needs to change the focal length, at the moment, the resolution is in the smaller second resolution, and when the focal length is adjusted in response to the instruction, the resolution is improved, so that the preview image can be enlarged (namely, the imaging object in the imaging is enlarged after the focal length is enlarged), the problem of unclear resolution which possibly exists after the focal length is enlarged can be solved, the effect of lossless zooming can be achieved, and the effect of photographing the image is improved.
Example two
As shown in fig. 2, the photographing method provided in the embodiment of the present invention may further include the following steps:
201. the image brightness of the first preview image is acquired.
After the camera application program is opened, the user can obtain the first preview image, and the terminal equipment automatically detects the image brightness of the first preview image.
202. And judging whether the brightness is within a preset image brightness range.
The terminal equipment can preset a preset range of image brightness, so that a camera application program of the terminal equipment can normally shoot in the preset image brightness range, and the obtained image quality cannot be influenced by overhigh or overlow brightness.
After detecting the image brightness of the first preview image, the terminal device compares the image brightness with a preset image brightness range, and if the image brightness of the first preview image is within the preset image brightness range, the following steps 203 to 207 may be continued; if the image brightness of the first preview image is not within the preset image brightness range, adjusting the image brightness of the first preview image to be within the preset image brightness range, and then returning to execute 202 until the image brightness of the first preview image is within the preset image brightness range, and then continuing to execute 203 to 207.
Before the resolution is adjusted, the image brightness of the current preview image is detected, and the image brightness can be used for judging the brightness effect of the finally obtained image in advance, so that repeated shooting steps caused by over-brightness or over-darkness of the finally obtained image are avoided, the loss of terminal equipment is reduced, and the target image shooting effect is improved.
203. The resolution of the first preview image is adjusted from the first resolution to the second resolution.
204. An instruction to increase the focal length is received.
205. In response to the instruction to increase the focal length, the resolution of the first preview image is adjusted from the second resolution to the third resolution.
206. And increasing the focal length of the first preview image to obtain a second preview image.
207. And acquiring a second preview image to obtain a target image.
In the embodiment of the present invention, for the descriptions of steps 203-207, please refer to the detailed descriptions of steps 101-105 in the first embodiment, which are not repeated herein.
In the foregoing implementation manner, after the first resolution is adjusted to the second resolution which is smaller, if an instruction that the focal length needs to be increased by the user is received, the second resolution may be adjusted to the third resolution which is larger corresponding to the instruction, the focal length of the preview image is increased, and the preview image is acquired to obtain the target image. Through the scheme, when the adjusted smaller second resolution is adopted for photographing preview, if an instruction that the user needs to increase the focal length is received, the user can consider that the imaging is smaller or unclear and needs to change the focal length, at the moment, the resolution is in the smaller second resolution, and when the focal length is adjusted in response to the instruction, the resolution is improved, so that the preview image can be enlarged (namely, the imaging object in the imaging is enlarged after the focal length is enlarged), the problem of unclear resolution which possibly exists after the focal length is enlarged can be solved, the effect of lossless zooming can be achieved, and the effect of photographing the image is improved.
Furthermore, in the embodiment of the present invention, the first resolution may be adjusted to the second resolution which is smaller before the photographing, so that power consumption of the terminal device during the photographing may be saved, and electric quantity of the terminal device may be saved.
Optionally, the terminal device may set a shooting decoration that conforms to the user shooting habit according to the user daily shooting habit, and store the shooting decoration in the terminal device. After the terminal device obtains the preview image, prompt information can be output, the prompt information is used for prompting a user whether to select shooting decoration or not, or the shooting decoration is replaced, and after an instruction for confirming replacement of the shooting decoration is received, the current shooting decoration is adjusted. Wherein, shoot and decorate and can include: filter, sticker, photo frame, and skin care.
Illustratively, according to the daily photographing habit of the user, the terminal device finds that the user often adopts a filter named as water mist and a sticker named as rabbit ears, and then the two photographing decorations are stored in the terminal system. When the user shoots the picture, the terminal equipment outputs prompt information to prompt the user whether to adopt the two shooting decorations. If receiving the instruction that the user confirms to use, the filter can be automatically adjusted to be water mist and the sticker of the rabbit ears; and if the instruction that the user confirms to use or the instruction that the user refuses to use is not received, continuing to shoot currently.
In the optional implementation mode, according to the daily shooting habit of the user, the terminal equipment reminds the user of adopting common shooting decoration, the user operation steps are automatically set and reduced, the user is prevented from finding common shooting decoration, the operation time is shortened, and the user experience is improved.
EXAMPLE III
301. The resolution of the first preview image is adjusted from the first resolution to the second resolution.
302. An instruction to increase the focal length is received.
303. In response to the instruction to increase the focal length, the resolution of the first preview image is adjusted from the second resolution to the third resolution.
304. And increasing the focal length of the first preview image to obtain a second preview image.
In the embodiment of the present invention, for the description of steps 301 to 304, please refer to the detailed description of steps 101 to 104 in the first embodiment, which is not repeated herein.
305. And identifying the shooting object in the second preview image, and determining the shooting type of the shooting object and a first shooting mode matched with the shooting type.
Exemplary shooting types may include: portrait, cate, landscape, pet. The photographing mode may include: portrait mode, cate mode, landscape mode, pet mode.
306. And judging whether the current shooting mode is consistent with the first shooting mode.
In the embodiment of the present invention, if the current shooting mode is consistent with the first shooting mode, the following operation is performed 308, and if not, the operation is performed 307 and the operations 305 to 306 are repeated.
307. Switching the current shooting mode to a first shooting mode
308. And acquiring a second preview image to obtain a target image.
For example, when the user acquires the second preview image, the shooting object is a puppy at a road edge and belongs to a pet, the current shooting mode is a pet mode, and the current shooting mode is consistent with the first shooting mode, so that the terminal device acquires the second preview image in the pet mode to obtain the target image.
In the embodiment of the invention, if the current shooting mode is not consistent with the first shooting mode, the current shooting mode is switched to the first shooting mode, and the second preview image is acquired in the first shooting mode to obtain the target image. For example, when the user acquires the second preview image, the shooting object is a puppy at a roadside and belongs to a pet, the current shooting mode is a landscape mode, and the current shooting mode is inconsistent with the first shooting mode, so that the terminal device adjusts the shooting mode to the pet mode to acquire the second preview image, and obtain the target image.
Optionally, in this embodiment of the application, the terminal device may set different corresponding shooting modes for different shooting types, and store the different shooting modes in the terminal device.
After the terminal device confirms the shooting type, the shooting mode corresponding to the shooting type can be acquired from the saved shooting modes.
For example, the terminal device may store different shooting modes corresponding to different shooting types in a corresponding relationship manner, so that when a shooting mode in a certain shooting type needs to be acquired, the shooting mode in the certain shooting type may be directly determined through the stored corresponding relationship.
Exemplarily, as shown in table 2, the correspondence between different shooting types and different shooting modes is shown.
TABLE 2
Type of photographing Shooting mode
Portrait of human Portrait mode
Landscape Landscape mode
Food Food mode
Pet animal Pet mode
Night scene Night scene mode
In combination with table 2, when the shooting type is determined, the shooting type in table 2 can be determined as the shooting type by querying.
Compared with the real-time shooting mode switching, at least one shooting mode under different shooting types is set in advance, and when the shooting modes under different shooting types are needed, the efficiency can be improved and the power consumption of the terminal equipment can be reduced by means of obtaining the shooting modes from the at least one shooting mode. And the image effect obtained by shooting corresponding to the shooting type and the shooting mode is better.
309. And acquiring the face feature information of the friend associated in advance, and outputting a prompt to judge whether the target image is sent to the friend.
310. And detecting whether the communication account information of the friend exists in the address list.
Optionally, if the target image has pre-associated facial feature information of the friend, outputting prompt information, where the prompt information is used to prompt the user whether to send the obtained target image to the friend. And after receiving the operation of determining that the target image is sent to the friend, detecting whether the communication account information of the friend exists in the address list.
Illustratively, the user has a friend nail, and the facial feature information of the friend nail is prestored in the terminal equipment. After the target image is obtained, the terminal equipment identifies the target image, and if the facial feature information of the friend nail is identified, prompt information is output to a user to prompt whether the target image is sent to the friend nail or not. After the user clicks the confirmation sending, the terminal equipment receives an instruction for determining that the target image is sent to the friend nail, and then starts to detect whether the communication account information of the friend nail exists in the address list.
311. And sending the target image to the friend through the communication account information.
And if the communication account information of the friend exists, the target image is sent to the friend through the communication account information.
312. Backing up the target image to another associated device associated with the terminal device
For example, assuming that the contact of the wechat application on the terminal device has the account of the friend nail, the terminal device may automatically send the target image to the friend nail through wechat. And if the communication account information of the friend does not exist, backing up the target image to the associated equipment. For example, assuming that all social applications and the address book on the terminal device do not have the account number of the friend nail, the terminal device will automatically backup the target image to another associated device associated with the terminal device.
In the implementation mode, the terminal device determines whether the image has the associated friend or not by acquiring the facial feature information of the friend in the image, detects whether the address list has the communication account information or not, and sends the communication account information to the friend. Therefore, the operation of searching the friend communication account information by the user can be greatly reduced, the time is saved, and the man-machine interaction performance of the terminal equipment is improved.
Example four
As shown in fig. 4, an embodiment of the present invention provides a terminal device, where the terminal device includes:
an adjusting module 401, configured to adjust the resolution of the first preview image from the first resolution to the second resolution.
A receiving module 402, configured to receive an instruction to increase the focal length.
The adjusting module is further configured to adjust the resolution of the first preview image from the second resolution to a third resolution in response to receiving the instruction to increase the focal length.
And a processing module 403, configured to increase a focal length of the first preview image to obtain a second preview image.
And an acquiring module 404, configured to acquire the second preview image to obtain a target image.
As an optional implementation manner of the embodiment of the present invention, the terminal device further includes:
the determining module 405 is configured to, in response to the instruction to increase the focal length, obtain the first focal length increase multiple, and determine a third resolution that is set corresponding to the first focal length increase multiple.
As an optional implementation manner of the embodiment of the present invention, the terminal device further includes:
the determining module 406 is configured to determine whether the image brightness is within a preset image brightness range.
As an optional implementation manner of the embodiment of the present invention, the terminal device further includes:
the output module 407 is configured to output a prompt message, where the prompt message is used to prompt whether to send the target image to the friend.
The sending module 408 is configured to send the target image to the friend through the communication account information when the terminal device stores the communication account information of the friend.
In the embodiment of the present invention, each module can implement the photographing method provided in the above method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
Fig. 5 is a schematic diagram of a hardware structure of a terminal device for implementing various embodiments of the present invention, as shown in fig. 5, the terminal device includes, but is not limited to: a Radio Frequency (RF) circuit 501, a memory 502, an input unit 503, a display unit 504, a sensor 505, an audio circuit 506, a wireless fidelity (WiFi) module 507, a processor 508, a power supply 509, and a camera 510. The radio frequency circuit 501 includes a receiver 5011 and a transmitter 5012. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 5 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The RF circuit 501 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information of a base station and then processes the received downlink information to the processor 508; in addition, the data for designing uplink is transmitted to the base station. In general, RF circuit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 501 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to global system for mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), etc.
The memory 502 may be used to store software programs and modules, and the processor 508 executes various functional applications and data processing of the terminal device by operating the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal device, and the like. Further, the memory 502 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 503 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. Specifically, the input unit 503 may include a touch panel 5031 and other input devices 5032. The touch panel 5031, also called a touch screen, can collect a touch operation performed by a user on or near the touch panel 5031 (e.g., an operation performed by the user on or near the touch panel 5031 by using any suitable object or accessory such as a finger or a stylus pen), and drive a corresponding connection device according to a preset program. Alternatively, the touch panel 5031 may include two parts, namely, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 508, and can receive and execute commands sent by the processor 508. In addition, the touch panel 5031 can be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 503 may include other input devices 5032 in addition to the touch panel 5031. In particular, other input devices 5032 can include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 504 may be used to display information input by the user or information provided to the user and various menus of the terminal device. The display unit 504 may include a display panel 5041, and optionally, the display panel 5041 may be configured in the form of a Liquid Crystal Display (LCD), an organic light-Emitting diode (OLED), or the like. Further, the touch panel 5031 can cover the display panel 5041, and when the touch panel 5031 detects a touch operation on or near the touch panel, the touch operation is transmitted to the processor 508 to determine a touch event, and then the processor 508 provides a corresponding visual output on the display panel 5041 according to the touch event. Although in fig. 5, the touch panel 5031 and the display panel 5041 are two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 5031 and the display panel 5041 may be integrated to implement the input and output functions of the terminal device.
The terminal device may also include at least one sensor 505, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 5041 according to the brightness of ambient light, and a proximity sensor that may exit the display panel 5041 and/or a backlight when the terminal device is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration) for recognizing the attitude of the terminal device, and related functions (such as pedometer and tapping) for vibration recognition; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal device, detailed description is omitted here. In the embodiment of the present invention, the terminal device may include an acceleration sensor, a depth sensor, a distance sensor, or the like.
Audio circuitry 506, speaker 5061, and microphone 5062 may provide an audio interface between the user and the terminal device. The audio circuit 506 may transmit the electrical signal converted from the received audio data to the speaker 5061, and convert the electrical signal into an audio signal by the speaker 5061 and output the audio signal; on the other hand, the microphone 5062 converts a collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 506, and then outputs the audio data to the processor 508 for processing, for example, to another terminal device via the RF circuit 501, or outputs the audio data to the memory 502 for further processing.
WiFi belongs to short-distance wireless transmission technology, and terminal equipment can help a user to receive and send e-mails, browse webpages, access streaming media and the like through a WiFi module 507, and provides wireless broadband internet access for the user. Although fig. 5 shows the WiFi module 507, it is understood that it does not belong to the essential constitution of the terminal device, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 508 is a control center of the terminal device, connects various parts of the entire terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 502 and calling data stored in the memory 502, thereby performing overall monitoring of the terminal device. Alternatively, processor 508 may include one or more processing units; preferably, the processor 508 may integrate an application processor, which primarily handles operating systems, user interfaces, application programs, 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 the processor 508.
The terminal device also includes a power supply 509 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 508 via a power management system to manage charging, discharging, and power consumption management functions via the power management system. Although not shown, the terminal device may further include a bluetooth module or the like, which is not described in detail herein.
In this embodiment of the present invention, the processor 508 is configured to adjust the resolution of the first preview image from a first resolution to a second resolution, where a pixel value of the first resolution is N times a pixel value of the second resolution, and N is an integer greater than or equal to 2;
receiving an instruction to increase the focal length;
adjusting the resolution of the first preview image from a second resolution to a third resolution in response to the instruction to increase the focal length; a pixel value of the third resolution is M times a pixel value of the second resolution, the M being an integer greater than or equal to 2;
increasing the focal length of the first preview image to obtain a second preview image;
and acquiring the second preview image to obtain a target image.
Optionally, the processor 508 may also be configured to implement other processes implemented by the terminal device in the foregoing method embodiments.
An embodiment of the present invention further provides a terminal device, where the terminal device may include: the processor, the memory and the computer program stored in the memory and capable of running on the processor, when executed by the processor, the computer program can implement the photographing method provided by the above method embodiments, and can achieve the same technical effect, and in order to avoid repetition, the details are not described here again.
An embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the photographing method provided in the foregoing method embodiment.
Embodiments of the present invention also provide a computer program product, wherein the computer program product, when run on a computer, causes the computer to perform some or all of the steps of the method as in the above method embodiments.
Embodiments of the present invention further provide an application publishing platform, where the application publishing platform is configured to publish a computer program product, where the computer program product, when running on a computer, causes the computer to perform some or all of the steps of the method in the above method embodiments.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. Those skilled in the art should also appreciate that the embodiments described in this specification are exemplary and alternative embodiments, and that the acts and modules illustrated are not required in order to practice the invention.
The terminal device provided by the embodiment of the present invention can implement each process shown in the above method embodiments, and is not described herein again to avoid repetition.
In various embodiments of the present invention, it should be understood that the sequence numbers of the above-mentioned processes do not imply an inevitable order of execution, and the execution order of the processes should be determined by their functions and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated units, if implemented as software functional units and sold or used as a stand-alone product, may be stored in a computer accessible memory. Based on such understanding, the technical solution of the present invention, which is a part of or contributes to the prior art in essence, or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a memory and includes several requests for causing a computer device (which may be a personal computer, a server, a network device, or the like, and may specifically be a processor in the computer device) to execute part or all of the steps of the above-described method of each embodiment of the present invention.
It will be understood by those skilled in the art that all or part of the steps in the methods of the embodiments described above may be implemented by hardware instructions of a program, and the program may be stored in a computer-readable storage medium, where the storage medium includes Read-Only Memory (ROM), Random Access Memory (RAM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), One-time Programmable Read-Only Memory (OTPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory (CD-ROM), or other disk memories, A tape memory, or any other medium readable by a computer that can be used to carry or store data.

Claims (9)

1. A method of taking a picture, the method comprising:
adjusting the resolution of a first preview image from a first resolution to a second resolution, wherein the pixel value of the first resolution is N times of the pixel value of the second resolution, and N is an integer greater than or equal to 2;
receiving an instruction to increase the focal length;
in response to the instruction for increasing the focal length, acquiring a first focal length increase multiple, and determining a third resolution set corresponding to the first focal length increase multiple, wherein a pixel value of the third resolution is M times of a pixel value of the second resolution, and M is an integer greater than or equal to 2;
adjusting the resolution of the first preview image from the second resolution to the third resolution;
increasing the focal length of the first preview image to obtain a second preview image;
and acquiring the second preview image to obtain a target image.
2. The method of claim 1, wherein before adjusting the resolution of the first preview image from the first resolution to the second resolution, further comprising:
acquiring the image brightness of the first preview image, and judging whether the image brightness is within a preset image brightness range;
the adjusting the resolution of the first preview image from the first resolution to the second resolution includes:
if the image brightness is within the preset image brightness range, adjusting the resolution of the first preview image from the first resolution to the second resolution;
if the image brightness is not within the preset image brightness range, adjusting the image brightness of the first preview image to be within the preset image brightness range, and adjusting the resolution of the first preview image from the first resolution to the second resolution.
3. The method of claim 1, wherein after increasing the focal length of the first preview image to obtain a second preview image, further comprising:
recognizing a photographic subject in the second preview image;
determining the shooting type of the shooting object;
determining a first shooting mode matched with the shooting type according to the shooting type;
detecting whether a current shooting mode is consistent with the first shooting mode;
the acquiring the second preview image to obtain a target image comprises:
if the current shooting mode is consistent with the first shooting mode, acquiring the second preview image in the first shooting mode to obtain the target image;
the acquiring the second preview image to obtain a target image comprises:
and if the current shooting mode is not consistent with the first shooting mode, switching the current shooting mode into the first shooting mode, and acquiring the second preview image in the first shooting mode to obtain the target image.
4. The method of claim 1, wherein after obtaining the target image, further comprising:
collecting pre-associated friend facial feature information;
outputting prompt information, wherein the prompt information is used for prompting whether the target image is sent to the friend or not;
receiving an operation of determining that the target image is sent to the friend;
detecting whether the communication account information of the friend exists or not;
if the communication account information of the friend is stored, the target image is sent to the friend through the communication account information;
and if the communication account information of the friend does not exist, backing up the target image to associated equipment.
5. A terminal device, comprising:
the adjustment module is used for adjusting the resolution of the first preview image from a first resolution to a second resolution, wherein the pixel value of the first resolution is N times of the pixel value of the second resolution, and N is an integer greater than or equal to 2;
the receiving module is used for receiving an instruction of increasing the focal length;
a determining module, configured to, in response to the instruction to increase the focal length, obtain a first focal length increase multiple, and determine a third resolution that is set corresponding to the first focal length increase multiple, where a pixel value of the third resolution is M times of a pixel value of the second resolution, and M is an integer greater than or equal to 2;
the adjusting module is further configured to adjust the resolution of the first preview image from the second resolution to the third resolution;
the processing module is used for increasing the focal length of the first preview image to obtain a second preview image;
and the acquisition module is used for acquiring the second preview image to obtain a target image.
6. The terminal device of claim 5,
the acquisition module is further used for acquiring the image brightness of the first preview image before the adjustment module adjusts the resolution of the first preview image from the first resolution to the second resolution;
the terminal device further includes:
the judging module is used for judging whether the image brightness is within a preset image brightness range;
the adjusting module is further configured to adjust the resolution of the first preview image from the first resolution to the second resolution when the image brightness is within the preset image brightness range;
the adjusting module is further configured to adjust the image brightness of the first preview image to the preset image brightness range when the image brightness is not within the preset image brightness range, and adjust the resolution of the first preview image from the first resolution to the second resolution.
7. The terminal device of claim 5,
the acquisition module is further used for identifying a shooting object in the second preview image;
the determining module is further configured to determine a shooting type to which the shooting object belongs;
the determining module is further used for determining a first shooting mode matched with the shooting type according to the shooting type;
the judging module is also used for detecting whether the current shooting mode is consistent with the first shooting mode;
the processing module is further configured to acquire the second preview image in the first shooting mode to obtain the target image when the current shooting mode is consistent with the first shooting mode;
the processing module is further configured to switch the current shooting mode to the first shooting mode when the current shooting mode is inconsistent with the first shooting mode, and acquire the second preview image in the first shooting mode to obtain the target image.
8. The terminal device of claim 5,
the acquisition module is also used for acquiring the face feature information of the friends associated in advance;
the terminal device further includes:
the output module is used for outputting prompt information, and the prompt information is used for prompting whether the target image is sent to the friend or not;
the receiving module is further configured to receive an operation instruction for determining that the target image is sent to the friend;
the judging module is also used for detecting whether the communication account information of the friend exists or not;
the sending module is used for sending the target image to the friend through the communication account information when the communication account information of the friend is stored in the terminal equipment;
the sending module is further configured to backup the target image to a related device when the communication account information of the friend is not stored in the terminal device.
9. A computer-readable storage medium, comprising: the computer-readable storage medium stores thereon computer instructions which, when executed by a processor, implement the photographing method according to any one of claims 1 to 4.
CN202010765564.XA 2020-07-31 2020-07-31 Photographing method and terminal equipment Active CN112019738B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010765564.XA CN112019738B (en) 2020-07-31 2020-07-31 Photographing method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010765564.XA CN112019738B (en) 2020-07-31 2020-07-31 Photographing method and terminal equipment

Publications (2)

Publication Number Publication Date
CN112019738A CN112019738A (en) 2020-12-01
CN112019738B true CN112019738B (en) 2022-03-01

Family

ID=73499131

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010765564.XA Active CN112019738B (en) 2020-07-31 2020-07-31 Photographing method and terminal equipment

Country Status (1)

Country Link
CN (1) CN112019738B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115250326A (en) * 2021-04-27 2022-10-28 东莞市小精灵教育软件有限公司 Shooting resolution adjusting method and device and intelligent equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546925A (en) * 2010-12-29 2012-07-04 Lg电子株式会社 Mobile terminal and controlling method thereof
CN105847660A (en) * 2015-06-01 2016-08-10 维沃移动通信有限公司 Dynamic zoom method, device and intelligent device
CN106293589A (en) * 2016-08-31 2017-01-04 宇龙计算机通信科技(深圳)有限公司 A kind of the method for preview resolution, device and terminal are set
CN108712609A (en) * 2018-05-17 2018-10-26 Oppo广东移动通信有限公司 Focusing process method, apparatus, equipment and storage medium
CN108810277A (en) * 2018-06-15 2018-11-13 Oppo广东移动通信有限公司 It takes pictures method for previewing and device
CN109743498A (en) * 2018-12-24 2019-05-10 维沃移动通信有限公司 A kind of shooting parameter adjustment method and terminal device
CN110572581A (en) * 2019-10-14 2019-12-13 Oppo广东移动通信有限公司 zoom blurring image acquisition method and device based on terminal equipment
CN111131714A (en) * 2019-12-31 2020-05-08 联想(北京)有限公司 Image acquisition control method and device and electronic equipment
CN111147755A (en) * 2020-01-02 2020-05-12 普联技术有限公司 Zoom processing method and device for double cameras and terminal equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101848268A (en) * 2009-03-26 2010-09-29 乐金电子(中国)研究开发中心有限公司 3G mobile phone and method thereof for realizing image stepless zooming
CN107155059A (en) * 2017-04-11 2017-09-12 深圳市金立通信设备有限公司 A kind of image preview method and terminal
CN109089036A (en) * 2018-07-09 2018-12-25 奇酷互联网络科技(深圳)有限公司 Zoom processing method, device, readable storage medium storing program for executing and mobile terminal
CN110475066A (en) * 2019-08-20 2019-11-19 Oppo广东移动通信有限公司 Control method, imaging device and electronic equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546925A (en) * 2010-12-29 2012-07-04 Lg电子株式会社 Mobile terminal and controlling method thereof
CN105847660A (en) * 2015-06-01 2016-08-10 维沃移动通信有限公司 Dynamic zoom method, device and intelligent device
CN106293589A (en) * 2016-08-31 2017-01-04 宇龙计算机通信科技(深圳)有限公司 A kind of the method for preview resolution, device and terminal are set
CN108712609A (en) * 2018-05-17 2018-10-26 Oppo广东移动通信有限公司 Focusing process method, apparatus, equipment and storage medium
CN108810277A (en) * 2018-06-15 2018-11-13 Oppo广东移动通信有限公司 It takes pictures method for previewing and device
CN109743498A (en) * 2018-12-24 2019-05-10 维沃移动通信有限公司 A kind of shooting parameter adjustment method and terminal device
CN110572581A (en) * 2019-10-14 2019-12-13 Oppo广东移动通信有限公司 zoom blurring image acquisition method and device based on terminal equipment
CN111131714A (en) * 2019-12-31 2020-05-08 联想(北京)有限公司 Image acquisition control method and device and electronic equipment
CN111147755A (en) * 2020-01-02 2020-05-12 普联技术有限公司 Zoom processing method and device for double cameras and terminal equipment

Also Published As

Publication number Publication date
CN112019738A (en) 2020-12-01

Similar Documents

Publication Publication Date Title
CN112954749B (en) Network switching method and electronic equipment
CN108366207B (en) Method and device for controlling shooting, electronic equipment and computer-readable storage medium
CN110913139B (en) Photographing method and electronic equipment
CN107241552B (en) Image acquisition method, device, storage medium and terminal
CN107124556B (en) Focusing method, focusing device, computer readable storage medium and mobile terminal
CN106851119B (en) Picture generation method and equipment and mobile terminal
CN109819168B (en) Camera starting method and mobile terminal
CN108984143B (en) Display control method and terminal equipment
CN110944114B (en) Photographing method and electronic equipment
CN107729857B (en) Face recognition method and device, storage medium and electronic equipment
CN110602387B (en) Shooting method and electronic equipment
CN110225282B (en) Video recording control method, device and computer readable storage medium
CN110187769B (en) Preview image viewing method, equipment and computer readable storage medium
CN110060062B (en) Information exchange method after wearable device is lost, wearable device and storage medium
CN109889756B (en) Video call method and terminal equipment
CN108924413B (en) Shooting method and mobile terminal
CN108810261B (en) Antenna switching method in call and related product
CN110163036B (en) Image recognition method and device
CN106688305B (en) Intelligent matching method and terminal of filter
CN107885423B (en) Picture processing method and mobile terminal
CN112019738B (en) Photographing method and terminal equipment
CN107770449B (en) Continuous shooting method, electronic device and storage medium
CN111309392B (en) Equipment control method and electronic equipment
CN110535754B (en) Image sharing method and device
CN109788144B (en) Shooting method and terminal 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