WO2024061134A1 - Photographing method and apparatus, electronic device, and medium - Google Patents

Photographing method and apparatus, electronic device, and medium Download PDF

Info

Publication number
WO2024061134A1
WO2024061134A1 PCT/CN2023/119194 CN2023119194W WO2024061134A1 WO 2024061134 A1 WO2024061134 A1 WO 2024061134A1 CN 2023119194 W CN2023119194 W CN 2023119194W WO 2024061134 A1 WO2024061134 A1 WO 2024061134A1
Authority
WO
WIPO (PCT)
Prior art keywords
preview image
shooting
image
preview
input
Prior art date
Application number
PCT/CN2023/119194
Other languages
French (fr)
Chinese (zh)
Inventor
钟南军
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2024061134A1 publication Critical patent/WO2024061134A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces

Definitions

  • This application belongs to the field of photography technology, and specifically relates to a photography method, device, electronic equipment and media.
  • the user can trigger the electronic device to display the object in a preview screen, and then trigger the electronic device to increase the magnification of the electronic device so that the electronic device displays the enlarged object in the preview screen, thereby obtaining a multimedia file of the object with higher clarity, such as a picture or video.
  • the user's hand may shake, which may result in the preview screen not including the enlarged subject. Therefore, the user needs to perform multiple operations in order to This causes the electronic device to display the enlarged object in the preview screen, which results in the user's operations being cumbersome and time-consuming during the shooting process.
  • the purpose of the embodiments of the present application is to provide a shooting method, device and electronic equipment, which can solve the problem of low shooting efficiency of electronic equipment.
  • inventions of the present application provide a shooting method.
  • the shooting method includes: displaying a first preview image on a shooting preview interface, where the first preview image is an image collected at a first zoom magnification; receiving a first input from a user ; In response to the first input, display the second preview image on the shooting preview interface, and display a floating window in the target area of the shooting preview interface, the floating window including the third preview image; in the case of receiving the second input from the user, shooting The target file corresponds to the third preview image; wherein the second preview image is an image collected at a second zoom magnification, the third preview image is an image collected at a first zoom magnification, and the first zoom magnification is greater than the second zoom magnification.
  • an embodiment of the present application provides a shooting device, which includes: a receiving module, a display module and a shooting module; the display module is used to display a first preview image on a shooting preview interface, and the first preview image is an image captured at a first zoom factor; the receiving module is used to receive a first input from a user; the display module is also used to display a second preview image on the shooting preview interface in response to the first input received by the receiving module, and display a floating window in a target area of the shooting preview interface, wherein the floating window includes a third preview image; the shooting module is used When the receiving module receives the user's second input, the target file is photographed, and the target file corresponds to the third preview image; wherein the second preview image is an image captured at a second zoom ratio, and the third preview image is an image captured at a first zoom ratio, and the first zoom ratio is greater than the second zoom ratio.
  • inventions of the present application provide an electronic device.
  • the electronic device includes a processor and a memory.
  • the memory stores programs or instructions that can be run on the processor.
  • the program or instructions are executed by the processor, the implementation is as in the first aspect. steps of the method.
  • embodiments of the present application provide a readable storage medium. Programs or instructions are stored on the readable storage medium. When the programs or instructions are executed by a processor, the steps of the method in the first aspect are implemented.
  • inventions of the present application provide a chip.
  • the chip includes a processor and a communication interface.
  • the communication interface is coupled to the processor.
  • the processor is used to run programs or instructions to implement the method of the first aspect.
  • embodiments of the present application provide a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the method of the first aspect.
  • the first preview image is displayed on the shooting preview interface
  • the first input from the user is received
  • the second preview image is displayed on the shooting preview interface and displayed in the target area of the shooting preview interface.
  • a floating window and upon receiving a second input from the user, shoot a target file, and the target file corresponds to a third preview image; wherein the first preview image is an image collected at a first zoom magnification; the floating window includes a third Preview image; the second preview image is an image collected at a second zoom magnification, and the third preview image is an image collected at a first zoom magnification, and the first zoom magnification is greater than the second zoom magnification.
  • the electronic device can display the second preview image captured at the second zoom magnification on the shooting preview interface according to the user's first input of the first preview image at the first zoom magnification, and display the second preview image captured at the first zoom magnification in the floating window.
  • the third preview image accepts the user's second input to shoot the target file corresponding to the third preview image, that is, the user does not need to perform multiple operations to shoot the enlarged shooting object, therefore, the user can simplify the shooting process operation, reduce time-consuming, and improve the shooting efficiency of electronic equipment.
  • Figure 1 is one of the schematic diagrams of a shooting method provided by an embodiment of the present application.
  • Figure 2 is one of the schematic diagrams of an example of the interface of a shooting method provided by an embodiment of the present application
  • Figure 3 is a second schematic diagram of an example of the interface of a shooting method provided by an embodiment of the present application.
  • Figure 4 is a third schematic diagram of an example of an interface of a shooting method provided by an embodiment of the present application.
  • Figure 5 is a fourth schematic diagram of an example of an interface of a shooting method provided by an embodiment of the present application.
  • Figure 6 is a fifth example schematic diagram of an interface of a shooting method provided by an embodiment of the present application.
  • Figure 7 is a sixth schematic diagram of an example of an interface of a shooting method provided by an embodiment of the present application.
  • Figure 8 is a schematic structural diagram of a shooting device provided by an embodiment of the present application.
  • Figure 9 is one of the schematic diagrams of the hardware structure of an electronic device provided by an embodiment of the present application.
  • FIG. 10 is a second schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application.
  • first, second, etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first”, “second”, etc. are generally of one type, and the number of objects is not limited.
  • the first object can be one or more.
  • “and/or” in the specification and claims represents at least one of the connected objects, and the character “/" generally indicates that the objects associated with each other are in an "or” relationship.
  • the user can trigger the electronic device to display the subject in the preview screen, and then trigger the electronic device to increase the magnification of the electronic device so that the electronic device is in the preview screen.
  • Displaying the enlarged object a higher-definition multimedia file, such as a picture or video, of the object can be obtained.
  • the user's hand may shake, which may result in the preview screen not including the enlarged subject. Therefore, the user needs to perform multiple operations in order to This causes the electronic device to display the enlarged object in the preview screen. Therefore, the user's operation during the shooting process is cumbersome and time-consuming.
  • the first preview image is displayed on the shooting preview interface
  • the first input from the user is received
  • the second preview image is displayed on the shooting preview interface and displayed in the target area of the shooting preview interface.
  • a floating window and upon receiving a second input from the user, shoot a target file, and the target file corresponds to a third preview image; wherein the first preview image is an image collected at a first zoom magnification; the floating window includes a third Preview image; the second preview image is an image collected at a second zoom magnification, and the third preview image is an image collected at a first zoom magnification, and the first zoom magnification is greater than the second zoom magnification.
  • the electronic device can display the second preview image captured at the second zoom magnification on the shooting preview interface according to the user's first input of the first preview image at the first zoom magnification, and display the second preview image captured at the first zoom magnification in the floating window.
  • the third preview image accepts the user's second input to shoot the target file corresponding to the third preview image, that is, the user does not need to perform multiple operations to shoot the enlarged shooting object, therefore, the user can simplify the shooting process operation, reduce time-consuming, and improve the shooting efficiency of electronic equipment.
  • FIG. 1 shows a flow chart of a photographing method provided by an embodiment of the present application. This method can be applied to electronic devices. As shown in Figure 1, the photographing method provided by the embodiment of the present application may include the following steps 201 to 204.
  • Step 201 The electronic device displays the first preview image on the shooting preview interface.
  • the first preview image is an image captured at a first zoom ratio.
  • the electronic device may display a sixth preview image on the shooting preview interface, and the sixth preview image is a view taken at a third zoom magnification.
  • the sixth preview image is a view taken at a third zoom magnification.
  • the first preview image collected with the first zoom magnification is displayed in the shooting preview interface, and the first zoom magnification is greater than
  • the third zoom magnification allows the user to clearly see the preview image in the shooting preview interface.
  • the electronic device can collect M video frames through the first camera, and sequentially display the M video frames in the shooting preview interface to display the sixth preview image.
  • M video frames are viewing images at a third zoom ratio.
  • the third zoom ratio and the second zoom ratio described below may be the same, and M is a positive integer.
  • the target application can be any of the following: chatting applications, shooting applications, image processing applications, short video interactive applications, etc.
  • the above-mentioned fourth input may specifically be: the user's two-finger enlargement input on the sixth preview image.
  • two-finger amplification input can be understood as: when the user's two fingers are in contact with the display screen of the electronic device, the user controls the two fingers to move away from each other.
  • the above-mentioned input parameters can specifically be any of the following: input distance, input trajectory, etc.
  • the first zoom ratio is determined according to the input parameter of the fourth input.
  • the first zoom ratio may be an integer greater than 0.
  • the first zoom ratio may be any of the following: 10, 20, 50, etc.
  • the third zoom factor may be an integer greater than 0.
  • the third zoom ratio may be any of the following: 1, 2, 5, etc.
  • Step 202 The electronic device receives the user's first input.
  • the above-mentioned first input may be a user's input to any position in the shooting preview interface, and the first input is used to trigger the electronic device to adjust the first preview image in the shooting preview interface to the second preview image.
  • the first input may be any one of the following: single-click input, double-click input, long-press input, etc., which may be specifically set according to actual needs.
  • Step 203 In response to the first input, the electronic device displays the second preview image on the shooting preview interface, and displays a floating window in the target area of the shooting preview interface.
  • the above-mentioned floating window includes a third preview image.
  • the electronic device can first cancel the display of the first preview image in the shooting preview interface, and then display the second preview image in the shooting preview interface; or, the electronic device can directly display the first preview image in the shooting preview interface. above, the second preview image is displayed in suspension.
  • the second preview image is an image captured at a second zoom factor. picture.
  • the above-mentioned second zoom ratio is smaller than the first zoom ratio.
  • the second zoom ratio may be an integer greater than 0.
  • the second zoom ratio may be any one of the following: 1, 2, 5, etc.
  • the target area may be a preset screen area, or may be a screen area corresponding to the photographed object in the preview image.
  • the preset picture area can be pre-stored by the electronic device, or can be set in advance by the user according to needs.
  • picture area corresponding to the photographic subject can be understood as: the picture area within the preset range of the picture area where the photographic subject is located.
  • a third preview image is displayed in the above-mentioned floating window.
  • the third preview image is an image captured at the first zoom magnification.
  • the electronic device is a mobile phone. Assume that the first zoom ratio is 20x, the second zoom ratio is 1x, and the subjects are boys and girls. As shown in Figure 2, the electronic device displays the first preview image 3 collected at the first zoom magnification on the shooting preview interface 2. According to the user's first input to the first preview image 3, as shown in Figure 3, the electronic device is triggered to The first preview image 3 in the shooting preview interface is adjusted to the second preview image 4, and the third preview image 6 collected at the first zoom magnification is displayed in the floating window 5.
  • Step 204 Upon receiving the second input from the user, the electronic device captures the target file.
  • the above target file corresponds to the third preview image.
  • the second preview image is an image captured at a second zoom magnification
  • the third preview image is an image captured at a first zoom magnification
  • the first zoom magnification is greater than the second zoom magnification.
  • the above-mentioned target file may include any of the following: target images, target videos, etc.
  • the second input may be the user's shooting input.
  • the above-mentioned shooting input may be the user's click input on the shooting control in the shooting preview interface, or may be the user's pressing of a physical button. Enter etc.
  • the electronic device may generate a target file based on the third preview image according to the user's shooting input of the electronic device.
  • the electronic device may generate a target file based on R video frames among the N video frames.
  • the R video frames are determined based on the user's shooting input of the electronic device, and R is a positive integer.
  • the target file may be a target image.
  • the electronic device can, based on the user's fifth input to the first control, which is used to trigger the electronic device to enter the capture mode when the user lets go, so that after the user completes the second After the input, the electronic device can generate the target image based on the image corresponding to the moment when the second input is performed.
  • the above-mentioned fifth input may be any one of the following: click input, long press input, press input, voice input, gesture input, etc.
  • the electronic device displays the preview interface 40 of the captured image
  • the user can enter the capture mode by clicking on the first control 41 in the preview interface 40 .
  • the target file may be a target video.
  • the electronic device can trigger the electronic device to enter the release lock target object mode according to the user's sixth input to the second control, so that after the user completes the second input,
  • the electronic device may generate the target video based on multiple video frames from the moment when the second input is completed.
  • the above-mentioned sixth input may be any one of the following: click input, long press input, press input, voice input, gesture input, etc.
  • the target object may be at least one of the photographic objects displayed in the second preview image.
  • the electronic device displays the preview interface 50 of the video shooting
  • the user can start the mode of releasing the target object by clicking the second control 51 in the preview interface 50.
  • the girl 65 is determined as the first object.
  • the first mark 62 changes from green to red
  • the floating window 63 moves with the girl 65 to obtain the video corresponding to the girl.
  • the electronic device can start the mode of releasing the girl 65 according to the user's click input on the second control 61, that is, the floating window 63 no longer moves with the girl 65.
  • the floating window 63 can be triggered to move with the girl by the user's input of the movement of the girl 65, so that the electronic device generates the target video based on the content of the third preview image 64 in the floating window 63.
  • Display the first preview image on the shooting preview interface receive the first input from the user, and in response to the first input, display the second preview image on the shooting preview interface, and display a floating window in the target area of the shooting preview interface, and after receiving In the case of the user's second input, the target file is captured, and the target file corresponds to the third preview image; wherein the first preview image is an image collected at the first zoom magnification; the floating window includes the third preview image; and the second preview image It is an image collected at the second zoom magnification, and the third preview image is an image collected at the first zoom magnification, and the first zoom magnification is greater than the second zoom magnification.
  • the electronic device can display the second preview image captured at the second zoom magnification on the shooting preview interface according to the user's first input of the first preview image at the first zoom magnification, and display the second preview image captured at the first zoom magnification in the floating window.
  • the third preview image accepts the user's second input to shoot the target file corresponding to the third preview image, that is, the user does not need to perform multiple operations to shoot the enlarged shooting object, therefore, the user can simplify the shooting process operation, reduce time-consuming, and improve the shooting efficiency of electronic equipment.
  • the first input is the user's input in the first preview image.
  • the shooting method provided by the embodiment of the present application may also include the following steps 301 and 302.
  • Step 301 The electronic device receives the user's third input in the second preview image.
  • the above-mentioned third input is used to trigger adjustment of the viewing range of the first camera of the electronic device.
  • the third input may be the user's input at any position in the second preview image.
  • the above third input may be any one of the following: click input, long press input, press input, voice input, gesture input, etc.
  • Step 302 The electronic device responds to the third input, adjusts the viewing range of the first camera of the electronic device according to the input position of the third input, and collects the third preview image at the first zoom magnification through the adjusted first camera.
  • the image content of the third preview image corresponds to the image content of the user's input position of the third input in the second preview image. That is, the third preview image displayed at a high zoom magnification is an enlarged display of the image content corresponding to the user input position in the second preview image displayed at a low zoom magnification.
  • the electronic device can determine the third preview image according to the user's input position in the second preview image, the image content corresponding to the user's input position can be enlarged and displayed according to the user's input, and the second preview can be enlarged and displayed according to the user's needs. Image content within the image.
  • the shooting method provided by the embodiment of the present application may also include the following steps 401 and 402.
  • Step 401 The electronic device obtains object feature information of the first object in the second preview image.
  • the first object may be determined based on the user's first input.
  • the electronic device can detect the target position in the target video frame of the second preview image according to the user's input in the second preview image to determine the screen area where the first object is located, so that the electronic device can use the target feature recognition technology to determine the object feature information of the target object according to the screen area where the first object is located.
  • the target video frame is the video frame corresponding to the starting time of the first input
  • the target position is the input position of the first input on the target video frame.
  • the target feature recognition technology can specifically be any of the following: biometric recognition tracking technology, object feature recognition tracking technology.
  • biometric recognition tracking technology may be at least one of the following: facial feature recognition and tracking technology, hand feature recognition and tracking technology, eye feature recognition and tracking technology, etc.
  • object feature recognition and tracking technology may be at least one of the following: color feature recognition and tracking technology, shape feature recognition and tracking technology, digital feature recognition and tracking technology, etc.
  • Step 402 The electronic device adjusts the viewing range of the second camera of the electronic device according to the object characteristic information, and collects the third preview image at the first zoom magnification through the adjusted second camera.
  • the second camera and the first camera may be the same one, or they may not be the same one.
  • the electronic device can adjust the framing range of the second camera according to the object feature information and determine the third preview image, that is, the image corresponding to the first object in the framing image at the first zoom factor can be displayed in the floating window, that is, the enlarged first object can be displayed in the floating window.
  • the electronic device can determine the third preview image based on the object characteristic information of the first object, when the user's hand shakes, the electronic device can also display the enlarged first object. Therefore, the process of shooting can be simplified. The user's operation is simplified during the process and time-consuming is reduced.
  • the following is an example of how to control the floating window to move following the first object.
  • the target area is the image area corresponding to the first object.
  • the shooting method provided by the embodiment of the present application may also include the following step 501.
  • Step 501 When a first object is displaced, the electronic device moves a floating window to a second screen area of a shooting preview interface.
  • the above-mentioned second picture area is an image area corresponding to the moved first object.
  • the electronic device may compare the position of the first object in adjacent video frames collected by the first camera, and determine the target object if the positions of the two first objects do not match. Movement occurs.
  • the movement of the above-mentioned floating window from the first picture area to the second picture area is determined based on the movement position of the first object in the second preview image.
  • the above-mentioned first picture area is the corresponding image area of the first object before movement.
  • the floating window moves from the first picture area to the second picture area, so that the floating window follows the movement of the first object, so that the third preview image
  • the image corresponding to the first object is always displayed in .
  • the electronic device moves the moving position of the floating window according to the moving position of the first object in the second preview image, so that the image corresponding to the first object is always displayed in the third preview image in the floating window, the performance of the electronic device can be improved. Shooting efficiency.
  • the following is an example of how to capture a target video file when the second object moves.
  • the target file is a target video file.
  • the "shooting target file" in the above-mentioned step 204 includes the following step 601.
  • Step 601 When the second object is displaced, the electronic device uses the second object as the focus object to capture the target video file.
  • the above-mentioned focus object is a photographed object displaying a focus object identifier.
  • the above-mentioned focus object identification is used to instruct the camera to use the second object as the focus object and shoot a target video for the focus object.
  • the camera automatically follows the focus and collects the target video corresponding to the focus object, which can improve the efficiency of the electronic device in shooting video.
  • the following is an example of how to display multiple magnified subjects in a floating window.
  • the photographed objects of the third preview image include at least two objects.
  • the shooting method provided by the embodiment of the present application may also include the following step 701.
  • Step 701 When a third preview image does not include a third object among the at least two objects, the electronic device displays a fourth preview image in a floating window.
  • the fourth preview image is an image captured at a third zoom ratio, the fourth preview image includes at least two objects, and the third zoom ratio is smaller than the first zoom ratio.
  • the third object may be any one of the at least two objects mentioned above.
  • the electronic device determines that the third preview image does not contain any one of the at least two objects, the electronic device reduces the third preview image collected at the first zoom magnification in the floating window to the third preview image at the third zoom magnification.
  • the fourth preview image collected at a zoom magnification such that any one of at least two objects is displayed in the floating window.
  • the third zoom factor may be defaulted by the electronic device system or preset by the user.
  • the electronic device determines the zoom magnification by decreasing the first zoom magnification according to the preset difference value, so that any one of the at least two objects appears in the fourth preview image, This zoom magnification is thereby determined as the third zoom magnification.
  • the above-mentioned preset difference value may be any of the following: 0.5, 1, 1.5, etc.
  • the electronic device adjusts the zoom magnification of the preview image in the floating window based on detecting whether the third preview image contains any one of at least two objects, which can avoid the user from performing multiple operations to make the preview image of the floating window contain at least two objects. , therefore, improving the shooting efficiency of electronic equipment.
  • the photographed objects of the third preview image include a third object and a fourth object.
  • the shooting method provided by the embodiment of the present application may also include the following step 801.
  • Step 801 If the third preview image does not include the third object, the electronic device displays the fifth preview image.
  • the fifth preview image is an image collected at the first zoom magnification, and the fifth preview image includes the third object.
  • the electronic device may display a first floating window in the first area of the shooting preview interface, and display the fifth preview image in the first floating window.
  • the first floating window is different from the floating window, and the first area is different from the target area.
  • the zoom factor of the fifth preview image is the same as the zoom factor of the third preview image.
  • the shooting object of the third preview image includes a third object and a fourth object, as shown in FIG. 7 , assuming that the third object is a girl 70 and the fourth object is a boy 71 , the electronic device detects that the floating object is When the third preview image 73 in the window 72 includes the boy 71 but does not include the girl 70 , the fifth preview image 75 is displayed in the first floating window 74 . Among them, the fifth preview image 75 includes the girl 70 .
  • the electronic device can display the third object in other floating windows.
  • the fifth preview image of the object can be displayed at the same time, and the enlarged preview images of the two shooting objects can be displayed at the same time, which can improve the efficiency of electronic device shooting.
  • the execution subject may be a photographing device.
  • the method of performing photography by the photographing device is taken as an example to describe the photographing device provided by the embodiment of the present application.
  • FIG. 8 shows a possible structural schematic diagram of the shooting device involved in the embodiment of the present application.
  • the photographing device 80 may include: a display module 81 , a receiving module 82 and a photographing module 83 .
  • the display module 81 is used to display the first preview image on the shooting preview interface, and the first preview image is an image collected at the first zoom magnification.
  • the receiving module 82 is used to receive the user's first input.
  • the display module 81 is also configured to respond to the first input received by the receiving module, display the second preview image on the shooting preview interface, and display a floating window in the target area of the shooting preview interface, where the floating window includes the third preview image.
  • the shooting module 83 is used to shoot the target file when the receiving module receives the user's second input, and the target file corresponds to the third preview image; wherein the second preview image is an image collected at a second zoom magnification, and the third preview image is an image collected at a second zoom magnification.
  • the third preview image is an image collected at the first zoom magnification, and the first zoom magnification is greater than the second zoom magnification.
  • the first input is the user's input in the first preview image; the device also includes: a processing module 84; a receiving module 82, which is also used to display the floating window in the target area of the shooting preview interface, Receive the user's third input in the second preview image; the processing module 84 is configured to respond to the third input received by the receiving module, adjust the viewing range of the first camera of the electronic device according to the input position of the third input, and pass The adjusted first camera collects the third preview image at the first zoom ratio.
  • the device further includes: an acquisition module 85; an acquisition module 85, configured to acquire the object characteristic information of the first object in the second preview image before displaying the floating window in the target area of the shooting preview interface;
  • the processing module 84 is also configured to adjust the viewing range of the second camera of the electronic device according to the object characteristic information obtained by the acquisition module, and collect the third preview image at the first zoom magnification through the adjusted second camera.
  • the target area is the image area corresponding to the first object; the device also includes: a moving module 86; the above-mentioned moving module 86 is used to display the floating window in the target area of the shooting preview interface, When the first object is displaced, the floating window is moved to the second picture area of the shooting preview interface, and the second picture area is the image area corresponding to the moved first object.
  • the target file is a target video file
  • the above-mentioned shooting module 83 is specifically configured to shoot the target video file using the second object as the focus object when the second object is displaced.
  • the shooting objects of the third preview image include at least two objects; the display module 81 is also configured to display a floating window in the target area of the shooting preview interface, and the third preview image does not include at least two objects.
  • a fourth preview image is displayed in the floating window; wherein the fourth preview image is an image collected at a third zoom magnification, the fourth preview image includes at least two objects, and the third The zoom ratio is smaller than the first zoom ratio.
  • the shooting objects of the third preview image include a third object and a fourth object; the display module 81 is also configured to display a floating window in the target area of the shooting preview interface in the third preview image. If the third object is not included, a fifth preview image is displayed; wherein the fifth preview image is an image collected at the first zoom magnification, and the fifth preview image includes the third object.
  • the first preview image is displayed on the shooting preview interface
  • the first input from the user is received
  • the second preview image is displayed on the shooting preview interface and displayed in the target area of the shooting preview interface.
  • a floating window and upon receiving a second input from the user, shoot a target file, and the target file corresponds to a third preview image; wherein the first preview image is an image collected at a first zoom magnification; the floating window includes a third Preview image; the second preview image is an image collected at a second zoom magnification, and the third preview image is an image collected at a first zoom magnification, and the first zoom magnification is greater than the second zoom magnification.
  • the shooting device can display the second preview image collected at the second zoom ratio on the shooting preview interface according to the user's first input of the first preview image at the first zoom ratio, and display the second preview image collected at the first zoom ratio in the floating window.
  • the third preview image accepts the user's second input to shoot the target file corresponding to the third preview image, that is, the user does not need to perform multiple operations to shoot the enlarged shooting object, therefore, the user can simplify the shooting process operation, reduce time-consuming, and improve the shooting efficiency of the shooting device.
  • Embodiments of the present application provide a shooting device, because the shooting device can directly display the viewfinder at the second magnification in the second window according to the user's first input of the target object in the viewfinder at the first magnification.
  • the picture corresponding to the target object that is, the user only needs to make one input, so that the shooting device can display the enlarged target object without requiring the user to perform multiple operations. Therefore, the user's operation during the shooting process can be simplified and the consumption is reduced. time, in this way, the shooting efficiency of the shooting device can be improved.
  • the photographing device in the embodiment of the present application may be a device, or may be a component, integrated circuit, or chip in an electronic device.
  • the device may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device can be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), or augmented reality (AR)/virtual reality (virtual reality, VR) equipment, robots, wearable devices, ultra-mobile personal computers (UMPC), netbooks or personal digital assistants (PDA), etc.
  • It can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which are not specifically limited in the embodiments of this application.
  • the photographing device in the embodiment of the present application may be a device with an operating system.
  • the operating system can be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of this application.
  • the shooting device provided by the embodiments of the present application can implement each process implemented by the method embodiments of Figures 1 to 7. To avoid repetition, details will not be described here.
  • the embodiment of the present application also provides an electronic device 90, including a processor 91 and a memory 92.
  • the memory 92 stores programs or instructions that can be run on the processor 91, and the program or When the instructions are executed by the processor 91, each step of the above-mentioned photographing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, the details will not be described here.
  • the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 10 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 100 includes but is not limited to components such as a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
  • components such as a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
  • the electronic device 100 may also include a power supply (such as a battery) that supplies power to various components.
  • the power supply may be logically connected to the processor 110 through a power management system, thereby managing charging, discharging, and function through the power management system. Consumption management and other functions.
  • the structure of the electronic device shown in Figure 10 does not constitute a limitation on the electronic device.
  • the electronic device may include more or less components than shown in the figure, or combine certain components, or arrange different components, which will not be described again here. .
  • the display unit 106 is used to display the first preview image on the shooting preview interface, and the first preview image is an image collected at the first zoom magnification;
  • the user input unit 107 is used to receive the user's first input;
  • the display unit 106 In response to the first input, display the second preview image on the shooting preview interface, and display a floating window in the target area of the shooting preview interface, where the floating window includes the third preview image;
  • the processor 110 is configured to receive the user's third preview image.
  • the target file is captured, and the target file corresponds to the third preview image; wherein, the second preview image is an image collected at the second zoom magnification, the third preview image is an image collected at the first zoom magnification, and the third preview image is an image collected at the first zoom magnification.
  • the first zoom ratio is greater than the second zoom ratio.
  • the first input is the user's input in the first preview image
  • the user input unit 107 is used to receive the user's third input in the second preview image
  • the processor 110 is also configured to In response to the third input, the viewing range of the first camera of the electronic device is adjusted according to the input position of the third input, and a third preview image is captured at a first zoom magnification through the adjusted first camera.
  • the processor 110 is also used to obtain the first object in the second preview image. the object characteristic information; according to the object characteristic information, adjust the viewing range of the second camera of the electronic device, and collect the third preview image at the first zoom magnification through the adjusted second camera.
  • the target area is the image area corresponding to the first object; the processor 110 is also configured to move the floating window to the second screen of the shooting preview interface when the first object is displaced. area, the second picture area is the image area corresponding to the moved first object.
  • the target file is a target video file
  • the processor 110 is further configured to use the second object as the focus object to shoot the target video file when the second object is displaced.
  • the shooting objects of the third preview image include at least two objects; the display unit 106 is also configured to, when the third preview image does not include the third object of the at least two objects, A fourth preview image is displayed in the floating window; wherein the fourth preview image is an image collected at a third zoom magnification, the fourth preview image includes at least two objects, and the third zoom magnification is smaller than the first zoom magnification.
  • the shooting objects of the third preview image include a third object and a fourth object; the display unit 106 is also configured to display the third object when the third preview image does not include the third object.
  • the first preview image is displayed on the shooting preview interface
  • the first input from the user is received
  • the second preview image is displayed on the shooting preview interface and displayed in the target area of the shooting preview interface.
  • a floating window and upon receiving a second input from the user, shoot a target file, and the target file corresponds to a third preview image; wherein the first preview image is an image collected at a first zoom magnification; the floating window includes a third Preview image; the second preview image is an image collected at a second zoom magnification, and the third preview image is an image collected at a first zoom magnification, and the first zoom magnification is greater than the second zoom magnification.
  • the electronic device can display the second preview image captured at the second zoom magnification on the shooting preview interface according to the user's first input of the first preview image at the first zoom magnification, and display the second preview image captured at the first zoom magnification in the floating window.
  • the third preview image accepts the user's second input to shoot the target file corresponding to the third preview image, that is, the user does not need to perform multiple operations to shoot the enlarged shooting object, therefore, the user can simplify the shooting process operation, reduce time-consuming, and improve the shooting efficiency of electronic equipment.
  • An embodiment of the present application provides an electronic device. Since the electronic device can display a second preview screen (i.e., a screen corresponding to the target object after being enlarged) in a second window according to a first input of a user to a target object in a first preview window, and generate a target multimedia file based on the second preview screen, the electronic device can display the screen after the target object is enlarged in the preview screen directly through a single input. Therefore, it can avoid requiring the user to perform multiple operations before the electronic device can display the enlarged target object in the preview screen. In this way, the shooting efficiency of the electronic device can be improved.
  • a second preview screen i.e., a screen corresponding to the target object after being enlarged
  • the electronic device provided by the embodiments of the present application can implement each process implemented by the above method embodiments, and can achieve the same technical effect. To avoid duplication, the details will not be described here.
  • the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042.
  • the graphics processor 1041 is responsible for the image capture device (GPU) in the video capture mode or the image capture mode. Process the image data of still pictures or videos obtained by cameras (such as cameras).
  • the display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 107 includes a touch panel 1071 and at least one of other input devices 1072 .
  • Touch panel 1071 is also called a touch screen.
  • the touch panel 1071 may include two parts: a touch detection device and a touch controller.
  • Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described again here.
  • Memory 109 may be used to store software programs as well as various data.
  • the memory 109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, Image playback function, etc.) etc.
  • memory 109 may include volatile memory or nonvolatile memory, or memory 109 may include both volatile and nonvolatile memory.
  • non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electrically removable memory.
  • Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synch link DRAM) , SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DRRAM).
  • RAM Random Access Memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • DRAM synchronous dynamic random access memory
  • SDRAM double data rate synchronous dynamic random access memory
  • Double Data Rate SDRAM Double Data Rate SDRAM
  • DDRSDRAM double data rate synchronous dynamic random access memory
  • Enhanced SDRAM, ESDRAM synchronous dynamic random access memory
  • Synch link DRAM synchronous link dynamic random access memory
  • SLDRAM direct memory
  • the processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor and a modem processor, where the application processor mainly handles operations related to the operating system, user interface, application programs, etc., Modem processors mainly process wireless communication signals, such as baseband processors. It can be understood that the above modem processor may not be integrated into the processor 110 .
  • An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored.
  • a program or instruction is stored.
  • the program or instruction is executed by a processor, each process of the above-mentioned shooting method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
  • the processor is the processor in the electronic device described in the above embodiment.
  • the readable storage medium includes computer readable storage media, such as computer read-only memory ROM, random access memory RAM, magnetic disk or optical disk, etc.
  • An embodiment of the present application further provides a chip.
  • the chip includes a processor and a communication interface.
  • the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement each process of the above method embodiments, and can achieve the same technical effect. To avoid duplication, the details will not be described here.
  • chips mentioned in the embodiments of this application may also be called system-on-chip, system-on-a-chip, system-on-a-chip or system-on-chip, etc.
  • Embodiments of the present application provide a computer program product.
  • the program product is stored in a storage medium.
  • the program product is executed by at least one processor to implement each process of the above-mentioned shooting method embodiment, and can achieve the same technical effect. To avoid repetition, they will not be repeated here.
  • the methods of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. implementation.
  • the technical solution of the present application can be embodied in the form of a computer software product that is essentially or contributes to the existing technology.
  • the computer software product is stored in a storage medium (such as ROM/RAM, disk , optical disk), including several instructions to cause a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of this application.

Abstract

The present application relates to the technical field of photographing, and discloses a photographing method and apparatus, an electronic device, and a medium. The method comprises: displaying a first preview image on a photographing preview interface, the first preview image being an image captured at a first zoom ratio; receiving a first input of a user; in response to the first input, displaying a second preview image on the photographing preview interface, and displaying a floating window in a target region of the photographing preview interface, the floating window comprising a third preview image; and when a second input of the user is received, photographing a target file, the target file corresponding to the third preview image, wherein the second preview image is an image captured at a second zoom ratio, the third preview image is an image captured at the first zoom ratio, and the first zoom ratio is greater than the second zoom ratio.

Description

拍摄方法、装置、电子设备及介质Photography methods, devices, electronic equipment and media
相关申请的交叉引用Cross-references to related applications
本申请主张在2022年09月19日在中国提交的中国专利申请号202211138515.9的优先权,其全部内容通过引用包含于此。This application claims priority to Chinese Patent Application No. 202211138515.9 filed in China on September 19, 2022, the entire content of which is incorporated herein by reference.
技术领域Technical field
本申请属于拍摄技术领域,具体涉及一种拍摄方法、装置、电子设备及介质。This application belongs to the field of photography technology, and specifically relates to a photography method, device, electronic equipment and media.
背景技术Background technique
通常,在用户使用电子设备拍摄远距离拍摄对象的场景下,用户可以触发电子设备在预览画面中显示拍摄对象,然后再触发电子设备调大电子设备的放大倍数,以使得电子设备在预览画面中显示放大后的该拍摄对象,从而可以得到该拍摄对象的清晰度较高的多媒体文件,例如,图片或视频。Typically, in a scenario where a user uses an electronic device to shoot a distant object, the user can trigger the electronic device to display the object in a preview screen, and then trigger the electronic device to increase the magnification of the electronic device so that the electronic device displays the enlarged object in the preview screen, thereby obtaining a multimedia file of the object with higher clarity, such as a picture or video.
但是,由于在用户触发电子设备调大放大倍数之后,可能会出现用户手抖的情况,这样可能会导致预览画面中不包含放大后的拍摄对象的情况,因此,用户需要进行多次操作,以使得电子设备在预览画面中显示放大后的该拍摄对象,从而导致在拍摄的过程中用户的操作比较繁琐、且耗时。However, after the user triggers the electronic device to increase the magnification, the user's hand may shake, which may result in the preview screen not including the enlarged subject. Therefore, the user needs to perform multiple operations in order to This causes the electronic device to display the enlarged object in the preview screen, which results in the user's operations being cumbersome and time-consuming during the shooting process.
如此,导致电子设备的拍摄效率较低。As a result, the shooting efficiency of the electronic device is low.
发明内容Contents of the invention
本申请实施例的目的是提供一种拍摄方法、装置及电子设备,能够解决电子设备的拍摄效率较低的问题。The purpose of the embodiments of the present application is to provide a shooting method, device and electronic equipment, which can solve the problem of low shooting efficiency of electronic equipment.
第一方面,本申请实施例提供了一种拍摄方法,该拍摄方法包括:在拍摄预览界面显示第一预览图像,第一预览图像是以第一变焦倍率采集的图像;接收用户的第一输入;响应于第一输入,在拍摄预览界面显示第二预览图像,并在拍摄预览界面的目标区域显示悬浮窗口,悬浮窗口包括第三预览图像;在接收到用户的第二输入的情况下,拍摄目标文件,目标文件与第三预览图像对应;其中,第二预览图像是以第二变焦倍率采集的图像,第三预览图像是以第一变焦倍率采集的图像,第一变焦倍率大于第二变焦倍率。In a first aspect, embodiments of the present application provide a shooting method. The shooting method includes: displaying a first preview image on a shooting preview interface, where the first preview image is an image collected at a first zoom magnification; receiving a first input from a user ; In response to the first input, display the second preview image on the shooting preview interface, and display a floating window in the target area of the shooting preview interface, the floating window including the third preview image; in the case of receiving the second input from the user, shooting The target file corresponds to the third preview image; wherein the second preview image is an image collected at a second zoom magnification, the third preview image is an image collected at a first zoom magnification, and the first zoom magnification is greater than the second zoom magnification.
第二方面,本申请实施例提供了一种拍摄装置,该拍摄装置包括:接收模块、显示模块和拍摄模块;显示模块,用于在拍摄预览界面显示第一预览图像,第一预览图像是以第一变焦倍率采集的图像;接收模块,用于接收用户的第一输入;显示模块,还用于响应于接收模块接收的第一输入,在拍摄预览界面显示第二预览图像,并在拍摄预览界面的目标区域显示悬浮窗口,悬浮窗口包括第三预览图像;拍摄模块,用于 在接收模块接收到用户的第二输入的情况下,拍摄目标文件,目标文件与第三预览图像对应;其中,第二预览图像是以第二变焦倍率采集的图像,第三预览图像是以第一变焦倍率采集的图像,第一变焦倍率大于第二变焦倍率。In a second aspect, an embodiment of the present application provides a shooting device, which includes: a receiving module, a display module and a shooting module; the display module is used to display a first preview image on a shooting preview interface, and the first preview image is an image captured at a first zoom factor; the receiving module is used to receive a first input from a user; the display module is also used to display a second preview image on the shooting preview interface in response to the first input received by the receiving module, and display a floating window in a target area of the shooting preview interface, wherein the floating window includes a third preview image; the shooting module is used When the receiving module receives the user's second input, the target file is photographed, and the target file corresponds to the third preview image; wherein the second preview image is an image captured at a second zoom ratio, and the third preview image is an image captured at a first zoom ratio, and the first zoom ratio is greater than the second zoom ratio.
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器和存储器,存储器存储可在处理器上运行的程序或指令,程序或指令被处理器执行时实现如第一方面的方法的步骤。In a third aspect, embodiments of the present application provide an electronic device. The electronic device includes a processor and a memory. The memory stores programs or instructions that can be run on the processor. When the program or instructions are executed by the processor, the implementation is as in the first aspect. steps of the method.
第四方面,本申请实施例提供了一种可读存储介质,可读存储介质上存储程序或指令,程序或指令被处理器执行时实现如第一方面的方法的步骤。In a fourth aspect, embodiments of the present application provide a readable storage medium. Programs or instructions are stored on the readable storage medium. When the programs or instructions are executed by a processor, the steps of the method in the first aspect are implemented.
第五方面,本申请实施例提供了一种芯片,芯片包括处理器和通信接口,通信接口和处理器耦合,处理器用于运行程序或指令,实现如第一方面的方法。In a fifth aspect, embodiments of the present application provide a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the method of the first aspect.
第六方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面的方法。In a sixth aspect, embodiments of the present application provide a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the method of the first aspect.
在本申请实施例中,在拍摄预览界面显示第一预览图像,接收用户的第一输入,并响应于第一输入,在拍摄预览界面显示第二预览图像,且在拍摄预览界面的目标区域显示悬浮窗口,以及在接收到用户的第二输入的情况下,拍摄目标文件,目标文件与第三预览图像对应;其中,第一预览图像是以第一变焦倍率采集的图像;悬浮窗口包括第三预览图像;第二预览图像是以第二变焦倍率采集的图像,第三预览图像是以第一变焦倍率采集的图像,第一变焦倍率大于第二变焦倍率。由于电子设备可以根据用户对第一变焦倍率下的第一预览图像的第一输入,在拍摄预览界面显示以第二变焦倍率采集的第二预览图像,并在悬浮窗口显示以第一变焦倍率采集的第三预览图像,然后接受用户的第二输入拍摄与第三预览图像对应的目标文件,即无需用户进行多次操作,以拍摄放大后的拍摄对象,因此,可以简化在拍摄的过程中用户的操作、且减少耗时,提高了电子设备的拍摄效率。In the embodiment of the present application, the first preview image is displayed on the shooting preview interface, the first input from the user is received, and in response to the first input, the second preview image is displayed on the shooting preview interface and displayed in the target area of the shooting preview interface. A floating window, and upon receiving a second input from the user, shoot a target file, and the target file corresponds to a third preview image; wherein the first preview image is an image collected at a first zoom magnification; the floating window includes a third Preview image; the second preview image is an image collected at a second zoom magnification, and the third preview image is an image collected at a first zoom magnification, and the first zoom magnification is greater than the second zoom magnification. Because the electronic device can display the second preview image captured at the second zoom magnification on the shooting preview interface according to the user's first input of the first preview image at the first zoom magnification, and display the second preview image captured at the first zoom magnification in the floating window. The third preview image, and then accepts the user's second input to shoot the target file corresponding to the third preview image, that is, the user does not need to perform multiple operations to shoot the enlarged shooting object, therefore, the user can simplify the shooting process operation, reduce time-consuming, and improve the shooting efficiency of electronic equipment.
附图说明Description of drawings
图1是本申请实施例提供的一种拍摄方法的示意图之一;Figure 1 is one of the schematic diagrams of a shooting method provided by an embodiment of the present application;
图2是本申请实施例提供的一种拍摄方法的界面的实例示意图之一;Figure 2 is one of the schematic diagrams of an example of the interface of a shooting method provided by an embodiment of the present application;
图3是本申请实施例提供的一种拍摄方法的界面的实例示意图之二;Figure 3 is a second schematic diagram of an example of the interface of a shooting method provided by an embodiment of the present application;
图4是本申请实施例提供的一种拍摄方法的界面的实例示意图之三;Figure 4 is a third schematic diagram of an example of an interface of a shooting method provided by an embodiment of the present application;
图5是本申请实施例提供的一种拍摄方法的界面的实例示意图之四;Figure 5 is a fourth schematic diagram of an example of an interface of a shooting method provided by an embodiment of the present application;
图6是本申请实施例提供的一种拍摄方法的界面的实例示意图之五;Figure 6 is a fifth example schematic diagram of an interface of a shooting method provided by an embodiment of the present application;
图7是本申请实施例提供的一种拍摄方法的界面的实例示意图之六;Figure 7 is a sixth schematic diagram of an example of an interface of a shooting method provided by an embodiment of the present application;
图8是本申请实施例提供的一种拍摄装置的结构示意图;Figure 8 is a schematic structural diagram of a shooting device provided by an embodiment of the present application;
图9是本申请实施例提供的一种电子设备的硬件结构示意图之一;Figure 9 is one of the schematic diagrams of the hardware structure of an electronic device provided by an embodiment of the present application;
图10是本申请实施例提供的一种电子设备的硬件结构示意图之二。 FIG. 10 is a second schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and/or" in the specification and claims represents at least one of the connected objects, and the character "/" generally indicates that the objects associated with each other are in an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的拍摄方法进行详细地说明。The shooting method provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios.
通常,在用户使用电子设备拍摄远距离拍摄对象的场景下,用户可以触发电子设备在预览画面中显示拍摄对象,然后再触发电子设备调大电子设备的放大倍数,以使得电子设备在预览画面中显示放大后的该拍摄对象,从而可以得到该拍摄对象的清晰度较高的多媒体文件,例如,图片或视频。然而,由于在用户触发电子设备调大放大倍数之后,可能会出现用户手抖的情况,这样可能会导致预览画面中不包含放大后的拍摄对象的情况,因此,用户需要进行多次操作,以使得电子设备在预览画面中显示放大后的该拍摄对象,因此,导致在拍摄的过程中用户的操作比较繁琐、且耗时。Usually, in a scenario where a user uses an electronic device to shoot a distant subject, the user can trigger the electronic device to display the subject in the preview screen, and then trigger the electronic device to increase the magnification of the electronic device so that the electronic device is in the preview screen. Displaying the enlarged object, a higher-definition multimedia file, such as a picture or video, of the object can be obtained. However, after the user triggers the electronic device to increase the magnification, the user's hand may shake, which may result in the preview screen not including the enlarged subject. Therefore, the user needs to perform multiple operations in order to This causes the electronic device to display the enlarged object in the preview screen. Therefore, the user's operation during the shooting process is cumbersome and time-consuming.
在本申请实施例中,在拍摄预览界面显示第一预览图像,接收用户的第一输入,并响应于第一输入,在拍摄预览界面显示第二预览图像,且在拍摄预览界面的目标区域显示悬浮窗口,以及在接收到用户的第二输入的情况下,拍摄目标文件,目标文件与第三预览图像对应;其中,第一预览图像是以第一变焦倍率采集的图像;悬浮窗口包括第三预览图像;第二预览图像是以第二变焦倍率采集的图像,第三预览图像是以第一变焦倍率采集的图像,第一变焦倍率大于第二变焦倍率。由于电子设备可以根据用户对第一变焦倍率下的第一预览图像的第一输入,在拍摄预览界面显示以第二变焦倍率采集的第二预览图像,并在悬浮窗口显示以第一变焦倍率采集的第三预览图像,然后接受用户的第二输入拍摄与第三预览图像对应的目标文件,即无需用户进行多次操作,以拍摄放大后的拍摄对象,因此,可以简化在拍摄的过程中用户的操作、且减少耗时,提高电子设备的拍摄效率。In the embodiment of the present application, the first preview image is displayed on the shooting preview interface, the first input from the user is received, and in response to the first input, the second preview image is displayed on the shooting preview interface and displayed in the target area of the shooting preview interface. A floating window, and upon receiving a second input from the user, shoot a target file, and the target file corresponds to a third preview image; wherein the first preview image is an image collected at a first zoom magnification; the floating window includes a third Preview image; the second preview image is an image collected at a second zoom magnification, and the third preview image is an image collected at a first zoom magnification, and the first zoom magnification is greater than the second zoom magnification. Because the electronic device can display the second preview image captured at the second zoom magnification on the shooting preview interface according to the user's first input of the first preview image at the first zoom magnification, and display the second preview image captured at the first zoom magnification in the floating window. The third preview image, and then accepts the user's second input to shoot the target file corresponding to the third preview image, that is, the user does not need to perform multiple operations to shoot the enlarged shooting object, therefore, the user can simplify the shooting process operation, reduce time-consuming, and improve the shooting efficiency of electronic equipment.
本申请实施例提供一种拍摄方法,图1示出了本申请实施例提供的一种拍摄方法的流程图,该方法可以应用于电子设备。如图1所示,本申请实施例提供的拍摄方法可以包括下述的步骤201至步骤204。 An embodiment of the present application provides a photographing method. Figure 1 shows a flow chart of a photographing method provided by an embodiment of the present application. This method can be applied to electronic devices. As shown in Figure 1, the photographing method provided by the embodiment of the present application may include the following steps 201 to 204.
步骤201、电子设备在拍摄预览界面显示第一预览图像。Step 201: The electronic device displays the first preview image on the shooting preview interface.
其中,第一预览图像是以第一变焦倍率采集的图像。The first preview image is an image captured at a first zoom ratio.
可选地,本申请实施例中,在显示目标应用的拍摄预览界面的情况下,电子设备可以在该拍摄预览界面显示第六预览图像,该第六预览图像是以第三变焦倍率采集的取景图像,并根据用户在该第六预览图像上的第四输入,根据第四输入的输入参数,在该拍摄预览界面中显示以第一变焦倍率采集的第一预览图像,该第一变焦倍率大于第三变焦倍率,从而用户可以看清拍摄预览界面中的预览图像。Optionally, in the embodiment of the present application, when the shooting preview interface of the target application is displayed, the electronic device may display a sixth preview image on the shooting preview interface, and the sixth preview image is a view taken at a third zoom magnification. image, and according to the user's fourth input on the sixth preview image and according to the input parameters of the fourth input, the first preview image collected with the first zoom magnification is displayed in the shooting preview interface, and the first zoom magnification is greater than The third zoom magnification allows the user to clearly see the preview image in the shooting preview interface.
进一步可选地,本申请实施例中,电子设备可以通过第一摄像头采集M个视频帧,并在拍摄预览界面中依次显示该M个视频帧,以显示第六预览图像。其中,M个视频帧是第三变焦倍率下的取景图像,该第三变焦倍率和下述第二变焦倍率可以相同,M为正整数。Further optionally, in this embodiment of the present application, the electronic device can collect M video frames through the first camera, and sequentially display the M video frames in the shooting preview interface to display the sixth preview image. Among them, M video frames are viewing images at a third zoom ratio. The third zoom ratio and the second zoom ratio described below may be the same, and M is a positive integer.
其中,目标应用可以为以下任一项:聊天类应用、拍摄类应用、图像处理类应用、短视频交互类应用等。Among them, the target application can be any of the following: chatting applications, shooting applications, image processing applications, short video interactive applications, etc.
示例性地,上述第四输入具体可以为:用户对第六预览图像的双指放大输入。For example, the above-mentioned fourth input may specifically be: the user's two-finger enlargement input on the sixth preview image.
需要说明的是,上述“双指放大输入”可以理解为:在用户的双指与电子设备的显示屏接触的情况下,用户控制双指进行相互远离的移动的输入。It should be noted that the above-mentioned "two-finger amplification input" can be understood as: when the user's two fingers are in contact with the display screen of the electronic device, the user controls the two fingers to move away from each other.
其中,上述输入参数具体可以为以下任一项:输入距离、输入轨迹等。The above-mentioned input parameters can specifically be any of the following: input distance, input trajectory, etc.
可以理解的是,第一变焦倍率是根据第四输入的输入参数确定的。It can be understood that the first zoom ratio is determined according to the input parameter of the fourth input.
进一步可选地,本申请实施例中,上述第一变焦倍率可以为大于0的整数。Further optionally, in this embodiment of the present application, the first zoom ratio may be an integer greater than 0.
具体地,第一变焦倍率具体可以为以下任一项:10、20、50等。Specifically, the first zoom ratio may be any of the following: 10, 20, 50, etc.
可选地,本申请实施例中,上述第三变焦倍率可以为大于0的整数。Optionally, in this embodiment of the present application, the third zoom factor may be an integer greater than 0.
进一步可选地,本申请实施例中,上述第三变焦倍率具体可以为以下任一项:1、2、5等。Further optionally, in the embodiment of the present application, the third zoom ratio may be any of the following: 1, 2, 5, etc.
步骤202、电子设备接收用户的第一输入。Step 202: The electronic device receives the user's first input.
示例性地,上述第一输入可以为用户对拍摄预览界面中任意位置的输入,第一输入用于触发电子设备将拍摄预览界面中的第一预览图像调整为第二预览图像。For example, the above-mentioned first input may be a user's input to any position in the shooting preview interface, and the first input is used to trigger the electronic device to adjust the first preview image in the shooting preview interface to the second preview image.
可选地,本申请实施例中,上述第一输入可以为以下任一项:单击输入、双击输入、长按输入等,具体的可以根据实际需求设定。Optionally, in the embodiment of the present application, the first input may be any one of the following: single-click input, double-click input, long-press input, etc., which may be specifically set according to actual needs.
步骤203、电子设备响应于第一输入,在拍摄预览界面显示第二预览图像,并在拍摄预览界面的目标区域显示悬浮窗口。Step 203: In response to the first input, the electronic device displays the second preview image on the shooting preview interface, and displays a floating window in the target area of the shooting preview interface.
其中,上述悬浮窗口包括第三预览图像。Wherein, the above-mentioned floating window includes a third preview image.
可选地,本申请实施例中,电子设备可以在拍摄预览界面中先取消显示第一预览图像,然后再在拍摄预览界面中显示第二预览图像;或者,电子设备可以直接在第一预览图像上,悬浮显示第二预览图像。Optionally, in this embodiment of the present application, the electronic device can first cancel the display of the first preview image in the shooting preview interface, and then display the second preview image in the shooting preview interface; or, the electronic device can directly display the first preview image in the shooting preview interface. above, the second preview image is displayed in suspension.
进一步可选地,本申请实施例中,上述第二预览图像是以第二变焦倍率采集的图 像。Further optionally, in the embodiment of the present application, the second preview image is an image captured at a second zoom factor. picture.
其中,上述第二变焦倍率小于第一变焦倍率。Wherein, the above-mentioned second zoom ratio is smaller than the first zoom ratio.
可选地,本申请实施例中,上述第二变焦倍率可以为大于0的整数。Optionally, in this embodiment of the present application, the second zoom ratio may be an integer greater than 0.
进一步可选地,本申请实施例中,上述第二变焦倍率具体可以为以下任一项:1、2、5等。Further optionally, in the embodiment of the present application, the second zoom ratio may be any one of the following: 1, 2, 5, etc.
可选地,本申请实施例中,上述目标区域可以为预设的画面区域,或者可以为预览图像中的拍摄对象对应的画面区域。Optionally, in this embodiment of the present application, the target area may be a preset screen area, or may be a screen area corresponding to the photographed object in the preview image.
其中,预设的画面区域可以为电子设备预先存储的,也可以为用户根据需要提前设置的。Among them, the preset picture area can be pre-stored by the electronic device, or can be set in advance by the user according to needs.
需要说明的是,上述“拍摄对象对应的画面区域”可以理解为:拍摄对象所在的画面区域的预设范围内的画面区域。It should be noted that the above-mentioned “picture area corresponding to the photographic subject” can be understood as: the picture area within the preset range of the picture area where the photographic subject is located.
可选地,本申请实施例中,上述悬浮窗口中显示第三预览图像。该第三预览图像是以第一变焦倍率采集的图像。Optionally, in this embodiment of the present application, a third preview image is displayed in the above-mentioned floating window. The third preview image is an image captured at the first zoom magnification.
举例说明,以电子设备为手机为例进行说明。假设第一变焦倍率为20倍,第二变焦倍率为1倍,拍摄对象为男孩和女孩。如图2所示,电子设备在拍摄预览界面2显示以第一变焦倍率采集的第一预览图像3,根据用户对第一预览图像3的第一输入,如图3所示,触发电子设备将拍摄预览界面中的第一预览图像3调整为第二预览图像4,并在悬浮窗口5中显示以第一变焦倍率采集的第三预览图像6。As an example, the electronic device is a mobile phone. Assume that the first zoom ratio is 20x, the second zoom ratio is 1x, and the subjects are boys and girls. As shown in Figure 2, the electronic device displays the first preview image 3 collected at the first zoom magnification on the shooting preview interface 2. According to the user's first input to the first preview image 3, as shown in Figure 3, the electronic device is triggered to The first preview image 3 in the shooting preview interface is adjusted to the second preview image 4, and the third preview image 6 collected at the first zoom magnification is displayed in the floating window 5.
步骤204、电子设备在接收到用户的第二输入的情况下,拍摄目标文件。Step 204: Upon receiving the second input from the user, the electronic device captures the target file.
其中,上述目标文件与第三预览图像对应。第二预览图像是以第二变焦倍率采集的图像,第三预览图像是以第一变焦倍率采集的图像,第一变焦倍率大于第二变焦倍率。Wherein, the above target file corresponds to the third preview image. The second preview image is an image captured at a second zoom magnification, and the third preview image is an image captured at a first zoom magnification, and the first zoom magnification is greater than the second zoom magnification.
可选地,本申请实施例中,上述目标文件可以包括以下任一项:目标图像、目标视频等。Optionally, in this embodiment of the present application, the above-mentioned target file may include any of the following: target images, target videos, etc.
可选地,本申请实施例中,第二输入可以为用户的拍摄输入,具体地,上述拍摄输入可以为用户对拍摄预览界面中的拍摄控件的点击输入,或者可以为用户对物理按键的按压输入等。Optionally, in the embodiment of the present application, the second input may be the user's shooting input. Specifically, the above-mentioned shooting input may be the user's click input on the shooting control in the shooting preview interface, or may be the user's pressing of a physical button. Enter etc.
可选地,本申请实施例中,在上述悬浮窗口显示第三预览图像之后,电子设备可以根据用户对电子设备的拍摄输入,根据第三预览图像,生成目标文件。Optionally, in this embodiment of the present application, after the above-mentioned floating window displays the third preview image, the electronic device may generate a target file based on the third preview image according to the user's shooting input of the electronic device.
可选地,本申请实施例中,电子设备可以根据N个视频帧中的R个视频帧,生成目标文件。其中,该R个视频帧是根据用户对电子设备的拍摄输入确定的,R为正整数。Optionally, in this embodiment of the present application, the electronic device may generate a target file based on R video frames among the N video frames. Wherein, the R video frames are determined based on the user's shooting input of the electronic device, and R is a positive integer.
在一种示例中,目标文件可以为目标图像。In one example, the target file may be a target image.
在电子设备处于拍摄图像模式的情况下,电子设备可以根据用户对第一控件的第五输入,该第一控件用于触发电子设备进入松手即抓拍模式,从而在用户执行完第二 输入之后,电子设备可以根据执行完第二输入的时刻对应的图像,生成目标图像。When the electronic device is in the image capturing mode, the electronic device can, based on the user's fifth input to the first control, which is used to trigger the electronic device to enter the capture mode when the user lets go, so that after the user completes the second After the input, the electronic device can generate the target image based on the image corresponding to the moment when the second input is performed.
其中,上述第五输入可以为以下任意一项:点击输入、长按输入、按压输入、语音输入、手势输入等。Wherein, the above-mentioned fifth input may be any one of the following: click input, long press input, press input, voice input, gesture input, etc.
举例说明,如图4所示,电子设备在显示拍摄图像的预览界面40的情况下,可以通过用户对预览界面40中的第一控件41的点击输入,进入松手即抓拍模式。For example, as shown in FIG. 4 , when the electronic device displays the preview interface 40 of the captured image, the user can enter the capture mode by clicking on the first control 41 in the preview interface 40 .
在另一种示例中,目标文件可以为目标视频。In another example, the target file may be a target video.
在电子设备处于拍摄视频模式的情况下,电子设备可以根据用户对第二控件的第六输入,第二控件用于触发电子设备进入松手锁定目标对象模式,从而在用户执行完第二输入之后,电子设备可以根据执行完第二输入的时刻起的多个视频帧,生成目标视频。When the electronic device is in the video shooting mode, the electronic device can trigger the electronic device to enter the release lock target object mode according to the user's sixth input to the second control, so that after the user completes the second input, The electronic device may generate the target video based on multiple video frames from the moment when the second input is completed.
具体地,上述第六输入可以为以下任意一项:点击输入、长按输入、按压输入、语音输入、手势输入等。Specifically, the above-mentioned sixth input may be any one of the following: click input, long press input, press input, voice input, gesture input, etc.
其中,上述目标对象可以为第二预览图像中显示的拍摄对象中的至少一个拍摄对象。The target object may be at least one of the photographic objects displayed in the second preview image.
举例说明,如图5所示,电子设备在显示拍摄视频的预览界面50的情况下,可以通过用户对预览界面50中的第二控件51的点击输入,启动松手即锁定目标对象模式。如图6所示,假设用户在第二预览图像中对女孩65进行第二输入,则将女孩65确定为第一对象,当手指离开显示屏时,第一标识62从绿色变为红色,并且悬浮窗口63跟随女孩65移动,以获取女孩对应的视频。如图6所示,电子设备在启动松手即锁定女孩65的模式的情况下,电子设备可以根据用户对第二控件61的点击输入,启动松手即不锁定女孩65的模式,即悬浮窗口63不再跟随女孩65移动,如果还要继续拍摄视频的情况下,可以通过用户对女孩65的移动输入触发悬浮窗口63跟随女孩移动,以使得电子设备基于悬浮窗口63中的第三预览图像64的内容生成目标视频。For example, as shown in FIG5, when the electronic device displays the preview interface 50 of the video shooting, the user can start the mode of releasing the target object by clicking the second control 51 in the preview interface 50. As shown in FIG6, assuming that the user makes a second input to the girl 65 in the second preview image, the girl 65 is determined as the first object. When the finger leaves the display screen, the first mark 62 changes from green to red, and the floating window 63 moves with the girl 65 to obtain the video corresponding to the girl. As shown in FIG6, when the electronic device starts the mode of releasing the girl 65, the electronic device can start the mode of releasing the girl 65 according to the user's click input on the second control 61, that is, the floating window 63 no longer moves with the girl 65. If the video needs to be continued, the floating window 63 can be triggered to move with the girl by the user's input of the movement of the girl 65, so that the electronic device generates the target video based on the content of the third preview image 64 in the floating window 63.
在拍摄预览界面显示第一预览图像,接收用户的第一输入,并响应于第一输入,在拍摄预览界面显示第二预览图像,且在拍摄预览界面的目标区域显示悬浮窗口,以及在接收到用户的第二输入的情况下,拍摄目标文件,目标文件与第三预览图像对应;其中,第一预览图像是以第一变焦倍率采集的图像;悬浮窗口包括第三预览图像;第二预览图像是以第二变焦倍率采集的图像,第三预览图像是以第一变焦倍率采集的图像,第一变焦倍率大于第二变焦倍率。由于电子设备可以根据用户对第一变焦倍率下的第一预览图像的第一输入,在拍摄预览界面显示以第二变焦倍率采集的第二预览图像,并在悬浮窗口显示以第一变焦倍率采集的第三预览图像,然后接受用户的第二输入拍摄与第三预览图像对应的目标文件,即无需用户进行多次操作,以拍摄放大后的拍摄对象,因此,可以简化在拍摄的过程中用户的操作、且减少耗时,提高电子设备的拍摄效率。Display the first preview image on the shooting preview interface, receive the first input from the user, and in response to the first input, display the second preview image on the shooting preview interface, and display a floating window in the target area of the shooting preview interface, and after receiving In the case of the user's second input, the target file is captured, and the target file corresponds to the third preview image; wherein the first preview image is an image collected at the first zoom magnification; the floating window includes the third preview image; and the second preview image It is an image collected at the second zoom magnification, and the third preview image is an image collected at the first zoom magnification, and the first zoom magnification is greater than the second zoom magnification. Because the electronic device can display the second preview image captured at the second zoom magnification on the shooting preview interface according to the user's first input of the first preview image at the first zoom magnification, and display the second preview image captured at the first zoom magnification in the floating window. The third preview image, and then accepts the user's second input to shoot the target file corresponding to the third preview image, that is, the user does not need to perform multiple operations to shoot the enlarged shooting object, therefore, the user can simplify the shooting process operation, reduce time-consuming, and improve the shooting efficiency of electronic equipment.
以下将如何根据用户输入确定第三预览图像进行举例说明。 How to determine the third preview image based on user input will be described below as an example.
可选地,本申请实施例中,第一输入为用户在第一预览图像中的输入。在上述步骤203中“在拍摄预览界面的目标区域显示悬浮窗口”之前,本申请实施例提供的拍摄方法还可以包括下述的步骤301和步骤302。Optionally, in this embodiment of the present application, the first input is the user's input in the first preview image. Before "displaying a floating window in the target area of the shooting preview interface" in the above step 203, the shooting method provided by the embodiment of the present application may also include the following steps 301 and 302.
步骤301、电子设备接收用户在第二预览图像中的第三输入。Step 301: The electronic device receives the user's third input in the second preview image.
可选地,本申请实施例中,上述第三输入用于触发调整电子设备的第一摄像头的取景范围。Optionally, in this embodiment of the present application, the above-mentioned third input is used to trigger adjustment of the viewing range of the first camera of the electronic device.
进一步可选地,本申请实施例中,上述第三输入可以为用户在第二预览图像中的任意位置的输入。Further optionally, in this embodiment of the present application, the third input may be the user's input at any position in the second preview image.
具体地,上述第三输入可以为以下任意一项:点击输入、长按输入、按压输入、语音输入、手势输入等。Specifically, the above third input may be any one of the following: click input, long press input, press input, voice input, gesture input, etc.
步骤302、电子设备响应于第三输入,根据第三输入的输入位置,调整电子设备的第一摄像头的取景范围,并通过调整后的第一摄像头,以第一变焦倍率采集第三预览图像。Step 302: The electronic device responds to the third input, adjusts the viewing range of the first camera of the electronic device according to the input position of the third input, and collects the third preview image at the first zoom magnification through the adjusted first camera.
可选地,本申请实施例中,上述第三预览图像的图像内容与用户在第二预览图像中的第三输入的输入位置的图像内容相对应。即以高变焦倍率显示的第三预览图像是对以低变焦倍率显示的第二预览图像中用户输入位置对应的图像内容的放大显示。Optionally, in this embodiment of the present application, the image content of the third preview image corresponds to the image content of the user's input position of the third input in the second preview image. That is, the third preview image displayed at a high zoom magnification is an enlarged display of the image content corresponding to the user input position in the second preview image displayed at a low zoom magnification.
如此,由于电子设备可以根据用户在第二预览图像中的输入位置,确定第三预览图像,这样可以根据用户输入,放大显示与用户输入位置对应的图像内容,可以按照用户需求放大显示第二预览图像中的图像内容。In this way, since the electronic device can determine the third preview image according to the user's input position in the second preview image, the image content corresponding to the user's input position can be enlarged and displayed according to the user's input, and the second preview can be enlarged and displayed according to the user's needs. Image content within the image.
以下将如何根据第一对象的对象特征信息确定第三预览图像进行举例说明。How to determine the third preview image according to the object characteristic information of the first object will be described below with an example.
可选地,本申请实施例中,在上述步骤203中“在拍摄预览界面的目标区域显示悬浮窗口”之前,本申请实施例提供的拍摄方法还可以包括下述的步骤401和步骤402。Optionally, in the embodiment of the present application, before "displaying a floating window in the target area of the shooting preview interface" in the above step 203, the shooting method provided by the embodiment of the present application may also include the following steps 401 and 402.
步骤401、电子设备获取第二预览图像中的第一对象的对象特征信息。Step 401: The electronic device obtains object feature information of the first object in the second preview image.
可选地,本申请实施例中,上述第一对象可以为根据用户的第一输入确定的。Optionally, in this embodiment of the present application, the first object may be determined based on the user's first input.
进一步可选地,本申请实施例中,电子设备可以根据用户在第二预览图像中的输入,对第二预览图像的目标视频帧中的目标位置进行检测,以确定第一对象所在的画面区域,从而电子设备可以根据该第一对象所在的画面区域,采用目标特征识别技术,确定目标对象的对象特征信息。其中,目标视频帧为第一输入的起始时刻对应的视频帧,目标位置为第一输入在该目标视频帧上的输入位置。Further optionally, in the embodiment of the present application, the electronic device can detect the target position in the target video frame of the second preview image according to the user's input in the second preview image to determine the screen area where the first object is located, so that the electronic device can use the target feature recognition technology to determine the object feature information of the target object according to the screen area where the first object is located. The target video frame is the video frame corresponding to the starting time of the first input, and the target position is the input position of the first input on the target video frame.
其中,目标特征识别技术具体可以为以下任意一项:生物特征识别追踪技术、物体特征识别追踪技术。具体地,上述生物特征识别追踪技术可以为以下至少一项:脸部特征识别追踪技术、手部特征识别追踪技术、眼部特征识别追踪技术等。上述物体特征识别追踪技术可以为以下至少一项:颜色特征识别追踪技术、形状特征识别追踪技术、数字特征识别追踪技术等。Among them, the target feature recognition technology can specifically be any of the following: biometric recognition tracking technology, object feature recognition tracking technology. Specifically, the above-mentioned biometric recognition tracking technology may be at least one of the following: facial feature recognition and tracking technology, hand feature recognition and tracking technology, eye feature recognition and tracking technology, etc. The above-mentioned object feature recognition and tracking technology may be at least one of the following: color feature recognition and tracking technology, shape feature recognition and tracking technology, digital feature recognition and tracking technology, etc.
需要说明的是,针对面部特征识别追踪技术的说明,可以参考相关技术中的具体 描述,本申请实施例在此不予赘述。It should be noted that for the description of facial feature recognition and tracking technology, please refer to the specific Description, the embodiments of the present application are not described in detail here.
步骤402、电子设备根据对象特征信息,调整电子设备的第二摄像头的取景范围,并通过调整后的第二摄像头,以第一变焦倍率采集第三预览图像。Step 402: The electronic device adjusts the viewing range of the second camera of the electronic device according to the object characteristic information, and collects the third preview image at the first zoom magnification through the adjusted second camera.
可选地,本申请实施例中,上述第二摄像头与上述第一摄像头可以为同一个,也可以不是同一个。Optionally, in this embodiment of the present application, the second camera and the first camera may be the same one, or they may not be the same one.
可以理解的是,在出现用户手抖的情况时,电子设备可以根据对象特征信息,调整第二摄像头的取景范围,确定第三预览图像,即悬浮窗口中可以显示第一变焦倍率下的取景图像中第一对象对应的图像,也即悬浮窗口中可以显示放大后的第一对象。It can be understood that when the user's hand shakes, the electronic device can adjust the framing range of the second camera according to the object feature information and determine the third preview image, that is, the image corresponding to the first object in the framing image at the first zoom factor can be displayed in the floating window, that is, the enlarged first object can be displayed in the floating window.
如此,由于电子设备可以根据第一对象的对象特征信息,确定第三预览图像,这样在用户出现手抖的情况时,电子设备也可以显示放大后的第一对象,因此,可以简化在拍摄的过程中用户的操作、且减少耗时。In this way, since the electronic device can determine the third preview image based on the object characteristic information of the first object, when the user's hand shakes, the electronic device can also display the enlarged first object. Therefore, the process of shooting can be simplified. The user's operation is simplified during the process and time-consuming is reduced.
以下将如何控制悬浮窗口跟随第一对象进行移动进行举例说明。The following is an example of how to control the floating window to move following the first object.
可选地,本申请实施例中,目标区域为第一对象对应的图像区域。在上述步骤203中“在拍摄预览界面的目标区域显示悬浮窗口”之后,本申请实施例提供的拍摄方法还可以包括下述的步骤501。Optionally, in this embodiment of the present application, the target area is the image area corresponding to the first object. After "displaying a floating window in the target area of the shooting preview interface" in the above step 203, the shooting method provided by the embodiment of the present application may also include the following step 501.
步骤501、电子设备在第一对象产生位移的情况下,将悬浮窗口移动至拍摄预览界面的第二画面区域上。Step 501: When a first object is displaced, the electronic device moves a floating window to a second screen area of a shooting preview interface.
其中,上述第二画面区域为移动后的第一对象对应的图像区域。Wherein, the above-mentioned second picture area is an image area corresponding to the moved first object.
可选地,本申请实施例中,电子设备可以比对第一摄像头采集的相邻的视频帧中第一对象的位置,并在两个第一对象的位置不匹配的情况下,确定目标对象发生移动。Optionally, in this embodiment of the present application, the electronic device may compare the position of the first object in adjacent video frames collected by the first camera, and determine the target object if the positions of the two first objects do not match. Movement occurs.
可选地,本申请实施例中,上述悬浮窗口从第一画面区域移动至第二画面区域,是根据第一对象在第二预览图像中的移动位置确定的。其中,上述第一画面区域为移动前第一对象的对应的图像区域。Optionally, in this embodiment of the present application, the movement of the above-mentioned floating window from the first picture area to the second picture area is determined based on the movement position of the first object in the second preview image. Wherein, the above-mentioned first picture area is the corresponding image area of the first object before movement.
具体地,在启动锁定第一对象模式或者根据用户输入移动悬浮窗口的情况下,悬浮窗口从第一画面区域移动到第二画面区域,以使得悬浮窗口跟随第一对象移动,从而第三预览图像中始终显示第一对象对应的图像。Specifically, when the locking first object mode is started or the floating window is moved according to user input, the floating window moves from the first picture area to the second picture area, so that the floating window follows the movement of the first object, so that the third preview image The image corresponding to the first object is always displayed in .
如此,由于电子设备根据第二预览图像中第一对象的移动位置,移动悬浮窗口的移动位置,以使得悬浮窗口中的第三预览图像中始终显示第一对象对应的图像,可以提高电子设备的拍摄效率。In this way, since the electronic device moves the moving position of the floating window according to the moving position of the first object in the second preview image, so that the image corresponding to the first object is always displayed in the third preview image in the floating window, the performance of the electronic device can be improved. Shooting efficiency.
以下将如何在第二对象发生移动的情况下,拍摄目标视频文件进行举例说明。The following is an example of how to capture a target video file when the second object moves.
可选地,本申请实施例中,目标文件为目标视频文件。上述步骤204中“拍摄目标文件”包括下述的步骤601。Optionally, in this embodiment of the present application, the target file is a target video file. The "shooting target file" in the above-mentioned step 204 includes the following step 601.
步骤601、电子设备在第二对象产生位移的情况下,以第二对象为追焦对象,拍摄目标视频文件。Step 601: When the second object is displaced, the electronic device uses the second object as the focus object to capture the target video file.
可选地,本申请实施例中,上述追焦对象为显示追焦对象标识的拍摄对象。 Optionally, in this embodiment of the present application, the above-mentioned focus object is a photographed object displaying a focus object identifier.
示例性地,上述追焦对象标识用于指示摄像头以第二对象为追焦对象,拍摄针对追焦对象的目标视频。For example, the above-mentioned focus object identification is used to instruct the camera to use the second object as the focus object and shoot a target video for the focus object.
如此,电子设备在拍摄视频时,在追焦对象发生移动的情况下,摄像头自动追焦,并采集追焦对象对应的目标视频,可以提升电子设备拍摄视频的效率。In this way, when the electronic device shoots a video, when the focus object moves, the camera automatically follows the focus and collects the target video corresponding to the focus object, which can improve the efficiency of the electronic device in shooting video.
以下将如何在悬浮窗口显示放大后的多个拍摄对象进行举例说明。The following is an example of how to display multiple magnified subjects in a floating window.
可选地,本申请实施例中,第三预览图像的拍摄对象包括至少两个对象。上述步骤203中“在拍摄预览界面的目标区域显示悬浮窗口”之后,本申请实施例提供的拍摄方法还可以包括下述的步骤701。Optionally, in this embodiment of the present application, the photographed objects of the third preview image include at least two objects. After "displaying a floating window in the target area of the shooting preview interface" in the above step 203, the shooting method provided by the embodiment of the present application may also include the following step 701.
步骤701、电子设备在第三预览图像中不包括至少两个对象中第三对象的情况下,在悬浮窗口中显示第四预览图像。Step 701: When a third preview image does not include a third object among the at least two objects, the electronic device displays a fourth preview image in a floating window.
其中,第四预览图像是以第三变焦倍率采集的图像,第四预览图像中包括至少两个对象,第三变焦倍率小于第一变焦倍率。The fourth preview image is an image captured at a third zoom ratio, the fourth preview image includes at least two objects, and the third zoom ratio is smaller than the first zoom ratio.
可选地,本申请实施例中,上述第三对象可以为上述至少两个对象中的任意一个对象。Optionally, in this embodiment of the present application, the third object may be any one of the at least two objects mentioned above.
可以理解的是,电子设备在确定第三预览图像中不包含至少两个对象中的任意一个对象的情况下,将悬浮窗口中的以第一变焦倍率采集的第三预览图像缩小为以第三变焦倍率采集的第四预览图像,以使得至少两个对象中的任意一个对象都在悬浮窗口中显示。It can be understood that, when the electronic device determines that the third preview image does not contain any one of the at least two objects, the electronic device reduces the third preview image collected at the first zoom magnification in the floating window to the third preview image at the third zoom magnification. The fourth preview image collected at a zoom magnification such that any one of at least two objects is displayed in the floating window.
可选地,本申请实施例中,上述第三变焦倍数可以为电子设备系统默认的,或者用户预先设置的。Optionally, in the embodiment of the present application, the third zoom factor may be defaulted by the electronic device system or preset by the user.
举例说明,在电子设备系统默认的情况下,电子设备按照预设差值对第一变焦倍率进行递减确定变焦倍率,以使得至少两个对象中的任意一个对象均出现在第四预览图像中,从而将该变焦倍率确定为第三变焦倍率。具体地,上述预设差值可以为以下任一项:0.5、1、1.5等。For example, under the default condition of the electronic device system, the electronic device determines the zoom magnification by decreasing the first zoom magnification according to the preset difference value, so that any one of the at least two objects appears in the fourth preview image, This zoom magnification is thereby determined as the third zoom magnification. Specifically, the above-mentioned preset difference value may be any of the following: 0.5, 1, 1.5, etc.
电子设备根据检测第三预览图像中是否包含至少两个对象中的任意一个对象,调整悬浮窗口中预览图像的变焦倍率,可以避免用户进行多次操作使得悬浮窗口的预览图像中包含至少两个对象,因此,提升电子设备的拍摄效率。The electronic device adjusts the zoom magnification of the preview image in the floating window based on detecting whether the third preview image contains any one of at least two objects, which can avoid the user from performing multiple operations to make the preview image of the floating window contain at least two objects. , therefore, improving the shooting efficiency of electronic equipment.
可选地,本申请实施例中,上述第三预览图像的拍摄对象包括第三对象和第四对象。上述步骤203中“在拍摄预览界面的目标区域显示悬浮窗口”之后,本申请实施例提供的拍摄方法还可以包括下述的步骤801。Optionally, in this embodiment of the present application, the photographed objects of the third preview image include a third object and a fourth object. After "displaying a floating window in the target area of the shooting preview interface" in the above step 203, the shooting method provided by the embodiment of the present application may also include the following step 801.
步骤801、电子设备在第三预览图像中不包括第三对象的情况下,显示第五预览图像。Step 801: If the third preview image does not include the third object, the electronic device displays the fifth preview image.
其中,第五预览图像是以第一变焦倍率采集的图像,第五预览图像中包括第三对象。Wherein, the fifth preview image is an image collected at the first zoom magnification, and the fifth preview image includes the third object.
可以理解,在第三预览图像的拍摄对象包括第三对象和第四对象两个对象时,上 述第三预览图像中不包括第三对象的情况下,电子设备可以在拍摄预览界面的第一区域显示第一悬浮窗口,并在该第一悬浮窗口显示第五预览图像。It can be understood that when the shooting object of the third preview image includes two objects, the third object and the fourth object, the above If the third preview image does not include the third object, the electronic device may display a first floating window in the first area of the shooting preview interface, and display the fifth preview image in the first floating window.
具体地,上述第一悬浮窗口与上述悬浮窗口不同,且上述第一区域与目标区域不同。Specifically, the first floating window is different from the floating window, and the first area is different from the target area.
其中,上述第五预览图像的变焦倍率与上述第三预览图像的变焦倍率相同。Wherein, the zoom factor of the fifth preview image is the same as the zoom factor of the third preview image.
举例说明,在第三预览图像的拍摄对象包括第三对象和第四对象的情况下,如图7所示,假设第三对象为女孩70,第四对象为男孩71,电子设备检测到在悬浮窗口72中的第三预览图像73中包括男孩71,不包括女孩70的时,在第一悬浮窗口74中显示第五预览图像75。其中,第五预览图像75包括女孩70。For example, when the shooting object of the third preview image includes a third object and a fourth object, as shown in FIG. 7 , assuming that the third object is a girl 70 and the fourth object is a boy 71 , the electronic device detects that the floating object is When the third preview image 73 in the window 72 includes the boy 71 but does not include the girl 70 , the fifth preview image 75 is displayed in the first floating window 74 . Among them, the fifth preview image 75 includes the girl 70 .
如此,在第三预览图像的拍摄对象包括两个对象,即第三对象和第四对象时,且第三预览图像不包括第三对象的情况下,电子设备可以在其他悬浮窗口显示包括第三对象的第五预览图像,从而能够同时显示两个拍摄对象放大后的预览图像,能够提高电子设备拍摄的效率。In this way, when the shooting object of the third preview image includes two objects, namely the third object and the fourth object, and the third preview image does not include the third object, the electronic device can display the third object in other floating windows. The fifth preview image of the object can be displayed at the same time, and the enlarged preview images of the two shooting objects can be displayed at the same time, which can improve the efficiency of electronic device shooting.
需要说明的是,本申请实施例提供的拍摄方法,执行主体可以为拍摄装置。本申请实施例中以拍摄装置执行拍摄的方法为例,说明本申请实施例提供的拍摄的装置。It should be noted that, for the photographing method provided by the embodiments of the present application, the execution subject may be a photographing device. In the embodiment of the present application, the method of performing photography by the photographing device is taken as an example to describe the photographing device provided by the embodiment of the present application.
图8示出了本申请实施例中涉及的拍摄装置的一种可能的结构示意图。如图8所示,该拍摄装置80可以包括:显示模块81、接收模块82和拍摄模块83。FIG. 8 shows a possible structural schematic diagram of the shooting device involved in the embodiment of the present application. As shown in FIG. 8 , the photographing device 80 may include: a display module 81 , a receiving module 82 and a photographing module 83 .
其中,显示模块81,用于在拍摄预览界面显示第一预览图像,第一预览图像是以第一变焦倍率采集的图像。接收模块82,用于接收用户的第一输入。显示模块81,还用于响应于接收模块接收的第一输入,在拍摄预览界面显示第二预览图像,并在拍摄预览界面的目标区域显示悬浮窗口,悬浮窗口包括第三预览图像。拍摄模块83,用于在接收模块接收到用户的第二输入的情况下,拍摄目标文件,目标文件与第三预览图像对应;其中,第二预览图像是以第二变焦倍率采集的图像,第三预览图像是以第一变焦倍率采集的图像,第一变焦倍率大于第二变焦倍率。Among them, the display module 81 is used to display the first preview image on the shooting preview interface, and the first preview image is an image collected at the first zoom magnification. The receiving module 82 is used to receive the user's first input. The display module 81 is also configured to respond to the first input received by the receiving module, display the second preview image on the shooting preview interface, and display a floating window in the target area of the shooting preview interface, where the floating window includes the third preview image. The shooting module 83 is used to shoot the target file when the receiving module receives the user's second input, and the target file corresponds to the third preview image; wherein the second preview image is an image collected at a second zoom magnification, and the third preview image is an image collected at a second zoom magnification. The third preview image is an image collected at the first zoom magnification, and the first zoom magnification is greater than the second zoom magnification.
在一种可能的实现方式中,第一输入为用户在第一预览图像中的输入;装置还包括:处理模块84;接收模块82,还用于在拍摄预览界面的目标区域显示悬浮窗口之前,接收用户在第二预览图像中的第三输入;处理模块84,用于响应于接收模块接收的第三输入,根据第三输入的输入位置,调整电子设备的第一摄像头的取景范围,并通过调整后的第一摄像头,以第一变焦倍率采集第三预览图像。In a possible implementation, the first input is the user's input in the first preview image; the device also includes: a processing module 84; a receiving module 82, which is also used to display the floating window in the target area of the shooting preview interface, Receive the user's third input in the second preview image; the processing module 84 is configured to respond to the third input received by the receiving module, adjust the viewing range of the first camera of the electronic device according to the input position of the third input, and pass The adjusted first camera collects the third preview image at the first zoom ratio.
在一种可能的实现方式中,装置还包括:获取模块85;获取模块85,用于在拍摄预览界面的目标区域显示悬浮窗口之前,获取第二预览图像中的第一对象的对象特征信息;处理模块84,还用于根据获取模块获取的对象特征信息,调整电子设备的第二摄像头的取景范围,并通过调整后的第二摄像头,以第一变焦倍率采集第三预览图像。In a possible implementation, the device further includes: an acquisition module 85; an acquisition module 85, configured to acquire the object characteristic information of the first object in the second preview image before displaying the floating window in the target area of the shooting preview interface; The processing module 84 is also configured to adjust the viewing range of the second camera of the electronic device according to the object characteristic information obtained by the acquisition module, and collect the third preview image at the first zoom magnification through the adjusted second camera.
在一种可能的实现方式中,目标区域为第一对象对应的图像区域;装置还包括:移动模块86;上述移动模块86,用于在拍摄预览界面的目标区域显示悬浮窗口之后, 在第一对象产生位移的情况下,将悬浮窗口移动至拍摄预览界面的第二画面区域上,第二画面区域为移动后的第一对象对应的图像区域。In a possible implementation, the target area is the image area corresponding to the first object; the device also includes: a moving module 86; the above-mentioned moving module 86 is used to display the floating window in the target area of the shooting preview interface, When the first object is displaced, the floating window is moved to the second picture area of the shooting preview interface, and the second picture area is the image area corresponding to the moved first object.
在一种可能的实现方式中,目标文件为目标视频文件,上述拍摄模块83,具体用于在第二对象产生位移的情况下,以第二对象为追焦对象,拍摄目标视频文件。In one possible implementation, the target file is a target video file, and the above-mentioned shooting module 83 is specifically configured to shoot the target video file using the second object as the focus object when the second object is displaced.
在一种可能的实现方式中,第三预览图像的拍摄对象包括至少两个对象;显示模块81,还用于在拍摄预览界面的目标区域显示悬浮窗口之后,在第三预览图像中不包括至少两个对象中第三对象的情况下,在悬浮窗口中显示第四预览图像;其中,第四预览图像是以第三变焦倍率采集的图像,第四预览图像中包括至少两个对象,第三变焦倍率小于第一变焦倍率。In a possible implementation, the shooting objects of the third preview image include at least two objects; the display module 81 is also configured to display a floating window in the target area of the shooting preview interface, and the third preview image does not include at least two objects. In the case of the third object among the two objects, a fourth preview image is displayed in the floating window; wherein the fourth preview image is an image collected at a third zoom magnification, the fourth preview image includes at least two objects, and the third The zoom ratio is smaller than the first zoom ratio.
在一种可能的实现方式中,第三预览图像的拍摄对象包括第三对象和第四对象;显示模块81,还用于在拍摄预览界面的目标区域显示悬浮窗口之后,在第三预览图像中不包括第三对象的情况下,显示第五预览图像;其中,第五预览图像是以第一变焦倍率采集的图像,第五预览图像中包括第三对象。In a possible implementation, the shooting objects of the third preview image include a third object and a fourth object; the display module 81 is also configured to display a floating window in the target area of the shooting preview interface in the third preview image. If the third object is not included, a fifth preview image is displayed; wherein the fifth preview image is an image collected at the first zoom magnification, and the fifth preview image includes the third object.
在本申请实施例中,在拍摄预览界面显示第一预览图像,接收用户的第一输入,并响应于第一输入,在拍摄预览界面显示第二预览图像,且在拍摄预览界面的目标区域显示悬浮窗口,以及在接收到用户的第二输入的情况下,拍摄目标文件,目标文件与第三预览图像对应;其中,第一预览图像是以第一变焦倍率采集的图像;悬浮窗口包括第三预览图像;第二预览图像是以第二变焦倍率采集的图像,第三预览图像是以第一变焦倍率采集的图像,第一变焦倍率大于第二变焦倍率。由于拍摄装置可以根据用户对第一变焦倍率下的第一预览图像的第一输入,在拍摄预览界面显示以第二变焦倍率采集的第二预览图像,并在悬浮窗口显示以第一变焦倍率采集的第三预览图像,然后接受用户的第二输入拍摄与第三预览图像对应的目标文件,即无需用户进行多次操作,以拍摄放大后的拍摄对象,因此,可以简化在拍摄的过程中用户的操作、且减少耗时,提高拍摄装置的拍摄效率。In the embodiment of the present application, the first preview image is displayed on the shooting preview interface, the first input from the user is received, and in response to the first input, the second preview image is displayed on the shooting preview interface and displayed in the target area of the shooting preview interface. A floating window, and upon receiving a second input from the user, shoot a target file, and the target file corresponds to a third preview image; wherein the first preview image is an image collected at a first zoom magnification; the floating window includes a third Preview image; the second preview image is an image collected at a second zoom magnification, and the third preview image is an image collected at a first zoom magnification, and the first zoom magnification is greater than the second zoom magnification. Because the shooting device can display the second preview image collected at the second zoom ratio on the shooting preview interface according to the user's first input of the first preview image at the first zoom ratio, and display the second preview image collected at the first zoom ratio in the floating window. The third preview image, and then accepts the user's second input to shoot the target file corresponding to the third preview image, that is, the user does not need to perform multiple operations to shoot the enlarged shooting object, therefore, the user can simplify the shooting process operation, reduce time-consuming, and improve the shooting efficiency of the shooting device.
本申请实施例提供一种拍摄装置,由于拍摄装置可以根据用户对第一放大倍数下的取景画面中的目标对象的第一输入,直接在第二窗口显示第二放大倍数下的该取景画面中目标对象对应的画面,即用户需要进行一次输入,便可以使得拍摄装置显示放大后的该目标对象,而无需用户进行多次操作,因此,可以简化在拍摄的过程中用户的操作、且减少耗时,如此,可以提高拍摄装置的拍摄效率。Embodiments of the present application provide a shooting device, because the shooting device can directly display the viewfinder at the second magnification in the second window according to the user's first input of the target object in the viewfinder at the first magnification. The picture corresponding to the target object, that is, the user only needs to make one input, so that the shooting device can display the enlarged target object without requiring the user to perform multiple operations. Therefore, the user's operation during the shooting process can be simplified and the consumption is reduced. time, in this way, the shooting efficiency of the shooting device can be improved.
本申请实施例中的拍摄装置可以是装置,也可以是电子设备中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等, 还可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The photographing device in the embodiment of the present application may be a device, or may be a component, integrated circuit, or chip in an electronic device. The device may be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device can be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), or augmented reality (AR)/virtual reality (virtual reality, VR) equipment, robots, wearable devices, ultra-mobile personal computers (UMPC), netbooks or personal digital assistants (PDA), etc., It can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which are not specifically limited in the embodiments of this application.
本申请实施例中的拍摄装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The photographing device in the embodiment of the present application may be a device with an operating system. The operating system can be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of this application.
本申请实施例提供的拍摄装置能够实现图1至图7的方法实施例实现的各个过程,为避免重复,这里不再赘述。The shooting device provided by the embodiments of the present application can implement each process implemented by the method embodiments of Figures 1 to 7. To avoid repetition, details will not be described here.
可选地,如图9所示,本申请实施例还提供一种电子设备90,包括处理器91和存储器92,存储器92上存储有可在处理器91上运行的程序或指令,该程序或指令被处理器91执行时实现上述拍摄方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in Figure 9, the embodiment of the present application also provides an electronic device 90, including a processor 91 and a memory 92. The memory 92 stores programs or instructions that can be run on the processor 91, and the program or When the instructions are executed by the processor 91, each step of the above-mentioned photographing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, the details will not be described here.
需要说明的是,本申请实施例中的电子设备包括上述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
图10为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 10 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、以及处理器110等部件。The electronic device 100 includes but is not limited to components such as a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
本领域技术人员可以理解,电子设备100还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图10中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 100 may also include a power supply (such as a battery) that supplies power to various components. The power supply may be logically connected to the processor 110 through a power management system, thereby managing charging, discharging, and function through the power management system. Consumption management and other functions. The structure of the electronic device shown in Figure 10 does not constitute a limitation on the electronic device. The electronic device may include more or less components than shown in the figure, or combine certain components, or arrange different components, which will not be described again here. .
其中,显示单元106,用于在拍摄预览界面显示第一预览图像,第一预览图像是以第一变焦倍率采集的图像;用户输入单元107,用于接收用户的第一输入;显示单元106,用于响应于第一输入,在拍摄预览界面显示第二预览图像,并在拍摄预览界面的目标区域显示悬浮窗口,悬浮窗口包括第三预览图像;处理器110,用于在接收到用户的第二输入的情况下,拍摄目标文件,目标文件与第三预览图像对应;其中,第二预览图像是以第二变焦倍率采集的图像,第三预览图像是以第一变焦倍率采集的图像,第一变焦倍率大于第二变焦倍率。Among them, the display unit 106 is used to display the first preview image on the shooting preview interface, and the first preview image is an image collected at the first zoom magnification; the user input unit 107 is used to receive the user's first input; the display unit 106, In response to the first input, display the second preview image on the shooting preview interface, and display a floating window in the target area of the shooting preview interface, where the floating window includes the third preview image; the processor 110 is configured to receive the user's third preview image. In the case of two inputs, the target file is captured, and the target file corresponds to the third preview image; wherein, the second preview image is an image collected at the second zoom magnification, the third preview image is an image collected at the first zoom magnification, and the third preview image is an image collected at the first zoom magnification. The first zoom ratio is greater than the second zoom ratio.
可选地,本申请实施例中,第一输入为用户在第一预览图像中的输入;用户输入单元107,用于接收用户在第二预览图像中的第三输入;处理器110,还用于响应于第三输入,根据第三输入的输入位置,调整电子设备的第一摄像头的取景范围,并通过调整后的第一摄像头,以第一变焦倍率采集第三预览图像。Optionally, in this embodiment of the present application, the first input is the user's input in the first preview image; the user input unit 107 is used to receive the user's third input in the second preview image; the processor 110 is also configured to In response to the third input, the viewing range of the first camera of the electronic device is adjusted according to the input position of the third input, and a third preview image is captured at a first zoom magnification through the adjusted first camera.
可选地,本申请实施例中,处理器110,还用于获取第二预览图像中的第一对象 的对象特征信息;根据对象特征信息,调整电子设备的第二摄像头的取景范围,并通过调整后的第二摄像头,以第一变焦倍率采集第三预览图像。Optionally, in this embodiment of the present application, the processor 110 is also used to obtain the first object in the second preview image. the object characteristic information; according to the object characteristic information, adjust the viewing range of the second camera of the electronic device, and collect the third preview image at the first zoom magnification through the adjusted second camera.
可选地,本申请实施例中,目标区域为第一对象对应的图像区域;处理器110,还用于在第一对象产生位移的情况下,将悬浮窗口移动至拍摄预览界面的第二画面区域上,第二画面区域为移动后的第一对象对应的图像区域。Optionally, in the embodiment of the present application, the target area is the image area corresponding to the first object; the processor 110 is also configured to move the floating window to the second screen of the shooting preview interface when the first object is displaced. area, the second picture area is the image area corresponding to the moved first object.
可选地,本申请实施例中,目标文件为目标视频文件,处理器110,还用于在第二对象产生位移的情况下,以第二对象为追焦对象,拍摄目标视频文件。Optionally, in this embodiment of the present application, the target file is a target video file, and the processor 110 is further configured to use the second object as the focus object to shoot the target video file when the second object is displaced.
可选地,本申请实施例中,第三预览图像的拍摄对象包括至少两个对象;显示单元106,还用于在第三预览图像中不包括至少两个对象中第三对象的情况下,在悬浮窗口中显示第四预览图像;其中,第四预览图像是以第三变焦倍率采集的图像,第四预览图像中包括至少两个对象,第三变焦倍率小于第一变焦倍率。Optionally, in this embodiment of the present application, the shooting objects of the third preview image include at least two objects; the display unit 106 is also configured to, when the third preview image does not include the third object of the at least two objects, A fourth preview image is displayed in the floating window; wherein the fourth preview image is an image collected at a third zoom magnification, the fourth preview image includes at least two objects, and the third zoom magnification is smaller than the first zoom magnification.
可选地,本申请实施例中,第三预览图像的拍摄对象包括第三对象和第四对象;显示单元106,还用于在第三预览图像中不包括第三对象的情况下,显示第五预览图像;其中,第五预览图像是以第一变焦倍率采集的图像,第五预览图像中包括第三对象。Optionally, in this embodiment of the present application, the shooting objects of the third preview image include a third object and a fourth object; the display unit 106 is also configured to display the third object when the third preview image does not include the third object. Five preview images; wherein, the fifth preview image is an image collected at a first zoom magnification, and the fifth preview image includes a third object.
在本申请实施例中,在拍摄预览界面显示第一预览图像,接收用户的第一输入,并响应于第一输入,在拍摄预览界面显示第二预览图像,且在拍摄预览界面的目标区域显示悬浮窗口,以及在接收到用户的第二输入的情况下,拍摄目标文件,目标文件与第三预览图像对应;其中,第一预览图像是以第一变焦倍率采集的图像;悬浮窗口包括第三预览图像;第二预览图像是以第二变焦倍率采集的图像,第三预览图像是以第一变焦倍率采集的图像,第一变焦倍率大于第二变焦倍率。由于电子设备可以根据用户对第一变焦倍率下的第一预览图像的第一输入,在拍摄预览界面显示以第二变焦倍率采集的第二预览图像,并在悬浮窗口显示以第一变焦倍率采集的第三预览图像,然后接受用户的第二输入拍摄与第三预览图像对应的目标文件,即无需用户进行多次操作,以拍摄放大后的拍摄对象,因此,可以简化在拍摄的过程中用户的操作、且减少耗时,提高电子设备的拍摄效率。In the embodiment of the present application, the first preview image is displayed on the shooting preview interface, the first input from the user is received, and in response to the first input, the second preview image is displayed on the shooting preview interface and displayed in the target area of the shooting preview interface. A floating window, and upon receiving a second input from the user, shoot a target file, and the target file corresponds to a third preview image; wherein the first preview image is an image collected at a first zoom magnification; the floating window includes a third Preview image; the second preview image is an image collected at a second zoom magnification, and the third preview image is an image collected at a first zoom magnification, and the first zoom magnification is greater than the second zoom magnification. Because the electronic device can display the second preview image captured at the second zoom magnification on the shooting preview interface according to the user's first input of the first preview image at the first zoom magnification, and display the second preview image captured at the first zoom magnification in the floating window. The third preview image, and then accepts the user's second input to shoot the target file corresponding to the third preview image, that is, the user does not need to perform multiple operations to shoot the enlarged shooting object, therefore, the user can simplify the shooting process operation, reduce time-consuming, and improve the shooting efficiency of electronic equipment.
本申请实施例提供一种电子设备,由于电子设备可以根据用户对第一预览窗口中的目标对象的第一输入,在第二窗口显示第二预览画面(即目标对象放大以后对应的画面),并基于该第二预览画面生成目标多媒体文件,这样电子设备直接通过一次输入就可以在预览画面中显示目标对象放大以后的画面,因此,可以避免需要用户进行多次操作才可以使得电子设备在预览画面中显示放大后的目标对象,如此,可以提高电子设备的拍摄效率。An embodiment of the present application provides an electronic device. Since the electronic device can display a second preview screen (i.e., a screen corresponding to the target object after being enlarged) in a second window according to a first input of a user to a target object in a first preview window, and generate a target multimedia file based on the second preview screen, the electronic device can display the screen after the target object is enlarged in the preview screen directly through a single input. Therefore, it can avoid requiring the user to perform multiple operations before the electronic device can display the enlarged target object in the preview screen. In this way, the shooting efficiency of the electronic device can be improved.
本申请实施例提供的电子设备能够实现上述方法实施例实现的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The electronic device provided by the embodiments of the present application can implement each process implemented by the above method embodiments, and can achieve the same technical effect. To avoid duplication, the details will not be described here.
本实施例中各种实现方式具有的有益效果具体可以参见上述方法实施例中相应实 现方式所具有的有益效果,为避免重复,此处不再赘述。For specific beneficial effects of various implementation methods in this embodiment, please refer to the corresponding implementations in the above method embodiments. In order to avoid repetition, the beneficial effects of the present method will not be described again here.
应理解的是,本申请实施例中,输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元106可包括显示面板1061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板1061。用户输入单元107包括触控面板1071以及其他输入设备1072中的至少一种。触控面板1071,也称为触摸屏。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。It should be understood that in the embodiment of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042. The graphics processor 1041 is responsible for the image capture device (GPU) in the video capture mode or the image capture mode. Process the image data of still pictures or videos obtained by cameras (such as cameras). The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and at least one of other input devices 1072 . Touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described again here.
存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器109可以包括易失性存储器或非易失性存储器,或者,存储器109可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器109包括但不限于这些和任意其它适合类型的存储器。Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, Image playback function, etc.) etc. Additionally, memory 109 may include volatile memory or nonvolatile memory, or memory 109 may include both volatile and nonvolatile memory. Among them, non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electrically removable memory. Erase programmable read-only memory (Electrically EPROM, EEPROM) or flash memory. Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synch link DRAM) , SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DRRAM). Memory 109 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
处理器110可包括一个或多个处理单元;可选的,处理器110集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。The processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor and a modem processor, where the application processor mainly handles operations related to the operating system, user interface, application programs, etc., Modem processors mainly process wireless communication signals, such as baseband processors. It can be understood that the above modem processor may not be integrated into the processor 110 .
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned shooting method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage media, such as computer read-only memory ROM, random access memory RAM, magnetic disk or optical disk, etc.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接 口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip. The chip includes a processor and a communication interface. The communication interface The port is coupled to the processor, and the processor is used to run programs or instructions to implement each process of the above method embodiments, and can achieve the same technical effect. To avoid duplication, the details will not be described here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of this application may also be called system-on-chip, system-on-a-chip, system-on-a-chip or system-on-chip, etc.
本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application provide a computer program product. The program product is stored in a storage medium. The program product is executed by at least one processor to implement each process of the above-mentioned shooting method embodiment, and can achieve the same technical effect. To avoid repetition, they will not be repeated here.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the terms "comprising", "comprises" or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or device that includes a series of elements not only includes those elements, It also includes other elements not expressly listed or inherent in the process, method, article or apparatus. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article or apparatus that includes that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, but may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions may be performed, for example, the methods described may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a computer software product that is essentially or contributes to the existing technology. The computer software product is stored in a storage medium (such as ROM/RAM, disk , optical disk), including several instructions to cause a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of this application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。 The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Inspired by this application, many forms can be made without departing from the purpose of this application and the scope protected by the claims, all of which fall within the protection of this application.

Claims (18)

  1. 一种拍摄方法,所述方法包括:A shooting method, the method includes:
    在拍摄预览界面显示第一预览图像,所述第一预览图像是以第一变焦倍率采集的图像;Display a first preview image on the shooting preview interface, where the first preview image is an image collected at a first zoom magnification;
    接收用户的第一输入;Receive the user's first input;
    响应于所述第一输入,在所述拍摄预览界面显示第二预览图像,并在所述拍摄预览界面的目标区域显示悬浮窗口,所述悬浮窗口包括第三预览图像;In response to the first input, display a second preview image on the shooting preview interface, and display a floating window in the target area of the shooting preview interface, where the floating window includes a third preview image;
    在接收到用户的第二输入的情况下,拍摄目标文件,所述目标文件与所述第三预览图像对应;Upon receiving the second input from the user, photographing a target file corresponding to the third preview image;
    其中,所述第二预览图像是以第二变焦倍率采集的图像,所述第三预览图像是以第一变焦倍率采集的图像,所述第一变焦倍率大于所述第二变焦倍率。Wherein, the second preview image is an image collected at a second zoom magnification, and the third preview image is an image collected at a first zoom magnification, and the first zoom magnification is greater than the second zoom magnification.
  2. 根据权利要求1所述的方法,其中,所述第一输入为用户在所述第一预览图像中的输入;The method of claim 1, wherein the first input is a user's input in the first preview image;
    所述在所述拍摄预览界面的目标区域显示悬浮窗口之前,所述方法还包括:Before displaying the floating window in the target area of the shooting preview interface, the method further includes:
    接收用户在所述第二预览图像中的第三输入;receiving a third input from the user in the second preview image;
    响应于所述第三输入,根据所述第三输入的输入位置,调整电子设备的第一摄像头的取景范围,并通过调整后的所述第一摄像头,以所述第一变焦倍率采集所述第三预览图像。In response to the third input, the viewing range of the first camera of the electronic device is adjusted according to the input position of the third input, and the adjusted first camera captures the image at the first zoom magnification. Third preview image.
  3. 根据权利要求1所述的方法,其中,所述在所述拍摄预览界面的目标区域显示悬浮窗口之前,包括:The method according to claim 1, wherein before displaying the floating window in the target area of the shooting preview interface, the method includes:
    获取所述第二预览图像中的第一对象的对象特征信息;Obtain object feature information of the first object in the second preview image;
    根据所述对象特征信息,调整电子设备的第二摄像头的取景范围,并通过调整后的所述第二摄像头,以所述第一变焦倍率采集所述第三预览图像。The framing range of the second camera of the electronic device is adjusted according to the object feature information, and the third preview image is captured at the first zoom ratio through the adjusted second camera.
  4. 根据权利要求3所述的方法,其中,所述目标区域为所述第一对象对应的图像区域;The method according to claim 3, wherein the target area is an image area corresponding to the first object;
    在所述拍摄预览界面的目标区域显示悬浮窗口之后,所述方法还包括:After the floating window is displayed in the target area of the shooting preview interface, the method further includes:
    在所述第一对象产生位移的情况下,将所述悬浮窗口移动至所述拍摄预览界面的第二画面区域上,所述第二画面区域为移动后的所述第一对象对应的图像区域。When the first object is displaced, the floating window is moved to the second picture area of the shooting preview interface, and the second picture area is the image area corresponding to the moved first object. .
  5. 根据权利要求1所述的方法,其中,所述目标文件为目标视频文件,所述拍摄目标文件包括:The method according to claim 1, wherein the target file is a target video file, and the shooting target file includes:
    在第二对象产生位移的情况下,以所述第二对象为追焦对象,拍摄所述目标视频文件。When the second object is displaced, the target video file is captured using the second object as the focus object.
  6. 根据权利要求1所述的方法,其中,所述第三预览图像的拍摄对象包括至少两个对象;The method of claim 1, wherein the photographed objects of the third preview image include at least two objects;
    在所述拍摄预览界面的目标区域显示悬浮窗口之后,所述方法还包括: After the floating window is displayed in the target area of the shooting preview interface, the method further includes:
    在所述第三预览图像中不包括所述至少两个对象中第三对象的情况下,在所述悬浮窗口中显示第四预览图像;If the third preview image does not include the third object among the at least two objects, display a fourth preview image in the floating window;
    其中,所述第四预览图像是以第三变焦倍率采集的图像,所述第四预览图像中包括所述至少两个对象,所述第三变焦倍率小于所述第一变焦倍率。Wherein, the fourth preview image is an image collected at a third zoom magnification, the fourth preview image includes the at least two objects, and the third zoom magnification is smaller than the first zoom magnification.
  7. 根据权利要求1所述的方法,其中,所述第三预览图像的拍摄对象包括第三对象和第四对象;The method according to claim 1, wherein the photographed object of the third preview image includes a third object and a fourth object;
    在所述拍摄预览界面的目标区域显示悬浮窗口之后,所述方法还包括:After the floating window is displayed in the target area of the shooting preview interface, the method further includes:
    在所述第三预览图像中不包括所述第三对象的情况下,显示第五预览图像;If the third preview image does not include the third object, display a fifth preview image;
    其中,所述第五预览图像是以所述第一变焦倍率采集的图像,所述第五预览图像中包括所述第三对象。Wherein, the fifth preview image is an image collected at the first zoom magnification, and the fifth preview image includes the third object.
  8. 一种拍摄装置,所述拍摄装置包括:显示模块、接收模块和拍摄模块;A shooting device, the shooting device includes: a display module, a receiving module and a shooting module;
    所述显示模块,用于在拍摄预览界面显示第一预览图像,所述第一预览图像是以第一变焦倍率采集的图像;The display module is configured to display a first preview image on the shooting preview interface, where the first preview image is an image collected at a first zoom magnification;
    所述接收模块,用于接收用户的第一输入;The receiving module is used to receive the user's first input;
    所述显示模块,还用于响应于所述接收模块接收的所述第一输入,在所述拍摄预览界面显示第二预览图像,并在所述拍摄预览界面的目标区域显示悬浮窗口,所述悬浮窗口包括第三预览图像;The display module is further configured to display a second preview image on the shooting preview interface in response to the first input received by the receiving module, and display a floating window in the target area of the shooting preview interface, the The floating window includes a third preview image;
    所述拍摄模块,用于在所述接收模块接收到用户的第二输入的情况下,拍摄目标文件,所述目标文件与所述第三预览图像对应;The photographing module is configured to photograph a target file when the receiving module receives the user's second input, and the target file corresponds to the third preview image;
    其中,所述第二预览图像是以第二变焦倍率采集的图像,所述第三预览图像是以第一变焦倍率采集的图像,所述第一变焦倍率大于所述第二变焦倍率。Wherein, the second preview image is an image collected at a second zoom magnification, and the third preview image is an image collected at a first zoom magnification, and the first zoom magnification is greater than the second zoom magnification.
  9. 根据权利要求8所述的装置,其中,所述第一输入为用户在所述第一预览图像中的输入;所述装置还包括:调整模块;The device according to claim 8, wherein the first input is a user's input in the first preview image; the device further includes: an adjustment module;
    所述接收模块,还用于在所述拍摄预览界面的目标区域显示悬浮窗口之前,接收用户在所述第二预览图像中的第三输入;The receiving module is also configured to receive the user's third input in the second preview image before displaying the floating window in the target area of the shooting preview interface;
    所述调整模块,用于响应于所述接收模块接收的所述第三输入,根据所述第三输入的输入位置,调整电子设备的第一摄像头的取景范围,并通过调整后的所述第一摄像头,以所述第一变焦倍率采集所述第三预览图像。The adjustment module is configured to respond to the third input received by the receiving module, adjust the viewing range of the first camera of the electronic device according to the input position of the third input, and use the adjusted third input A camera captures the third preview image at the first zoom magnification.
  10. 根据权利要求8所述的装置,其中,所述装置还包括:获取模块和处理模块;The device according to claim 8, wherein the device further includes: an acquisition module and a processing module;
    所述获取模块,用于在所述拍摄预览界面的目标区域显示悬浮窗口之前,获取所述第二预览图像中的第一对象的对象特征信息;The acquisition module is configured to acquire the object characteristic information of the first object in the second preview image before displaying the floating window in the target area of the shooting preview interface;
    所述处理模块,还用于根据所述获取模块获取的所述对象特征信息,调整电子设备的第二摄像头的取景范围,并通过调整后的所述第二摄像头,以所述第一变焦倍率采集所述第三预览图像。The processing module is also configured to adjust the viewing range of the second camera of the electronic device according to the object characteristic information obtained by the acquisition module, and use the adjusted second camera to zoom in at the first zoom magnification Collect the third preview image.
  11. 根据权利要求10所述的装置,其中,所述目标区域为所述第一对象对应的图 像区域;所述拍摄装置还包括:移动模块;The device according to claim 10, wherein the target area is an image corresponding to the first object. image area; the shooting device also includes: a mobile module;
    所述移动模块,用于在所述拍摄预览界面的目标区域显示悬浮窗口之后,在所述第一对象产生位移的情况下,将所述悬浮窗口移动至所述拍摄预览界面的第二画面区域上,所述第二画面区域为移动后的所述第一对象对应的图像区域。The moving module is configured to move the floating window to the second screen area of the shooting preview interface when the first object is displaced after the floating window is displayed in the target area of the shooting preview interface. above, the second picture area is the image area corresponding to the moved first object.
  12. 根据权利要求8所述的装置,其中,所述目标文件为目标视频文件,所述拍摄模块,具体用于在第二对象产生位移的情况下,以所述第二对象为追焦对象,拍摄所述目标视频文件。The device according to claim 8, wherein the target file is a target video file, and the shooting module is specifically configured to use the second object as a focus object to shoot when the second object is displaced. The target video file.
  13. 根据权利要求8所述的装置,其中,所述第三预览图像的拍摄对象包括至少两个对象;所述显示模块,还用于在所述拍摄预览界面的目标区域显示悬浮窗口之后,在所述第三预览图像中不包括所述至少两个对象中第三对象的情况下,在所述悬浮窗口中显示第四预览图像;The device according to claim 8, wherein the shooting object of the third preview image includes at least two objects; the display module is further configured to display a fourth preview image in the floating window after the floating window is displayed in the target area of the shooting preview interface, if the third preview image does not include the third object of the at least two objects;
    其中,所述第四预览图像是以第三变焦倍率采集的图像,所述第四预览图像中包括所述至少两个对象,所述第三变焦倍率小于所述第一变焦倍率。Wherein, the fourth preview image is an image collected at a third zoom magnification, the fourth preview image includes the at least two objects, and the third zoom magnification is smaller than the first zoom magnification.
  14. 根据权利要求8所述的装置,其中,所述第三预览图像的拍摄对象包括第三对象和第四对象;所述显示模块,还用于在所述拍摄预览界面的目标区域显示悬浮窗口之后,在所述第三预览图像中不包括所述第三对象的情况下,显示第五预览图像;The device according to claim 8, wherein the shooting objects of the third preview image include a third object and a fourth object; the display module is further configured to display a floating window in the target area of the shooting preview interface. , when the third preview image does not include the third object, display a fifth preview image;
    其中,所述第五预览图像是以所述第一变焦倍率采集的图像,所述第五预览图像中包括所述第三对象。Wherein, the fifth preview image is an image collected at the first zoom magnification, and the fifth preview image includes the third object.
  15. 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的计算机可执行程序,所述计算机可执行程序被所述处理器执行时实现如权利要求1至7中任一项所述的拍摄方法的步骤。An electronic device, including a processor, a memory, and a computer executable program stored on the memory and executable on the processor. When the computer executable program is executed by the processor, the computer executable program implements claim 1 Steps of the shooting method described in any one of to 7.
  16. 一种可读存储介质,所述可读存储介质上存储计算机可执行程序,所述计算机可执行程序被处理器执行时实现如权利要求1至7中任一项所述的拍摄方法的步骤。A readable storage medium stores a computer executable program, and when the computer executable program is executed by a processor, the steps of the shooting method according to any one of claims 1 to 7 are implemented.
  17. 一种计算机程序产品,所述程序产品被至少一个处理器执行以实现如权利要求1至7中任一项所述的拍摄方法。A computer program product, which is executed by at least one processor to implement the photographing method according to any one of claims 1 to 7.
  18. 一种用户设备UE,包括所述UE被配置成用于执行如权利要求1至7中任一项所述的拍摄方法。 A user equipment UE, including the UE being configured to perform the shooting method according to any one of claims 1 to 7.
PCT/CN2023/119194 2022-09-19 2023-09-15 Photographing method and apparatus, electronic device, and medium WO2024061134A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211138515.9A CN115499589A (en) 2022-09-19 2022-09-19 Shooting method, shooting device, electronic equipment and medium
CN202211138515.9 2022-09-19

Publications (1)

Publication Number Publication Date
WO2024061134A1 true WO2024061134A1 (en) 2024-03-28

Family

ID=84470731

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/119194 WO2024061134A1 (en) 2022-09-19 2023-09-15 Photographing method and apparatus, electronic device, and medium

Country Status (2)

Country Link
CN (1) CN115499589A (en)
WO (1) WO2024061134A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115499589A (en) * 2022-09-19 2022-12-20 维沃移动通信有限公司 Shooting method, shooting device, electronic equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160357415A1 (en) * 2015-06-05 2016-12-08 Apple Inc. Quick review of captured image data
CN107155064A (en) * 2017-06-23 2017-09-12 维沃移动通信有限公司 A kind of image pickup method and mobile terminal
CN111010506A (en) * 2019-11-15 2020-04-14 华为技术有限公司 Shooting method and electronic equipment
CN112188097A (en) * 2020-09-29 2021-01-05 Oppo广东移动通信有限公司 Photographing method, photographing apparatus, terminal device, and computer-readable storage medium
CN115499589A (en) * 2022-09-19 2022-12-20 维沃移动通信有限公司 Shooting method, shooting device, electronic equipment and medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107360366B (en) * 2017-06-30 2020-05-12 Oppo广东移动通信有限公司 Photographing method and device, storage medium and electronic equipment
CN110493526B (en) * 2019-09-10 2020-11-20 北京小米移动软件有限公司 Image processing method, device, equipment and medium based on multiple camera modules
CN110830724B (en) * 2019-12-05 2022-01-18 维沃移动通信(杭州)有限公司 Shooting method and electronic equipment
CN113141450B (en) * 2021-03-22 2022-07-22 维沃移动通信(杭州)有限公司 Shooting method, shooting device, electronic equipment and medium
CN114245006B (en) * 2021-11-30 2023-05-23 联想(北京)有限公司 Processing method, device and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160357415A1 (en) * 2015-06-05 2016-12-08 Apple Inc. Quick review of captured image data
CN107155064A (en) * 2017-06-23 2017-09-12 维沃移动通信有限公司 A kind of image pickup method and mobile terminal
CN111010506A (en) * 2019-11-15 2020-04-14 华为技术有限公司 Shooting method and electronic equipment
CN112188097A (en) * 2020-09-29 2021-01-05 Oppo广东移动通信有限公司 Photographing method, photographing apparatus, terminal device, and computer-readable storage medium
CN115499589A (en) * 2022-09-19 2022-12-20 维沃移动通信有限公司 Shooting method, shooting device, electronic equipment and medium

Also Published As

Publication number Publication date
CN115499589A (en) 2022-12-20

Similar Documents

Publication Publication Date Title
WO2019134516A1 (en) Method and device for generating panoramic image, storage medium, and electronic apparatus
CN109040474B (en) Photo display method, device, terminal and storage medium
CN113840070B (en) Shooting method, shooting device, electronic equipment and medium
WO2022089284A1 (en) Photographing processing method and apparatus, electronic device, and readable storage medium
WO2022161340A1 (en) Image display method and apparatus, and electronic device
WO2022262720A1 (en) Photographing method and device
CN112954210A (en) Photographing method and device, electronic equipment and medium
CN112135046A (en) Video shooting method, video shooting device and electronic equipment
WO2024061134A1 (en) Photographing method and apparatus, electronic device, and medium
WO2022237839A1 (en) Photographing method and apparatus, and electronic device
CN112887617B (en) Shooting method and device and electronic equipment
WO2023134583A1 (en) Video recording method and apparatus, and electronic device
US11949986B2 (en) Anti-shake method, anti-shake apparatus, and electronic device
US9088720B2 (en) Apparatus and method of displaying camera view area in portable terminal
WO2023143531A1 (en) Photographing method and apparatus, and electronic device
CN112954214A (en) Shooting method and device, electronic equipment and storage medium
CN113923350A (en) Video shooting method and device, electronic equipment and readable storage medium
WO2024022349A1 (en) Image processing method and apparatus, and electronic device and storage medium
WO2023143529A1 (en) Photographing method and apparatus, and electronic device
CN113794833B (en) Shooting method and device and electronic equipment
CN112887624B (en) Shooting method and device and electronic equipment
CN114245017A (en) Shooting method and device and electronic equipment
TW201714074A (en) A method for taking a picture and an electronic device using the method
CN112653841B (en) Shooting method and device and electronic equipment
CN114245018A (en) Image shooting method and device