WO2022228274A1 - 一种变焦拍摄场景下的预览图像显示方法与电子设备 - Google Patents
一种变焦拍摄场景下的预览图像显示方法与电子设备 Download PDFInfo
- Publication number
- WO2022228274A1 WO2022228274A1 PCT/CN2022/088235 CN2022088235W WO2022228274A1 WO 2022228274 A1 WO2022228274 A1 WO 2022228274A1 CN 2022088235 W CN2022088235 W CN 2022088235W WO 2022228274 A1 WO2022228274 A1 WO 2022228274A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- image
- target
- preview image
- electronic device
- displayed
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 93
- 230000015654 memory Effects 0.000 claims description 29
- 238000004590 computer program Methods 0.000 claims description 18
- 230000004044 response Effects 0.000 claims description 10
- 239000003550 marker Substances 0.000 description 31
- 238000013461 design Methods 0.000 description 22
- 238000004891 communication Methods 0.000 description 21
- 230000008569 process Effects 0.000 description 18
- 238000012545 processing Methods 0.000 description 16
- 238000010586 diagram Methods 0.000 description 13
- 230000006870 function Effects 0.000 description 12
- 241001465754 Metazoa Species 0.000 description 11
- 238000010295 mobile communication Methods 0.000 description 10
- 238000001514 detection method Methods 0.000 description 7
- 238000007726 management method Methods 0.000 description 7
- 230000011218 segmentation Effects 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 6
- 210000003811 finger Anatomy 0.000 description 6
- 210000000988 bone and bone Anatomy 0.000 description 5
- 241000282326 Felis catus Species 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 210000003813 thumb Anatomy 0.000 description 4
- 229920001621 AMOLED Polymers 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 3
- 238000003825 pressing Methods 0.000 description 3
- 238000010079 rubber tapping Methods 0.000 description 3
- 239000004065 semiconductor Substances 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000000295 complement effect Effects 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 239000002096 quantum dot Substances 0.000 description 2
- 230000005855 radiation Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 241001464837 Viridiplantae Species 0.000 description 1
- 238000013528 artificial neural network Methods 0.000 description 1
- 230000003416 augmentation Effects 0.000 description 1
- 238000010009 beating Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000000903 blocking effect Effects 0.000 description 1
- 230000036772 blood pressure Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 239000010985 leather Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000004807 localization Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000012805 post-processing Methods 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 239000004984 smart glass Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000006641 stabilisation Effects 0.000 description 1
- 238000011105 stabilization Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
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/695—Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects
-
- 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/61—Control of cameras or camera modules based on recognised objects
-
- 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
-
- 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/63—Control of cameras or camera modules by using electronic viewfinders
- H04N23/633—Control of cameras or camera modules by using electronic viewfinders for displaying additional information relating to control or operation of the camera
-
- 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/633—Control of cameras or camera modules by using electronic viewfinders for displaying additional information relating to control or operation of the camera
- H04N23/635—Region indicators; Field of view indicators
-
- 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/69—Control of means for changing angle of the field of view, e.g. optical zoom objectives or electronic zooming
Definitions
- the present application relates to the field of electronic technologies, and in particular, to a preview image display method and electronic device in a zoom shooting scene.
- Zoom photography enables electronic devices to capture distant scenes. Taking a mobile phone as an example, when the zoom ratio is increased, the object to be shot in the shooting interface is "zoomed in”. This zoom shooting provides great convenience for users who like to shoot distant scenes.
- the current zoom shooting method is to enlarge the object in the center area of the image when the zoom magnification is increased, but the object in the center area may not be the object the user wants to shoot, so the user needs to move the mobile phone, Finding the object you want to shoot is a time-consuming and laborious process, and once the mobile phone moves a little faster, it is easy to miss the target object, which is not very convenient to operate, and the experience is poor.
- the purpose of the present application is to provide a preview image display method and electronic device in a zoom shooting scene, so as to improve the shooting experience when shooting distant objects.
- a method for displaying a preview image in a zoom shooting scene is provided.
- the method can be applied to electronic devices, such as mobile phones, tablet computers, and the like.
- the method includes: starting a camera application in the electronic device, and the camera on the electronic device captures a first image; in a zoom shooting mode, identifying a target shooting object on the first image; displaying a first preview image,
- the first preview image is a preview image corresponding to at least one target shooting object on the first image.
- the displayed preview image is the preview image corresponding to the image block in the center area on the first image.
- the user moves the position of the electronic device to find the photographed object.
- the first preview image is a preview image corresponding to at least one target shooting object on the first image.
- the at least one target photographing object is a person
- the first preview image is the preview image corresponding to the person
- the at least one target photographing object is an animal
- the first preview image is the preview image corresponding to the animal. Similar to the previous zoom shooting mode, there is no need to move the position of the electronic device to find the target shooting object, and the operation is convenient.
- the size of the at least one target photographing object on the first preview image is larger than the size of the at least one target photographing object on the first image.
- the magnification of the first image captured by the camera is 1 times, and the magnification of the first preview image may be 15 times, 20 times, 25 times, etc.
- the first preview image is the magnified first image.
- the corresponding preview image, and what is enlarged is the at least one target photographing object on the first image.
- the method further includes: displaying the first preview image and also displaying a first window, where the first image and the first mark are displayed in the first window, and the first preview image is displayed in the first window.
- a marker is used to mark the at least one target photographing object on the first image. That is to say, the user can determine which target shooting object on the first image the current preview image (ie, the first preview image) corresponds to through the first mark in the first window, and the user experience is better.
- the method further includes: a second mark is also displayed in the first window, the second mark is used to mark other objects other than the at least one target photographed object on the first image
- the target photographing object, the first mark is different from the second mark. That is to say, through the first window, the user can not only determine which target shooting objects are on the first image, but also which target shooting object on the first image the current preview image (such as the first preview image) corresponds to. better.
- the first image includes a first target shooting object and a second target shooting object, and the first preview image is a preview image corresponding to the first target shooting object;
- the target shooting object is switched, a second preview image is displayed, and the second preview image is a preview image corresponding to the second target shooting object.
- the size of the second target shooting object on the second preview image is larger than the size of the second target shooting object on the first image.
- the first target photographing object is zoomed in to photograph, and the second target photographing object is enlarged and photographed through the target photographing object switching operation, and the user does not need to move the electronic device to find the target photographing object, and the operation is convenient.
- the method further includes: displaying a first window while displaying the second preview image, where the first image and the second mark are displayed in the first window, and the first window displays the first image and the second mark.
- the second mark is used to mark the second target shooting object on the first image; wherein, when the second mark is displayed in the first window, the first mark in the first window is canceled or displayed.
- the second mark is displayed differently from the first mark, and the first mark is used to mark the first target photographing object on the first image. That is to say, when the first target photographing object is originally zoomed in, a first mark is displayed in the first window to mark the first target photographing object.
- the second mark displayed in the middle is used to mark the second target shooting object, and at the same time, the first mark is canceled and displayed or the first mark and the second mark are displayed differently. In this way, it is more convenient for the user to distinguish which target shooting object on the first image corresponds to the current preview image (eg, the second preview image).
- the first image includes a first target shooting object and a second target shooting object
- the first preview image is a preview image corresponding to the first target shooting object
- a third preview image is displayed, and the third preview image is the preview image corresponding to the first target shooting object and the second target shooting object; wherein, the The sizes of the first target photographing object and the second target photographing object on the third preview image are larger than the sizes of the first target photographing object and the second target photographing object on the first image.
- the operation for increasing the number of target photographing objects in the preview image is increased to enlarge the photographing of the first target photographing object and the second target photographing object.
- the user does not need to move the electronic device to search for the first target shooting object and the second target shooting object, and the operation is convenient.
- the first image includes a first target shooting object and a second target shooting object
- the first preview image is a preview image corresponding to the first target shooting object
- the first preview image is displayed in the first area on the display screen of the electronic device
- the fourth preview image is displayed in the second area
- the fourth preview image is displayed in the second area.
- the operation for increasing the number of target shooting objects in the shooting interface is increased to zoom in and shoot the first target shooting object and the second target shooting object, and the first target shooting object and the second target subject are displayed in a split screen.
- the user does not need to move the electronic device to search for the first target shooting object and the second target shooting object, and the operation is convenient.
- the method further includes: in the case where the target shooting object on the first image is not recognized, displaying a fifth preview image, where the fifth preview image is the first image The preview image corresponding to the image block in the upper center area. That is, if the target photographing object is not identified, then zoom in to photograph the object in the central area on the first image.
- the method further includes: detecting a photographing instruction; in response to the photographing instruction, photographing to obtain the first image and a second image, where the second image is the first preview image corresponding captured image. That is to say, during zoom shooting, if the shooting button is clicked, a complete image (ie, the first image) and an enlarged image of at least one target object (ie, the second image) are captured, which is convenient for Compared with users, the experience is better.
- the at least one target photographing object may be the photographing object occupying the largest or the smallest area on the first image; alternatively, the at least one target photographing object may be an area close to the center or close to the first image in the first image
- the photographing object in the edge area alternatively, the at least one target photographing subject may be a photographing subject of interest to the user in the first image; or, the at least one target photographing subject may be a target photographing subject specified by the user.
- the method further includes: when a window hiding operation is detected, hiding the first window; when detecting a window calling operation, displaying the first window. That is to say, the first window can be called up or hidden. For example, when the user wants to check which target shooting object on the first image corresponds to the current preview image (eg, the first preview image), the first window can be called up. When the user does not want the first window to block the first preview image, the first window can be hidden.
- an electronic device comprising:
- processor memory, and, one or more programs
- the one or more programs are stored in the memory, and the one or more programs include instructions that, when executed by the processor, cause the electronic device to perform the following steps:
- a first preview image is displayed, where the first preview image is a preview image corresponding to at least one target shooting object on the first image.
- the size of the at least one target photographing object on the first preview image is larger than the size of the at least one target photographing object on the first image.
- the electronic device when the instructions are executed by the processor, the electronic device is caused to perform the following step: displaying the first preview image and also displaying a first window, the first window The first image and a first marker are displayed in the first image, and the first marker is used to mark the at least one target photographing object on the first image.
- the first image includes a first target shooting object and a second target shooting object
- the first preview image is a preview image corresponding to the first target shooting object
- a second preview image is displayed, and the second preview image is a preview image corresponding to the second target shooting object.
- the size of the second target photographing object on the second preview image is larger than the size of the second target photographing object on the first image.
- the electronic device when the instructions are executed by the processor, the electronic device is caused to perform the following steps:
- a first window is also displayed, in which the first image and a second mark are displayed, and the second mark is used to mark the first image on the first image.
- the display of the first mark in the first window is canceled, and the first mark is used to mark the first target on the first image subject.
- the first image includes a first target shooting object and a second target shooting object
- the first preview image is a preview image corresponding to the first target shooting object
- a third preview image is displayed, and the third preview image is a preview image corresponding to the first target photographing object and the second target photographing object;
- the size of the first target shooting object and the second target shooting object on the third preview image is larger than the size of the first target shooting object and the second target shooting object on the first image.
- the first image includes a first target shooting object and a second target shooting object
- the first preview image is a preview image corresponding to the first target shooting object
- the first preview image is displayed in the first area on the display screen of the electronic device, the fourth preview image is displayed in the second area, and the first preview image is displayed in the second area.
- the four preview images are the preview images corresponding to the second target shooting object;
- the size of the second target shooting object on the fourth preview image is larger than the size of the second target shooting object on the first image.
- the electronic device when the instructions are executed by the processor, the electronic device is caused to perform the following step: in the case where the target photographed object on the first image is not recognized, display a fifth A preview image, where the fifth preview image is a preview image corresponding to an image block in a central area on the first image.
- the electronic device when the instruction is executed by the processor, the electronic device is caused to perform the following steps: detecting a photographing instruction; in response to the photographing instruction, photographing to obtain the first image and the first image Two images, where the second image is a captured image corresponding to the first preview image.
- the electronic device when the instruction is executed by the processor, the electronic device is caused to perform the following steps: when a window hiding operation is detected, the first window is hidden; when a window calling-out operation is detected to display the first window.
- a computer-readable storage medium is also provided, the computer-readable storage medium is used to store a computer program, and when the computer program is run on a computer, the computer is made to execute the above-mentioned first aspect. method.
- a computer program product comprising a computer program, which, when the computer program is run on a computer, causes the computer to execute the method provided in the above-mentioned first aspect.
- a graphical user interface on an electronic device, the electronic device having a display screen, a memory, and a processor for executing one or more computer programs stored in the memory,
- the graphical user interface includes a graphical user interface displayed when the electronic device executes the method described in the first aspect.
- an embodiment of the present application further provides a chip, which is coupled to a memory in an electronic device and is used to call a computer program stored in the memory and execute the technical solution of the first aspect of the embodiment of the present application, which is implemented in the present application.
- “coupled” means that two components are directly or indirectly joined to each other.
- FIG. 1 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application
- FIG. 2 is a schematic flowchart of a method for displaying a preview image in a zoom shooting scene according to an embodiment of the present application
- 3 to 4 are schematic diagrams of a photographing interface of an electronic device according to an embodiment of the present application.
- FIG. 5 is a schematic flowchart of a subject identification algorithm provided by an embodiment of the present application.
- FIG. 6 is a schematic diagram of an electronic device prompting a user to select a target photographing object provided by an embodiment of the present application
- FIGS. 7A to 7B are schematic diagrams of matching a marker frame and a preview image according to an embodiment of the application.
- FIGS. 8 to 12 are some schematic diagrams of a photographing interface of an electronic device according to an embodiment of the application.
- FIGS. 13A to 13B are other schematic diagrams of a photographing interface of an electronic device according to an embodiment of the present application.
- FIG. 14 is another schematic diagram of a photographing interface of an electronic device provided by an embodiment of the application.
- 15 is another schematic flowchart of a method for displaying a preview image in a zoom shooting scene according to an embodiment of the present application
- 16 is a schematic diagram of a zoom shooting manual mode provided by an embodiment of the application.
- 17 is a schematic diagram of a software structure of an electronic device according to an embodiment of the application.
- 18 is a schematic diagram of information interaction between different modules in an electronic device according to an embodiment of the application.
- 19 is another schematic flowchart of a method for displaying a preview image in a zoom shooting scene provided by an embodiment of the present application.
- FIG. 20 is another schematic structural diagram of an electronic device provided by an embodiment of the present application.
- the preview image involved in the embodiments of the present application refers to an image displayed in a shooting interface (or called a viewfinder interface) of an electronic device.
- the electronic device is a mobile phone as an example.
- the mobile phone starts the camera application, turns on the camera, and displays a shooting interface.
- the shooting interface displays a preview image, and the preview image is an image collected by the camera.
- the field of view involved in the embodiments of the present application is an important performance parameter of the camera.
- Field of view may also be referred to as “viewing angle”, “field of view”, “field of view” and other terms, which are not limited in this document.
- the field of view is used to indicate the maximum angle range that the camera can capture. If the object is within this angular range, the object will be captured by the camera and presented in the preview image. If the object is outside this angular range, the object will not be captured by the camera and will not appear in the preview image.
- the larger the field of view of the camera the larger the shooting range and the shorter the focal length; and the smaller the field of view of the camera, the smaller the shooting range and the longer the focal length.
- cameras can be divided into ordinary cameras, wide-angle cameras, ultra-wide-angle cameras, etc. due to different field of view.
- the focal length of a normal camera can be 45 to 40 mm, and the viewing angle can be 40 degrees to 60 degrees;
- the focal length of a wide-angle camera can be 38 to 24 mm, and the viewing angle can be 60 degrees to 84 degrees;
- the focal length of an ultra-wide-angle camera can be 20 degrees.
- the viewing angle can be 94 to 118 degrees.
- the method for displaying a preview image in a zoom shooting scene can be applied to an electronic device.
- the electronic device includes a camera, and the camera may be a wide-angle camera or an ultra-wide-angle camera; of course, it may also be an ordinary camera.
- this application does not limit the number of cameras, which may be one or multiple. If there are multiple, at least one wide-angle camera or ultra-wide-angle camera may be included in the multiple.
- the electronic device may be a portable electronic device, such as a mobile phone, a tablet computer, a portable computer, a wearable device with wireless communication function (such as a smart watch, smart glasses, smart bracelet, or smart helmet, etc.), or a vehicle-mounted device.
- Exemplary embodiments of portable electronic devices include, but are not limited to, carry-on Or portable electronic devices with other operating systems.
- FIG. 1 shows a schematic structural diagram of an electronic device.
- the electronic device 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, Antenna 1, Antenna 2, Mobile Communication Module 150, Wireless Communication Module 160, Audio Module 170, Speaker 170A, Receiver 170B, Microphone 170C, Headphone Interface 170D, Sensor Module 180, Key 190, Motor 191, Indicator 192, Camera 193, Display screen 194, and subscriber identification module (subscriber identification module, SIM) card interface 195 and so on.
- SIM subscriber identification module
- 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, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
- the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait.
- different processing units may be independent devices, or may be integrated in one or more processors.
- the controller can be the nerve center and command center of the electronic device. The controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
- a memory may also be provided in the processor 110 for storing instructions and data.
- the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
- the USB interface 130 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
- the USB interface 130 can be used to connect a charger to charge the electronic device, and can also be used to transmit data between the electronic device and peripheral devices.
- the charging management module 140 is used to receive charging input from the charger.
- the power management module 141 is used for connecting 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 charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
- the wireless communication function of the electronic device can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
- Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
- Each antenna in an electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
- the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
- the mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G etc. applied on the electronic device.
- the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
- the mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
- the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 .
- at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 .
- at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
- the wireless communication module 160 can provide applications on electronic devices including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
- WLAN wireless local area networks
- BT wireless fidelity
- GNSS global navigation satellite system
- frequency modulation frequency modulation
- FM near field communication technology
- NFC near field communication
- IR infrared technology
- 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 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
- the wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through
- the antenna 1 of the electronic device is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device can communicate with the network and other devices through wireless communication technology.
- the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
- the GNSS may include global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou navigation satellite system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
- global positioning system global positioning system, GPS
- global navigation satellite system global navigation satellite system, GLONASS
- Beidou navigation satellite system beidou navigation satellite system, BDS
- quasi-zenith satellite system quadsi -zenith satellite system, QZSS
- SBAS satellite based augmentation systems
- the display screen 194 is used to display the display interface of the application and the like.
- Display screen 194 includes a display panel.
- the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light).
- LED diode AMOLED
- flexible light-emitting diode flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
- the electronic device may include 1 or N display screens 194 , where N is a positive integer greater than 1.
- the electronic device can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor.
- the ISP is used to process the data fed back by the camera 193 .
- the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye.
- ISP can also perform algorithm optimization on image noise, brightness, and skin tone.
- ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
- the ISP may be provided in the camera 193 .
- Camera 193 is used to capture still images or video.
- the object is projected through the lens to generate an optical image onto the photosensitive element.
- the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
- CMOS complementary metal-oxide-semiconductor
- the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
- the ISP outputs the digital image signal to the DSP for processing.
- DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
- the electronic device may include 1 or N cameras 193 , where N is a positive integer greater than 1.
- Internal memory 121 may be used to store computer executable program code, which includes instructions.
- the processor 110 executes various functional applications and data processing of the electronic device by executing the instructions stored in the internal memory 121 .
- the internal memory 121 may include a storage program area and a storage data area.
- the storage program area may store the operating system, and the software code of at least one application (eg, iQIYI application, WeChat application, etc.).
- the storage data area can store data (such as images, videos, etc.) generated during the use of the electronic device.
- the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
- the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device.
- the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. Such as saving pictures, videos and other files in an external memory card.
- the electronic device can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor. Such as music playback, recording, etc.
- the pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals.
- the pressure sensor 180A may be provided on the display screen 194 .
- the gyro sensor 180B can be used to determine the motion attitude of the electronic device.
- the angular velocity of the electronic device about three axes ie, the x, y, and z axes
- the gyro sensor 180B can be used for image stabilization.
- the air pressure sensor 180C is used to measure air pressure.
- the electronic device calculates the altitude from the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
- the magnetic sensor 180D includes a Hall sensor.
- the electronic device can use the magnetic sensor 180D to detect the opening and closing of the flip holster.
- the electronic device when the electronic device is a flip machine, the electronic device can detect the opening and closing of the flip according to the magnetic sensor 180D. Further, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, characteristics such as automatic unlocking of the flip cover are set.
- the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device in various directions (generally three axes).
- the magnitude and direction of gravity can be detected when the electronic device is stationary. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
- Distance sensor 180F for measuring distance.
- Electronic devices can measure distances by infrared or laser. In some embodiments, when shooting a scene, the electronic device can use the distance sensor 180F to measure the distance to achieve fast focusing.
- Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
- the light emitting diodes may be infrared light emitting diodes.
- Electronic devices emit infrared light outward through light-emitting diodes.
- Electronic devices use photodiodes to detect reflected infrared light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object in the vicinity of the electronic device.
- the electronic device can determine that there is no object in the vicinity of the electronic device.
- the electronic device can use the proximity light sensor 180G to detect that the user holds the electronic device close to the ear to talk, so as to automatically turn off the screen to save power.
- Proximity light sensor 180G can also be used in holster mode, pocket mode automatically unlocks and locks the screen.
- the ambient light sensor 180L is used to sense ambient light brightness.
- the electronic device can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
- the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
- the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device is in the pocket to prevent accidental touch.
- the fingerprint sensor 180H is used to collect fingerprints. Electronic devices can use the collected fingerprint characteristics to unlock fingerprints, access application locks, take photos with fingerprints, and answer incoming calls with fingerprints.
- the temperature sensor 180J is used to detect the temperature.
- the electronic device utilizes the temperature detected by the temperature sensor 180J to implement a temperature handling strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device may reduce the performance of the processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection.
- the electronic device when the temperature is lower than another threshold, the electronic device heats the battery 142 to avoid abnormal shutdown of the electronic device caused by the low temperature.
- the electronic device boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
- Touch sensor 180K also called “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, also called a “touch screen”.
- the touch sensor 180K is used to detect a touch operation on or near it.
- the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
- Visual output related to touch operations may be provided through display screen 194 .
- the touch sensor 180K may also be disposed on the surface of the electronic device, which is different from the location where the display screen 194 is located.
- the bone conduction sensor 180M can acquire vibration signals.
- the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice.
- the bone conduction sensor 180M can also contact the pulse of the human body and receive the blood pressure beating signal.
- the keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key.
- the electronic device may receive key input and generate key signal input related to user settings and function control of the electronic device.
- Motor 191 can generate vibrating cues.
- the motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, playing audio, etc.) can correspond to different vibration feedback effects.
- the indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
- the SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device.
- FIG. 1 do not constitute a specific limitation on the electronic device.
- Electronic devices in embodiments of the present invention may include more or fewer components than those in FIG. 1 .
- the combination/connection relationship between the components in FIG. 1 can also be adjusted and modified.
- a general zoom shooting process is that the user opens the camera application in the electronic device, starts the camera, the electronic device displays a shooting interface, and the shooting interface displays a preview image, that is, the image captured by the camera.
- the user may want to zoom in on the object, and then perform an operation of magnifying the zoom ratio (such as the sliding operation of the index finger and the middle finger relatively far away) ).
- the preview image displayed in the shooting interface is updated to the image block in the center area on the image captured by the camera, that is, the image block in the center area is enlarged and displayed.
- the object the user wants to shoot such as the flower
- the updated preview image does not have the object the user wants to shoot (such as the flower)
- the user needs to Moving the mobile phone to find the subject is time-consuming and laborious, and once the mobile phone moves a little faster, it is easy to miss the target object, which is not very convenient to operate, and the experience is poor.
- an embodiment of the present application provides a method for displaying a preview image in a zoom shooting scene.
- a shooting interface is displayed, and a first preview image is displayed in the shooting interface, and the first preview image is a camera.
- the first image may be an image or an image stream collected by a camera.
- the target photographic subject on the first image is determined in response to the operation.
- the target photographing object may be at any position on the first image, but not necessarily in the central area on the first image.
- a second preview image is displayed in the shooting interface of the camera application, where the second preview image is an image block in a first area on the first image, and the first area is an area on the first image where at least one target shooting object is located. That is, when the electronic device detects an operation for increasing the zoom magnification, in response to the operation, the first preview image in the shooting interface is updated to a second preview image, and the second preview image is at least one target shooting object on the first image The image block within the region.
- the second preview image is an image block in the upper left corner area of the first image; if the at least one target photographing object is located on the first image , then the second preview image is the image block in the upper and lower right corner of the first image. It is different from the previous general zoom shooting process because, in the general zoom shooting process, when an operation for increasing the zoom magnification is detected, the displayed second preview image must be the image block in the center area of the first image, Then, if there is no object that the user wants to photograph in the central area, the user needs to move the position of the electronic device to find the photographed object.
- the second preview image is an image block in the area where at least one target photographing object is located on the first image, and there is no need to search for the position of the mobile electronic device Target shooting object, easy to operate.
- FIG. 2 is a schematic flowchart of a method for displaying a preview image in a zoom shooting scene according to an embodiment of the present application.
- the method can be applied to electronic devices having the hardware structure shown in FIG. 1 , such as mobile phones, tablet computers, etc.
- the following description will mainly take the mobile phone as an example.
- the process includes:
- S201 start a camera application, turn on the camera, and display a shooting interface, where a first preview image is displayed, and the first preview image is the first image collected by the camera.
- FIG. 3 shows a graphical user interface (graphical user interface, GUI) of the mobile phone, where the GUI is the desktop 301 of the mobile phone.
- GUI graphical user interface
- the mobile phone detects that the user clicks the icon 302 of the camera application (application, APP) on the desktop 301, it can start the camera application and display another GUI as shown in (b) in FIG. 3, which can be called as A shooting interface (or called a viewfinder interface) 303 .
- a shooting interface or called a viewfinder interface
- a preview image can be displayed in real time in the shooting interface 303 .
- a first preview image is displayed in the shooting interface 303
- the first preview image is the first image collected by the camera.
- the first image may refer to an image, or may refer to an image stream collected by a camera. If the camera is a wide-angle camera, then the first image is a field of vision (FOV) image.
- the photographing interface 303 may further include a control 305 for indicating a photographing mode, a control 306 for indicating a recording mode, and a photographing control 307 .
- the camera mode when the mobile phone detects that the user clicks on the shooting control 307, the mobile phone performs a photo-taking operation; in the video recording mode, when the mobile phone detects that the user clicks on the shooting control 307, the mobile phone performs a video shooting operation.
- the trigger condition may be detection of an operation for increasing the zoom magnification of the camera application, and/or detection of the increase of the zoom magnification reaching a preset zoom magnification (or a threshold value).
- the preset zoom magnification may be any value between the minimum magnification and the maximum magnification.
- the range of zoom magnification is 1X-10X, and the preset zoom magnification can be 5X, 6X, 7X, 9X, 10X and so on.
- the specific value of the preset zoom magnification may be set by default after the electronic device leaves the factory, or may also be set by the user, which is not limited in this application.
- the preset zoom magnification may also be a lossless zoom magnification.
- zoom shooting includes physical zoom and electronic zoom
- physical zoom refers to the use of physical changes in the camera (such as the position of the lens, etc.) to achieve the purpose of zooming
- electronic zoom refers to the use of image processing algorithms (such as pixel interpolation algorithms). ) to process the image collected by the camera to achieve the purpose of zooming.
- Lossless zoom magnification can be understood as the dividing point between physical zoom and electronic zoom. That is, in the process of increasing the zoom magnification, the physical zoom method can be used before the zoom magnification reaches the lossless zoom magnification. In this way, the image captured by the camera itself is physically zoomed, and the definition is relatively high.
- the electronic zoom can be used because the physical zoom has reached its limit.
- the electronic zoom needs to perform post-processing (such as pixel interpolation processing) on the image captured by the camera, the clarity of the image will be reduced. Therefore, if the threshold of the zoom magnification (ie, the preset zoom magnification) is set to a lossless zoom magnification, it can be ensured that the captured first image has undergone physical zooming without reducing the clarity.
- the first image has a higher definition The accuracy of target photographing object recognition in the subsequent processing flow can be improved.
- the preset zoom ratio can be this value; if the lossless zoom ratio is a range, then the preset zoom ratio can be any value within the range, such as the maximum value. value.
- the operation for increasing the zoom magnification of the camera application may be a sliding operation in which the user's index finger and thumb are relatively far apart as shown in FIG.
- the operation for increasing the zoom magnification of the camera application may also be a preset gesture operation.
- the preset gesture operation can be a single/double click, circle drawing, knuckle tapping, multi-finger tapping, multi-finger tapping at a certain position in the shooting interface (this position can be set in advance, or any position) Slip, etc., which are not limited in the embodiments of the present application.
- the operation for increasing the zoom magnification of the camera application may also be an operation for a specific physical key or virtual key.
- a virtual key may also be displayed in the shooting interface, and when an operation on the virtual key is detected, it is determined to increase the zoom ratio of the camera application.
- the electronic device detects that a certain physical key is triggered, or multiple physical keys are triggered in combination, it determines to increase the zoom ratio of the camera application.
- the operation for increasing the zoom magnification of the camera application may also be a voice instruction for instructing to increase the zoom magnification.
- the voice instruction may be a voice instruction of "zoom in to shoot" or "zoom in on an image", or the like.
- the target photographing object is one or more photographic subjects in the first image.
- the target photographic object may be one or more objects on the first image.
- the one or more objects may be one or more objects of the same type or one or more objects of different types, which is not limited.
- the target photographing object may be a target object among all the objects.
- the target object may be a preset object.
- the electronic device determines that a preset object exists on the first image, it determines that the preset object is the target photographing object.
- the preset object may be an object set by default; or, it may be preset by a user, which is not limited in this embodiment of the present application.
- the target object may also be an object of interest to the user. In other words, the electronic device determines the target photographing object on the first image according to the object of interest to the user.
- the object of interest to the user may be an object recorded by the electronic device that is often photographed by the user, or an object that is frequently retouched.
- the electronic device determines that the number of images of cats in the images stored in the gallery is large, and then determines that the object of interest to the user is a cat.
- the electronic device records the objects that are retouched frequently when the user uses the modification software to retouch the image, and determines that the objects that are retouched frequently are objects of interest to the user.
- the electronic device determines that an object of interest to the user exists on the first image, the object is determined to be a target photographing object.
- the target photographing object may also be one or more object types on the first image.
- one object type may correspond to one or more objects belonging to this type.
- the target shooting object when the target shooting object is an object type, the target shooting object includes all objects belonging to the object type on the first image. For example, an image includes Person 1 and Person 2. If the target photographing object is an object type of "person", it is recognized that the target photographing object on the first image includes Person 1 and Person 2.
- the target photographing object may be a target object type among the multiple object types.
- the target object type may be any one or multiple object types among multiple object types, and if the target object type is multiple object types, multiple object types are identified simultaneously.
- the object type with high priority among the multiple object types of the target object type For example, the priority relationship is: People > Animals > Text > Food > Flowers > Green Plants > Buildings.
- the electronic device can first identify whether the "person” type is included on the first image, and if the "person” type is included, determine that all objects belonging to the "person” type on the first image (that is, everyone on the first image) are targeted for shooting Object; if it does not include the "people” type, continue to identify whether the first image includes the "animal” type, if it includes the "animal” type, then determine that all objects belonging to the "animal” type on the first image are the target shooting objects, of course , if the "animal” type is not included, continue to identify the next level of object type, and so on.
- the priority relationship may be set by factory default, or may also be set by a user, which is not limited in this application.
- the target object type may also be a preset object type.
- the preset object type may be an object type set by factory default or an object type set by a user, which is not limited in this embodiment of the present application.
- the target object type may also be an object type that the user is interested in.
- the electronic device determines the target photographing object on the first image according to the type of object that the user is interested in.
- One possible implementation is that, taking the object as a cat as an example, the electronic device determines that there are more images of cats in the images stored in the gallery, and then determines that the type of object that the user is interested in is the "animal" type.
- the electronic device records the objects that are retouched more frequently when the user uses the modification software to retouch the image, and determines that the object type to which the frequently retouched object belongs is the object type that the user is interested in.
- the target shooting object may also have other determining methods, and the embodiments of the present application will not give examples one by one.
- the algorithm for identifying the target photographing object on the first image is called a subject recognition algorithm, and the subject recognition algorithm may be an image semantic analysis algorithm.
- FIG. 5 is a schematic flowchart of an image semantic analysis algorithm. In short, it includes three steps: image binarization, semantic segmentation, and detection and positioning.
- the binarization process refers to setting the grayscale value of the pixel on the image to 0 or 255. A total of 256 grayscale values from 0 to 255 are reduced to only two grayscale values of 0 and 255.
- the binarization process can simplify the gray value of the image, if the image after the binarization process is used as the input image for the subsequent processing (ie, semantic segmentation and detection and positioning), the speed of the subsequent processing can be improved.
- Semantic segmentation can be understood as dividing an image into different segmentation areas, and adding corresponding semantic labels to each segmentation area, for example, to represent the features in the segmentation area.
- the texture and gray level of each segmented region obtained by semantic segmentation are similar; and the boundaries of different segmented regions are clear.
- the next processing flow that is, detection and localization, can be detected in each segmented area on the image, and specifically, the target shooting object in each segmented area is designated to be located.
- the present application does not limit the execution order of S202 and S203. If S202 is performed first and then S203 is performed, an example is that when the electronic device detects a trigger condition (i.e., S202), it starts the subject recognition algorithm, and then uses the algorithm to recognize the target shooting object on the first image. In this way, the subject recognition algorithm can be turned off when not in use, and activated when a trigger condition is detected, helping to save power consumption. In other examples, the subject recognition algorithm is always in the activated state, and when a trigger condition is detected (ie, S202 ), the subject recognition algorithm starts to be used for recognition. This method saves the time required to start the algorithm and is more efficient.
- a trigger condition i.e., S202
- S203 is performed first and then S204 is performed, an example is that when the electronic device opens the camera application (ie, S201 ), the subject recognition algorithm is started, and the algorithm is used to identify the target shooting object on the first image (ie, S203 ).
- a trigger condition ie, S202
- it goes to S204.
- the subject recognition algorithm is always in the activated state, and when the electronic device opens the camera application (ie, S201 ), it starts to use the subject recognition algorithm for recognition. This method saves the time required to start the algorithm and is more efficient.
- a second preview image is displayed on the shooting interface, where the second preview image is an image block in a first area on the first image, and the first area is an area where at least one target shooting object is located.
- the at least one target shooting object is referred to as the first target shooting object, that is, the number of the first target shooting object may be one or more.
- the following mainly takes the number of the first target shooting object as one example is introduced.
- a step may be further included: determining a first target photographing subject among the plurality of target photographing subjects.
- determining a first target photographing subject among the plurality of target photographing subjects There are various ways to determine the first target shooting object among the multiple target shooting objects, for example:
- Manner 1 Determine the first target photographing object according to the positions of the multiple target photographing objects.
- the first target photographing subject is the target photographing subject closest to the center of the image among all the target photographing subjects, or the target photographing subject closest to the edge of the image.
- Mode 2 Determine the first target shooting object according to the size of the area occupied by the multiple target shooting objects.
- the first target photographing object is the target photographing object that occupies the largest or smallest area among all the target photographing objects.
- the first target shooting object is determined according to the object types of the multiple target shooting objects.
- the object types corresponding to multiple target shooting objects include human type and animal type.
- the priority relationship it can be determined that the priority of the human type is higher than that of the animal type, then the shooting object of the human type among the multiple target shooting objects is the first target. subject.
- the priority relationship may include characters>animals>text>food>flowers>green plants>buildings.
- the priority relationship can be adjusted by the user.
- Manner 4 According to the user's designated operation, determine the first target photographing object among the plurality of target photographing objects.
- the electronic device detects an operation for enlarging the zoom ratio (such as a sliding operation of moving the index finger and the thumb away from each other), and recognizes that the first image includes two target shooting objects (such as two Birds), and then the shooting interface shown in Figure 6 is displayed.
- the shooting interface displays prompt information: Please select the first target shooting object, and the numbers of all identified target shooting objects are also displayed, for example, the number of the bird 1 1, bird 2 is numbered 2.
- the electronic device detects the operation of clicking the number 2 in the user, it is determined that the bird 2 is the first target photographing object designated by the user.
- the first target photographing object can be determined according to the user's selection, which is in line with the user's preference.
- the step may further include: determining the first area according to the first target shooting object. Specifically, it may include determining the first area according to the resolution of the first target shooting object and the preview image.
- the way of determining the first area includes: setting a marker frame to surround the bird 2, please refer to FIG. 7A .
- the present application does not limit the shape of the marker frame, which may be a rectangle, a square, a circle, an ellipse, etc., or the marker frame may be the smallest circumscribed polygon of the edge contour of the target photographing object.
- a first area is determined, the first area includes an area surrounded by the mark frame, and the resolution of the first area matches that of the preview image.
- the matching between the resolution of the first region and the resolution of the preview image may include the following two cases:
- the length of the preview image is greater than the width, that is, the resolution (aspect ratio) is greater than 1, then the aspect ratio of the first area is also greater than 1, for example, it can be equal to the preview image.
- resolution For example, if the resolution of the preview image is 16:4, the size of the first area is 16:4 in aspect ratio. In this case, there is no need to adjust the aspect ratio of the image blocks in the first area to adapt to the size requirements of the preview image, which is more convenient.
- the length of the preview image is less than the width, that is, the resolution (aspect ratio) is less than 1, then the aspect ratio of the first area is also less than 1, for example, it can be equal to the preview image.
- resolution for example, if the resolution of the preview image is 4:16, then the size of the first area is the aspect ratio of 4:16, that is, it is not necessary to adjust the aspect ratio of the image blocks in the first area to adapt to the size of the preview image. Size requirements.
- the electronic device displays the image block in the first area as a second preview image on the shooting interface.
- a second preview image is displayed in the shooting interface, and the second preview image is an image block in the first area where the bird 2 is located in the first image.
- the electronic device detects an operation for increasing the zoom magnification (such as a sliding operation in which the index finger and the thumb are relatively separated)
- the first target object on the first preview image is captured by the electronic device. (such as bird 2) enlarged display is shown in Figure 8.
- the first target shooting object is the target shooting object identified from the first preview image, it is the shooting object that the user may want to zoom in for shooting, compared with the general zoom shooting method (enlarged display of the image block in the central area of the image) , the user needs to move the position of the electronic device to find the object to be photographed, the probability is low, and the operation is convenient.
- the shooting interface in Figure 8 is to zoom in on the bird 2 to shoot.
- the user may also switch the first target shooting object (eg, bird 2 ) in the shooting interface to the second target shooting object (eg, bird 1 ).
- the electronic device displays the second preview image
- a third preview image is displayed in the shooting interface
- the third preview image is the second area on the first image where the second target shooting object is located
- the second target photographing object is another target photographing object that is different from the first target photographing object on the first image.
- Fig. 9 is displayed, and the third preview image is displayed in the shooting interface, and the third preview image is the first image on the first image.
- the bird 2 (the bird on the left) is enlarged and displayed in the shooting interface.
- Fig. 9 is displayed, that is, the bird in the shooting interface is displayed. 1 (the bird on the right) is magnified.
- the zoom shooting scene when the electronic device remains stationary, the switching of the target shooting object in the shooting interface can be realized, and the user experience is high.
- the general zoom shooting mode enlarged display of the image block in the central area of the image
- the user needs to manually move the position of the electronic device to find the desired object, which is cumbersome to operate.
- the third preview image may further include the step of: determining a second target photographing object from the remaining target photographing objects except the first target photographing object among the plurality of target photographing objects, according to the second Target the subject, and determine the second area.
- the method for determining the second target photographing object is the same as the foregoing method for determining the first target photographing object, and details are not repeated. For example, if the first target photographing object is bird 2 , and the remaining target photographing object is only bird 1 , then it is determined that the second target photographing object is bird 1 .
- the process of determining the second area according to the second target photographing object is the same as the foregoing principle of determining the first area according to the first target photographing object, and will not be repeated.
- the switching operation of the target photographing object may be an operation on a specific button in the photographing interface.
- a second preview image is displayed in the shooting interface, and a button 801 is also displayed in the shooting interface.
- the first target shooting object is switched to the second target shooting object.
- the second target photographing object is switched to the third target photographing object, and the third target photographing object is the first and second target photographing objects excluding the first and second photographing target objects. other than the target subject. That is, each target photographing object in the multiple target photographing objects on the first image can be traversed by pressing the key 801 .
- the switching operation of the target photographing object may also be an operation on a physical button.
- the operation of the volume button if it is detected that the button for increasing the volume is clicked twice in a row, the first target object is switched to the second target object.
- the switching operation of the target photographic subject may also be the detection of a voice instruction for instructing the switching of the target photographic subject. For example, a voice command including "next".
- a first window may also be displayed in the shooting interface, and a first image is displayed in the first window and the target shooting object displayed in the current preview image on the first image is highlighted.
- the highlighted display may be understood as the target photographing object being marked, and the marking method is not limited, such as being circled.
- a first window 1001 is displayed on the second preview image
- the first window 1001 includes a first image and the bird 2 (the bird on the left) is displayed on the first image is circled to remind the user that the current preview image (ie, the second preview image) is the circled image block.
- the current preview image ie, the second preview image
- the third preview image as shown in (b) in FIG. 10 is displayed, and the third preview image corresponds to the bird 1 (the bird on the right) on the first image.
- the bird 1 is circled on the first image in the first window 1001 to remind the user that the current preview image (ie, the third preview image) is the circled image block.
- the circled state of the bird 2 can be canceled.
- the first window 1001 may appear automatically. For example, comparing FIG. 4 with (a) in FIG. 10 , when the electronic device displays the first preview image in FIG. 4 , if an operation for enlarging the zoom magnification is detected, the second preview image shown in (a) in FIG. 10 is displayed. The image is previewed, and the first window automatically appears on the second preview image. Or, comparing FIG. 4 , FIG. 8 and (a) in FIG. 10 , when the electronic device displays the first preview image in FIG. 4 , if an operation for enlarging the zoom ratio is detected, it displays the second preview image in FIG.
- the operation for calling up the first window may be, for example, an operation for a specific key in the shooting interface.
- a specific key is displayed in the shooting interface, and when an operation for the specific key is detected, the first window is displayed.
- the first window can also be hidden and displayed. For example, when an operation for hiding the first window is detected, the first window is hidden.
- the operation for hiding the first window may be an operation for the specific button, that is, when an operation for the specific button is detected, the first window is displayed, and when an operation for the specific button is detected again, Hide the first window.
- the operation for hiding the first window may also be an operation of pressing and holding the first window to move out of the screen, or a click operation on the pop-up delete button when the first window is long-pressed; or, see ( As shown in a), when it is detected in the shooting interface that the user slides from left to right at the upper left corner, the first window is called up to display the interface shown in (b) in Figure 11. When it is detected that the user is at the upper left corner When the sliding operation is performed from right to left, the first window is hidden, and the interface shown in (c) of FIG. 11 is displayed.
- the target shooting object displayed in the current preview image is marked, and the target shooting object not displayed in the current preview image is not marked.
- the target shooting object not displayed in the current preview image is not marked.
- all target photographing objects on the first image in the first window 1001 can be marked.
- both bird 1 and bird 2 are marked on the first image in the first window 1001 .
- each corresponds to a marker frame (the bird 2 on the left corresponds to the marker frame 1002, and the bird 1 on the right corresponds to the marker frame 1003). Since the current preview image is the second preview image, which corresponds to the bird 2 on the left, the marker frame 1002 is highlighted relative to the marker frame 1003 . In this way, the user can determine that the current preview image corresponds to the bird 2.
- the first target shooting object ie the bird 2 on the left
- the second target shooting object ie the bird 1 on the right
- the marked frame 1003 of the bird 1 on the right side of the first image in the first window 1001 is highlighted relative to the marked frame 1002 of the bird 2 on the left side. In this way, the user can determine that the current preview image corresponds to the bird 1 .
- the switching operation of the target photographing objects may also be an operation of clicking the marked frame in the first window 1001 .
- the current preview corresponds to the bird 2 in the marker frame 1002.
- the third preview image is displayed as shown in Fig. In (b) of 12, the third preview image corresponds to the bird 1 in the marked frame 1003 , that is, the switching of the target shooting object is completed by clicking the marked frame in the first window 1001 .
- only one target photographing object ie, a bird
- the number of target shooting objects on the shooting interface may also be increased.
- the second preview image corresponds to bird 2 .
- two target photographing objects namely bird 1 and bird 2 are displayed in the photographing interface.
- One way is to determine area 1 according to bird 1 (including bird 1 in area 1), determine area 2 according to bird 2 (including bird 2 in area 2), and then divide the shooting interface into two areas (ie Split-screen display), the first area displays image blocks in area 1, and the second area displays image blocks in area 2, such as FIG. 13A.
- both of the two marked boxes in the first window 1001 in the photographing interface are highlighted.
- the first area and the second area may be two areas divided up and down, or two areas divided left and right, which are not limited in this application. For example, it can be divided left and right when shooting in landscape, and can be divided up and down when shooting in portrait.
- the third area is determined according to the two target shooting objects, and the image blocks in the third area are displayed in the shooting interface.
- the third area is the smallest area that can enclose the two target photographing objects (bird 1 and bird 2), and the resolution of the third area matches that of the preview image.
- the display effect after increasing the number of target shooting objects is shown in Figure 13B.
- a first window 1001 is also displayed in the shooting interface
- a marker frame 1004 is displayed in the first window 1001
- the marker frame 1004 surrounds the bird 1 and the bird 2 .
- the operation for increasing the number of target shooting objects in the shooting interface may include: taking (a) in FIG. 12 as an example, the marked frame 1002 has been selected, when it is detected that the marked frame 1003 is selected in the first window 1001 Operation (such as the operation of long pressing the marker frame 1003), confirm that the marker frame 1002 and the marker frame 1003 are both selected, then the bird 1 in the marker frame 1003 is added to the shooting interface, that is, Figure 13A or Figure 13B is displayed.
- the operation for increasing the number of target photographing objects in the photographing interface may also be an operation of reducing the zoom magnification, such as a sliding operation in which the thumb and the index finger are relatively close.
- the operation for increasing the number of target shooting objects in the shooting interface may also be an operation for a preset button in the shooting interface.
- a preset button is displayed in the shooting interface, and when an operation for the button is detected, it is determined to increase The number of target subjects in the capture interface.
- the operation for increasing the number of target photographing objects in the photographing interface may also be a voice instruction for instructing to increase the number of target photographing objects.
- FIG. 12 when a photographing operation (such as clicking on the photographing control 307 ) is detected, one or two images are obtained by photographing. If it is an image, the image may be an image block in the marked frame 1002, that is, an image obtained by zooming in on the bird 2 on the left. If there are two images, one may be the image block within the marked frame 1002, and the other may be the first image, ie, the complete image. Or, continuing to take (a) in FIG.
- One of the images is the first image, that is, the complete image, and the N images correspond to the image blocks in the N marked frames.
- the electronic device may perform processing according to the general zoom shooting process, that is, the image block in the central area on the first image is enlarged and displayed.
- the photographing interface shown in (a) of FIG. 14 can be displayed, and the preview image displayed in the photographing interface is the image block in the central area on the first image.
- a first window may also be displayed in the photographing interface, see (b) in FIG.
- the first window 1401 displays a first image and a mark is displayed on the first image Block 1402, the marker block 1402 is used to indicate the location of the center region.
- the position of the mark frame 1402 on the first window 1401 changes.
- the user can determine the position of the current preview image on the first image through the position of the mark frame 1402 in the first window 1401, and give an indication in the process of finding the object the user wants to photograph. For example, when there is no object the user wants to photograph in the central area, the user determines through the first window 1401 that the object the user wants to photograph is located in the left area of the marked frame 1402 on the first image, so that the user moves the electronic device to the left.
- the object you want to shoot can be quickly found, so that the user does not know where the object you want to shoot is and blindly searches.
- the electronic device may use the first zoom shooting mode or the second zoom shooting mode by default. Alternatively, it may also be determined to use the first zoom shooting mode or the second zoom shooting mode according to a user's designated operation. For example, a switching control is displayed in the shooting interface of the electronic device, and the switching control is used to switch between the first zoom shooting mode and the second zoom shooting mode. For another example, when an operation for enlarging the zoom magnification is detected, prompt information is displayed, where the prompt information is used to prompt the user to select the first zoom shooting mode or the second zoom shooting mode.
- the electronic device automatically recognizes the target photographing object on the first image, and zooms in at least one of the target photographing objects.
- the target photographing object automatically recognized by the electronic device is not the one the user wants to photograph at the moment. In this case, it is difficult to photograph the object that the user wants to photograph by using the method of the first embodiment.
- the zoom shooting mode of the electronic device may include a manual mode and an automatic mode. When the automatic mode is selected, the electronic device uses the method of Embodiment 1, that is, automatically recognizes the target photographing object on the first image, and then zooms in at least one target photographing object for photographing.
- the electronic device may not automatically identify the target photographing subject on the first image, but prompt the user to manually select the target photographing subject.
- the target photographing subject is automatically recognized by the electronic device, and in the manual mode, the target photographing subject is manually selected by the user.
- FIG. 15 is a schematic flowchart of a method for displaying a preview image in a zoom shooting scene provided by the second embodiment.
- S202 - 1 is added between S202 and S203 , that is, the manual mode or the automatic mode is determined.
- a shooting interface as shown in (b) in FIG.
- S203 and S204 are executed.
- S203 and S204 please refer to the first embodiment.
- S205 When an operation of selecting the manual mode by the user is detected, S205 is performed, and the user is prompted to select a target photographing object. For example, continuing to take (b) in FIG. 16 as an example, after the user selects the manual mode, a shooting interface as shown in (c) in FIG. 16 is displayed, and a prompt message is displayed in the shooting interface: please select the target shooting object.
- the electronic device determines the target photographing object according to the user's operation. For example, when a circle drawing operation is detected, it is determined that the shooting object in the area surrounded by the circle drawing operation is the target shooting object, and then the shooting interface as shown in (d) in FIG. 16 is displayed, and the preview image in the shooting interface is The user draws a circle to operate the image blocks in the circled area. That is, during zoom shooting, the target shooting subject manually selected by the user is zoomed in for shooting.
- FIG. 17 shows a software structural block diagram of an electronic device provided by an embodiment of the present application.
- the software structure of the electronic device can be a layered architecture, for example, the software can be divided into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces.
- the Android system may include three layers, from top to bottom, they are an application layer, a hardware abstraction layer (HAL), and a hardware layer.
- HAL hardware abstraction layer
- this article takes the three-layer Android system as an example.
- the Android system may also include more or less layers.
- a kernel layer may be included between the hardware layer and the HAL layer, or,
- An application framework layer (framework, FWK) and the like may also be included between the application layer and the HAL layer, which is not limited in this application.
- the application layer can include a series of application packages. Such as camera applications, settings, skin modules, user interface (UI), third-party applications, etc. Among them, third-party applications can include Gallery, Calendar, Call, Map, Navigation, WLAN, Bluetooth, Music, Video, SMS, etc. Only the camera application is shown in FIG. 12 .
- UI user interface
- third-party applications can include Gallery, Calendar, Call, Map, Navigation, WLAN, Bluetooth, Music, Video, SMS, etc. Only the camera application is shown in FIG. 12 .
- the hardware abstraction layer is used to establish the interface layer with the hardware circuit. Its purpose is to abstract the hardware and provide a virtual hardware platform for the operating system, so that it is hardware independent and can be transplanted on various platforms.
- the hardware abstraction layer includes the camera application HAL (camera HAL), which is used to realize the information interaction between the camera application in the application layer and the hardware in the hardware layer.
- the HAL layer also includes a subject recognition module, a preview cropping module, and a pre-display (prview) module.
- the subject recognition module is used to recognize the target shooting object on the image collected by the camera (for example, the output image of the ISP), and can also be used to set a marking frame to mark the recognized target shooting object, and can also be used to identify the target shooting object according to the
- the marked box determines the first area, and the process of determining the first area will be described later.
- the preview cropping module is used for cropping the image blocks in the first area from the image collected by the camera (for example, the output image of the ISP) to serve as the preview image.
- the pre-display module is used to send the image blocks cropped by the preview acquisition module to the display screen in the hardware layer for display.
- the hardware layer may include various types of sensors, such as image sensors, image signal processors (image signal processors, ISPs), and the like.
- the image sensor can refer to the photosensitive element set in the camera. The light is transmitted to the photosensitive element through the lens to form an electrical signal, and the electrical signal is transmitted to the ISP.
- the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP.
- ISP converts electrical signals into images visible to the naked eye (ie digital image signals). ISP can also perform algorithm optimization on image noise, brightness, and skin tone.
- ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. For example, ISP outputs digital image signals to DSP for processing. DSP converts digital image signals into standard RGB, YUV and other formats of image signals. In some embodiments, the ISP may be located in the camera.
- the following describes a method for displaying a preview image in a zoom shooting scene provided by an embodiment of the present application with reference to the software architecture shown in FIG. 17 .
- FIG. 18 is a schematic flowchart of a method for displaying a preview image in a zoom scene according to an embodiment of the present application. As shown in Figure 18, the process includes:
- the camera application detects a startup instruction, where the startup instruction is used to instruct to start the camera application.
- the camera application sends a startup command to the camera HAL.
- the camera HAL sends a start command to the ISP.
- the ISP obtains the first image.
- the ISP sends the first image to the display screen.
- a first preview image is displayed on the display screen, and the first preview image is the first image.
- the camera application detects a trigger condition.
- the camera application sends a capability query request to the camera HAL, where the capability query request is used to request to query whether the electronic device has the function of the first auxiliary preview mode.
- camera HAL sends query feedback to the camera application.
- S8-S9 are optional steps that may or may not be performed.
- the camera application sends a start instruction to start the body recognition algorithm to the body recognition module.
- the subject recognition module recognizes the target photographing object on the first image.
- the subject identification module determines the first target photographing object.
- the subject identification module sends the location of the first target photographing object to the preview cropping module.
- the first area is determined according to the first target shooting object, and then the position of the first area is sent to the preview cropping module.
- the preview cropping module performs image cropping.
- the preview cropping module sends the cropped image block to the display screen.
- a second preview image is displayed on the display screen, and the second preview image is an image block in the first area on the first image.
- the camera application detects a target shooting object switching operation.
- the camera application sends a target photographing object switching instruction to the subject identification module.
- the subject recognition module switches the first target shooting object to the second target shooting object, and sends the location of the second target shooting object to the preview cropping module.
- the second area is determined according to the second target shooting object, and then the position of the second area is sent to the preview cropping module.
- the preview cropping module performs image cropping.
- the preview cropping module sends the cropped image block to the display screen.
- a third preview image is displayed on the display screen, and the third preview image is an image block in the second area on the first image.
- the camera application detects a photographing instruction.
- the camera application sends a photographing instruction and the position of the target photographing object corresponding to the current preview image to the ISP.
- the location of the first area may be sent.
- the current preview image is the third preview image
- the corresponding target photographing object is the second target photographing object, that is, the location of the second area
- the ISP captures the image.
- the ISP sends the captured image and the position to the preview cropping module.
- the preview cropping module crops the captured image to obtain a cropped image.
- the image block in the first image is cropped out as the captured image; if the position of the second area is received, the image block in the second area is cropped out as the captured image obtained image.
- the preview cropping module sends the cropped image to the camera application.
- the camera application stores the cropped image.
- FIG. 19 is a schematic flowchart of a method for displaying a preview image in a zoom shooting scene provided by an embodiment of the present application.
- This method is suitable for electronic devices, such as mobile phones, tablet computers, etc.
- the process includes:
- S1901 start a camera application in an electronic device, where a first image is collected by a camera on the electronic device.
- a possible implementation manner is that when the electronic device detects a trigger condition (for example, an operation for enlarging the zoom ratio), it identifies the target photographing object on the first image. This way helps save power consumption.
- a trigger condition for example, an operation for enlarging the zoom ratio
- Another possible implementation is that after the camera of the electronic device captures the first image, it can identify the target shooting object on the first image, and when a trigger condition (for example, an operation for enlarging the zoom ratio) is detected, execute S1903 .
- a trigger condition for example, an operation for enlarging the zoom ratio
- S1903 Display a first preview image, where the first preview image is a preview image corresponding to at least one target shooting object on the first image.
- the at least one target photographing object may be the photographing object occupying the largest or the smallest area on the first image; or, the at least one target photographing object may be the photographing object near the center area or near the edge area in the first image; Alternatively, the at least one target photographing object may be a photographing object that the user is interested in in the first image (for the determination principle of the user's interest object, please refer to the foregoing); or, the at least one target photographing object may be a target specified by the user subject.
- Several methods for determining the at least one target photographing object are exemplified above. The embodiments of the present application are not limited to the above several methods, and there may be other methods for determining the at least one target photographing object.
- the size of the at least one target shooting object on the first preview image is larger than the size of the at least one target shooting object on the first image. It can be understood that the at least one target photographing object on the first image is displayed in an enlarged manner. 8, the first image is an image including a tree and two birds. During zoom shooting, the electronic device displays a preview image corresponding to the bird 2 on the first image, that is, the enlarged bird is displayed. 2.
- the bird 2 is marked in the first window.
- the user can determine which target shooting object on the first image the current preview image (that is, the first preview image) corresponds to through the first mark in the first window, and the user experience is better.
- S1904 is an optional step, which can be performed or not, so it is represented by a dotted line in the figure.
- a second mark is also displayed in the first window, and the second mark is used to mark other target photographing objects other than the at least one target photographing object on the first image, and the first mark and the second Marks are different.
- the first window 1101 displays a marker 1002 and a marker 1003, and the marker 1002 is used to mark the bird 2 on the first image.
- the marker 1003 is used to mark the bird 1 on the first image.
- the marker 1002 is different from the marker 1003 (for example, the marker 1002 is bold, and the marker 1003 is not bold), so that the user can distinguish the current preview image (that is, the first The preview image) corresponds to which target photographing object on the first image.
- the first image includes a first target shooting object and a second target shooting object
- the first preview image is a preview image corresponding to the first target shooting object; when it is detected that the target shooting object switches During operation, a second preview image is displayed, and the second preview image is a preview image corresponding to the second target photographing object.
- the size of the second target shooting object on the second preview image is larger than the size of the second target shooting object on the first image.
- the electronic device displays the enlarged bird 2 , and when detecting the switching operation of the target photographing object, the electronic device displays the enlarged bird 1 , that is, FIG. 9 . That is to say, originally, the first target photographing object is zoomed in to photograph, and the second target photographing object is enlarged and photographed through the target photographing object switching operation, and the user does not need to move the electronic device to find the target photographing object, and the operation is convenient.
- a second mark is displayed in the first window, and the second mark is used to mark the second target shooting object on the first image.
- the display of the first mark for marking the first target shooting object on the first image
- the bird 2 is marked in the first window (for example, marked by a mark box), and when the zoomed bird 1 is displayed , the bird 1 in the first window is marked (eg, marked by another marking box), and the bird 2 is unmarked, as shown in (b) in Figure 10 .
- a third preview image is displayed, and the third preview image is the first target photographing object and the second target photographing The preview image corresponding to the object; wherein the size of the first target shooting object and the second target shooting object on the third preview image is larger than that of the first target shooting object and the second target shooting object on the first image The size of the second target subject.
- the electronic device displays the enlarged bird 1 and bird 2 .
- the first preview image is displayed in the first area on the display screen of the electronic device, and the fourth preview image is displayed in the second area, so
- the fourth preview image is a preview image corresponding to the second target shooting object; wherein, the size of the second target shooting object on the fourth preview image is larger than that of the second shooting target on the first image. size of.
- the electronic device under the action of the operation for adding the target shooting object in the preview image, the electronic device is displayed in a split screen, the first area displays the enlarged bird 2, and the second partition displays the enlarged small bird 2. bird 1.
- the electronic device displays a fifth preview image, and the fifth preview image is the central area on the first image
- the preview image corresponding to the image block inside.
- the electronic device enlarges and displays the image block in the central area of the first image.
- a photographing instruction is detected; in response to the photographing instruction, the first image and a second image are obtained by photographing, and the second image is a photographed image corresponding to the first preview image. That is to say, during zoom shooting, if the shooting button is clicked, a complete image (ie, the first image) and an enlarged image of at least one target object (ie, the second image) are captured, which is convenient for Compared with users, the experience is better.
- FIG. 20 shows an electronic device 2000 provided by the present application.
- the electronic device 2000 may be the aforementioned mobile phone.
- the electronic device 2000 may include: one or more processors 2001; one or more memories 2002; Bus 2005 connection.
- the one or more computer programs 2004 are stored in the aforementioned memory 2002 and configured to be executed by the one or more processors 2001, the one or more computer programs 2004 comprise instructions that can be used to perform the above Relevant steps of the mobile phone in the corresponding embodiment.
- the communication interface 2003 is used to implement communication with other devices, for example, the communication interface may be a transceiver.
- the methods provided by the embodiments of the present application have been introduced from the perspective of an electronic device (such as a mobile phone) as an execution subject.
- the electronic device may include a hardware structure and/or software modules, and implement the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether one of the above functions is performed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.
- references in this specification to "one embodiment” or “some embodiments” and the like mean that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application.
- appearances of the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in other embodiments,” etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless specifically emphasized otherwise.
- the terms “including”, “including”, “having” and their variants mean “including but not limited to” unless specifically emphasized otherwise.
- the above-mentioned embodiments it may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
- software it can be implemented in whole or in part in the form of a computer program product.
- the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated.
- the computer may be a general purpose computer, special purpose computer, computer network, or other programmable device.
- the computer instructions may be stored in or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server or data center Transmission to another website site, computer, server, or data center is by wire (eg, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.).
- the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes an integration of one or more available media.
- the usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), and the like.
- magnetic media eg, floppy disks, hard disks, magnetic tapes
- optical media eg, DVD
- semiconductor media eg, Solid State Disk (SSD)
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Studio Devices (AREA)
Abstract
Description
Claims (15)
- 一种变焦拍摄场景下的预览图像显示方法,应用于电子设备,其特征在于,包括:启动所述电子设备中的相机应用,所述电子设备上的摄像头采集第一图像;在变焦拍摄模式下,识别所述第一图像上的目标拍摄对象;显示第一预览图像,所述第一预览图像是所述第一图像上至少一个目标拍摄对象所对应的预览图像。
- 根据权利要求1所述的方法,其特征在于,所述第一预览图像上所述至少一个目标拍摄对象的尺寸大于所述第一图像上所述至少一个目标拍摄对象的尺寸。
- 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:在显示所述第一预览图像的同时还显示第一窗口,所述第一窗口中显示所述第一图像和第一标记,所述第一标记用于在所述第一图像上标记出所述至少一个目标拍摄对象。
- 根据权利要求1或2所述的方法,其特征在于,所述第一图像上包括第一目标拍摄对象和第二目标拍摄对象,所述第一预览图像是所述第一目标拍摄对象所对应的预览图像;当检测到目标拍摄对象切换操作时,显示第二预览图像,所述第二预览图像是所述第二目标拍摄对象所对应的预览图像。
- 根据权利要求4所述的方法,其特征在于,所述第二预览图像上所述第二目标拍摄对象的尺寸大于所述第一图像上所述第二目标拍摄对象的尺寸。
- 根据权利要求4或5所述的方法,其特征在于,所述方法还包括:在显示所述第二预览图像的同时还显示第一窗口,所述第一窗口中显示所述第一图像和第二标记,所述第二标记用于在所述第一图像上标记出所述第二目标拍摄对象;其中,所述第一窗口显示所述第二标记时,将所述第一窗口中的第一标记取消显示,所述第一标记用于在所述第一图像上标记出所述第一目标拍摄对象。
- 根据权利要求1-6任一所述的方法,其特征在于,所述第一图像上包括第一目标拍摄对象和第二目标拍摄对象,所述第一预览图像是所述第一目标拍摄对象所对应的预览图像;在检测到用于增加预览图像中目标拍摄对象的操作时,显示第三预览图像,所述第三预览图像是所述第一目标拍摄对象和所述第二目标拍摄对象所对应的预览图像;其中,所述第三预览图像上所述第一目标拍摄对象和所述第二目标拍摄对象的尺寸大于所述第一图像上所述第一目标拍摄对象和所述第二目标拍摄对象的尺寸。
- 根据权利要求1-6任一所述的方法,其特征在于,所述第一图像上包括第一目标拍摄对象和第二目标拍摄对象,所述第一预览图像是所述第一目标拍摄对象所对应的预览图像;在检测到用于增加预览图像中目标拍摄对象数量的操作时,在所述电子设备显示屏上第一区域显示所述第一预览图像,在第二区域中显示第四预览图像,所述第四预览图像是所述第二目标拍摄对象对应的预览图像;其中,所述第四预览图像上所述第二目标拍摄对象的尺寸大于所述第一图像上所述第二目标拍摄对象的尺寸。
- 根据权利要求1-8任一所述的方法,其特征在于,所述方法还包括:在未识别出所述第一图像上的目标拍摄对象的情况下,显示第五预览图像,所述第五 预览图像是所述第一图像上中心区域内的图像块所对应的预览图像。
- 根据权利要求1-9任一所述的方法,其特征在于,所述方法还包括:检测到拍摄指令;响应于所述拍摄指令,拍摄得到所述第一图像以及第二图像,所述第二图像是所述第一预览图像对应的拍摄图像。
- 根据权利要求3-10任一所述的方法,其特征在于,所述方法还包括:检测到窗口隐藏操作时,隐藏所述第一窗口;检测到窗口唤出操作时,显示所述第一窗口。
- 一种电子设备,其特征在于,包括:处理器,存储器,以及,一个或多个程序;其中,所述一个或多个程序被存储在所述存储器中,所述一个或多个程序包括指令,当所述指令被所述处理器执行时,使得所述电子设备执行如权利要求1-11任一项所述的方法步骤。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质用于存储计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如权利要求1至11中任意一项所述的方法。
- 一种计算机程序产品,其特征在于,包括计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如上述权利要求1-11中任意一项所述的方法。
- 一种电子设备上的图形用户界面,其特征在于,所述电子设备具有显示屏、存储器、以及处理器,所述处理器用于执行存储在所述存储器中的一个或多个计算机程序,所述图形用户界面包括所述电子设备执行上述权利要求1-11中任意一项所述的方法时显示的图形用户界面。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US18/557,205 US20240244311A1 (en) | 2021-04-27 | 2022-04-21 | Method for Displaying Preview Image in Zoom Shooting Scene and Electronic Device |
EP22794745.4A EP4311224A1 (en) | 2021-04-27 | 2022-04-21 | Preview image display method in zoom photographing scenario, and electronic device |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110460565.8 | 2021-04-27 | ||
CN202110460565.8A CN115250327A (zh) | 2021-04-27 | 2021-04-27 | 一种变焦拍摄场景下的预览图像显示方法与电子设备 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022228274A1 true WO2022228274A1 (zh) | 2022-11-03 |
Family
ID=83697394
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/088235 WO2022228274A1 (zh) | 2021-04-27 | 2022-04-21 | 一种变焦拍摄场景下的预览图像显示方法与电子设备 |
Country Status (4)
Country | Link |
---|---|
US (1) | US20240244311A1 (zh) |
EP (1) | EP4311224A1 (zh) |
CN (1) | CN115250327A (zh) |
WO (1) | WO2022228274A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117135452A (zh) * | 2023-03-31 | 2023-11-28 | 荣耀终端有限公司 | 拍摄方法和电子设备 |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117119276A (zh) * | 2023-04-21 | 2023-11-24 | 荣耀终端有限公司 | 一种水下拍摄方法及电子设备 |
CN116567385A (zh) * | 2023-06-14 | 2023-08-08 | 深圳市宗匠科技有限公司 | 图像采集方法及图像采集装置 |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3291533A1 (en) * | 2016-09-06 | 2018-03-07 | LG Electronics Inc. | Terminal and controlling method thereof |
CN110149482A (zh) * | 2019-06-28 | 2019-08-20 | Oppo广东移动通信有限公司 | 对焦方法、装置、电子设备和计算机可读存储介质 |
CN110365906A (zh) * | 2019-07-29 | 2019-10-22 | 维沃移动通信有限公司 | 拍摄方法及移动终端 |
CN110460773A (zh) * | 2019-08-16 | 2019-11-15 | Oppo广东移动通信有限公司 | 图像处理方法和装置、电子设备、计算机可读存储介质 |
CN110830713A (zh) * | 2019-10-30 | 2020-02-21 | 维沃移动通信有限公司 | 一种变焦方法及电子设备 |
CN111010506A (zh) * | 2019-11-15 | 2020-04-14 | 华为技术有限公司 | 一种拍摄方法及电子设备 |
CN112135046A (zh) * | 2020-09-23 | 2020-12-25 | 维沃移动通信有限公司 | 视频拍摄方法、视频拍摄装置及电子设备 |
CN112333380A (zh) * | 2019-06-24 | 2021-02-05 | 华为技术有限公司 | 一种拍摄方法及设备 |
-
2021
- 2021-04-27 CN CN202110460565.8A patent/CN115250327A/zh active Pending
-
2022
- 2022-04-21 WO PCT/CN2022/088235 patent/WO2022228274A1/zh active Application Filing
- 2022-04-21 EP EP22794745.4A patent/EP4311224A1/en active Pending
- 2022-04-21 US US18/557,205 patent/US20240244311A1/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3291533A1 (en) * | 2016-09-06 | 2018-03-07 | LG Electronics Inc. | Terminal and controlling method thereof |
CN112333380A (zh) * | 2019-06-24 | 2021-02-05 | 华为技术有限公司 | 一种拍摄方法及设备 |
CN110149482A (zh) * | 2019-06-28 | 2019-08-20 | Oppo广东移动通信有限公司 | 对焦方法、装置、电子设备和计算机可读存储介质 |
CN110365906A (zh) * | 2019-07-29 | 2019-10-22 | 维沃移动通信有限公司 | 拍摄方法及移动终端 |
CN110460773A (zh) * | 2019-08-16 | 2019-11-15 | Oppo广东移动通信有限公司 | 图像处理方法和装置、电子设备、计算机可读存储介质 |
CN110830713A (zh) * | 2019-10-30 | 2020-02-21 | 维沃移动通信有限公司 | 一种变焦方法及电子设备 |
CN111010506A (zh) * | 2019-11-15 | 2020-04-14 | 华为技术有限公司 | 一种拍摄方法及电子设备 |
CN112135046A (zh) * | 2020-09-23 | 2020-12-25 | 维沃移动通信有限公司 | 视频拍摄方法、视频拍摄装置及电子设备 |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117135452A (zh) * | 2023-03-31 | 2023-11-28 | 荣耀终端有限公司 | 拍摄方法和电子设备 |
Also Published As
Publication number | Publication date |
---|---|
EP4311224A1 (en) | 2024-01-24 |
CN115250327A (zh) | 2022-10-28 |
US20240244311A1 (en) | 2024-07-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021093793A1 (zh) | 一种拍摄方法及电子设备 | |
WO2020177583A1 (zh) | 一种图像裁剪方法和电子设备 | |
WO2021052232A1 (zh) | 一种延时摄影的拍摄方法及设备 | |
CN110225244B (zh) | 一种图像拍摄方法与电子设备 | |
WO2022228274A1 (zh) | 一种变焦拍摄场景下的预览图像显示方法与电子设备 | |
WO2020073959A1 (zh) | 图像捕捉方法及电子设备 | |
WO2021129198A1 (zh) | 一种长焦场景下的拍摄方法及终端 | |
CN113497881B (zh) | 图像处理方法及装置 | |
WO2021143269A1 (zh) | 一种长焦场景下的拍摄方法及移动终端 | |
CN110430357B (zh) | 一种图像拍摄方法与电子设备 | |
US10893137B2 (en) | Photography guiding method, device, and system | |
CN113596316B (zh) | 拍照方法及电子设备 | |
CN113660408B (zh) | 一种视频拍摄防抖方法与装置 | |
WO2023273323A1 (zh) | 一种对焦方法和电子设备 | |
CN113810604B (zh) | 文档拍摄方法、电子设备和存储介质 | |
US20230056332A1 (en) | Image Processing Method and Related Apparatus | |
WO2022266907A1 (zh) | 处理方法、终端设备及存储介质 | |
WO2021179186A1 (zh) | 一种对焦方法、装置及电子设备 | |
CN114298883A (zh) | 图像处理方法、智能终端及存储介质 | |
WO2022206589A1 (zh) | 一种图像处理方法以及相关设备 | |
CN112989092A (zh) | 一种图像处理方法及相关装置 | |
WO2020077544A1 (zh) | 一种物体识别方法和终端设备 | |
WO2022228010A1 (zh) | 一种生成封面的方法及电子设备 | |
WO2022222866A1 (zh) | 一种内容显示方法与电子设备 | |
CN115640414A (zh) | 图像的显示方法及电子设备 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22794745 Country of ref document: EP Kind code of ref document: A1 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2022794745 Country of ref document: EP |
|
WWE | Wipo information: entry into national phase |
Ref document number: 18557205 Country of ref document: US |
|
ENP | Entry into the national phase |
Ref document number: 2022794745 Country of ref document: EP Effective date: 20231019 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |