CN110855896A - Shooting method and device, storage medium and terminal equipment - Google Patents
Shooting method and device, storage medium and terminal equipment Download PDFInfo
- Publication number
- CN110855896A CN110855896A CN201911280934.4A CN201911280934A CN110855896A CN 110855896 A CN110855896 A CN 110855896A CN 201911280934 A CN201911280934 A CN 201911280934A CN 110855896 A CN110855896 A CN 110855896A
- Authority
- CN
- China
- Prior art keywords
- preview image
- module
- mode
- image
- switching
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/63—Control of cameras or camera modules by using electronic viewfinders
- H04N23/631—Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
- H04N23/632—Graphical 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/667—Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/67—Focus control based on electronic image sensor signals
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Studio Devices (AREA)
Abstract
The invention provides a shooting method and device, a storage medium and terminal equipment. According to the invention, the multiple-in-one camera is adopted, the output modes of the sensor in the camera are dynamically switched in the previewing process, so that a user can use different output modes under the condition of different zoom levels, the effect of simulating optical zooming is achieved, and the image effect of an image is improved.
Description
Technical Field
The invention belongs to the field of terminal camera shooting, and particularly relates to a shooting method and device, a storage medium and terminal equipment.
Background
With the development of mobile device technology, mobile devices (such as mobile phones) have become articles that users carry with them. The user uses the mobile phone to take pictures, which is a common thing, and the demand for taking pictures is increasing day by day. At present, the wide-angle lens and the telephoto lens are commonly used by mainstream mobile phone manufacturers in the market to realize optical zooming. When the camera function is turned on, the double-shot is automatically turned on. In general, a wide-angle camera is used for preview, while a telephoto camera is on standby, and a user is ready to perform a camera switching operation while zooming.
However, using this solution requires configuring the handset with a custom tele-camera, which increases the cost of the product. In addition, under normal preview, two cameras (i.e., a wide-angle camera and a telephoto camera) need to be turned on simultaneously, which results in higher power consumption.
Currently, a single camera generally adopts a digital zooming mode. Firstly, the image output by the sensor is subjected to center cutting according to the zoom factor, and then the cut part is stretched back to the size of the original output image. However, the zoom method easily causes image quality loss, and cannot meet the user's photographing requirement.
Therefore, it is desirable to provide a shooting method and device, which can improve the shooting image quality while reducing the cost and the power consumption of the mobile phone.
Disclosure of Invention
The embodiment of the invention provides a shooting method and device, a storage medium and terminal equipment. According to the invention, the multiple-in-one camera is adopted, the output modes of the sensor in the camera are dynamically switched in the previewing process, so that a user can use different output modes under the condition of different zoom levels, the effect of simulating optical zooming is achieved, and the image effect of an image is improved.
According to a first aspect of the present invention, there is provided a shooting method applied to an all-in-one camera, an output mode of the all-in-one camera including a first mode and a second mode, the method including: acquiring a first preview image of the first mode; judging whether the first preview image is zoomed or not; when the scaling of the first preview image is judged to be larger than a preset threshold value, switching to the second mode to obtain a second preview image; and after the second preview image is acquired, when the scaling of the second preview image is judged to be smaller than the preset threshold, switching to the first mode to acquire a first preview image.
Further, in the step of switching to the second mode to acquire the second preview image, the first preview image is cropped according to the zoom ratio to obtain a cropped image, and the cropped image is stretch-enlarged to obtain the second preview image.
Further, in the step of switching to the second mode to acquire the second preview image, after the first preview image is closed, the second preview image is opened.
Further, in the step of switching to the first mode to acquire the first preview image, after the second preview image is closed, the first preview image is opened.
According to a second aspect of the present invention, there is provided a photographing apparatus adapted to an all-in-one camera, an output mode of the all-in-one camera including a first mode and a second mode, the photographing apparatus comprising: the first acquisition module is used for acquiring a first preview image of the first mode; the second acquisition module is used for acquiring a second preview image of the second mode; the judging module is respectively connected with the first acquiring module and the second acquiring module and is used for judging whether the first preview image is zoomed or not; the switching module is respectively connected with the first acquiring module, the second acquiring module and the judging module, and is used for switching to the second mode to acquire the second preview image when judging that the scaling of the first preview image is greater than a preset threshold; and after the second preview image is acquired, switching to the first mode to acquire a first preview image when the scaling of the second preview image is judged to be smaller than the preset threshold.
Further, the switching module includes: the cutting module is used for cutting the first preview image according to the scaling ratio to obtain a cut image, the stretching module is used for stretching and enlarging the cut image to obtain the second preview image, and the cutting module is connected with the stretching module.
Further, the switching module further includes: the device comprises a first preview image closing module and a second preview image opening module, wherein the first preview image closing module is used for closing the first preview image, the second preview image opening module is used for opening the second preview image, and the first preview image closing module is connected with the second preview image opening module.
Further, the switching module further includes a first preview image opening module and a second preview image closing module, the second preview image closing module is configured to close the second preview image, the first preview image module is configured to open the first preview image, and the first preview image opening module is connected to the second preview image closing module.
According to a third aspect of the present invention, there is provided a storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform the above-described photographing method.
According to a fourth aspect of the present invention, the present invention provides a terminal device, comprising a processor and a memory, wherein the processor is connected with the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps in the shooting method.
According to the embodiment of the invention, the multiple-in-one camera is adopted, the output modes of the sensors in the camera are dynamically switched in the previewing process, so that a user can use different output modes under the condition of different zoom levels, the effect of simulating optical zooming is achieved, and the image effect of an image is improved.
Drawings
The technical solution and the advantages of the present invention will be apparent from the following detailed description of the embodiments of the present invention with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart illustrating steps of a shooting method according to an embodiment of the present invention.
Fig. 2 is a schematic structural diagram of a shooting device according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of a first structure of a switching module according to an embodiment of the present invention.
Fig. 4 is a schematic diagram of a second structure of a switching module according to an embodiment of the present invention.
Fig. 5 is a schematic diagram of a third structure of a switching module according to an embodiment of the present invention.
Fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the objects so described are interchangeable under appropriate circumstances. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions.
In particular embodiments, the drawings discussed below and the embodiments used to describe the principles of the present disclosure are by way of illustration only and should not be construed to limit the scope of the present disclosure. Those skilled in the art will understand that the principles of the present invention may be implemented in any suitably arranged system. Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. Further, a terminal according to an exemplary embodiment will be described in detail with reference to the accompanying drawings. Like reference symbols in the various drawings indicate like elements.
The terminology used in the detailed description is for the purpose of describing particular embodiments only and is not intended to be limiting of the inventive concepts. Unless the context clearly dictates otherwise, expressions used in the singular form encompass expressions in the plural form. In the present specification, it is to be understood that terms such as "comprising," "having," and "containing" are intended to specify the presence of stated features, integers, steps, acts, or combinations thereof, as taught in the present specification, and are not intended to preclude the presence or addition of one or more other features, integers, steps, acts, or combinations thereof. Like reference symbols in the various drawings indicate like elements.
As shown in fig. 1, the present invention provides a shooting method suitable for an all-in-one camera, where output modes of the all-in-one camera include a first mode and a second mode.
Wherein, the all-in-one camera can include: the M unifies the camera that has N pixel, N is for being not less than 2 integer, N is the biggest pixel number that this camera image acquisition can gather.
In an embodiment of the present invention, the all-in-one camera may be a four-in-one camera. Taking a four-in-one camera as an example, the camera may include: and photosensitive elements of N pixels are subjected to light sensing, and the pixel values generated after light sensing are N. When the small-area image is captured, the luminance values of 4 adjacent pixels are weighted to improve the image quality of the small-area image (e.g., to improve the pixel luminance or sharpness), and then the weighted luminance values are regarded as the luminance value of one pixel to be output. In this way, the output image file includes only: the pixel value is N/4 pixels, and by the design, the size of the image can be reduced, meanwhile, the brightness of a single pixel in the image is improved, and the image quality is improved. The pixels included for the four-in-one camera may be, but are not limited to, 2400 ten thousand, 4800 ten thousand, 6400 ten thousand, and so on.
The photographing method includes the following steps.
Step S10, a first preview image of the first mode is acquired.
In the embodiment of the present invention, the first mode is a four-in-one mode (Binning mode), that is, after the luminance values of 4 adjacent pixels of the image are weighted, the weighted luminance values are regarded as the luminance value output of one pixel, so as to obtain the output of 1/4 size in the original size, thereby realizing displaying a larger viewing angle range under the same size, and thus improving the quality of the image.
In the embodiment of the present invention, the first mode is a default mode, that is, when the camera function is turned on, the preview photo is obtained in the first mode. In other embodiments, however, the second mode may be set to the default mode.
In step S20, it is determined whether the first preview image is zoomed.
In the embodiment of the present invention, if the first preview image is zoomed and the zoom ratio is small, the camera sensor maintains the Binning mode (first mode) output.
Step S30, when it is determined that the scaling of the first preview image is greater than a preset threshold, switch to the second mode to obtain a second preview image.
In the embodiment of the present invention, the second mode is a center region clipping mode (Crop mode), that is, the center region of the image is clipped and output, so as to obtain an output with an original size of 1/4. The Field of View (FOV) of the original frame output by the Crop mode has a 2-fold zooming effect, and this effect does not cause image quality loss.
Specifically, when the first preview image is displayed and the first preview image is zoomed (in this case, zooming operation) until the zoom ratio reaches a preset threshold, that is, the zoom ratio is greater than or equal to a preset threshold, the mode is switched to the second mode. When the output mode of the sensor in the camera is switched, the sensor needs to be rewritten in a register of the sensor, so that the second preview image needs to be opened after the first preview image is closed. The second preview image is cropped according to the zoom ratio to obtain a cropped image, and the cropped image is stretched and enlarged to obtain a second preview image.
Step S40, after the second preview image is acquired, when it is determined that the scaling of the second preview image is smaller than the preset threshold, switching to the first mode to acquire a first preview image.
In the embodiment of the present invention, when the second preview image is displayed and the first preview image is zoomed (in this case, zoom-out operation) until the zoom ratio reaches a preset threshold, that is, the zoom ratio is less than or equal to a preset threshold, the mode is switched to the first mode. When the output mode of the sensor in the camera is switched, the sensor needs to be rewritten in a register of the sensor, so that the first preview image needs to be opened after the second preview image is closed.
When high-multiple zooming operation is required, digital zooming can be performed on the basis of Crop mode output, and the effect is better than that of digital zooming performed directly under the output of a Binning mode. Because the output sizes of the two modes are the same, the first mode and the second mode are not abnormal due to dynamic switching, and the stability of the system is ensured while the picture effect is improved.
According to the embodiment of the invention, the multiple-in-one camera is adopted, the output modes of the sensors in the shooting process are dynamically switched in the previewing process, so that a user can use different output modes under the condition of different zoom levels, the effect of simulating optical zooming is achieved, and the image effect of an image is improved.
As shown in fig. 2, an embodiment of the present invention provides a shooting device, which is suitable for an all-in-one camera, where output modes of the all-in-one camera include a first mode and a second mode.
Wherein, the all-in-one camera can include: the M unifies the camera that has N pixel, N is for being not less than 2 integer, N is the biggest pixel number that this camera image acquisition can gather.
In an embodiment of the present invention, the all-in-one camera may be a four-in-one camera. Taking a four-in-one camera as an example, the camera may include: and photosensitive elements of N pixels are subjected to light sensing, and the pixel values generated after light sensing are N. When the small-area image is captured, the luminance values of 4 adjacent pixels are weighted to improve the image quality of the small-area image (e.g., to improve the pixel luminance or sharpness), and then the weighted luminance values are regarded as the luminance value of one pixel to be output. In this way, the output image file includes only: the pixel value is N/4 pixels, and by the design, the size of the image can be reduced, meanwhile, the brightness of a single pixel in the image is improved, and the image quality is improved. The pixels included for the four-in-one camera may be, but are not limited to, 2400 ten thousand, 4800 ten thousand, 6400 ten thousand, and so on.
The first mode is a four-in-one mode (Binning mode), that is, brightness values of 4 adjacent pixels of an image are weighted and then considered as a brightness value of one pixel to be output, so that 1/4-sized output of an original size is obtained, a larger viewing angle range is displayed under the same size, and the quality of the image is improved.
The second mode is a Crop mode (Crop mode) in which the central region of the image is cropped and output, and the output size of 1/4 is the original size. The Field of View (FOV) of the original frame output by the Crop mode has a 2-fold zooming effect, and this effect does not cause image quality loss.
The photographing apparatus includes: a first obtaining module 110, a second obtaining module 120, a determining module 130, and a switching module 140.
The first obtaining module 110 is configured to obtain a first preview image in the first mode.
In the embodiment of the present invention, the first mode is a four-in-one mode (Binning mode), that is, after the luminance values of 4 adjacent pixels of the image are weighted, the weighted luminance values are regarded as the luminance value output of one pixel, so as to obtain the output of 1/4 size in the original size, thereby realizing displaying a larger viewing angle range under the same size, and thus improving the quality of the image.
The second obtaining module 120 is configured to obtain a second preview image in the second mode.
In the embodiment of the present invention, the second mode is a center region clipping mode (Crop mode), that is, the center region of the image is clipped and output, so as to obtain an output with an original size of 1/4. The Field of View (FOV) of the original frame output by the Crop mode has a 2-fold zooming effect, and this effect does not cause image quality loss.
The determining module 130 is connected to the first obtaining module 110 and the second obtaining module 120 respectively. The determining module 130 is configured to determine whether the first preview image is zoomed.
In the embodiment of the present invention, if the first preview image is zoomed and the zoom ratio is small, the sensor in the camera maintains the Binning mode (first mode) output.
The switching module 140 is respectively connected to the first obtaining module 110, the second obtaining module 120 and the determining module 130. The switching module 140 is configured to switch to the second mode to obtain the second preview image when it is determined that the scaling of the first preview image is greater than a preset threshold; and after the second preview image is acquired, switching to the first mode to acquire a first preview image when the scaling of the second preview image is judged to be smaller than the preset threshold.
In the embodiment of the present invention, when the first preview image is displayed and the first preview image is zoomed (in this case, zooming operation) until the zoom ratio reaches a preset threshold, that is, the zoom ratio is greater than or equal to a preset threshold, the mode is switched to the second mode. When the output mode of the sensor in the camera is switched, the sensor needs to be rewritten in a register of the sensor, so that the second preview image needs to be opened after the first preview image is closed. The second preview image is cropped according to the zoom ratio to obtain a cropped image, and the cropped image is stretched and enlarged to obtain a second preview image.
As shown in fig. 3, the switching module 140 includes: a cropping module 141 and a stretching module 142, the cropping module 141 is configured to crop the first preview image according to the scaling ratio to obtain a cropped image, the stretching module 142 is configured to stretch and enlarge the cropped image to obtain the second preview image, wherein the cropping module 141 is connected to the stretching module 142.
As shown in fig. 4, the switching module 140 further includes: a first preview image closing module 143 and a second preview image opening module 144, where the first preview image closing module 143 is configured to close the first preview image, and the second preview image opening module 144 is configured to open the second preview image, and the first preview image closing module 143 is connected to the second preview image opening module 144.
And when the second preview image is displayed and the first preview image is zoomed (zoom-out operation is performed at this time) until the zoom ratio reaches a preset threshold value, namely the zoom ratio is less than or equal to the preset threshold value, switching to the first mode. When the output mode of the camera sensor is switched, the data needs to be rewritten in a register of the sensor, so that the first preview image needs to be opened after the second preview image is closed.
As shown in fig. 5, the switching module 140 further includes a first preview image opening module 145 and a second preview image closing module 146, where the second preview image closing module 146 is configured to close the second preview image, the first preview image opening module 145 is configured to open the first preview image, and the first preview image opening module 145 is connected to the second preview image closing module 146.
When a user needs to perform high-multiple zooming, digital zooming can be performed on the basis of Crop mode output, and the effect is better than that of digital zooming performed directly under the output of a Binning mode. Because the output sizes of the two modes are the same, the first mode and the second mode are not abnormal due to dynamic switching, and the stability of the system is ensured while the picture effect is improved.
According to the embodiment of the invention, the multiple-in-one camera is adopted, the output modes of the sensors in the camera are dynamically switched in the previewing process, so that a user can use different output modes under the condition of different zoom levels, the effect of simulating optical zooming is achieved, and the image effect of an image is improved.
Referring to fig. 6, an embodiment of the present invention further provides a terminal device 200, where the terminal device 200 may be a mobile phone, a tablet, a computer, or other devices. As shown in fig. 6, the terminal device 200 includes a processor 201 and a memory 202. Wherein the processor 201 is connected to the memory 202.
The processor 201 is a control center of the terminal device 200, connects various parts of the entire terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running or loading an application program stored in the memory 202 and calling data stored in the memory 202, thereby performing overall monitoring of the terminal device.
In this embodiment, the terminal device 200 is provided with a plurality of memory partitions, the plurality of memory partitions includes a system partition and a target partition, the processor 201 in the terminal device 200 loads instructions corresponding to processes of one or more application programs into the memory 202 according to the following steps, and the processor 201 runs the application programs stored in the memory 202, so as to implement various functions:
acquiring a first preview image of the first mode;
judging whether the first preview image is zoomed or not;
when the scaling of the first preview image is judged to be larger than a preset threshold value, switching to the second mode to obtain a second preview image; and
after the second preview image is obtained, when the scaling of the second preview image is judged to be smaller than the preset threshold, switching to the first mode to obtain a first preview image.
Fig. 7 shows a specific block diagram of a terminal device 300 according to an embodiment of the present invention, where the terminal device 300 may be used to implement the shooting method provided in the above-described embodiment. The terminal device 300 may be a mobile phone or a tablet.
The RF circuit 310 is used for receiving and transmitting electromagnetic waves, and performing interconversion between the electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices. RF circuitry 310 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. RF circuit 310 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Mobile Communication (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., IEEE802.11a, IEEE802.11 b, IEEE802.11g and/or IEEE802.11 n), Voice over Internet Protocol (VoIP), world wide Microwave Access (Microwave for Wireless), Max-1, and other short message protocols, as well as any other suitable communication protocols, and may even include those that have not yet been developed.
The memory 320 may be used to store software programs and modules, such as program instructions/modules corresponding to the photographing method in the above-described embodiment, and the processor 380 executes various functional applications and data processing by running the software programs and modules stored in the memory 320, so as to implement a photographing function. The memory 320 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 other non-volatile solid-state memory. In some examples, memory 320 may further include memory located remotely from processor 380, which may be connected to terminal device 300 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 330 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 330 may include a touch-sensitive surface 331 as well as other input devices 332. The touch-sensitive surface 331, also referred to as a touch screen or touch pad, may collect touch operations by a user on or near the touch-sensitive surface 331 (e.g., operations by a user on or near the touch-sensitive surface 331 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 331 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 380, and can receive and execute commands sent by the processor 380. In addition, the touch-sensitive surface 331 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 330 may comprise other input devices 332 in addition to the touch sensitive surface 331. In particular, other input devices 332 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 340 may be used to display information input by or provided to the user and various graphic user interfaces of the terminal apparatus 300, which may be configured by graphics, text, icons, video, and any combination thereof. The Display unit 340 may include a Display panel 341, and optionally, the Display panel 341 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, touch-sensitive surface 331 may overlay display panel 341, and when touch-sensitive surface 331 detects a touch operation thereon or thereabout, communicate to processor 380 to determine the type of touch event, and processor 380 then provides a corresponding visual output on display panel 341 in accordance with the type of touch event. Although in FIG. 7, touch-sensitive surface 331 and display panel 341 are implemented as two separate components for input and output functions, in some embodiments, touch-sensitive surface 331 and display panel 341 may be integrated for input and output functions.
The terminal device 300 may also include at least one sensor 350, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 341 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 341 and/or the backlight when the terminal device 300 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal device 300, detailed descriptions thereof are omitted.
The terminal device 300 may assist the user in e-mail, web browsing, streaming media access, etc. through the transmission module 370 (e.g., a Wi-Fi module), which provides the user with wireless broadband internet access. Although fig. 7 shows the transmission module 370, it is understood that it does not belong to the essential constitution of the terminal device 300, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 380 is a control center of the terminal device 300, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the terminal device 300 and processes data by running or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory 320, thereby performing overall monitoring of the mobile phone. Optionally, processor 380 may include one or more processing cores; in some embodiments, processor 380 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 380.
Terminal device 300 also includes a power supply 390 (e.g., a battery) for powering the various components, which may be logically coupled to processor 380 via a power management system in some embodiments to manage charging, discharging, and power consumption management functions via the power management system. The power supply 390 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal device 300 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 this embodiment, the display unit of the terminal device is a touch screen display, the terminal device further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
acquiring a first preview image of the first mode;
judging whether the first preview image is zoomed or not;
when the scaling of the first preview image is judged to be larger than a preset threshold value, switching to the second mode to obtain a second preview image; and
after the second preview image is obtained, when the scaling of the second preview image is judged to be smaller than the preset threshold, switching to the first mode to obtain a first preview image.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the above modules may refer to the foregoing method embodiments, which are not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by instructions controlling associated hardware, and the instructions may be stored in a computer-readable storage medium and loaded and executed by a processor. To this end, embodiments of the present invention provide a storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any one of the photographing methods provided by the embodiments of the present invention.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any shooting method provided by the embodiment of the present invention, the beneficial effects that can be achieved by any shooting method provided by the embodiment of the present invention can be achieved, for details, see the foregoing embodiments, and are not described herein again. The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
According to the embodiment of the invention, the multiple-in-one camera is adopted, the output modes of the camera sensor are dynamically switched in the previewing process, so that a user can use different output modes at different zoom levels, the effect of simulating optical zooming is achieved, and the image effect of an image is improved.
The photographing method and apparatus, the storage medium, and the terminal device provided by the embodiments of the present invention are described in detail above, and a specific example is applied in the description to explain the principle and the implementation of the present invention, and the description of the embodiments above is only used to help understanding the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (10)
1. A shooting method is suitable for an all-in-one camera, and the output mode of the all-in-one camera comprises a first mode and a second mode, and the method comprises the following steps:
acquiring a first preview image of the first mode;
judging whether the first preview image is zoomed or not;
when the scaling of the first preview image is judged to be larger than a preset threshold value, switching to the second mode to obtain a second preview image; and
after the second preview image is obtained, when the scaling of the second preview image is judged to be smaller than the preset threshold, switching to the first mode to obtain a first preview image.
2. The method according to claim 1, wherein in the step of switching to the second mode to acquire the second preview image, the first preview image is cropped according to the zoom ratio to obtain a cropped image, and the cropped image is stretch-enlarged to obtain the second preview image.
3. The method according to claim 1, wherein in the step of switching to the second mode to acquire the second preview image, the second preview image is opened after the first preview image is closed.
4. The method according to claim 1, wherein in the step of switching to the first mode to acquire the first preview image, the first preview image is opened after the second preview image is closed.
5. The utility model provides a shooting device, is applicable to an all-in-one camera, the output mode of all-in-one camera includes first mode and second mode, its characterized in that, shooting device includes:
the first acquisition module is used for acquiring a first preview image of the first mode;
the second acquisition module is used for acquiring a second preview image of the second mode;
the judging module is respectively connected with the first acquiring module and the second acquiring module and is used for judging whether the first preview image is zoomed or not; and
the switching module is respectively connected with the first acquiring module, the second acquiring module and the judging module, and is used for switching to the second mode to acquire the second preview image when judging that the scaling of the first preview image is greater than a preset threshold; and after the second preview image is acquired, switching to the first mode to acquire a first preview image when the scaling of the second preview image is judged to be smaller than the preset threshold.
6. The apparatus of claim 5, wherein the switching module comprises: the cutting module is used for cutting the first preview image according to the scaling ratio to obtain a cut image, the stretching module is used for stretching and enlarging the cut image to obtain the second preview image, and the cutting module is connected with the stretching module.
7. The apparatus of claim 5, wherein the switching module further comprises: the device comprises a first preview image closing module and a second preview image opening module, wherein the first preview image closing module is used for closing the first preview image, the second preview image opening module is used for opening the second preview image, and the first preview image closing module is connected with the second preview image opening module.
8. The apparatus of claim 5, wherein the switching module further comprises a first preview image opening module and a second preview image closing module, the second preview image closing module is configured to close the second preview image, the first preview image opening module is configured to open the first preview image, and the first preview image opening module is connected to the second preview image closing module.
9. A storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform the photographing method according to any one of claims 1 to 4.
10. A terminal device, comprising a processor and a memory, wherein the processor is electrically connected to the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps in the shooting method according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911280934.4A CN110855896A (en) | 2019-12-13 | 2019-12-13 | Shooting method and device, storage medium and terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911280934.4A CN110855896A (en) | 2019-12-13 | 2019-12-13 | Shooting method and device, storage medium and terminal equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110855896A true CN110855896A (en) | 2020-02-28 |
Family
ID=69609016
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911280934.4A Pending CN110855896A (en) | 2019-12-13 | 2019-12-13 | Shooting method and device, storage medium and terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110855896A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113347334A (en) * | 2021-05-31 | 2021-09-03 | 惠州Tcl移动通信有限公司 | Nondestructive photographing method and device for mobile terminal, terminal equipment and storage medium |
WO2023016232A1 (en) * | 2021-08-12 | 2023-02-16 | 荣耀终端有限公司 | Image photographing method, and device, storage medium and program product |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130201383A1 (en) * | 2010-10-20 | 2013-08-08 | Canon Kabushiki Kaisha | Image sensor and image capturing apparatus |
CN106657780A (en) * | 2016-12-16 | 2017-05-10 | 北京小米移动软件有限公司 | Image previewing method and device |
CN106791378A (en) * | 2016-11-29 | 2017-05-31 | 广东欧珀移动通信有限公司 | Control method, control device and electronic installation |
CN109089036A (en) * | 2018-07-09 | 2018-12-25 | 奇酷互联网络科技(深圳)有限公司 | Zoom processing method, device, readable storage medium storing program for executing and mobile terminal |
-
2019
- 2019-12-13 CN CN201911280934.4A patent/CN110855896A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130201383A1 (en) * | 2010-10-20 | 2013-08-08 | Canon Kabushiki Kaisha | Image sensor and image capturing apparatus |
CN106791378A (en) * | 2016-11-29 | 2017-05-31 | 广东欧珀移动通信有限公司 | Control method, control device and electronic installation |
CN106657780A (en) * | 2016-12-16 | 2017-05-10 | 北京小米移动软件有限公司 | Image previewing method and device |
CN109089036A (en) * | 2018-07-09 | 2018-12-25 | 奇酷互联网络科技(深圳)有限公司 | Zoom processing method, device, readable storage medium storing program for executing and mobile terminal |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113347334A (en) * | 2021-05-31 | 2021-09-03 | 惠州Tcl移动通信有限公司 | Nondestructive photographing method and device for mobile terminal, terminal equipment and storage medium |
CN113347334B (en) * | 2021-05-31 | 2022-08-05 | 惠州Tcl移动通信有限公司 | Nondestructive photographing method and device for mobile terminal, terminal equipment and storage medium |
WO2022252814A1 (en) * | 2021-05-31 | 2022-12-08 | 惠州Tcl移动通信有限公司 | Lossless photographing method and apparatus for mobile terminal, terminal device and storage medium |
WO2023016232A1 (en) * | 2021-08-12 | 2023-02-16 | 荣耀终端有限公司 | Image photographing method, and device, storage medium and program product |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108513070B (en) | Image processing method, mobile terminal and computer readable storage medium | |
CN107093418B (en) | Screen display method, computer equipment and storage medium | |
CN108234875B (en) | Shooting display method and device, mobile terminal and storage medium | |
CN108449641B (en) | Method, device, computer equipment and storage medium for playing media stream | |
CN112308806B (en) | Image processing method, device, electronic equipment and readable storage medium | |
WO2019129020A1 (en) | Automatic focusing method of camera, storage device and mobile terminal | |
US11843715B2 (en) | Photographing method and terminal | |
WO2018228241A1 (en) | Image selection method and related product | |
CN111176602B (en) | Picture display method and device, storage medium and intelligent device | |
US11050942B2 (en) | Screen fill light photographing method for mobile terminal, system and mobile terminal | |
CN111182236A (en) | Image synthesis method and device, storage medium and terminal equipment | |
CN110769156A (en) | Picture display method and electronic equipment | |
WO2021120383A1 (en) | Screen color temperature control method and apparatus, storage medium, and mobile terminal | |
CN107256142B (en) | Page display method and terminal | |
CN110855896A (en) | Shooting method and device, storage medium and terminal equipment | |
CN109561255B (en) | Terminal photographing method and device and storage medium | |
WO2021104162A1 (en) | Display method and electronic device | |
CN111556248B (en) | Shooting method, shooting device, storage medium and mobile terminal | |
CN111275607B (en) | Interface display method and device, computer equipment and storage medium | |
CN106454083B (en) | Image acquisition method and device of mobile terminal and mobile terminal | |
CN111343335B (en) | Image display processing method, system, storage medium and mobile terminal | |
CN112732011A (en) | Display method and terminal equipment | |
CN111064886B (en) | Shooting method of terminal equipment, terminal equipment and storage medium | |
US11108950B2 (en) | Method for generating blurred photograph, and storage device and mobile terminal | |
CN111787228A (en) | Shooting method, shooting 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200228 |