CN107770442B - Method, device and terminal for shooting image - Google Patents

Method, device and terminal for shooting image Download PDF

Info

Publication number
CN107770442B
CN107770442B CN201710999106.0A CN201710999106A CN107770442B CN 107770442 B CN107770442 B CN 107770442B CN 201710999106 A CN201710999106 A CN 201710999106A CN 107770442 B CN107770442 B CN 107770442B
Authority
CN
China
Prior art keywords
angle
terminal
change value
parameter
angle change
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.)
Expired - Fee Related
Application number
CN201710999106.0A
Other languages
Chinese (zh)
Other versions
CN107770442A (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 Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710999106.0A priority Critical patent/CN107770442B/en
Publication of CN107770442A publication Critical patent/CN107770442A/en
Application granted granted Critical
Publication of CN107770442B publication Critical patent/CN107770442B/en
Expired - Fee Related 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
    • 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/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image

Landscapes

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

Abstract

The invention discloses a method, a device and a terminal for shooting images, and belongs to the field of image acquisition. The method comprises the following steps: acquiring a first parameter, wherein the first parameter comprises a folding angle or an angle change value, determining a corresponding shooting parameter according to the first parameter, and shooting an image according to the shooting parameter; the terminal can always display the framing image when the user adjusts the shooting parameters, so that the user can observe the framing image and calibrate the shooting parameters, the adjusting efficiency of the shooting parameters is improved, and the efficiency of acquiring the image with higher imaging quality is improved.

Description

Method, device and terminal for shooting image
Technical Field
The embodiment of the invention relates to the field of image acquisition, in particular to a method, a device and a terminal for shooting an image.
Background
With the development of terminals having a function of capturing images, scenes in which users capture images using the terminals are increasing. In order to capture an image with better imaging effect, the user is usually required to adjust the shooting parameters before capturing the image.
During actual shooting, the user typically adjusts the shooting parameters in an adjustment menu in the image shooting application. For example, a user may click an adjustment function button in a display interface after the image capturing application is started, and then the terminal expands and displays an adjustment menu in the screen, and the user may select a candidate capturing parameter option in the adjustment menu or adjust the capturing parameter by inputting a parameter value. When the adjusting menu is displayed in the screen of the terminal, the currently acquired view image of the camera is not displayed in the screen.
Disclosure of Invention
The embodiment of the invention provides a method, a device and a terminal for shooting images, which can be used for solving the problem that the efficiency of adjusting shooting parameters is low because a user needs to repeatedly switch between a current framing image and a shooting parameter setting interface for the best image shooting effect. The technical scheme is as follows:
in a first aspect, a method for capturing an image is provided, which is used in a terminal having a foldable display screen, the terminal having a first housing and a second housing, and the method includes:
acquiring a first parameter, wherein the first parameter comprises a folding angle or an angle change value, the folding angle is an angle between the first shell and the second shell, and the angle change value is an angle change value generated in a time period by the first shell relative to the second shell;
determining corresponding shooting parameters according to the first parameters, wherein the shooting parameters are used for indicating optical parameters of the image acquisition assembly when the image is shot;
and shooting images according to the shooting parameters.
In a second aspect, there is provided an apparatus for photographing an image, for use in a terminal having a foldable display screen, the terminal having a first housing and a second housing, the apparatus comprising:
the device comprises an acquisition module, a display module and a control module, wherein the acquisition module is used for acquiring a first parameter, the first parameter comprises a folding angle or an angle change value, the folding angle is an angle between the first shell and the second shell, and the angle change value is used for indicating an angle change value generated by the folding angle in a time period;
the determining module is used for determining corresponding shooting parameters according to the first parameters, and the shooting parameters are used for indicating optical parameters of the image acquisition assembly when the image is shot;
and the shooting module is used for shooting images according to the shooting parameters.
In a third aspect, a terminal is provided, where the terminal includes: a processor, a memory coupled to the processor, and program instructions stored on the memory, the processor, when executing the program instructions, implementing the method of capturing an image according to the first aspect.
In a fourth aspect, a computer readable medium has stored thereon program instructions which, when executed by a processor, implement the method of capturing an image as described in the first aspect.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
by utilizing the characteristic that the folding screen is foldable, when the terminal shoots the image, shooting parameters can be adjusted without touching an adjusting button in the screen by a finger of a user. Specifically, the terminal obtains a folding angle between the first shell and the second shell, obtains corresponding shooting parameters according to the folding angle, and shoots an image according to the shooting parameters. Or the terminal acquires an angle change value generated by the first shell relative to the second shell within a time period, and acquires corresponding shooting parameters according to the angle change value, so as to shoot an image. The terminal does not need to expand a touch operation interface in the screen to adjust the shooting parameters when the shooting parameters are adjusted, so that the terminal always displays the framing image when the user adjusts the shooting parameters, the user can observe the framing image and calibrate the shooting parameters, the adjusting efficiency of the shooting parameters is improved, and the efficiency of obtaining images with higher imaging quality 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 description of the embodiments will be briefly introduced 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 to obtain other drawings based on these drawings without creative efforts.
Fig. 1 and 2 are block diagrams illustrating a structure of a terminal according to an exemplary embodiment of the present invention;
fig. 3 to 6 are schematic structural diagrams of a folding screen terminal according to an exemplary embodiment of the present invention;
FIG. 7 illustrates a flow chart of a method of capturing an image provided by an exemplary embodiment of the present invention;
FIG. 8 illustrates a flow chart of a method of capturing an image provided by an exemplary embodiment of the present invention;
fig. 9 is a schematic view of a terminal pose provided based on the method of capturing an image shown in fig. 8;
FIG. 10 illustrates a flow chart of a method of capturing an image provided by an exemplary embodiment of the present invention;
FIG. 11 is a flow chart for determining a first parameter according to the embodiment shown in FIG. 10;
fig. 12 is a block diagram illustrating an exemplary embodiment of an apparatus for capturing an image according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Referring to fig. 1 and 2, a block diagram of a terminal 100 according to an exemplary embodiment of the present application is shown. The terminal 100 may be a smart phone, a tablet computer, an e-book, and the like. The terminal 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and a touch display screen 130.
Processor 110 may include one or more processing cores. The processor 110 connects various parts within the overall terminal 100 using various interfaces and lines, and performs various functions of the terminal 100 and processes data by executing or executing program instructions stored in the memory 120, the program instructions including at least one of an instruction, a program, a set of codes, or a set of instructions, and calling data stored in the memory 120. Alternatively, the processor 110 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 110 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content to be displayed by the touch display screen 130; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 110, but may be implemented by a single chip.
The Memory 120 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 120 includes a non-transitory computer-readable medium. The memory 120 may be used to store instructions, programs, code sets, or instruction sets. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like; the storage data area may store data (such as audio data, a phonebook) created according to the use of the terminal 100, and the like.
Taking an operating system as an Android (Android) system as an example, programs and data stored in the memory 120 are shown in fig. 1, and a Linux kernel layer 220, a system runtime layer 240, an application framework layer 260, and an application layer 280 are stored in the memory 120. The Linux kernel layer 220 provides underlying drivers for various hardware of the terminal 100, such as a display driver, an audio driver, a camera driver, a bluetooth driver, a Wi-Fi driver, power management, and the like. The system runtime library layer 240 provides the main feature support for the Android system through some C/C + + libraries. For example, the SQLite library provides support for a database, the OpenGL/ES library provides support for 3D drawing, the Webkit library provides support for a browser kernel, and the like. Also provided in the system Runtime layer 240 is an Android Runtime library (Android Runtime), which mainly provides some core libraries that can allow developers to write Android applications using the Java language. The application framework layer 260 provides various APIs that may be used in building applications, and developers may build their own applications by using these APIs, such as activity management, window management, view management, notification management, content provider, package management, session management, resource management, and location management. At least one application program runs in the application layer 280, and the application programs may be a contact program, a short message program, a clock program, a camera application, etc. of the operating system; or an application program developed by a third-party developer, such as an instant messaging program, a photo beautification program, and the like.
Taking an operating system as an IOS system as an example, programs and data stored in the memory 120 are shown in fig. 2, and the IOS system includes: a Core operating system Layer 320(Core OS Layer), a Core Services Layer 340(Core Services Layer), a Media Layer 360(Media Layer), and a touchable Layer 380(Cocoa Touch Layer). The kernel operating system layer 320 includes an operating system kernel, drivers, and underlying program frameworks that provide functionality closer to hardware for use by program frameworks located in the kernel services layer 340. The core services layer 340 provides system services and/or program frameworks, such as a Foundation framework, an account framework, an advertisement framework, a data storage framework, a network connection framework, a geographic location framework, a motion framework, and so forth, that are needed by the application. The media layer 360 provides audiovisual interfaces for applications, such as graphics-related interfaces, audio-related interfaces, video-related interfaces, and audio/video transmission technology wireless broadcast (AirPlay) interfaces. The touchable layer 380 provides various common interface-related frameworks for application development, and the touchable layer 380 is responsible for user touch interaction operations on the terminal 100. Such as a local notification service, a remote push service, an advertising framework, a game tool framework, a messaging User Interface (UI) framework, a User Interface UIKit framework, a map framework, and so forth.
In the framework shown in FIG. 2, the framework associated with most applications includes, but is not limited to: a base framework in the core services layer 340 and a UIKit framework in the touchable layer 380. The base framework provides many basic object classes and data types, provides the most basic system services for all applications, and is UI independent. While the class provided by the UIKit framework is a basic library of UI classes for creating touch-based user interfaces, iOS applications can provide UIs based on the UIKit framework, so it provides an infrastructure for applications for building user interfaces, drawing, processing and user interaction events, responding to gestures, and the like.
The touch display screen 130 is used for receiving a touch operation of a user on or near the touch display screen using any suitable object such as a finger, a touch pen, or the like, and displaying a user interface of each application program. The touch display 130 is generally provided at a front panel of the terminal 100.
As shown in fig. 3, the terminal 100 includes a first housing 41, a second housing 42, and a connecting assembly 43 connected between the first housing 41 and the second housing 42, and the first housing 41 and the second housing 42 are folded upside down by the connecting assembly 43.
The first housing 41 includes a first supporting surface connected to the back surface of the touch display screen and a first back surface opposite to the first supporting surface, and the second housing 42 includes a second supporting surface connected to the back surface of the touch display screen and a second back surface opposite to the second supporting surface. Accordingly, the touch display screen includes a first display area 131, a second display area 132 and a third display area 133, wherein the first display area 131 corresponds to the position of the first housing 41, the second display area 132 corresponds to the position of the second housing 42, and the third display area 133 corresponds to the position of the connecting assembly 43. In one implementation, the first display region 131, the second display region 132 and the third display region 133 are made of flexible materials and have a certain expansion and contraction ductility; in another implementation, only the third display region 133 is made of a flexible material, and the first and second display regions 131 and 132 are made of a non-flexible material.
In an alternative implementation, the connection assembly 43 of the terminal 100 is of a manual construction. When the user manually separates the first casing 41 and the second casing 42, the terminal 100 is changed from the folded state to the unfolded state; when the user manually closes the first housing 41 and the second housing 42, the terminal 100 changes from the unfolded state to the folded state.
In an alternative implementation, the connection assembly 43 of the terminal 100 is of an electric construction, for example, the connection assembly 43 is provided with an electric rotating member such as an electric motor. Under the driving of the electric rotating component, the first housing 41 and the second housing 42 automatically close or separate, so that the terminal 100 has two states of unfolding and folding.
The terminal 100 may be divided into an outer folder terminal and an inner folder terminal according to whether the touch display screen is exposed in a folded state. Alternatively, the terminal 100 may also be referred to as a folder screen terminal. Wherein:
external folding screen terminal
The outer folding screen terminal is a terminal with a folding angle of 180 degrees and with a touch display screen completely exposed in a folding state. As shown in fig. 3, the terminal 100 is an outer folder screen terminal. In the unfolded state, the first supporting surface of the first casing 41 of the terminal 100 is flush with the second supporting surface of the second casing 42 (i.e. the included angle is 180 °), and the first display area 131, the second display area 132 and the third display area 133 of the touch display screen are located on the same plane; in the process of the terminal 100 changing from the unfolded state to the folded state, as shown in fig. 3, the first back surface of the first housing 41 and the second back surface of the second housing 42 are close to each other, and the included angle between the first supporting surface and the second supporting surface is changed from 180 ° to 0 °; in the folded state, as shown in fig. 4, the first supporting surface of the first casing 41 of the terminal 100 is parallel to the second supporting surface of the second casing 42 (the included angle between the first casing 41 and the second casing 42 is 0 °), so that the touch display screen is in a U-shaped folded state, in which the third display area 133 of the touch display screen forms an exposed U-shaped arc surface.
In an alternative implementation, in the folded state, all or part of the display area of the touch display screen is used for displaying the user interface. For example, as shown in fig. 4, in the folded state, only the second display region 132 is used to display the user interface, or only the third display region 133 is used to display the user interface.
Terminal with internal folding screen
The internally-folded screen terminal refers to a terminal in which the folding angle is 180 ° and the touch display screen is (entirely or partially) inwardly converged in the folded state. As shown in fig. 5, the terminal 100 is an inner folder screen terminal. In the unfolded state, the first supporting surface of the first casing 41 of the terminal 100 is flush with the second supporting surface of the second casing 42 (i.e. the included angle is 180 °), so that the touch display screen is in a planar unfolded state (the first display area 131, the second display area 132 and the third display area 133 are located on the same plane); in the process of the terminal 100 changing from the unfolded state to the folded state, as shown in fig. 5, the first supporting surface of the first housing 41 and the second supporting surface of the second housing 42 are close to each other, that is, the included angle between the first supporting surface and the second supporting surface is changed from 180 ° to 0 °; in the folded state, the first supporting surface of the first housing 41 of the terminal 100 is parallel to the second supporting surface of the second housing 42, so that the touch display screen is in a U-shaped folded state in which the third display area 133 of the touch display screen forms a U-shaped arc surface that is inwardly converged. In an alternative implementation, in the folded state, no user interface is displayed in all display areas of the touch display screen.
In addition to providing a touch display screen on the support surface of the housing, a touch display screen may also be provided on the first back surface of the first housing 41 and/or the second back surface of the second housing 42. When the inner folding screen terminal is in a folding state, the touch display screen arranged on the back face of the shell is used for displaying a user interface, and the user interface is the same as or different from the user interface displayed by the touch display screen in an unfolding state.
In other possible implementations, the folding angle of the terminal 100 may also be 360 ° (both inward folding and outward folding), and in the folded state, the touch display screen is exposed or converged on the terminal, which is not limited in this embodiment.
In the terminal 100 shown in fig. 3 to 5, the first housing 41 and the second housing 42 have the same or similar size, and the folding manner of the terminal 100 is called symmetrical folding. In other possible implementations, the terminal 100 may also be folded asymmetrically. When the asymmetric folding is adopted, the sizes of the first casing 41 and the second casing 42 may be different or different by more than a threshold (for example, 50% or 60% or 70%), and accordingly, the area of the first display region 131 in the touch display screen is different from the area of the second display region 132 by more than a threshold.
Illustratively, as shown in fig. 6, the terminal 100 is an asymmetrically folded outer folded screen terminal, and the first housing 41 has a size larger than that of the second housing 42. In the folded state, the area of the first display region 131 is larger than that of the second display region 132.
In fig. 3 to 6, only by taking an example that the terminal 100 includes two parts of a housing and a connecting assembly for connecting the housing as an example (the terminal is in a two-fold structure), in other possible implementations, the terminal 100 may include n parts of the housing and n-1 connecting assemblies, and accordingly, the touch display screen of the terminal 100 includes 2n-1 display areas, and the n-1 display areas corresponding to the connecting assemblies are made of a flexible material, so as to implement the terminal in the n-fold structure, which is not limited in this embodiment.
At least one other component is also provided in the terminal 100, the at least one other component including: cameras, fingerprint sensors, proximity light sensors, distance sensors, etc. In some embodiments, at least one other component is disposed on the front, side, or back of the terminal 100, such as a fingerprint sensor disposed on the back or side of the housing, a camera disposed above the touch display screen 130.
In other embodiments, at least one other component may be integrated within or below the touch screen display 130. In some embodiments, a bone conduction earpiece is provided inside the terminal 100; other components on the front panel of the conventional terminal are integrated in the whole area or a partial area of the touch display screen 130, for example, after a photosensitive element in the camera is split into a plurality of photosensitive pixels, each photosensitive pixel is integrated in a black area in each display pixel in the touch display screen 130, so that the touch display screen 130 has an image capturing function. The terminal 100 has a higher screen occupation ratio due to the integration of at least one other component within or under the touch display screen 130.
In some optional embodiments, an edge touch sensor is disposed on a single side, or two sides (e.g., two left and right sides), or four sides (e.g., four upper, lower, left and right sides) of the middle frame of the terminal 100, and is configured to detect at least one of a touch operation, a click operation, a press operation, a slide operation, and the like of a user on the middle frame. The edge touch sensor may be any one of a touch sensor, a thermal sensor, a pressure sensor, and the like. The user may apply operations on the edge touch sensor to control the application in the terminal 100.
In addition, those skilled in the art will appreciate that the configuration of terminal 100 as illustrated in the above-described figures is not intended to be limiting of terminal 100, and that terminals may include more or less components than those illustrated, or some components may be combined, or a different arrangement of components. For example, the terminal 100 further includes a radio frequency circuit, an input unit, a sensor, an audio circuit, a Wireless Fidelity (WiFi) module, a power supply, a bluetooth module, and other components, which are not described herein again.
Referring to fig. 7, a flowchart of a method for capturing an image according to an exemplary embodiment of the present invention is shown, where the method can be applied to both an outer folding screen terminal shown in fig. 3, fig. 4 or fig. 6 and an inner folding screen terminal shown in fig. 5. For the convenience of understanding, the present embodiment is described by taking an example of application to an inner folding display screen. As shown in fig. 7, the method of capturing an image may include:
step 701, obtaining a first parameter, where the first parameter includes a folding angle or an angle change value, the folding angle is an angle between the first housing and the second housing, and the angle change value is an angle change value generated by the first housing relative to the second housing within a time period.
In the embodiment of the invention, when a user needs to use the terminal to shoot an image, the user can open the image acquisition application in the terminal. After the image acquisition application is started, the terminal can obtain the first parameter. The first parameter may be a folding angle of the terminal, or an angle change value generated by the first housing relative to the second housing.
In one possible implementation, the first parameter is a fold angle. The terminal may measure an angle value of the folding angle through an angle sensor. Alternatively, the angle sensor may be a piezoelectric sensor, for example a piezoelectric film arranged at the connection between the first housing and the second housing. Since the folding angle between the first housing and the second housing of the terminal is different, the pressure value generated at the folding angle between the first housing and the second housing is different. Therefore, the terminal can determine the folding angle according to the pressure value born by the piezoelectric film.
In another possible implementation, the first parameter may also be an angle change value. The angle change value is indicative of an angle change value occurring between the first housing and the second housing over a period of time. The time period may be a target time period, and the target time period may be a time period in which a specified time length in the terminal is set, for example, after the image capture application is started, the terminal detects an angle change value within the specified time length with the time length T. On one hand, for the accuracy of the detection result, the terminal may set the value of T to be smaller; on the other hand, in order to save the software and hardware overhead of the terminal, the value of T may be set to be larger. In general, the value of T may be set by considering the accuracy of the detection result and the software and hardware overhead of the terminal. Alternatively, the terminal may periodically detect the angle variation value, and the terminal may also non-periodically detect the angle variation value.
And step 702, determining corresponding shooting parameters according to the first parameters, wherein the shooting parameters are used for indicating optical parameters of the terminal when shooting the image.
In the embodiment of the present invention, the terminal may pre-store a corresponding relationship between the first parameter and the shooting parameter, where the corresponding relationship may be a linear corresponding relationship or a non-linear corresponding relationship. When the first parameter is the folding angle, the corresponding relationship may be a one-to-one corresponding relationship, and the folding angle of the specified size corresponds to the specified shooting parameter. In this case, the correspondence may be stored in the terminal in the form of a table.
Alternatively, the terminal may hold at least one table for each shooting parameter. For example, the photographing parameters may be at least one of a focal length, a photosensitive value, exposure compensation, a color temperature, and a contrast, and each photographing parameter has at least one table. And the terminal determines the shooting parameters corresponding to the first parameters according to the table meeting the conditions under different conditions. Wherein the user may manually determine the photographing parameters that need to be adjusted before the terminal performs step 702. Alternatively, the photographing parameters are designated, and the user does not need to manually determine the photographing parameters that need to be adjusted, and the terminal directly performs step 702.
And step 703, shooting the image according to the shooting parameters.
In the embodiment of the invention, after the shooting parameter adjustment is completed, the terminal can shoot the image according to the shooting parameter corresponding to the first parameter under the shooting instruction of the user. Or recording the video according to the shooting parameters under the shooting instruction of the user. The video recording operation comprises recording short videos (small videos) with fixed time length and custom video segments with time length defined by users.
Optionally, after the terminal starts recording after adjusting the shooting parameters. The terminal may still perform steps 701 and 702 to implement the function of adjusting the shooting parameters during the recording process of the video.
Alternatively, when the terminal records a short video with a fixed time length, the terminal may record the short video within a specified time length before the shooting button is triggered, may record the short video within the specified time length after the shooting button is triggered, or may record the short video from the specified time length before the shooting button is triggered to the specified time length after the shooting button is triggered. For example, the specified length of recording time is 4 seconds, the terminal may always buffer the last 4 seconds of short video, and when the shoot button is triggered, the terminal saves the short video within 4 seconds before the moment the shoot button is triggered. Alternatively, the terminal may record a short video within 4 seconds after the shooting button is triggered. Or alternatively. The terminal can record short video 4 seconds long before the shooting button is triggered and 2 seconds after the shooting button is triggered.
In summary, the method for shooting an image according to the embodiments of the present invention utilizes the foldable property of the foldable screen to enable the terminal to adjust the shooting parameters without touching the adjustment button in the screen with the finger when shooting the image. Specifically, the terminal obtains a folding angle between the first shell and the second shell, obtains corresponding shooting parameters according to the folding angle, and shoots an image according to the shooting parameters. Or the terminal acquires an angle change value generated by the first shell relative to the second shell within a time period, and acquires corresponding shooting parameters according to the angle change value, so as to shoot an image. The terminal does not need to expand a touch operation interface in the screen to adjust the shooting parameters when the shooting parameters are adjusted, so that the terminal always displays the framing image when the user adjusts the shooting parameters, the user can observe the framing image and calibrate the shooting parameters, the adjusting efficiency of the shooting parameters is improved, and the efficiency of obtaining images with higher imaging quality is improved.
In the embodiment of the present invention, when the first parameter is the folding angle, the terminal acquires the folding angle between the first housing and the second housing as the photographing parameter. In this case, the user may manually bend the terminal, and change the folding angle between the first housing and the second housing to change the shooting parameters, or may not change the folding angle and make the terminal shoot the image under the shooting parameters corresponding to the current folding angle.
Referring to fig. 8, a flowchart of a method for capturing an image according to an exemplary embodiment of the present invention is shown, where the method can be applied to both an outer folding screen terminal as shown in fig. 3, 4 or 6 and an inner folding screen terminal as shown in fig. 5. For the convenience of understanding, the present embodiment is described by taking an example of application to an inner folding display screen. As shown in fig. 8, the method of capturing an image may include:
step 801 obtains a first angle reading α in an angle sensor.
In the embodiment of the invention, the terminal can realize the shooting function through a camera application program. The camera application may be an application preinstalled in the operating system of the folding screen terminal, or may be a third-party application installed by the user through an application market (application store). For example, the camera application may be a native camera application of the terminal, or may be a third-party application installed in an application market and having extended functions such as a beauty function, a filter function, an image hanging function, and the like.
After the camera application is installed in the terminal, the camera application can be opened by a user's opening operation. The user can click an icon of the camera application in the touch screen to open the camera application, and the camera application can also be opened in a voice control mode.
The above opening manner of the camera application is some of the manners that the embodiments of the present invention can implement, and the embodiments of the present invention are not limited to the opening manner of the corresponding application.
After the folding screen terminal opens the camera application, the terminal may determine whether to obtain the first angle reading α in the angle sensor according to the user's settings. When the terminal is set to start the function of adjusting the shooting parameters through the folding angle, the terminal acquires a first angle reading alpha through the angle sensor. When the terminal is set to close the function of photographing parameters adjusted by the folding angle, the folding screen terminal will not acquire the first angle reading α and will not perform step 802 and subsequent steps. For example, the terminal may provide an option of an application scene of a folding angle in the system setting, and the user may open the application scene of which the shooting parameter is adjusted by the folding angle, or may close the application scene of which the shooting parameter is adjusted by the folding angle.
Optionally, the angle sensor may feed the first angle reading directly back to a processor of the terminal, or may feed a piece of collected data back to the processor. When the angle sensor feeds back collected data, the collected data includes, but is not limited to, parameters such as current, voltage, capacitance value or pressure value. The processor determines a first angle reading corresponding to the acquired data according to the angle determination relationship. It should be noted that the angle determination relationship may be data pre-installed in a system file of the terminal.
Step 802, detecting whether the first angle reading α is within a preset adjustment interval.
After the first angle reading α is obtained, the terminal may detect whether the first angle reading α is within a preset adjustment interval. The preset adjusting interval can be an angle interval preset by a program developer, and can also be an angle interval set by a user according to the use habit of the user. Alternatively, the user may autonomously set the angle range of the preset adjustment interval in the setting of the terminal.
In a possible implementation manner of the embodiment of the present invention, the shooting parameter may be a focal length. Alternatively, in order to facilitate the user to observe an image that is not deformed in the display screen of the terminal while adjusting the focal distance, the folder screen terminal may be as close to the unfolded state as possible when determining the first parameter. For example, the preset adjustment interval may be determined as 180 degrees (i.e., the first display region and the second display region are on the same plane) as one end point of the interval, and 170 degrees as the other end point of the interval, i.e., the preset adjustment interval is [170 °, 180 ° ]. In this case, the user can observe the through images displayed in the first display region and the second display region simultaneously when changing the folding angle, and the situation that the through image observed by the user is deformed to be unfavorable for the user to observe the object to be photographed is avoided.
And 803, when the first angle reading alpha is within a preset regulation interval, determining the first angle reading alpha as a first parameter.
And 804, when the first angle reading is not in the preset adjusting interval, determining an endpoint angle with a smaller absolute value of a difference value between the first angle reading and the endpoint angle gamma in the left endpoint angle beta and the right endpoint angle gamma of the preset adjusting interval as a first parameter.
In the embodiment of the invention, the terminal determines the size of the first parameter according to the relation between the first angle reading alpha and the preset adjusting interval. In one scenario, the terminal directly determines the first angle reading α as the first parameter when the first angle reading α is in the preset adjustment interval. In another scenario, when the first angle reading α does not fall within the preset adjustment interval, of the left end angle β and the right end angle γ of the preset adjustment interval, an interval end angle having a smaller absolute value of the difference from the first angle reading α is taken as the first parameter. For example, the preset adjustment interval is [170 °, 180 ° ], and when the first angle reading is 175 °, the first parameter is determined to be 175 °. When the first angle reading α is 165 °, since the absolute value of the difference between 165 ° and the left end point 170 ° of the preset adjustment interval is 5, the absolute value of the difference between 180 ° and the right end point is 15. Therefore, the terminal determines the right endpoint angle 170 ° having a small difference as the first parameter.
And step 805, determining corresponding shooting parameters according to the first parameters, wherein the shooting parameters are used for indicating optical parameters of the terminal when shooting the image.
The execution process of step 805 is the same as the execution process of step 702, and please refer to step 702 for details, which is not described herein again.
In step 806, images are captured according to the capture parameters.
In one possible implementation manner of the embodiment of the present invention, the shooting parameter may be at least one of a focal length, a photosensitive value, exposure compensation, a color temperature, or a contrast. When the photographing parameter is a single parameter, the terminal adjusts the single parameter in real time as the user changes the folding angle. When the photographing parameters are two or more than two, the terminal requires the user to determine which parameter to adjust before the user changes the folding angle. Alternatively, the user may determine the photographing parameters to be adjusted by clicking a parameter icon in the touch screen, or may determine the photographing parameters to be adjusted by determining keys (e.g., physical keys in the terminal) by moving a cursor by changing a folding angle in the photographing parameter list selection interface. After the shooting parameters are determined, the terminal can shoot the image according to the shooting parameters after detecting the shooting instruction of the user. Optionally, the terminal may also record video according to the shooting instruction, and the execution manner of shooting by the relevant terminal may refer to the content in step 703, which is not described herein again.
In one manner in which the embodiment of the present invention can be implemented, a terminal that is an in-folding display screen terminal is taken as an example for description. As shown in fig. 9, it is a schematic view of the posture of the terminal provided based on the method of capturing an image shown in fig. 8. In fig. 9, an angle 931 between the first housing 91 and the second housing 92 smaller than 180 ° is referred to as a folding angle. Alternatively, in a substantially identical manner of representation, angle 932 may also be used to represent the angle between housing 91 and housing 92, wherein angle 931 and angle 932 are in a set angular relationship with respect to each other, i.e., the sum of angle 931 and angle 932 is 360 °. When the user takes an image using the terminal 900, a through image is displayed in the foldable display screen 94 of the terminal 900, wherein the foldable display screen 94 is composed of a first display area 941 and a second display area 942. The preset adjustment interval of the terminal is set to [170 °, 180 ° ], and the adjustment parameter is set to the focal length. When the user aligns the object to be photographed using the terminal to prepare for photographing, the user can adjust the folding angle by bending the first case 91 or the second case 92. The folding angle of 170 ° may correspond to the maximum focal length (also called maximum magnification) of the terminal. And adjusting the focal length of the camera by the terminal according to the folding angle in real time along with the change of the folding angle in the preset adjusting interval by the user. When the adjustable angle is smaller than 170 degrees, the terminal takes the focal length corresponding to 170 degrees as the focal length of the camera, and the focal length is not changed any more. After the user finishes adjusting the focal length, other shooting parameters can be adjusted, and after all shooting parameters are adjusted, the terminal can shoot images under the shooting instruction of the user.
Optionally, in another implementable application scenario provided in the embodiment of the present invention, when the folding angle of the terminal is no longer changed, the terminal may adjust the corresponding shooting parameter within a specified range through a preset intelligent adjustment function. For example, when the shooting parameter is a focal length, the terminal may perform automatic zooming within a specified range [ k-a, k + a ] according to the target object selected by the user after the folding angle is not changed any more, where k is the focal length corresponding to the current folding angle, and a is an adjustment radius preset by the automatic zooming function. And the terminal adjusts the current focal length k to a focal length m which enables the target object to be imaged most clearly, wherein m belongs to a specified range [ k-a, k + a ].
In summary, the method for capturing an image provided by the embodiment of the present invention is applied to a terminal with a foldable display screen, an angle between a first housing and a second housing of the terminal is a folding angle, the first housing and the second housing are connected by a connection assembly, and an angle sensor is disposed in the connection assembly. The terminal detects whether the first angle reading alpha is in a preset adjusting interval or not by acquiring the first angle reading alpha in the angle sensor, and when the first angle reading alpha is in the preset adjusting interval, the terminal determines the first angle reading alpha as a first parameter; when the first angle reading alpha is not within the preset adjusting interval any more, the terminal determines an end point angle with a smaller absolute value of a difference value with the first angle reading alpha in a left end point angle beta and a right end point angle gamma of the preset adjusting interval as a first parameter, and then images are shot according to the shooting parameters. According to the embodiment of the invention, the shooting parameters of the terminal are adjusted through the change of the folding angle between the first shell and the second shell, so that the folding angle of the terminal and the shooting parameters form a corresponding relation, a user does not need to switch between a shooting parameter adjusting interface and the current framing image, the user does not need to touch a display screen while adjusting the shooting parameters, the user can observe a complete framing image while adjusting the shooting parameters, and the adjusting efficiency of the shooting parameters and the efficiency of the shooting image are improved.
In addition, according to the method provided by the embodiment of the invention, the terminal determines the first parameter according to the folding angle between the first shell and the second shell, and the first parameter corresponds to the shooting parameter. The user can visually feel the adjustment quantity of the shooting parameters through the folding angle, so that the shooting parameters can be adjusted more visually.
Further, in the embodiment of the present invention, the first parameter may also be an angle change value, the angle change value is an angle between the first housing and the second housing, and the angle change value is used to indicate an angle change value generated by the folding angle. Alternatively, the angle change value may be an angle change value generated by the folding angle within the target time period. The first shell and the second shell of the terminal are connected through a connecting assembly, and an angle sensor can be placed in the connecting assembly and used for measuring an angle change value.
Referring to fig. 10, a flowchart of a method for capturing an image according to an exemplary embodiment of the present invention is shown, where the method can be applied to both an outer folding screen terminal as shown in fig. 3, 4 or 6 and an inner folding screen terminal as shown in fig. 5. For the convenience of understanding, the present embodiment is described by taking an example of application to an inner folding display screen. As shown in fig. 10, the method of capturing an image may include:
at step 1010, a first angle reading of an angle sensor at a start time of a target time period is obtained.
At step 1020, a second angle reading of the angle sensor at the end of the target time period is obtained.
At step 1030, a first parameter is determined based on an angular change in the second angular reading relative to the first angular reading.
In an embodiment of the present invention, the first housing and the second housing of the terminal are connected by a connection assembly, and the terminal may be provided with a sensor in the connection assembly. The sensor is used for measuring the angle value of the folding angle of the first shell relative to the second shell. The sensor can be a piezoelectric film, and when the folding angle is different, the piezoelectric film generates pressure values with different sizes due to the extrusion of a rigid component in the connecting component. Thus, the terminal can acquire a first angle reading of the angle sensor at a start time of the target time period and a second angle reading at an end time of the target time period. Alternatively, the target time period may be a unit time preset by the system, and the terminal determines a first angle reading and a corresponding second angle reading in one unit time, and determines the first parameter according to a difference between the first angle reading and the corresponding second angle reading. For example, the unit time is 1 second, and when the time period of 1 second starts, the terminal acquires that the first angle reading is 170 °; the second angle reading acquired at the end of the 1 second long period is 171 °, the angle change value is 1 °. Alternatively, the terminal may take 1 ° as the first parameter. In order to ensure that the terminal can acquire the angle change value in real time, the terminal may periodically perform steps 1010 to 1030 with a unit time as a period.
In another implementation manner of the embodiment of the present invention, please refer to fig. 11, which is a flowchart for determining the first parameter according to the embodiment shown in fig. 10. In fig. 11, the terminal may implement step 1030 by performing steps 1031 to 1034, and a specific execution flow is as follows.
And step 1031, acquiring the duration of the target time period.
And 1032, determining a first angular speed according to the duration and the angle change value of the target time period.
And 1033, determining a first adjusting coefficient according to the preset corresponding relation.
The first adjusting coefficient is an adjusting coefficient corresponding to the first angular velocity, and the adjusting coefficient is used for indicating the parameter variation of the shooting parameter corresponding to the unit angle variation value. The terminal determines a first angular speed by acquiring the duration and the angle change value of the target time period, and determines a first adjusting coefficient according to a preset corresponding relation.
Optionally, in a possible implementation manner of this step, the speed of the bending angular speed of the first housing relative to the second housing affects the value of the first parameter, and when the bending angular speed is higher, the variation range of the first parameter is larger; the first parameter varies less when the angular velocity of the fold is slower. Specifically, the terminal may obtain N angular velocity intervals, and the N angular velocity intervals are connected end to end. In addition, in the case where the angular change value of the first casing with respect to the second casing is fixed, the greater the angular velocity is, the greater the amount of change in the first parameter is. The terminal may determine an angular velocity interval to which the first angular velocity belongs from the N angular velocity intervals, and determine an adjustment coefficient corresponding to the angular velocity interval to which the first angular velocity belongs as a first adjustment coefficient, where the angular velocity interval is in positive correlation with the adjustment coefficient.
Optionally, for a first angular velocity interval and a second angular velocity interval of the N angular velocity intervals, if any angular velocity belonging to the first angular velocity interval is greater than any angular velocity belonging to the second angular velocity interval, an adjustment coefficient corresponding to the first angular velocity interval is greater than an adjustment coefficient corresponding to the second angular velocity interval.
Optionally, the N angular velocity intervals are end-to-end, meaning that the N angular velocity intervals are sequentially end-to-end to form a large interval. And for any angular velocity belonging to the large interval, there is and only one angular velocity interval corresponding to it.
For example, when the user bends the folding screen of the terminal at a faster angular velocity, it indicates that the user may consider that the difference between the current shooting parameters and the shooting parameters desired by the user is large. Therefore, the terminal provides the first angle with the larger numerical value according to the first angular speed with the larger numerical value, so that the terminal can provide the first parameter with the larger numerical value under the condition of the appointed angle change value, and the terminal can generate the larger shooting parameter adjustment amount. On the contrary, when the first angular velocity is slower, it indicates that the user may think that the difference between the current shooting parameter and the shooting parameter that the user wants to obtain is smaller, and the speed of bending the folding screen needs to be slowed down, so the terminal will provide a smaller adjustment coefficient at this time, so that the user obtains a smaller shooting parameter change amount under the same angular change value. Illustratively, taking table one as an example, a preset corresponding relationship between the angular velocity and the adjustment coefficient is introduced.
Watch 1
Angular velocity (rad/s) [0,0.02) [0.02,0.04) [0.04,+∞)
Coefficient of regulation 0.5 1 1.5
According to the preset correspondence provided in table one, when the angular velocity of the terminal generated by its folding screen within the target time period belongs to the interval [0,0.02), the terminal obtains an adjustment coefficient of 0.5, which indicates that when the angular variation value between the first housing and the second housing is 1 °, the terminal determines the first parameter as 0.5 ° according to the adjustment coefficient of 0.5. It can be seen that, under the same size of the angle change value, the faster the user bends the folding screen, the larger the value of the obtained first parameter is.
Step 1034, determining a first parameter according to the angle variation value and the first adjustment coefficient.
In the method provided by the embodiment of the invention, the terminal can determine the first parameter through the first adjustment coefficient according to the angle change value. For example, when the first adjustment coefficient is 0.5 and the angle change value is 3 °, the first parameter is 1.5 °. When the first adjustment coefficient is 1.5 and the angle change value is 3 °, the first parameter is 4.5 °. Intuitively, the faster the folding screen of the terminal is bent, the larger the value of the first parameter corresponding to the same angle change value.
Optionally, in another possible implementation manner of this step, the terminal may continuously obtain the first angle change value and the second angle change value, where the first angle change value and the second angle change value are two angle change values continuously obtained by the terminal, that is, the terminal obtains two angle change values continuously over two periods of time. When the signs of the positive and negative numbers of the first angle change value and the second angle change value are different, the terminal determines a first parameter according to the second angle change value and a second adjusting coefficient, and the second adjusting coefficient is not larger than a first adjusting coefficient corresponding to the second angle change value.
For example, when a user adjusts photographing parameters by bending a folding screen of a terminal, the user may bend a folding angle beyond a folding angle position desired by the user. At this time, in order to obtain a better shooting effect, the user bends the folding screen in the opposite direction. If the first angle change value of the user's bending is +0.5 deg., and the second angle change value of the subsequent bending is-0.7 deg., it indicates that the user may bend the folding screen beyond the desired folding angle position. At this time, in order to enable the user to accurately adjust the shooting parameters, the terminal may determine the first parameter according to the second adjustment coefficient and the angle variation value. And the second adjusting coefficient is not larger than the first adjusting coefficient corresponding to the second angle change value. It should be noted that the second angle variation value corresponds to an angular velocity in its own target time period, the angular velocity corresponds to an angular velocity interval, and the adjustment coefficient corresponding to the angular velocity interval is the first adjustment coefficient corresponding to the second angle variation value. For example, if the first adjustment coefficient corresponding to the second angle variation value is 1, the second adjustment coefficient may be 1 or a positive number smaller than 1.
And step 1040, determining corresponding shooting parameters according to the first parameters, wherein the shooting parameters are used for indicating optical parameters of the terminal when shooting the image.
In the embodiment of the present invention, the execution process of step 1040 is the same as the execution process of step 702, and please refer to step 702 for details, which is not described herein again.
And step 1050, shooting the image according to the shooting parameters.
In the embodiment of the present invention, the execution process of step 1050 is the same as the execution process of step 703, and please refer to step 703 for details, which are not described herein again.
In summary, in the method for capturing an image according to the embodiment of the present invention, a parameter is determined by obtaining a first angle reading of an angle sensor at a starting time of a target time period and a second angle reading of the angle sensor at an ending time, a corresponding capturing parameter is determined according to the first parameter, and an object is captured according to the capturing parameter. Since the shooting parameters are optical parameters for instructing the terminal to shoot an image, and the terminal can adjust the shooting parameters according to the angle change value. Therefore, the terminal can start to adjust the shooting parameters when the current folding angle is any angle, so that the shooting parameters can be adjusted more conveniently, the adjusting efficiency of the shooting parameters is improved, and the image shooting efficiency is further improved.
In addition, the first angular speed is determined by obtaining the duration and the angle change value of the target time period, the first adjusting coefficient corresponding to the first angular speed is determined according to the preset corresponding relation, the first parameter is determined according to the angle change value and the first adjusting coefficient, and the first parameters with different sizes are generated according to the speed of the change of the angle change value. The method has the advantages that when the user adjusts the folding angle at a high angular speed, the shooting parameters can be adjusted at a coarse precision, when the folding angle is adjusted at a low angular speed, the beat shooting parameters can be adjusted at a fine precision, and the accuracy of adjustment of the shooting parameters is improved under the condition that the adjustment efficiency of high shooting parameters is guaranteed.
In addition, when the signs of the positive and negative numbers of the continuously acquired first angle change value and the second angle change value are different, the terminal determines the first parameter according to the second adjusting coefficient and the second angle change value, wherein the second adjusting coefficient is not larger than the first adjusting coefficient corresponding to the second angle change value, so that the terminal can adjust the shooting parameter to the target value in a fine-precision mode after the shooting parameter exceeds the target value, and the efficiency of adjusting the shooting parameter is improved.
The following are embodiments of the apparatus of the present invention that may be used to perform embodiments of the method of the present invention. For details which are not disclosed in the embodiments of the apparatus of the present invention, reference is made to the embodiments of the method of the present invention.
Referring to fig. 12, which is a block diagram illustrating a structure of an apparatus for capturing images according to an embodiment of the present invention, the interface display apparatus may be implemented as part or all of the external folding screen terminal shown in fig. 3, 4 or 6 or the internal folding screen terminal shown in fig. 5 by software, hardware or a combination of both. The apparatus for photographing an image may include: an acquisition module 1201, a determination module 1202, and a photographing module 1203.
An obtaining module 1201, configured to obtain a first parameter, where the first parameter includes a folding angle or an angle change value, the folding angle is an angle between the first housing and the second housing, and the angle change value is an angle change value generated by the first housing relative to the second housing within a time period;
a determining module 1202, configured to determine corresponding shooting parameters according to the first parameters, where the shooting parameters are used to indicate optical parameters of the image acquisition assembly when shooting an image;
and a shooting module 1203, configured to shoot an image according to the shooting parameters.
Optionally, in the apparatus for capturing an image according to the embodiment of the present invention, the first housing and the second housing are connected by a connection assembly, an angle sensor is disposed in the connection assembly, the first parameter is a folding angle, and the obtaining module 1201 includes: the device comprises a first obtaining submodule, a first determining submodule and a second determining submodule.
A first obtaining submodule for obtaining a first angle reading α in the angle sensor;
the first determining submodule is used for determining the first angle reading alpha as a first parameter when the first angle reading alpha is within a preset adjusting interval;
and the second determining submodule is used for determining an endpoint angle with a smaller absolute value of a difference value with the first angle reading alpha as the first parameter in the left endpoint angle beta and the right endpoint angle gamma of the preset adjusting interval when the first angle reading alpha is out of the preset adjusting interval.
Optionally, in the apparatus for capturing an image according to the embodiment of the present invention, the first housing and the second housing are connected by a connection assembly, an angle sensor is disposed in the connection assembly, the first parameter is an angle variation value, and the obtaining module 1201 includes: a second obtaining submodule, a third obtaining submodule and a third determining submodule.
The second acquisition submodule is used for acquiring a first angle reading of the angle sensor at the starting moment of the target time period;
the third acquisition submodule is used for acquiring a second angle reading of the angle sensor at the ending moment of the target time period;
a third determination submodule for determining the first parameter from an angle change value of the second angle reading relative to the first angle reading.
Optionally, the third determining submodule is configured to obtain N angular velocity intervals, where the N angular velocity intervals are end-to-end connected; determining an angular velocity interval to which the first angular velocity belongs from the N angular velocity intervals; determining an adjusting coefficient corresponding to the angular velocity interval to which the first angular velocity belongs as the first adjusting coefficient; wherein the angular velocity interval is positively correlated with the adjustment coefficient.
Optionally, the apparatus is further configured to obtain a first angle change value and a second angle change value, where the first angle change value and the second angle change value are two angle change values continuously obtained by the terminal; when the signs of the first angle change value and the second angle change value are different, the first parameter is determined according to the second angle change value and a second adjusting coefficient, and the second adjusting coefficient is not larger than a first adjusting coefficient corresponding to the second angle change value.
Optionally, in the apparatus for capturing an image, the capturing parameters include: at least one of a focal length, a photosensitive value, exposure compensation, color temperature, or contrast.
For details, reference is made to the above-described method embodiments.
Embodiments of the present invention also provide a computer readable medium, on which program instructions are stored, and the program instructions, when executed by a processor of a terminal, implement the method for capturing an image in the method embodiment as shown in fig. 7, fig. 8 or fig. 10.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (9)

1. A method of capturing an image for use in a terminal having a foldable display screen, the terminal having a first housing and a second housing, the method comprising:
acquiring a first angle change value and a second angle change value, wherein the first angle change value and the second angle change value are two angle change values continuously acquired by the terminal;
when the signs of the first angle change value and the second angle change value are different, obtaining a first parameter according to the second angle change value and a second adjustment coefficient, where the first parameter includes a folding angle or an angle change value, the folding angle is an angle between the first housing and the second housing, the angle change value is an angle change value generated by the first housing relative to the second housing within a period of time, the second adjustment coefficient is not greater than an adjustment coefficient corresponding to the second angle change value, and the adjustment coefficient is used for indicating a variation of the first parameter corresponding to a unit angle change value;
determining corresponding shooting parameters according to the first parameters, wherein the shooting parameters are used for indicating optical parameters of the terminal when the terminal shoots an image;
and shooting images according to the shooting parameters.
2. The method of claim 1, wherein the first housing and the second housing are connected by a connecting assembly, an angle sensor is disposed in the connecting assembly, the first parameter is the folding angle, and the obtaining the first parameter comprises:
obtaining a first angle reading a in the angle sensor;
when the first angle reading alpha is within a preset adjusting interval, determining the first angle reading alpha as the first parameter;
and when the first angle reading alpha is out of a preset adjusting interval, determining an endpoint angle with a smaller absolute value of a difference value with the first angle reading alpha in a left endpoint angle beta and a right endpoint angle gamma of the preset adjusting interval as the first parameter.
3. The method according to claim 1, wherein the first housing and the second housing are connected by a connection assembly, an angle sensor is disposed in the connection assembly, the first parameter is the angle variation value, and the obtaining the first parameter includes:
obtaining a first angle reading of the angle sensor at a starting time of a target time period;
obtaining a second angle reading of the angle sensor at the end of the target time period;
determining the first parameter based on an angular change value of the second angular reading relative to the first angular reading.
4. The method of claim 3, wherein determining the first parameter as a function of an angle change value of the second angle reading relative to the first angle reading comprises:
acquiring the duration of the target time period;
determining a first angular speed according to the duration of the target time period and the angle change value;
determining a first adjusting coefficient according to a preset corresponding relation, wherein the first adjusting coefficient is the adjusting coefficient corresponding to the first angular speed;
and determining the first parameter according to the angle change value and the first adjusting coefficient.
5. The method according to claim 4, wherein the determining the first adjustment coefficient according to the preset correspondence comprises:
acquiring N angular velocity intervals, wherein the N angular velocity intervals are connected end to end;
determining an angular velocity interval to which the first angular velocity belongs from the N angular velocity intervals;
determining an adjusting coefficient corresponding to the angular velocity interval to which the first angular velocity belongs as the first adjusting coefficient;
wherein the angular velocity interval is positively correlated with the adjustment coefficient.
6. The method of claim 1, wherein the shooting parameters comprise: at least one of a focal length, a photosensitive value, exposure compensation, color temperature, or contrast.
7. An apparatus for photographing an image, for use in a terminal having a foldable display screen, the terminal having a first housing and a second housing, the apparatus comprising:
an obtaining module, configured to obtain a first angle change value and a second angle change value, where the first angle change value and the second angle change value are two angle change values that are continuously obtained by the terminal, when the signs of the first angle change value and the second angle change value are different, obtaining a first parameter according to the second angle change value and a second adjusting coefficient, wherein the first parameter comprises a folding angle or an angle change value, the folding angle is an angle between the first casing and the second casing, the angle change value is an angle change value that the first casing generates with respect to the second casing over a period of time, the second adjusting coefficient is not larger than the adjusting coefficient corresponding to the second angle change value, and the adjusting coefficient is used for indicating the variation of the first parameter corresponding to the unit angle change value;
the determining module is used for determining corresponding shooting parameters according to the first parameters, and the shooting parameters are used for indicating optical parameters of the image acquisition assembly when the image is shot;
and the shooting module is used for shooting images according to the shooting parameters.
8. A terminal, characterized in that the terminal comprises: a processor, a memory coupled to the processor, and program instructions stored on the memory which, when executed by the processor, implement a method of capturing images as claimed in any one of claims 1 to 6.
9. A computer-readable medium, on which program instructions are stored, which program instructions, when executed by a processor, carry out the method of capturing images according to any one of claims 1 to 6.
CN201710999106.0A 2017-10-24 2017-10-24 Method, device and terminal for shooting image Expired - Fee Related CN107770442B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710999106.0A CN107770442B (en) 2017-10-24 2017-10-24 Method, device and terminal for shooting image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710999106.0A CN107770442B (en) 2017-10-24 2017-10-24 Method, device and terminal for shooting image

Publications (2)

Publication Number Publication Date
CN107770442A CN107770442A (en) 2018-03-06
CN107770442B true CN107770442B (en) 2020-01-14

Family

ID=61270023

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710999106.0A Expired - Fee Related CN107770442B (en) 2017-10-24 2017-10-24 Method, device and terminal for shooting image

Country Status (1)

Country Link
CN (1) CN107770442B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112689987A (en) * 2018-10-17 2021-04-20 深圳市柔宇科技股份有限公司 Foldable electronic device and input control method
CN109361794B (en) * 2018-11-19 2021-04-20 Oppo广东移动通信有限公司 Zoom control method and device of mobile terminal, storage medium and mobile terminal
CN109639971B (en) * 2018-12-17 2021-01-08 维沃移动通信有限公司 Shooting focal length adjusting method and terminal equipment
CN109451245A (en) * 2018-12-27 2019-03-08 北京微播视界科技有限公司 A kind of video capture method, apparatus, equipment and storage medium
CN109743486A (en) * 2019-01-25 2019-05-10 维沃移动通信(杭州)有限公司 A kind of mobile terminal and control method
CN110049251A (en) * 2019-05-21 2019-07-23 闻泰通讯股份有限公司 It images focus adjustment method, device, fold screen equipment and storage medium
CN110312073B (en) * 2019-06-25 2021-03-16 维沃移动通信有限公司 Shooting parameter adjusting method and mobile terminal
CN110360972B (en) * 2019-07-10 2020-12-08 Oppo广东移动通信有限公司 Calibration method and device of angle sensor, terminal and storage medium
CN110489045B (en) * 2019-07-18 2021-06-15 维沃移动通信有限公司 Object display method and terminal equipment
CN110456959B (en) * 2019-07-31 2021-04-23 维沃移动通信有限公司 Terminal control method and terminal
US11917298B2 (en) 2020-02-03 2024-02-27 Sony Semiconductor Solutions Corporation Electronic device
CN114040099B (en) * 2021-10-29 2024-03-08 维沃移动通信有限公司 Image processing method and device and electronic equipment
CN114173029B (en) * 2021-11-01 2023-09-22 维沃移动通信有限公司 Shooting method and device and electronic equipment
CN114125307B (en) * 2021-12-30 2024-02-02 维沃移动通信有限公司 Shooting method, shooting device, electronic equipment and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105242828A (en) * 2015-09-30 2016-01-13 小米科技有限责任公司 Method and apparatus for displaying control on interface of mobile terminal
CN106027862A (en) * 2016-05-23 2016-10-12 青岛海信移动通信技术股份有限公司 Focus adjustment method and device, and terminal
CN106095188A (en) * 2016-06-24 2016-11-09 联想(北京)有限公司 A kind of control method and electronic equipment
CN106130663A (en) * 2016-05-31 2016-11-16 北京小米移动软件有限公司 Adjust the method and device of antenna condition, electronic equipment
CN106231176A (en) * 2016-07-18 2016-12-14 北京小米移动软件有限公司 Zoom processing method and processing device
CN106445340A (en) * 2016-09-21 2017-02-22 青岛海信电器股份有限公司 Method and device for displaying stereoscopic image by double-screen terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4419084B2 (en) * 2005-04-15 2010-02-24 ソニー株式会社 Control device and method, program, and camera

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105242828A (en) * 2015-09-30 2016-01-13 小米科技有限责任公司 Method and apparatus for displaying control on interface of mobile terminal
CN106027862A (en) * 2016-05-23 2016-10-12 青岛海信移动通信技术股份有限公司 Focus adjustment method and device, and terminal
CN106130663A (en) * 2016-05-31 2016-11-16 北京小米移动软件有限公司 Adjust the method and device of antenna condition, electronic equipment
CN106095188A (en) * 2016-06-24 2016-11-09 联想(北京)有限公司 A kind of control method and electronic equipment
CN106231176A (en) * 2016-07-18 2016-12-14 北京小米移动软件有限公司 Zoom processing method and processing device
CN106445340A (en) * 2016-09-21 2017-02-22 青岛海信电器股份有限公司 Method and device for displaying stereoscopic image by double-screen terminal

Also Published As

Publication number Publication date
CN107770442A (en) 2018-03-06

Similar Documents

Publication Publication Date Title
CN107770442B (en) Method, device and terminal for shooting image
CN107770440B (en) Shooting interface display method and device and terminal
CN107870724B (en) Display screen unfolding method and device and terminal
CN107623793B (en) Image shooting processing method and device
CN107765952B (en) Screen capturing method and device and terminal
US11010020B2 (en) Method, apparatus and storage medium for displaying shortcut operation panel
CN109782976B (en) File processing method, device, terminal and storage medium
CN107831999B (en) Screen control method and device and terminal
CN107765775B (en) Terminal control method, device and storage medium
CN107844228B (en) Message display method and device and terminal
CN107728901B (en) Interface display method and device and terminal
CN107566579B (en) Shooting method, shooting device, shooting terminal and storage medium
KR102352681B1 (en) Method and electronic apparatus for stabilizing video
CN107765959B (en) Background application program display method and terminal
CN107807773B (en) Application body distinguishing method, device, terminal and storage medium
CN107728885B (en) Multitask control method and device, mobile terminal and storage medium
CN109683761B (en) Content collection method, device and storage medium
WO2019091411A1 (en) Image capturing method, device, terminal, and storage medium
CN107885277B (en) Method and device for adjusting angle of display screen, mobile terminal and storage medium
CN107656792B (en) User interface display method and device and terminal
CN110360972B (en) Calibration method and device of angle sensor, terminal and storage medium
US20160210726A1 (en) Method and device for adjusting page display
CN111435277B (en) Method, device, terminal and storage medium for displaying content
CN107741761B (en) Method, device, terminal and storage medium for measuring angle
KR20140067511A (en) Photographing device for displaying image and methods thereof

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200114