Shooting preview method under zooming, terminal, storage medium and electronic equipment

文档序号:142374 发布日期:2021-10-22 浏览:17次 中文

阅读说明:本技术 变焦下的拍摄预览方法、终端、存储介质及电子设备 (Shooting preview method under zooming, terminal, storage medium and electronic equipment ) 是由 王强 吕兴东 尹彦卿 仝思宇 于 2020-04-15 设计创作,主要内容包括:本发明实施例提供了一种变焦下的拍摄预览方法、终端、存储介质及电子设备,拍摄预览方法包括:根据用户对获取的第一原始预览图像的变焦操作,对第一原始预览图像进行变焦处理,得到第一变焦预览图像,显示第一变焦预览图像;确定第一变焦预览图像在第一原始预览图像的位置;对第一原始预览图像进行压缩处理,得到第一导航预览图像,将第一导航预览图像显示到导航预览窗口中,其中,第一导航预览图像对第一原始预览图像的位置进行了标记。上述方法可以方便用户查看变焦下变焦预览图像的位置,提升用户变焦拍摄下景物选取和追踪,从而提高用户使用体验。(The embodiment of the invention provides a shooting preview method under zooming, a terminal, a storage medium and electronic equipment, wherein the shooting preview method comprises the following steps: zooming the first original preview image according to the zooming operation of the user on the acquired first original preview image to obtain a first zooming preview image, and displaying the first zooming preview image; determining a position of the first zoom preview image in the first original preview image; and compressing the first original preview image to obtain a first navigation preview image, and displaying the first navigation preview image into a navigation preview window, wherein the first navigation preview image marks the position of the first original preview image. The method can facilitate the user to check the position of the zoom preview image under zooming, and improve the scene selection and tracking under zooming shooting of the user, thereby improving the user experience.)

1. A shooting preview method under zooming is applied to electronic equipment, and is characterized by comprising the following steps:

zooming the first original preview image according to the zooming operation of the user on the acquired first original preview image to obtain a first zoom preview image, and displaying the first zoom preview image;

determining a position of the first zoomed preview image in the first original preview image;

and compressing the first original preview image to obtain a first navigation preview image, and displaying the first navigation preview image into a navigation preview window, wherein the position of the first original preview image in the first navigation preview image is marked.

2. The method of claim 1, wherein the compressing the first original preview image to obtain a first navigation preview image, and displaying the first navigation preview image in a navigation preview window comprises:

determining a region corresponding to the first zoom preview image in the first original preview image according to the position of the first zoom preview image in the first original preview image;

compressing the first original preview image to obtain a first navigation preview image;

displaying the first navigation preview image in the navigation preview window, and marking an area corresponding to the first zoom preview image in the first navigation preview image by using a positioning frame.

3. The method of claim 1, further comprising:

when the electronic equipment moves, acquiring a second original preview image and a second zoom preview image;

updating the displayed first zoom preview image to the second zoom preview image;

determining pixel point difference between the second zoom preview image and the first zoom preview image;

if the pixel point difference is larger than a preset value, determining the position of the second zoom preview image in the second original preview image;

and compressing the second original preview image to obtain a second navigation preview image, and updating the displayed first navigation preview image into the second navigation preview image, wherein the position of the second original preview image in the second navigation preview image is marked.

4. The method of claim 3, further comprising:

if the pixel point difference is smaller than or equal to the preset value, determining that the motion type of the electronic equipment is jitter;

and maintaining the display of the first navigation preview image in the navigation preview window.

5. A terminal, comprising:

the first processing module is used for carrying out zooming processing on the first original preview image according to zooming operation of a user on the acquired first original preview image to obtain a first zooming preview image and displaying the first zooming preview image;

a first determining module for determining a position of the first zoom preview image in the first original preview image; and

and the first navigation module is used for compressing the first original preview image to obtain a first navigation preview image, and displaying the first navigation preview image into a navigation preview window, wherein the position of the first original preview image is marked in the first navigation preview image.

6. The terminal of claim 5, wherein the first navigation module comprises:

a first determining unit, configured to determine, according to a position of the first zoom preview image in the first original preview image, an area corresponding to the first zoom preview image in the first original preview image;

the first compression unit is used for compressing the first original preview image to obtain the first navigation preview image; and

and the first navigation unit is used for displaying the first navigation preview image in the navigation preview window and marking an area corresponding to the first zoom preview image in the first navigation preview image by using a positioning frame.

7. The terminal of claim 5, further comprising:

the first acquisition module is used for acquiring a second original preview image and a second zoom preview image when the electronic equipment moves;

a first updating module, configured to update the displayed first zoom preview image to the second zoom preview image;

a second determining module, configured to determine a pixel point difference between the second zoom preview image and the first zoom preview image;

a third determining module, configured to determine a position of the second zoom preview image in the second original preview image if the difference between the pixel points is greater than a preset value; and

and the second navigation module is used for compressing the second original preview image to obtain a second navigation preview image, and updating the displayed first navigation preview image into the second navigation preview image, wherein the position of the second original preview image is marked in the second navigation preview image.

8. The terminal of claim 7, further comprising:

a fourth determining module, configured to determine that the motion type of the electronic device is shaking if the difference between the pixel points is smaller than or equal to the preset value; and

and the first maintaining module is used for maintaining the display of the first navigation preview image on the navigation preview window.

9. A storage medium comprising a stored program, wherein the program, when executed, controls an apparatus in which the storage medium is located to perform the method of any of claims 1 to 4.

10. An electronic device comprising a memory for storing information including program instructions and a processor for controlling execution of the program instructions, characterized in that: the program instructions, when loaded and executed by a processor, implement the method of any one of claims 1 to 4.

Technical Field

The present invention relates to the field of communications technologies, and in particular, to a method, a terminal, a storage medium, and an electronic device for previewing a shot by zooming.

Background

Camera is an important function in use of electronic devices (e.g., mobile phones), and with the continuous improvement of Camera technologies, a plurality of photographing experience functions are designed in the electronic devices, wherein photographing in different zoom modes is one of the functions, and a scene can be magnified to different times for photographing.

With the improvement of the specification of the optical device, the zoom multiple is gradually increased, and the mobile phone in the current market has zoom shooting of 50 times. When shooting is carried out in the zoom mode, the shooting operation mode and the user interface still use the functions of common shooting, after the zoom mode is entered, the preview picture is enlarged, so that when a user selects to shoot a scene, the shooting field of view is difficult to select the scene, and the actual shooting experience of the user is poor.

Disclosure of Invention

The embodiment of the application provides a shooting preview method under zooming, a terminal, a storage medium and electronic equipment, which can enable a user to check the position of a zooming preview image under zooming, improve the scene selection and tracking of the user under zooming shooting, and further improve the user experience.

In a first aspect, an embodiment of the present application provides a shooting preview method under zooming, which is applied to an electronic device, and includes:

zooming the first original preview image according to the zooming operation of the user on the acquired first original preview image to obtain a first zoom preview image, and displaying the first zoom preview image;

determining a position of the first zoomed preview image in the first original preview image;

and compressing the first original preview image to obtain a first navigation preview image, and displaying the first navigation preview image into a navigation preview window, wherein the position of the first original preview image in the first navigation preview image is marked.

With reference to the first aspect, in an optional implementation manner, the compressing the first original preview image to obtain a first navigation preview image, and displaying the first navigation preview image in a navigation preview window includes:

determining a region corresponding to the first zoom preview image in the first original preview image according to the position of the first zoom preview image in the first original preview image;

compressing the first original preview image to obtain a first navigation preview image;

displaying the first navigation preview image in the navigation preview window, and marking an area corresponding to the first zoom preview image in the first navigation preview image by using a positioning frame.

With reference to the first aspect, in an optional implementation, the method further includes:

when the electronic equipment moves, acquiring a second original preview image and a second zoom preview image;

updating the displayed first zoom preview image to the second zoom preview image;

determining pixel point difference between the second zoom preview image and the first zoom preview image;

if the pixel point difference is larger than a preset value, determining the position of the second zoom preview image in the second original preview image;

and compressing the second original preview image to obtain a second navigation preview image, and updating the displayed first navigation preview image into the second navigation preview image, wherein the position of the second original preview image in the second navigation preview image is marked.

With reference to the first aspect, in an optional implementation, the method further includes:

if the pixel point difference is smaller than or equal to the preset value, determining that the motion type of the electronic equipment is jitter;

and maintaining the display of the first navigation preview image in the navigation preview window.

In a second aspect, an embodiment of the present application provides a terminal, including:

the first processing module is used for carrying out zooming processing on the first original preview image according to zooming operation of a user on the acquired first original preview image to obtain a first zooming preview image and displaying the first zooming preview image;

a first determining module for determining a position of the first zoom preview image in the first original preview image; and

and the first navigation module is used for compressing the first original preview image to obtain a first navigation preview image, and displaying the first navigation preview image into a navigation preview window, wherein the position of the first original preview image is marked in the first navigation preview image.

With reference to the second aspect, in an optional implementation manner, the first navigation module includes:

a first determining unit, configured to determine, according to a position of the first zoom preview image in the first original preview image, an area corresponding to the first zoom preview image in the first original preview image;

the first compression unit is used for compressing the first original preview image to obtain the first navigation preview image; and

and the first navigation unit is used for displaying the first navigation preview image in the navigation preview window and marking an area corresponding to the first zoom preview image in the first navigation preview image by using a positioning frame.

With reference to the second aspect, in an optional implementation manner, the terminal further includes:

the first acquisition module is used for acquiring a second original preview image and a second zoom preview image when the electronic equipment moves;

a first updating module, configured to update the displayed first zoom preview image to the second zoom preview image;

a second determining module, configured to determine a pixel point difference between the second zoom preview image and the first zoom preview image;

a third determining module, configured to determine a position of the second zoom preview image in the second original preview image if the difference between the pixel points is greater than a preset value; and

and the second navigation module is used for compressing the second original preview image to obtain a second navigation preview image, and updating the displayed first navigation preview image into the second navigation preview image, wherein the position of the second original preview image is marked in the second navigation preview image.

With reference to the second aspect, in an optional implementation manner, the terminal further includes:

a fourth determining module, configured to determine that the motion type of the electronic device is shaking if the difference between the pixel points is smaller than or equal to the preset value; and

and the first maintaining module is used for maintaining the display of the first navigation preview image on the navigation preview window.

In a third aspect, an embodiment of the present application provides an electronic device, where the electronic device includes a memory, a processor, a touch sensor, and a display screen, where the memory stores a computer program therein, and the processor is connected to the memory, and executes the computer program to implement the method in the first aspect or any possible implementation manner of the first aspect.

In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which includes computer instructions that, when executed on an electronic device, cause the electronic device to perform the instructions of the first aspect or the method in any possible implementation manner of the first aspect.

The shooting preview method under zooming is suitable for scenes such as shooting and video recording, and by adding the navigation preview window on the preview picture, the navigation preview window displays the first contracted original preview image and marks the area where the first zooming preview image is located in the first contracted original preview image, so that the position of an expected shooting object can be conveniently positioned, the selection and tracking of scenes shot under zooming of a user are improved, and the use experience of the user is improved.

Drawings

Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;

fig. 2 is a block diagram of a software structure of an electronic device according to an embodiment of the present disclosure;

fig. 3 is a flowchart of a shooting preview method under zooming according to an embodiment of the present application;

fig. 4 is an interface diagram of a mobile phone in a shooting mode according to an embodiment of the present disclosure;

fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present application.

Detailed Description

For better understanding of the technical solutions of the present invention, the following detailed descriptions of the embodiments of the present application are provided with reference to the accompanying drawings.

It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

In the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone, wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or multiple.

Fig. 1 shows a schematic structural diagram of an electronic device 100.

The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identification Module (SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.

It is to be understood that the illustrated structure of the embodiment of the present invention does not specifically limit the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processing (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural Network Processor (NPU), among others. The different processing units may be separate devices or may be integrated into one or more processors.

The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.

A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.

In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.

The I2C interface is a bi-directional synchronous serial bus that includes a serial data line (SDA) and a Serial Clock Line (SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces, respectively. For example: the processor 110 may be coupled to the touch sensor 180K via an I2C interface, such that the processor 110 and the touch sensor 180K communicate via an I2C bus interface to implement the touch functionality of the electronic device 100.

The I2S interface may be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may communicate audio signals to the wireless communication module 160 via the I2S interface, enabling answering of calls via a bluetooth headset.

The PCM interface may also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled by a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to implement a function of answering a call through a bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.

The UART interface is a universal serial data bus used for asynchronous communications. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit the audio signal to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a bluetooth headset.

MIPI interfaces may be used to connect processor 110 with peripheral devices such as display screen 194, camera 193, and the like. The MIPI interface includes a Camera Serial Interface (CSI), a Display Serial Interface (DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the capture functionality of electronic device 100. The processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the electronic device 100.

The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal and may also be configured as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, and the like.

The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transmit data between the electronic device 100 and a peripheral device. And the earphone can also be used for connecting an earphone and playing audio through the earphone. The interface may also be used to connect other electronic devices, such as AR devices and the like.

It should be understood that the connection relationship between the modules according to the embodiment of the present invention is only illustrative, and is not limited to the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.

The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.

The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be disposed in the same device.

The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.

The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.

The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.

The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional modules, independent of the processor 110.

The wireless communication module 160 may provide a solution for wireless communication applied to the electronic device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.

In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150 and antenna 2 is coupled to wireless communication module 160 so that electronic device 100 can communicate with networks and other devices through wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), General Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), Wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), Long Term Evolution (LTE), LTE, BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).

The electronic device 100 implements display functions via the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.

The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, with N being a positive integer greater than 1.

The electronic device 100 may implement a shooting function through the ISP, the camera 193, the video codec, the GPU, the display 194, the application processor, and the like.

The ISP is used to process the data fed back by the camera 193. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in camera 193.

The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, the electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.

The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy.

Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.

The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. Applications such as intelligent recognition of the electronic device 100 can be realized through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, and the like.

The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.

The internal memory 121 may be used to store computer-executable program code, which includes instructions. The internal memory 121 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (such as audio data, phone book, etc.) created during use of the electronic device 100, and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.

The electronic device 100 may implement audio functions via the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playing, recording, etc.

The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.

The speaker 170A, also called a "horn", is used to convert the audio electrical signal into an acoustic signal. The electronic apparatus 100 can listen to music through the speaker 170A or listen to a handsfree call.

The receiver 170B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the electronic apparatus 100 receives a call or voice information, it can receive voice by placing the receiver 170B close to the ear of the person.

The microphone 170C, also referred to as a "microphone," is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can input a voice signal to the microphone 170C by speaking the user's mouth near the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C to achieve a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further include three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, perform directional recording, and so on.

The headphone interface 170D is used to connect a wired headphone. The headset interface 170D may be the USB interface 130, or may be a 3.5mm open mobile electronic device platform (OMTP) standard interface, a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.

The pressure sensor 180A is used for sensing a pressure signal, and converting the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A can be of a wide variety, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic apparatus 100 may also calculate the touched position from the detection signal of the pressure sensor 180A. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions. For example: and when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.

The gyro sensor 180B may be used to determine the motion attitude of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., the x, y, and z axes) may be determined by gyroscope sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects a shake angle of the electronic device 100, calculates a distance to be compensated for by the lens module according to the shake angle, and allows the lens to counteract the shake of the electronic device 100 through a reverse movement, thereby achieving anti-shake. The gyroscope sensor 180B may also be used for navigation, somatosensory gaming scenes.

The air pressure sensor 180C is used to measure air pressure. In some embodiments, electronic device 100 calculates altitude, aiding in positioning and navigation, from barometric pressure values measured by barometric pressure sensor 180C.

The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip holster using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. And then according to the opening and closing state of the leather sheath or the opening and closing state of the flip cover, the automatic unlocking of the flip cover is set.

The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity can be detected when the electronic device 100 is stationary. The method can also be used for recognizing the posture of the electronic equipment 100, and is applied to horizontal and vertical screen switching, pedometers and other applications.

A distance sensor 180F for measuring a distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, taking a picture of a scene, electronic device 100 may utilize range sensor 180F to range for fast focus.

The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light to the outside through the light emitting diode. The electronic device 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 may determine that there are no objects near the electronic device 100. The electronic device 100 can utilize the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear for talking, so as to automatically turn off the screen to achieve the purpose of saving power. The proximity light sensor 180G may also be used in a holster mode, a pocket mode automatically unlocks and locks the screen.

The ambient light sensor 180L is used to sense the ambient light level. Electronic device 100 may adaptively adjust the brightness of display screen 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.

The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 can utilize the collected fingerprint characteristics to unlock the fingerprint, access the application lock, photograph the fingerprint, answer an incoming call with the fingerprint, and so on.

The temperature sensor 180J is used to detect temperature. In some embodiments, electronic device 100 implements a temperature processing strategy using the temperature detected by temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 performs a reduction in performance of a processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, the electronic device 100 heats the battery 142 when the temperature is below another threshold to avoid the low temperature causing the electronic device 100 to shut down abnormally. In other embodiments, when the temperature is lower than a further threshold, the electronic device 100 performs boosting on the output voltage of the battery 142 to avoid abnormal shutdown due to low temperature.

The touch sensor 180K is also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 194. In other embodiments, the touch sensor 180K may be disposed on a surface of the electronic device 100, different from the position of the display screen 194.

The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, the bone conduction sensor 180M may acquire a vibration signal of the human vocal part vibrating the bone mass. The bone conduction sensor 180M may also contact the human pulse to receive the blood pressure pulsation signal. In some embodiments, the bone conduction sensor 180M may also be disposed in a headset, integrated into a bone conduction headset. The audio module 170 may analyze a voice signal based on the vibration signal of the bone mass vibrated by the sound part acquired by the bone conduction sensor 180M, so as to implement a voice function. The application processor can analyze heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, so as to realize the heart rate detection function.

The keys 190 include a power-on key, a volume key, and the like. The keys 190 may be mechanical keys. Or may be touch keys. The electronic apparatus 100 may receive a key input, and generate a key signal input related to user setting and function control of the electronic apparatus 100.

The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration cues, as well as for touch vibration feedback. For example, touch operations applied to different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also respond to different vibration feedback effects for touch operations applied to different areas of the display screen 194. Different application scenes (such as time reminding, receiving information, alarm clock, game and the like) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.

Indicator 192 may be an indicator light that may be used to indicate a state of charge, a change in charge, or a message, missed call, notification, etc.

The SIM card interface 195 is used to connect a SIM card. The SIM card can be brought into and out of contact with the electronic apparatus 100 by being inserted into the SIM card interface 195 or being pulled out of the SIM card interface 195. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support a Nano SIM card, a Micro SIM card, a SIM card, etc. The same SIM card interface 195 can be inserted with multiple cards at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

The software system of the electronic device 100 may employ a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present invention uses an Android system with a layered architecture as an example to exemplarily illustrate a software structure of the electronic device 100.

Fig. 2 is a block diagram of a software configuration of the electronic apparatus 100 according to the embodiment of the present invention.

The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom.

The application layer may include a series of application packages.

As shown in fig. 2, the application package may include applications such as camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, etc.

The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.

As shown in FIG. 2, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.

The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.

The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.

The phone manager is used to provide communication functions of the electronic device 100. Such as management of call status (including on, off, etc.).

The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.

The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, sounding a prompt tone, vibrating the electronic device, flashing an indicator light, etc.

The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.

The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.

The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.

The system library may include a plurality of functional modules. For example: surface managers (surface managers), Media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), and the like.

The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.

The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, and the like.

The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.

The 2D graphics engine is a drawing engine for 2D drawing.

The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.

In the prior art, when an electronic device, such as a mobile phone, shoots in a zoom mode, a preview image may be enlarged to cause that it is difficult for a user to select a target scene when selecting a shot scene, for example, before a zoom operation is performed, an original preview image acquired by a camera includes a partial image a, a partial image B, and a partial image C, and after the user zooms and enlarges the original preview image, situations may occur: the zoom preview image displayed in the viewfinder frame of the electronic device (e.g., a mobile phone) only includes the partial image a, and at this time, the partial image B and the partial image C are not displayed due to zooming, and it can be known that it is difficult for a user to intuitively know the position of the partial image a displayed in the current viewfinder frame in the first original preview image.

Based on the above, an embodiment of the present invention provides a shooting preview method under zooming, which is applicable to scenes such as shooting and video recording, and can be executed by the electronic device 100 described above, when the electronic device 100 takes a picture or shoots, a navigation preview window is added on a preview screen displayed on a display screen, a first abbreviated original preview image is displayed through the navigation preview window, and an area where the first zoomed preview image is located in the first abbreviated original preview image is marked, so that a position where a user desires to shoot an object can be conveniently located, and thus, problems in the prior art are solved.

Fig. 3 is a flowchart of a shooting preview method under zooming according to an embodiment of the present invention;

as shown in fig. 3, a shooting preview method under zooming provided by an embodiment of the present invention is applied to an electronic device, and includes:

step S01: zooming the first original preview image according to the zooming operation of the user on the acquired first original preview image to obtain a first zooming preview image, and displaying the first zooming preview image;

step S02: determining a position of the first zoom preview image in the first original preview image;

step S03: and compressing the first original preview image to obtain a first navigation preview image, and displaying the first navigation preview image into a navigation preview window, wherein the first navigation preview image marks the position of the first original preview image.

It can be understood that the shooting preview method under zooming provided by the invention is realized by determining the position of a first zooming preview image in a first original preview image; and then, a navigation preview window is added on the preview picture, the first contracted original preview image is displayed on the navigation preview window, and the area where the first zoom preview image is located is marked in the first contracted original preview image, so that the target shot scene navigation can be provided, a user can conveniently and quickly position a shooting position in a zoom mode, and the product user experience is improved.

The electronic device may be, for example, a terminal, which may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.

The following specifically explains each step of the shooting preview method in zooming provided in the above-described embodiment by taking an electronic device as an example.

In step S01, in an actual usage scenario, a first original preview image may be acquired by a camera of the terminal, where the camera may be a front camera or a rear camera; after a camera application program is opened, a photographing preview mode is entered, a camera of the terminal acquires a first original preview image, and the first original preview image is displayed in a view-finding frame of the terminal.

It is easy to understand that as the terminal moves or the terminal angle changes, the first original preview image captured by the camera of the terminal changes, and therefore the first original preview image displayed in the view box of the terminal also changes.

The types of the first original preview image include at least: people, landscapes, animals, plants, food, etc.

The zoom operation of the user may include a click operation and a slide operation, and the click operation may include a single click operation, a double click operation, and a multi-click operation. And if the zooming operation is a sliding operation, when the user detects the sliding operation on the first original preview image displayed by the terminal, zooming the first original preview image according to the sliding operation, and stopping zooming the first original preview image after the sliding operation is finished.

The terminal can determine a zoom multiple corresponding to the zoom operation of the user according to a mapping relation between preset movement displacement information and the zoom multiple, and the terminal performs zoom processing according to the determined zoom multiple to obtain a first zoom preview image, wherein the zoom multiple is usually between 1-50 times.

The user can perform zooming processing on the first original preview image for N times, wherein N is a natural number greater than or equal to 1; after the terminal obtains the first original preview image, when the user performs the first zooming processing, the type of the first zooming processing is zooming magnification processing. If N is greater than or equal to 2, when the user performs the second or second to nth times of zoom processing, the type of the second or second to nth times of zoom processing may be both zoom-in processing and zoom-out processing. The first zoom preview image obtained after the user performs zoom processing on the first original preview image for N times may be a partially enlarged preview image of the first original preview image or a complete first original preview image.

It will be understood by those skilled in the art that the camera application may be a program carried by the mobile terminal itself, or may be a third party application, and the present invention is not limited thereto.

Fig. 4 is an interface diagram of a mobile phone in a shooting mode according to an embodiment of the present disclosure;

illustratively, in an embodiment of the present invention, the first original preview image corresponds to a bonsai, and after the user performs a zoom operation on the first original preview image, the displayed first zoom preview image may be as shown in a 1.

In step S02, the terminal determines the coordinate position of the first zoom preview image in the first original preview image by using the existing zoom algorithm.

In step S03, before the terminal compresses the first raw preview image, marking an area of the first zoom preview image in the first raw preview image, then compressing the first raw preview image to obtain a first navigation preview image, and displaying the first navigation preview image in a navigation preview window corresponding to a terminal view frame, wherein in the process of compressing the first raw preview image, the terminal tracks the area of the first zoom preview image in the first raw preview image, so that after the first raw preview image is compressed, the area corresponding to the first thumbnail zoom preview image can be marked, and wherein marking the area corresponding to the first thumbnail zoom preview image specifically may be a boundary between the area of the first thumbnail preview image and another area of the first navigation preview image except the area of the first zoom preview image after the first thumbnail image is contracted And drawing a mark box and displaying.

Illustratively, FIG. 4 shows the first navigation preview image B1 corresponding to the first zoom preview image A1 and a marker box C1 of the area of the first zoom preview image in the first navigation preview image B1.

According to the embodiment of the invention, the area of the first zoom preview image in the first original preview image is marked through the positioning frame, so that a user can conveniently check the position of the first zoom preview image under zooming, scene selection and tracking under zoom shooting of the user are improved, and the use experience of the user is improved.

In the zoom mode, the terminal displays the current first zoom preview image in a view frame of the camera application program in real time and displays the current first navigation preview image in a navigation preview window in real time.

In one or more embodiments of the invention, step S03: compressing the first original preview image to obtain a first navigation preview image, and displaying the first navigation preview image into a navigation preview window, wherein the compressing process comprises the following steps:

step S031: determining a region corresponding to the first zoom preview image in the first original preview image according to the position of the first zoom preview image in the first original preview image;

step S032: compressing the first original preview image to obtain a first navigation preview image;

step S033: and displaying the first navigation preview image in a navigation preview window, and marking an area corresponding to the first zoom preview image in the first navigation preview image by using a positioning frame.

And the image in the positioning frame is the image corresponding to the first zoom preview image.

It can be known that the terminal refreshes the first zoom preview image and the first navigation preview image in real time through the zoom preview stream and the navigation preview image stream output by the algorithm in real time and following the shooting position change.

In an optional embodiment, the shooting preview method under zooming further includes:

step S04: when the terminal moves, acquiring a second original preview image and a second zoom preview image;

step S05: updating the displayed first zoom preview image to a second zoom preview image;

step S06: determining pixel point difference between the second zooming preview image and the first zooming preview image;

step S07: if the pixel point difference is larger than the preset value, determining the position of the second zoom preview image in the second original preview image, and then executing step S08;

step S08: and compressing the second original preview image to obtain a second navigation preview image, updating the displayed first navigation preview image into the second navigation preview image, wherein the position of the second original preview image in the second navigation preview image is marked, and the process is ended.

Step S09: if the pixel point difference is smaller than or equal to the preset value, determining that the motion type of the electronic equipment is shaking, and then executing step S10;

step S10: and keeping the display of the first navigation preview image in the navigation preview window, and ending the process.

And after the second zoom preview image moves corresponding to the terminal, displaying the zoom preview image displayed under the current zoom multiple in a viewing frame of the terminal, wherein the second navigation preview image corresponds to an original preview image of the second zoom preview image before zooming.

It can be understood that in the shooting preview scene in zooming, the anti-shake compensation mechanism is added, and whether the motion type of the terminal is shaking or not is determined by calculating the pixel point difference between the second zooming preview image and the first zooming preview image.

Fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention.

The embodiment of the present application further discloses a terminal 400, where the terminal 400 may be the electronic device 100 in the foregoing, and it should be understood that the terminal 400 is capable of performing various steps in the shooting preview method under zoom, and details are not described here to avoid repetition. As shown in fig. 5, the terminal 400 includes:

a first processing module 410, configured to perform zoom processing on the first original preview image according to a zoom operation performed by a user on the acquired first original preview image, to obtain a first zoom preview image, and display the first zoom preview image;

a first determining module 420 for determining a position of the first zoom preview image in the first original preview image; and

the first navigation module 430 is configured to compress the first original preview image to obtain a first navigation preview image, and display the first navigation preview image in the navigation preview window, where a position of the first original preview image in the first navigation preview image is marked.

The shooting preview method under zooming is suitable for scenes such as shooting and video recording, and by adding the navigation preview window on the preview picture, the navigation preview window displays the first contracted original preview image and marks the area where the first zooming preview image is located in the first contracted original preview image, so that the position of an expected shooting object can be conveniently positioned, the selection and tracking of scenes shot under zooming of a user are improved, and the use experience of the user is improved.

In an alternative embodiment, the first navigation module 430 includes:

a first determining unit, configured to determine, according to a position of the first zoom preview image in the first original preview image, an area corresponding to the first zoom preview image in the first original preview image;

the first compression unit is used for compressing the first original preview image to obtain a first navigation preview image; and

and the first navigation unit is used for displaying the first navigation preview image in the navigation preview window and marking an area corresponding to the first zoom preview image in the first navigation preview image by using the positioning frame.

In an optional implementation, the terminal 400 further includes:

the first acquisition module is used for acquiring a second original preview image and a second zoom preview image when the electronic equipment moves;

a first updating module, configured to update the displayed first zoom preview image into a second zoom preview image;

the second determining module is used for determining the pixel point difference between the second zooming preview image and the first zooming preview image;

the third determining module is used for determining the position of the second zoom preview image in the second original preview image if the difference of the pixel points is larger than a preset value; and

and the second navigation module is used for compressing the second original preview image to obtain a second navigation preview image, and updating the displayed first navigation preview image into the second navigation preview image, wherein the position of the second original preview image is marked in the second navigation preview image.

In an optional implementation, the terminal 400 further includes:

the fourth determining module is used for determining the motion type of the electronic equipment as jitter if the difference of the pixel points is less than or equal to a preset value; and

and the first maintaining module is used for maintaining the display of the first navigation preview image on the navigation preview window.

It should be noted that, for parts of the embodiment of the apparatus of the present invention, reference may be made to corresponding parts of the embodiment of the method, that is, the terminal 400 provided in the embodiment may refer to corresponding contents of the shooting preview method under zooming provided in the embodiment, and in order to avoid repetition, details are not repeated here.

As shown in fig. 1, the electronic device 100 may be the terminal described above, and includes an internal memory 121 and a processor 110, where the internal memory 121 stores a computer program, the processor 110 is connected to the internal memory 121, and the processor 110 executes the computer program to implement the shooting preview method under zooming described above.

The present application further provides a computer storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the steps of the preview method for taking shots with zoom as described above.

It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the terminal, the module and the unit described above may refer to corresponding processes in the foregoing method embodiments, and are not described herein again.

The above embodiments are only specific embodiments of the present application, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present disclosure, and all the changes or substitutions should be covered by the protection scope of the present application. The protection scope of the present application shall be subject to the protection scope of the claims.

22页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:设备位姿调整方法和图像拍摄方法及电子设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类