CN111556248A - Shooting method, shooting device, storage medium and mobile terminal - Google Patents

Shooting method, shooting device, storage medium and mobile terminal Download PDF

Info

Publication number
CN111556248A
CN111556248A CN202010386422.2A CN202010386422A CN111556248A CN 111556248 A CN111556248 A CN 111556248A CN 202010386422 A CN202010386422 A CN 202010386422A CN 111556248 A CN111556248 A CN 111556248A
Authority
CN
China
Prior art keywords
target
shooting
subject
zoom ratio
scaling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010386422.2A
Other languages
Chinese (zh)
Other versions
CN111556248B (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.)
Xiamen Reliable Intellectual Property Service Co ltd
Original Assignee
TCL Mobile Communication Technology Ningbo 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 TCL Mobile Communication Technology Ningbo Ltd filed Critical TCL Mobile Communication Technology Ningbo Ltd
Priority to CN202010386422.2A priority Critical patent/CN111556248B/en
Publication of CN111556248A publication Critical patent/CN111556248A/en
Application granted granted Critical
Publication of CN111556248B publication Critical patent/CN111556248B/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/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04806Zoom, i.e. interaction techniques or interactors for controlling the zooming operation

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Studio Devices (AREA)

Abstract

The application discloses a shooting method, a shooting device, a storage medium and a mobile terminal, wherein the method comprises the following steps: determining a shooting subject in a shooting preview interface in a shooting preview mode; when receiving a zoom adjustment operation of a user on a shooting subject on the shooting preview interface, determining a target shooting subject to be adjusted and a target zoom scale of the target shooting subject according to the zoom adjustment operation; gradually adjusting the display size of the target shooting subject in the shooting preview interface according to the target zoom ratio until the zoom ratio of the target shooting subject is adjusted to the target zoom ratio. The situation that the enlarged shooting object in the preview interface is fuzzy or jumped can be avoided, and the experience of the user in shooting is improved.

Description

Shooting method, shooting device, storage medium and mobile terminal
Technical Field
The present application relates to the field of communications, and in particular, to a shooting method, an apparatus, a storage medium, and a mobile terminal.
Background
Since photographing is an indispensable part of life, mobile terminals such as mobile phones are increasingly favored by users because they are equipped with a photographing function, and when a user photographs a distant scene, an object such as an object, etc., the user adjusts the size of the object in a photographing preview interface to achieve an enlargement function.
In the prior art, a shooting object in a shooting preview interface can be instantly enlarged along with touch operation of a user, but the instant enlargement can cause pixel distortion of the shooting object, and the situation that the enlarged shooting object is fuzzy or jumped in the preview interface is caused.
Disclosure of Invention
The embodiment of the application provides a shooting method, which can avoid the situation that a shot object amplified in a preview interface is fuzzy or jumped, and improve the experience of a user during shooting.
The embodiment of the application provides a shooting method, which comprises the following steps:
determining a shooting subject in a shooting preview interface in a shooting preview mode;
when receiving a zoom adjustment operation of a user on a shooting subject on the shooting preview interface, determining a target shooting subject to be adjusted and a target zoom scale of the target shooting subject according to the zoom adjustment operation;
gradually adjusting the display size of the target shooting subject in the shooting preview interface according to the target zoom ratio until the zoom ratio of the target shooting subject is adjusted to the target zoom ratio.
The embodiment of the present application further provides a shooting device, including:
a first determination unit configured to determine a photographic subject in a photographic preview interface in a photographic preview mode;
the second determining unit is used for determining a target shooting subject to be adjusted and a target zoom ratio of the target shooting subject according to the zoom adjustment operation when the zoom adjustment operation of the shooting subject on the shooting preview interface by a user is received;
and the adjusting unit is used for gradually adjusting the display size of the target shooting main body in the shooting preview interface according to the target zoom ratio until the zoom ratio of the target shooting main body is adjusted to the target zoom ratio.
An embodiment of the present application further provides a storage medium, in which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the shooting method as described above.
The embodiment of the application further provides a mobile terminal, which includes a processor and a memory, wherein the memory stores a computer program, and the processor is used for executing the shooting method described above by calling the computer program stored in the memory.
The shooting method provided by the embodiment of the application comprises the following steps: determining a shooting subject in a shooting preview interface in a shooting preview mode; when receiving a zoom adjustment operation of a user on a shooting subject on the shooting preview interface, determining a target shooting subject to be adjusted and a target zoom scale of the target shooting subject according to the zoom adjustment operation; gradually adjusting the display size of the target shooting subject in the shooting preview interface according to the target zoom ratio until the zoom ratio of the target shooting subject is adjusted to the target zoom ratio. The situation that the enlarged shooting object in the preview interface is fuzzy or jumped can be avoided, and the experience of the user in shooting is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1a is a schematic flowchart of a first shooting method according to an embodiment of the present disclosure.
Fig. 1b is a schematic diagram of a target subject in each state during adjustment according to an embodiment of the present application.
Fig. 2 is a second flowchart of the shooting method according to the embodiment of the present application.
Fig. 3 is a schematic structural diagram of a shooting device according to an embodiment of the present application.
Fig. 4 is a specific structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. 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 application.
Referring to fig. 1a, fig. 1a is a first flowchart illustrating a shooting method according to an embodiment of the present disclosure.
The shooting method comprises the following steps:
step 101, in a shooting preview mode, a shooting subject in a shooting preview interface is determined.
Specifically, in the shooting preview mode, a user can start shooting software or trigger the mobile terminal to enter the shooting preview mode through a physical key on the mobile terminal with the camera module and display a shooting preview interface; the mobile terminal without the camera module can be triggered to enter a shooting preview mode when being externally connected with a camera device, and the shooting preview mode is not limited here. The mobile terminal can be a mobile phone, a tablet computer, a notebook computer, a personal digital assistant and other devices, and various application programs are stored in the mobile terminal, such as applications with entertainment functions (e.g., video applications, shooting applications, game applications, and reading software) and applications with service functions (e.g., map navigation applications, dining applications, and the like).
Specifically, after the mobile terminal enters a shooting preview mode, the image displayed on a shooting preview interface can be subjected to feature extraction in real time through a model obtained by training a Deep Neural Network (DNN), so that a shooting subject in the shooting preview interface is determined; or intelligently identify the photographic subject on the photographic preview interface through Artificial Intelligence (AI), or determine the photographic subject by detecting a focus target, etc., which is only an example and not limited to the above determination. And the number of the photographic subjects may be one or more.
And 102, when receiving the zooming adjustment operation of the shooting subject on the shooting preview interface by the user, determining a target shooting subject to be adjusted and the target zooming ratio of the target shooting subject according to the zooming adjustment operation.
Specifically, the zoom adjustment operation may be a touch operation of the user on the shooting preview interface, and the shooting subject and the zoom ratio that the user wants to adjust may be determined through the touch operation.
Taking the sliding operation of at least two fingers of a user on a shooting preview interface as an example, wherein the adjustment of the display size of the shooting subject can be divided into two types, and the first type is to enlarge the display size of the shooting subject on the shooting preview interface; the second is to reduce the display size of the photographic subject on the photographic preview interface. Corresponding to two different adjustment modes, the sliding operation of the fingers of the user on the shooting preview interface is also different, and for the first adjustment amplification, the corresponding touch points of the two fingers of the user on the shooting preview interface need to be relatively far away; for the second adjustment and amplification, the touch points corresponding to the two fingers of the user on the shooting preview interface need to be relatively close to each other.
Determining a shooting main body to be adjusted in the shooting preview interface according to the zooming adjustment operation, wherein the specific determination mode can be that when a user performs sliding operation, touch points of two fingers when the two fingers touch the shooting preview interface for the first time are obtained, and the center point coordinates of the center point of a line segment formed by the two touch points are obtained; and then detecting whether the center point coordinate is in the coordinate range of the one or more shooting subjects determined in step 101, and determining the shooting subject in the coordinate range as a target shooting subject to be adjusted by the user. Wherein the determining of the target subject may be performed simultaneously with or before the determining of the adjustment manner of the subject.
In addition, it is necessary to determine how much the user wants to zoom the target subject according to the sliding distance of the sliding operation. Therefore, determining a target photographic subject to be adjusted and a target zoom ratio of the target photographic subject according to the zoom adjustment operation includes:
acquiring the center point coordinates of the center points of line segments formed by touch points corresponding to the two fingers on the shooting preview interface;
if the central point coordinate is in the coordinate range of the shooting subject, determining the shooting subject with the central point coordinate in the coordinate range as a target shooting subject;
and determining the target scaling of the target shooting subject according to the sliding distance of the sliding operation.
After the sliding distance of the sliding operation is obtained according to a table look-up mode and the like, the scaling of the target shooting subject is determined. Therefore, the step of determining the target scaling of the target shooting subject according to the sliding distance of the sliding operation comprises the following steps:
acquiring a sliding distance of the sliding operation;
and determining a target scaling corresponding to the sliding distance according to a preset mapping relation, wherein the target scaling is the scaling of the target shooting subject.
And 103, gradually adjusting the display size of the target shooting subject in the shooting preview interface according to the target zoom ratio until the zoom ratio of the target shooting subject is adjusted to the target zoom ratio.
In the prior art, the zoom ratio of the target shooting main body is adjusted instantly, but the problem of pixel distortion is caused because the mobile terminal may not be capable of rapidly processing the pixels in the amplified target shooting main body, so that the method adopts a gradual adjustment mode to ensure that enough time is available for processing the pixels in the amplified target shooting main body.
Specifically, after the target scaling is determined, the corresponding adjustment time can be matched according to the scaling degree, the adjustment time is divided into equal time periods, the adjustment scale in each time period is determined according to the target scaling and the divided time periods, and the target shooting subject is gradually adjusted according to the adjustment time. Therefore, gradually adjusting the zoom ratio of the target photographic subject according to the target zoom ratio includes:
adjusting the adjusting time of the zoom ratio of the target shooting subject according to the target zoom ratio matching;
dividing the adjustment time into a plurality of sub-time periods with the same time;
determining the scaling ratio to be adjusted in each sub-time period based on the number of the sub-time periods and the target scaling ratio;
and adjusting the target shooting subject according to the sub-time period and the scaling ratio to be adjusted corresponding to the sub-time period.
The method for determining the adjustment time may be determining the adjustment time corresponding to the target scaling according to a preset mapping relationship; or comparing the zoom degree based on the target zoom ratio with a preset zoom ratio, and when the target zoom ratio is smaller than the preset zoom ratio, adjusting according to first preset adjustment time; and when the target scaling is larger than the preset scaling, adjusting according to second preset adjusting time. Therefore, adjusting the adjustment time of the zoom ratio of the target photographic subject according to the target zoom ratio matching includes:
if the target zoom ratio is smaller than a preset zoom ratio, adjusting the zoom ratio of the target shooting subject according to first preset adjustment time, and determining the first preset adjustment time as adjustment time for adjusting the zoom ratio of the target shooting subject;
and if the target scaling is larger than the preset scaling, adjusting the scaling of the target shooting subject according to second preset adjustment time, and determining the second preset adjustment time as the adjustment time for adjusting the scaling of the target shooting subject.
Specifically, please refer to fig. 1b, in which fig. 1b is a schematic diagram of the subject shooting subject in each state during adjustment according to the embodiment of the present application. In the pre-adjustment state, the target shooting subject existing in the shooting preview interface is a small circle, and in the adjustment state, the small circle is gradually enlarged and adjusted through the adjustment time and finally adjusted to be a large circle in the adjusted state.
In some embodiments, after the target photographic subject is adjusted, other photographic subjects except the target photographic subject in the shooting preview interface need to be adjusted, and the adjusted ratio can be adjusted according to the target scaling.
The shooting method provided by the embodiment of the application comprises the following steps: determining a shooting subject in a shooting preview interface in a shooting preview mode; when receiving a zoom adjustment operation of a user on a shooting subject on the shooting preview interface, determining a target shooting subject to be adjusted and a target zoom scale of the target shooting subject according to the zoom adjustment operation; gradually adjusting the display size of the target shooting subject in the shooting preview interface according to the target zoom ratio until the zoom ratio of the target shooting subject is adjusted to the target zoom ratio. The situation that the enlarged shooting object in the preview interface is fuzzy or jumped can be avoided, and the experience of the user in shooting is improved.
In some embodiments, there is provided a photographing method as shown in fig. 2, the photographing method including:
step 201, in a shooting preview mode, a shooting subject in a shooting preview interface is determined.
Specifically, in the shooting preview mode, a user can start shooting software or trigger the mobile terminal to enter the shooting preview mode through a physical key on the mobile terminal with the camera module and display a shooting preview interface; the mobile terminal without the camera module can be triggered to enter a shooting preview mode when being externally connected with a camera device, and the shooting preview mode is not limited here. The mobile terminal can be a mobile phone, a tablet computer, a notebook computer, a personal digital assistant and other devices, and various application programs are stored in the mobile terminal, such as applications with entertainment functions (e.g., video applications, shooting applications, game applications, and reading software) and applications with service functions (e.g., map navigation applications, dining applications, and the like).
Specifically, after the mobile terminal enters a shooting preview mode, the image displayed on a shooting preview interface can be subjected to feature extraction in real time through a model obtained by training a Deep Neural Network (DNN), so that a shooting subject in the shooting preview interface is determined; or intelligently identify the photographic subject on the photographic preview interface through Artificial Intelligence (AI), or determine the photographic subject by detecting a focus target, etc., which is only an example and not limited to the above determination. And the number of the photographic subjects may be one or more.
Step 202, when a zoom adjustment operation of the user on the shooting subject on the shooting preview interface is received, obtaining the center point coordinates of the center point of a line segment formed by the touch points corresponding to the two fingers on the shooting preview interface.
Taking the sliding operation of at least two fingers of a user on a shooting preview interface as an example, wherein the adjustment of the display size of the shooting subject can be divided into two types, and the first type is to enlarge the display size of the shooting subject on the shooting preview interface; the second is to reduce the display size of the photographic subject on the photographic preview interface. Corresponding to two different adjustment modes, the sliding operation of the fingers of the user on the shooting preview interface is also different, and for the first adjustment amplification, the corresponding touch points of the two fingers of the user on the shooting preview interface need to be relatively far away; for the second adjustment and amplification, the touch points corresponding to the two fingers of the user on the shooting preview interface need to be relatively close to each other.
Determining a shooting main body to be adjusted in the shooting preview interface according to the zooming adjustment operation, wherein the specific determination mode can be that when a user performs sliding operation, touch points of two fingers when the two fingers touch the shooting preview interface for the first time are obtained, and the center point coordinates of the center point of a line segment formed by the two touch points are obtained; and then detecting whether the center point coordinate is in the coordinate range of the one or more shooting subjects determined in step 101, and determining the shooting subject in the coordinate range as a target shooting subject to be adjusted by the user. Wherein the determining of the target subject may be performed simultaneously with or before the determining of the adjustment manner of the subject.
And step 203, if the central point coordinate is in the coordinate range of the shooting subject, determining the shooting subject with the central point coordinate in the coordinate range as the target shooting subject.
And step 204, determining the target scaling of the target shooting subject according to the sliding distance of the sliding operation.
The specific scale of the target shooting subject which the user wants to zoom is also determined according to the sliding distance of the sliding operation
And step 205, acquiring the sliding distance of the sliding operation.
After the sliding distance of the sliding operation is obtained according to a table look-up mode and the like, the scaling of the target shooting subject is determined.
And step 206, determining a target scaling corresponding to the sliding distance according to a preset mapping relation, wherein the target scaling is the scaling of the target shooting subject.
Step 207, if the target zoom ratio is smaller than the preset zoom ratio, adjusting the zoom ratio of the target shooting subject according to a first preset adjustment time, and determining the first preset adjustment time as the adjustment time for adjusting the zoom ratio of the target shooting subject.
The method for determining the adjustment time may be determining the adjustment time corresponding to the target scaling according to a preset mapping relationship; or comparing the zoom degree based on the target zoom ratio with a preset zoom ratio, and when the target zoom ratio is smaller than the preset zoom ratio, adjusting according to first preset adjustment time; and when the target scaling is larger than the preset scaling, adjusting according to second preset adjusting time.
And 208, if the target zoom ratio is larger than the preset zoom ratio, adjusting the zoom ratio of the target shooting subject according to second preset adjustment time, and determining the second preset adjustment time as the adjustment time for adjusting the zoom ratio of the target shooting subject.
Step 209, the adjustment time is divided into a plurality of sub-time periods with the same time.
In the prior art, the zoom ratio of the target shooting main body is adjusted instantly, but the problem of pixel distortion is caused because the mobile terminal may not be capable of rapidly processing the pixels in the amplified target shooting main body, so that the method adopts a gradual adjustment mode to ensure that enough time is available for processing the pixels in the amplified target shooting main body.
Specifically, after the target scaling is determined, the corresponding adjustment time can be matched according to the scaling degree, the adjustment time is divided into equal time periods, the adjustment scale in each time period is determined according to the target scaling and the divided time periods, and the target shooting subject is gradually adjusted according to the adjustment time.
Step 210, determining the scaling ratio to be adjusted in each sub-time period based on the number of the sub-time periods and the target scaling ratio.
And step 211, adjusting the target shooting subject according to the sub-time period and the scaling to be adjusted corresponding to the sub-time period until the scaling of the target shooting subject is adjusted to the target scaling.
And step 212, adjusting other shooting objects except the target shooting subject in the shooting preview interface according to the target scaling.
After the target shooting subject is adjusted, other shooting subjects except the target shooting subject in the shooting preview interface need to be adjusted, and the adjusted proportion can be adjusted according to the target scaling.
The shooting method provided by the embodiment of the application comprises the following steps: determining a shooting subject in a shooting preview interface in a shooting preview mode; when receiving a zoom adjustment operation of a user on a shooting subject on the shooting preview interface, determining a target shooting subject to be adjusted and a target zoom scale of the target shooting subject according to the zoom adjustment operation; gradually adjusting the display size of the target shooting subject in the shooting preview interface according to the target zoom ratio until the zoom ratio of the target shooting subject is adjusted to the target zoom ratio. The situation that the enlarged shooting object in the preview interface is fuzzy or jumped can be avoided, and the experience of the user in shooting is improved.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a shooting device according to an embodiment of the present disclosure. The photographing apparatus includes: first determining unit 31, second determining unit 32, and adjusting unit 33
The first determining unit 31 is configured to determine a shooting subject in a shooting preview interface in a shooting preview mode.
Specifically, in the shooting preview mode, a user can start shooting software or trigger the mobile terminal to enter the shooting preview mode through a physical key on the mobile terminal with the camera module and display a shooting preview interface; the mobile terminal without the camera module can be triggered to enter a shooting preview mode when being externally connected with a camera device, and the shooting preview mode is not limited here.
After the mobile terminal enters a shooting preview mode, performing feature extraction on an image displayed on a shooting preview interface in real time through a model obtained by training a Deep Neural Network (DNN), so as to determine a shooting subject in the shooting preview interface; or intelligently identify the shooting subject on the shooting preview interface through Artificial Intelligence (AI), or determine the shooting subject by detecting a focus target, etc., which is only an example and not limited to the above determination. And the number of the photographic subjects may be one or more.
And the second determining unit 32 is configured to determine, when a zoom adjustment operation of a shooting subject on the shooting preview interface by a user is received, a target shooting subject to be adjusted and a target zoom ratio of the target shooting subject according to the zoom adjustment operation.
Specifically, the zoom adjustment operation may be a touch operation of the user on the shooting preview interface, and the shooting subject and the zoom ratio that the user wants to adjust may be determined through the touch operation.
The adjusting unit 33 is configured to gradually adjust the display size of the target shooting subject in the shooting preview interface according to the target zoom ratio until the zoom ratio of the target shooting subject is adjusted to the target zoom ratio.
In the prior art, the zoom ratio of the target shooting main body is adjusted instantly, but the problem of pixel distortion is caused because the mobile terminal may not be capable of rapidly processing the pixels in the amplified target shooting main body, so that the method adopts a gradual adjustment mode to ensure that enough time is available for processing the pixels in the amplified target shooting main body.
In some embodiments, the adjusting unit 33 may further include:
the matching subunit is used for matching and adjusting the adjustment time of the zoom ratio of the target shooting subject according to the target zoom ratio;
a dividing subunit, configured to divide the adjustment time into a plurality of sub-time periods with the same time;
the determining subunit is configured to determine, based on the number of the sub-time periods and the target scaling ratio, a scaling ratio to be adjusted in each of the sub-time periods;
and the adjusting subunit is used for adjusting the target shooting subject according to the sub-time period and the scaling to be adjusted corresponding to the sub-time period.
Based on the above method, the present invention also provides a storage medium having a plurality of instructions stored thereon, wherein the instructions are adapted to be loaded by a processor and to perform the photographing method as described above.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Fig. 4 is a block diagram showing a specific structure of a terminal according to an embodiment of the present invention, where the terminal may be used to implement the shooting method, the storage medium, and the terminal provided in the above embodiments.
As shown in fig. 4, the mobile terminal 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more computer-readable storage media (only one shown), an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more processing cores (only one shown), and a power supply 190. Those skilled in the art will appreciate that the mobile terminal 1200 configuration illustrated in fig. 4 is not intended to be limiting of the mobile terminal 1200 and may include more or less components than those illustrated, or some components in combination, or a different arrangement of components. Wherein:
the RF circuitry 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF circuit 110 may communicate with various networks such as the internet, an intranet, a wireless network, or with a second device over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network.
The memory 120 may be used to store software programs and modules, such as program instructions/modules corresponding to the photographing method, apparatus, storage medium and mobile terminal in the above embodiments, and the processor 180 executes various functional applications and data processing by running the software programs and modules stored in the memory 120, that is, realizes the function of mutual chip identification. Memory 120 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or a second non-volatile solid-state memory. In some examples, memory 120 may be a storage medium as described above.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means and a touch controller.
The display unit 140 may be used to display information input by or provided to the user and various graphic user interfaces of the mobile terminal 1200, which may be configured by graphics, text, icons, video, and any combination thereof. The display unit 140 may include a display panel 141, and further, the touch-sensitive surface 131 may cover the display panel 141. The display interface of the mobile terminal in the above embodiment may be represented by the display unit 140, that is, the display content for displaying the shot may be displayed by the display unit 140.
The mobile terminal 1200 may also include at least one sensor 150, such as a light sensor, a motion sensor, and a second sensor. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or the backlight when the mobile terminal 1200 is moved to the ear. As for the second sensor such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured in the mobile terminal 1200, the detailed description is omitted here.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and mobile terminal 1200. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then to the RF circuit 110 to be transmitted to, for example, another terminal, or outputs the audio data to the memory 120 for further processing. The audio circuitry 160 may also include an earbud jack to provide communication of peripheral headphones with the mobile terminal 1200.
The mobile terminal 1200, which can help a user send and receive e-mails, browse web pages, access streaming media, etc., provides the user with wireless broadband internet access through the transmission module 170.
The processor 180 is a control center of the mobile terminal 1200, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 1200 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby integrally monitoring the mobile phone. Optionally, processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
Specifically, the processor 180 includes: an Arithmetic Logic Unit (ALU), an application processor, a Global Positioning System (GPS) and a control and status Bus (Bus) (not shown).
The mobile terminal 1200 also includes a power supply 190 (e.g., a battery) for powering the various components, which may be logically coupled to the processor 180 via a power management system in some embodiments to provide management of power, and power consumption via the power management system. The power supply 190 may also include any component including one or more of a dc or ac power source, a re-power system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the mobile terminal 1200 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein.
Specifically, in the present embodiment, the display unit 140 of the mobile terminal 1200 is a touch screen display, and the mobile terminal 1200 further includes a memory 120 and one or more programs, wherein the one or more programs are stored in the memory 120, and the one or more programs configured to be executed by the one or more processors 180 include instructions for:
determining a shooting subject in a shooting preview interface in a shooting preview mode;
when receiving a zoom adjustment operation of a user on a shooting subject on the shooting preview interface, determining a target shooting subject to be adjusted and a target zoom scale of the target shooting subject according to the zoom adjustment operation;
gradually adjusting the display size of the target shooting subject in the shooting preview interface according to the target zoom ratio until the zoom ratio of the target shooting subject is adjusted to the target zoom ratio.
In some embodiments, while gradually adjusting the zoom ratio of the target photographic subject according to the target zoom ratio, processor 380 may further execute instructions to:
adjusting the adjusting time of the zoom ratio of the target shooting subject according to the target zoom ratio matching;
dividing the adjustment time into a plurality of sub-time periods with the same time;
determining the scaling ratio to be adjusted in each sub-time period based on the number of the sub-time periods and the target scaling ratio;
and adjusting the target shooting subject according to the sub-time period and the scaling ratio to be adjusted corresponding to the sub-time period.
In some embodiments, processor 380 may further execute instructions to, when adjusting the adjustment time to adjust the zoom ratio of the target photographic subject according to the target zoom ratio match:
if the target zoom ratio is smaller than a preset zoom ratio, adjusting the zoom ratio of the target shooting subject according to first preset adjustment time, and determining the first preset adjustment time as adjustment time for adjusting the zoom ratio of the target shooting subject;
and if the target scaling is larger than the preset scaling, adjusting the scaling of the target shooting subject according to second preset adjustment time, and determining the second preset adjustment time as the adjustment time for adjusting the scaling of the target shooting subject.
In some embodiments, in determining the target photographic subject to be adjusted and the target zoom ratio of the target photographic subject according to the zoom adjustment operation, the processor 380 may further execute instructions to:
acquiring the center point coordinates of the center points of line segments formed by touch points corresponding to the two fingers on the shooting preview interface;
if the central point coordinate is in the coordinate range of the shooting subject, determining the shooting subject with the central point coordinate in the coordinate range as a target shooting subject;
and determining the target scaling of the target shooting subject according to the sliding distance of the sliding operation.
In some embodiments, when determining the target zoom ratio of the target photographic subject according to the sliding distance of the sliding operation, the processor 380 may further execute the instructions of:
acquiring a sliding distance of the sliding operation;
and determining a target scaling corresponding to the sliding distance according to a preset mapping relation, wherein the target scaling is the scaling of the target shooting subject.
In some embodiments, after adjusting the target subject's zoom to the target zoom, processor 380 may further execute instructions to:
and adjusting other shot objects except the target shooting subject in the shooting preview interface according to the target scaling.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The above detailed description is given to a shooting method, a shooting device, a shooting storage medium, and a mobile terminal provided in the embodiments of the present application, and a specific example is applied in the detailed description to explain the principles and implementations of the present application, and the description of the above embodiments is only used to help understanding the technical solutions and core ideas of the present application; those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications or substitutions do not depart from the spirit and scope of the present disclosure as defined by the appended claims.

Claims (10)

1. A photographing method, characterized by comprising:
determining a shooting subject in a shooting preview interface in a shooting preview mode;
when receiving a zoom adjustment operation of a user on a shooting subject on the shooting preview interface, determining a target shooting subject to be adjusted and a target zoom scale of the target shooting subject according to the zoom adjustment operation;
gradually adjusting the display size of the target shooting subject in the shooting preview interface according to the target zoom ratio until the zoom ratio of the target shooting subject is adjusted to the target zoom ratio.
2. The photographing method according to claim 1, wherein the step-by-step adjustment of the zoom ratio of the target photographic subject according to the target zoom ratio includes:
adjusting the adjusting time of the zoom ratio of the target shooting subject according to the target zoom ratio matching;
dividing the adjustment time into a plurality of sub-time periods with the same time;
determining the scaling ratio to be adjusted in each sub-time period based on the number of the sub-time periods and the target scaling ratio;
and adjusting the target shooting subject according to the sub-time period and the scaling ratio to be adjusted corresponding to the sub-time period.
3. The photographing method according to claim 2, wherein the adjusting time of the zoom ratio of the target photographic subject according to the target zoom ratio matching includes:
if the target zoom ratio is smaller than a preset zoom ratio, adjusting the zoom ratio of the target shooting subject according to first preset adjustment time, and determining the first preset adjustment time as adjustment time for adjusting the zoom ratio of the target shooting subject;
and if the target scaling is larger than the preset scaling, adjusting the scaling of the target shooting subject according to second preset adjustment time, and determining the second preset adjustment time as the adjustment time for adjusting the scaling of the target shooting subject.
4. The shooting method according to claim 1, wherein the shooting subject zoom adjustment operation includes a sliding operation of at least two fingers of a user on the shooting preview interface, and the determining of the target shooting subject to be adjusted and the target zoom ratio of the target shooting subject according to the zoom adjustment operation includes:
acquiring the center point coordinates of the center points of line segments formed by touch points corresponding to the two fingers on the shooting preview interface;
if the central point coordinate is in the coordinate range of the shooting subject, determining the shooting subject with the central point coordinate in the coordinate range as a target shooting subject;
and determining the target scaling of the target shooting subject according to the sliding distance of the sliding operation.
5. The shooting method according to claim 4, wherein the determining of the target zoom ratio of the target shooting subject according to the sliding distance of the sliding operation includes:
acquiring a sliding distance of the sliding operation;
and determining a target scaling corresponding to the sliding distance according to a preset mapping relation, wherein the target scaling is the scaling of the target shooting subject.
6. The photographing method according to claim 1, further comprising, after the adjusting the scaling of the target photographic subject to the target scaling,:
and adjusting other shot objects except the target shooting subject in the shooting preview interface according to the target scaling.
7. A camera, comprising:
a first determination unit configured to determine a photographic subject in a photographic preview interface in a photographic preview mode;
the second determining unit is used for determining a target shooting subject to be adjusted and a target zoom ratio of the target shooting subject according to the zoom adjustment operation when the zoom adjustment operation of the shooting subject on the shooting preview interface by a user is received;
and the adjusting unit is used for gradually adjusting the display size of the target shooting main body in the shooting preview interface according to the target zoom ratio until the zoom ratio of the target shooting main body is adjusted to the target zoom ratio.
8. The photographing apparatus according to claim 7, wherein the adjusting unit includes:
the matching subunit is used for matching and adjusting the adjustment time of the zoom ratio of the target shooting subject according to the target zoom ratio;
a dividing subunit, configured to divide the adjustment time into a plurality of sub-time periods with the same time;
the determining subunit is configured to determine, based on the number of the sub-time periods and the target scaling ratio, a scaling ratio to be adjusted in each of the sub-time periods;
and the adjusting subunit is used for adjusting the target shooting subject according to the sub-time period and the scaling to be adjusted corresponding to the sub-time period.
9. A computer-readable storage medium, characterized in that a computer program is stored in the storage medium, which when run on a computer causes the computer to execute the photographing method according to any one of claims 1 to 6.
10. A mobile terminal, characterized in that the mobile terminal comprises a processor and a memory, the memory having stored therein a computer program, the processor being configured to execute the photographing method according to any one of claims 1 to 6 by calling the computer program stored in the memory.
CN202010386422.2A 2020-05-09 2020-05-09 Shooting method, shooting device, storage medium and mobile terminal Active CN111556248B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010386422.2A CN111556248B (en) 2020-05-09 2020-05-09 Shooting method, shooting device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010386422.2A CN111556248B (en) 2020-05-09 2020-05-09 Shooting method, shooting device, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN111556248A true CN111556248A (en) 2020-08-18
CN111556248B CN111556248B (en) 2021-09-03

Family

ID=72004517

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010386422.2A Active CN111556248B (en) 2020-05-09 2020-05-09 Shooting method, shooting device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN111556248B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112087579A (en) * 2020-09-17 2020-12-15 维沃移动通信有限公司 Video shooting method and device and electronic equipment
CN112887537A (en) * 2021-01-18 2021-06-01 维沃移动通信有限公司 Image processing method and electronic device

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060069999A1 (en) * 2004-09-29 2006-03-30 Nikon Corporation Image reproduction apparatus and image reproduction program product
US20110243538A1 (en) * 2010-04-06 2011-10-06 Canon Kabushiki Kaisha Image pickup apparatus and method of controlling the same
CN102281399A (en) * 2011-08-12 2011-12-14 广东步步高电子工业有限公司 Digital photographic equipment with touch screen and zooming method of digital photographic equipment
CN104205031A (en) * 2014-02-24 2014-12-10 华为终端有限公司 Image zoom method and equipment
US9477874B2 (en) * 2010-04-23 2016-10-25 Handscape Inc. Method using a touchpad for controlling a computerized system with epidermal print information
CN107155064A (en) * 2017-06-23 2017-09-12 维沃移动通信有限公司 A kind of image pickup method and mobile terminal
CN108184066A (en) * 2018-01-10 2018-06-19 上海展扬通信技术有限公司 Shooting processing method, capture apparatus and the readable storage medium storing program for executing of photo
CN108228041A (en) * 2016-12-13 2018-06-29 中兴通讯股份有限公司 A kind of control amplification shows content and method, device and mobile terminal
CN108536364A (en) * 2017-12-28 2018-09-14 努比亚技术有限公司 A kind of image pickup method, terminal and computer readable storage medium
CN109565605A (en) * 2016-08-10 2019-04-02 松下电器(美国)知识产权公司 Technique for taking generation method and image processor
CN110113525A (en) * 2019-04-18 2019-08-09 惠州Tcl移动通信有限公司 Shooting preview method, apparatus, storage medium and mobile terminal
CN110248097A (en) * 2019-06-28 2019-09-17 Oppo广东移动通信有限公司 Chase after burnt method, apparatus, terminal device, computer readable storage medium
CN111083380A (en) * 2019-12-31 2020-04-28 维沃移动通信有限公司 Video processing method, electronic equipment and storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060069999A1 (en) * 2004-09-29 2006-03-30 Nikon Corporation Image reproduction apparatus and image reproduction program product
US20110243538A1 (en) * 2010-04-06 2011-10-06 Canon Kabushiki Kaisha Image pickup apparatus and method of controlling the same
US9477874B2 (en) * 2010-04-23 2016-10-25 Handscape Inc. Method using a touchpad for controlling a computerized system with epidermal print information
CN102281399A (en) * 2011-08-12 2011-12-14 广东步步高电子工业有限公司 Digital photographic equipment with touch screen and zooming method of digital photographic equipment
CN104205031A (en) * 2014-02-24 2014-12-10 华为终端有限公司 Image zoom method and equipment
CN109565605A (en) * 2016-08-10 2019-04-02 松下电器(美国)知识产权公司 Technique for taking generation method and image processor
CN108228041A (en) * 2016-12-13 2018-06-29 中兴通讯股份有限公司 A kind of control amplification shows content and method, device and mobile terminal
CN107155064A (en) * 2017-06-23 2017-09-12 维沃移动通信有限公司 A kind of image pickup method and mobile terminal
CN108536364A (en) * 2017-12-28 2018-09-14 努比亚技术有限公司 A kind of image pickup method, terminal and computer readable storage medium
CN108184066A (en) * 2018-01-10 2018-06-19 上海展扬通信技术有限公司 Shooting processing method, capture apparatus and the readable storage medium storing program for executing of photo
CN110113525A (en) * 2019-04-18 2019-08-09 惠州Tcl移动通信有限公司 Shooting preview method, apparatus, storage medium and mobile terminal
CN110248097A (en) * 2019-06-28 2019-09-17 Oppo广东移动通信有限公司 Chase after burnt method, apparatus, terminal device, computer readable storage medium
CN111083380A (en) * 2019-12-31 2020-04-28 维沃移动通信有限公司 Video processing method, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张雪松 等: "《基于迁移学习的类别级物体识别与检测研究与进展》", 《自动化学报》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112087579A (en) * 2020-09-17 2020-12-15 维沃移动通信有限公司 Video shooting method and device and electronic equipment
CN112887537A (en) * 2021-01-18 2021-06-01 维沃移动通信有限公司 Image processing method and electronic device

Also Published As

Publication number Publication date
CN111556248B (en) 2021-09-03

Similar Documents

Publication Publication Date Title
CN110147805B (en) Image processing method, device, terminal and storage medium
CN108234875B (en) Shooting display method and device, mobile terminal and storage medium
CN111176602B (en) Picture display method and device, storage medium and intelligent device
CN111182236A (en) Image synthesis method and device, storage medium and terminal equipment
CN110990341A (en) Method, device, electronic equipment and medium for clearing data
JP2023518548A (en) Detection result output method, electronic device and medium
CN111556248B (en) Shooting method, shooting device, storage medium and mobile terminal
CN111754386A (en) Image area shielding method, device, equipment and storage medium
CN110677713B (en) Video image processing method and device and storage medium
CN111857793B (en) Training method, device, equipment and storage medium of network model
CN109783176B (en) Page switching method and device
CN109561255B (en) Terminal photographing method and device and storage medium
CN106454083B (en) Image acquisition method and device of mobile terminal and mobile terminal
CN111182153B (en) System language setting method and device, storage medium and mobile terminal
CN111343335B (en) Image display processing method, system, storage medium and mobile terminal
CN114140655A (en) Image classification method and device, storage medium and electronic equipment
CN111787228A (en) Shooting method, shooting device, storage medium and mobile terminal
CN112311652B (en) Message sending method, device, terminal and storage medium
CN108829600B (en) Method and device for testing algorithm library, storage medium and electronic equipment
CN109344284B (en) Song file playing method, device, equipment and storage medium
CN111601036B (en) Camera focusing method and device, storage medium and mobile terminal
CN111355892A (en) Picture shooting method and device, storage medium and electronic terminal
CN110830723B (en) Shooting method, shooting device, storage medium and mobile terminal
CN110996003A (en) Photographing positioning method and device and mobile terminal
CN112468725B (en) Photo shooting method and device, storage medium and mobile terminal

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240108

Address after: Room 501, 85 Xiaguang Dongli, Haicang District, Xiamen City, Fujian Province, 361000

Patentee after: Xiamen reliable intellectual property service Co.,Ltd.

Address before: 10 / F, No.5 Lane 999, Yangfan Road, high tech Zone, Ningbo City, Zhejiang Province

Patentee before: TCL mobile communication technology (Ningbo) Co.,Ltd.