WO2022161240A1 - 拍摄方法、装置、电子设备及介质 - Google Patents

拍摄方法、装置、电子设备及介质 Download PDF

Info

Publication number
WO2022161240A1
WO2022161240A1 PCT/CN2022/072929 CN2022072929W WO2022161240A1 WO 2022161240 A1 WO2022161240 A1 WO 2022161240A1 CN 2022072929 W CN2022072929 W CN 2022072929W WO 2022161240 A1 WO2022161240 A1 WO 2022161240A1
Authority
WO
WIPO (PCT)
Prior art keywords
area
content
target
input
screen
Prior art date
Application number
PCT/CN2022/072929
Other languages
English (en)
French (fr)
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 WO2022161240A1 publication Critical patent/WO2022161240A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • 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/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters

Definitions

  • the present application belongs to the field of communication technologies, and specifically relates to a photographing method, device, electronic device and medium.
  • the shooting function has become an essential function in electronic equipment.
  • the user can adjust the shooting focal length (usually referred to as "zoom"), that is, adjust the display ratio of the preview image in the shooting preview area.
  • zoom the shooting focal length
  • electronic devices can achieve zooming in two ways: optical zooming and digital zooming.
  • the electronic device in the process of digital zooming by electronic devices, since the digital zooming reduces the field of view by performing digital cropping on the sensor, the electronic device generally magnifies the middle part of the sensor, and also That is, the electronic device can zoom only with the preview image that captures the central area of the preview area.
  • the purpose of the embodiments of the present application is to provide a shooting method, device, electronic device and medium, which can solve the problem that the zoom mode of digital zoom in the related art will limit the zoom area, make the process of electronic device framing inflexible, and lead to shooting less efficient problem.
  • an embodiment of the present application provides a shooting method, the method includes: when an electronic device displays a shooting preview screen, receiving a first input from a user; in response to the first input, the electronic device according to the first area The relative positional relationship with the second area, the target operation is performed on the target screen content of the first area; wherein, the first area and the second area are the areas selected by the first input in the shooting preview screen, and the above The second area is the area where the target image content is located after the target operation is performed on the target image content in the first area, and the target operation is a zooming operation on the target image content.
  • an embodiment of the present application provides a photographing device, the device includes a receiving module and an executing module; the receiving module is configured to receive a first input from a user when a photographing preview screen is displayed; the above-mentioned execution a module, configured to, in response to the above-mentioned first input received by the above-mentioned receiving module, perform a target operation on the target screen content of the above-mentioned first area according to the relative positional relationship between the first area and the second area; wherein, the above-mentioned first area and the above-mentioned second area is the area selected by the above-mentioned first input in the above-mentioned shooting preview screen, the above-mentioned second area is the area where the target screen content is located after the target operation is performed on the target screen content of the above-mentioned first area, and the above-mentioned target operation It is the zoom operation on the target screen content.
  • embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method according to the first aspect when executed.
  • an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented .
  • an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect the method described.
  • the electronic device when the electronic device displays the shooting preview screen, it can receive the user's first input, and after the electronic device receives the first input, it will The relative relationship between the selected area (that is, the above-mentioned first area) and the area where the target image content is located (that is, the above-mentioned second area) after the electronic device receives the target operation performed by the user on the target image content of the first area. positional relationship, perform a target operation on the content of the target image in the first area, and the target operation may be a zoom operation of the user on the content of the target image, wherein the second area is also selected by the user when the user enters the first input in the shooting preview image. .
  • the electronic device can perform a zooming operation on the image content in any area according to the user's input in any area of the shooting preview image, so that the user can realize more abundant framing possibilities through the electronic device.
  • FIG. 1 is a schematic flowchart of a shooting method provided by an embodiment of the present application.
  • FIG. 2 is one of the schematic diagrams of interfaces to which a shooting method provided by an embodiment of the present application is applied;
  • FIG. 3 is a second schematic diagram of an interface to which a shooting method according to an embodiment of the present application is applied;
  • FIG. 4 is a third schematic diagram of an interface to which a shooting method provided by an embodiment of the present application is applied;
  • FIG. 5 is a schematic structural diagram of a photographing device provided by an embodiment of the present application.
  • FIG. 6 is one of the schematic structural diagrams of an electronic device provided by an embodiment of the present application.
  • FIG. 7 is a second schematic structural diagram of an electronic device according to an embodiment of the present application.
  • first, second and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguished by “first”, “second”, etc.
  • the objects are usually of one type, and the number of objects is not limited.
  • the first object may be one or more than one.
  • “and/or” in the description and claims indicates at least one of the connected objects, and the character “/" generally indicates that the associated objects are in an "or” relationship.
  • the photographing method provided by the embodiment of the present application can be applied to a scene where a user uses an electronic device to take a photograph.
  • the electronic device can be moved to the lower left to display the screen content of area 1 in the central area of the shooting preview screen.
  • the electronic device can enlarge and display the screen content in the area 1 .
  • the electronic device when the electronic device displays the shooting preview screen, it can receive the user's zoom-in input.
  • the electronic device can perform a zooming operation on the image content in any area according to the user's input in any area of the shooting preview image, so that the user can realize more abundant framing possibilities through the electronic device.
  • the photographing method includes the following steps 301 and 302:
  • Step 301 The photographing apparatus receives a first input from the user in the case of displaying the photographing preview screen.
  • the above-mentioned shooting preview screen may be a shooting preview screen in any application having a shooting function in the electronic device.
  • a shooting preview screen of a shooting application a shooting preview screen of a chat application.
  • the above-mentioned first input may be an input by the user in any area in the shooting preview screen.
  • the above-mentioned first input may be used to perform a target operation on the shooting preview screen.
  • the target operation can refer to the description of the following content.
  • the above-mentioned first input may be a touch input, for example, a sliding input, a long-press input, or a double-click input, a voice input, or a specific gesture input, which is not made in this embodiment of the present application. limited.
  • Step 302 In response to the above-mentioned first input, the photographing device performs a target operation on the target screen content of the above-mentioned first area according to the relative positional relationship between the first area and the second area.
  • the first area and the second area are the areas selected by the first input in the shooting preview screen, and the second area is the target operation performed on the content of the target screen in the first area.
  • the area where the target picture content is located, and the above-mentioned target operation is a zoom operation on the target picture content.
  • the areas selected by the first input may be self-selected by the user through inputting the first input to the electronic device, or may be preset by the electronic device in advance.
  • the above-mentioned first input may be a two-finger reverse sliding input.
  • the two-finger reverse sliding input is used to instruct the electronic device to enlarge the screen content
  • the final release position of the two-finger is the range of the first area selected by the user
  • the second area is the area where the preview screen is shot
  • the two-finger reverse sliding input is used to instruct the electronic device to shrink the screen content
  • the first area is the area where the shooting preview image is located
  • the final release position of the two-finger is the range of the second area selected by the user.
  • the above-mentioned first input may be a double-click input.
  • the electronic device may preset a preset area range centered on the double-click point after receiving the first input, and the preset area range is the first area.
  • the second area is the area where the shooting preview screen is located; wherein, when the double-click input is used to instruct the electronic device to reduce the screen content, the second area can be preset in the electronic device to be the area where the shooting preview screen is located, and at the same time preset in the receiving After the first input, the preset area range centered on the double-click point is the range of the second area.
  • the relative positional relationship between the first area and the second area refers to the relative positional relationship between the area boundary of the first area and the area boundary of the second area.
  • the first area is a rectangle and the second area is a rectangle enlarged in the same proportion as the first area, the mutual correspondence between the four sides of the first area and the four sides of the second area.
  • the above-mentioned relative positional relationship may include a region boundary correspondence between the first region and the second region, and may also include a distance between boundaries corresponding to the first region and the second region.
  • first area and the second area may be: the first area is included in the second area, or the second area is included in the first area.
  • the above-mentioned first area and second area may be areas of the same shape that are enlarged or reduced in equal proportions.
  • the first area is located within the second area, and the first area and the second area are both rectangles.
  • the area is an area that is proportionally enlarged from the first area.
  • the first area and the second area may be areas of different shapes and sizes.
  • the first area is located within the second area, the first area is circular, and the second area is rectangular.
  • the above-mentioned target picture content may be the picture content on which the zoom operation is to be performed in the shooting preview picture.
  • the above-mentioned target operation may be a zoom-in operation or a zoom-out operation.
  • the first area is the area where the target image content is located, and the second area is the area where the shooting preview image is located;
  • the target operation is a zoom-out operation for reducing the content of the target screen
  • the first area is the area where the shooting preview screen is located
  • the second area is the target screen after the zoom-out operation is performed on the content of the target screen in the first area. The area where the screen content is located.
  • the zoom-in operation is a process of digital zoom cropping performed by the electronic device
  • the zoom-out operation is a process of the electronic device performing digital zoom recovery.
  • Example 1 Assuming that the application for shooting the preview screen is a shooting application, and the above-mentioned target operation is a zoom-in operation, as shown in (a) of FIG. 2 , when the electronic device displays the shooting preview screen 21 of the shooting application, the user's Shooting a double-click input at the position 22 of the preview screen 21 (that is, the above-mentioned first input), after the electronic device receives the double-click input, the electronic device determines the range of the area 23 with the position 22 as the center point as the target enlargement area (that is, the above-mentioned double-click input).
  • the first area), the area where the shooting preview screen 21 is located is the final area (that is, the above-mentioned second area) after the area 23 is enlarged, and finally the screen content in the area 23 (that is, the above-mentioned target screen content) is enlarged, as shown in Figure 2
  • the zoom is enlarged to the same size as the shooting preview screen 21 .
  • Example 2 Assuming that the application for shooting the preview screen is a shooting application, and the above target operation is a zoom-out operation, as shown in (a) of FIG. 3 , when the electronic device displays the shooting preview screen 21 of the shooting application, the user's The long-press input of the position 24 of the shooting preview screen 21 (that is, the above-mentioned first input), after the electronic device receives the long-pressing input, the electronic device takes the area where the shooting preview screen 21 is located as the target reduction area (that is, the above-mentioned first area).
  • the preset reduced target area 25 is used as the reduced final area (ie the above-mentioned second area), and finally the screen content of the area where the shooting preview screen 21 is located (ie the above-mentioned target screen content) is subjected to a reduction operation, as shown in Figure 3 As shown in (b) in the figure, it is reduced to the same size as the target area 25 .
  • the shooting device when the shooting preview screen is displayed, the shooting device can receive the user's zoom-in input.
  • the electronic device can perform a zooming operation on the image content in any area according to the user's input in any area of the shooting preview image, so that the user can realize more abundant framing possibilities through the electronic device.
  • the photographing device in the above step 302 performs a target operation on the target image content of the first area according to the relative positional relationship between the first area and the second area, including the following steps A1 to: Step A3:
  • Step A1 The photographing device determines the position information between N first area boundaries of the above-mentioned first area and N second area boundaries of the above-mentioned second area, one first area boundary corresponds to one second area boundary, and N is positive. Integer.
  • Step A2 The photographing device determines, according to the above-mentioned position information, a zoom rate of each first area boundary of the above-mentioned first area.
  • Step A3 The photographing device performs a target operation on the target image content in the first area according to the zoom rate.
  • the location information is a relative positional relationship between N first area boundaries of the first area and N second area boundaries of the second area.
  • the relative position information may include the correspondence between the distance and the direction between the first area and the second area.
  • the above-mentioned location information may be embodied by coordinate information, that is, the location information may be: the coordinate information of X coordinate points on the boundary of N first areas of the first area, and the coordinate information of N of the above-mentioned second area The correspondence between the coordinate information of the X coordinate points on the boundary of the second area.
  • the above-mentioned zoom rate may be determined according to the zoom time and the zoom distance.
  • the zoom time may be preset in advance or user-defined, which is not limited in this embodiment of the present application.
  • the zoom rate is the ratio of zoom distance to zoom time.
  • the above-mentioned zoom rate may be a variable ratio, that is, in the process of digital zooming, the ratio of the cropped pixels per unit time.
  • the zoom rate is pixels/second.
  • Example 3 Combined with the above example 1, after the electronic device receives the double-click input and determines the range of the area 23 with the position 22 as the center point as the target zoom-in area (that is, the above-mentioned first area), as shown in FIG.
  • the four vertices of the preview image ie, the second area
  • the four vertices of the target enlarged area are E, F, G, and H.
  • the coordinate information of the four vertices of the shooting preview screen is A(0,4320), B(7680,7320), C(0,0), D(7680,0), the coordinates of the four vertices of the target zoom area
  • the information is E(960,1620), F(2880,1620), G(960,540), H(2880,540), A, B, C, D four points represent full resolution, E, F, G, H represent User-determined digital zoom crop.
  • the positional relationship between the target zoom area and the shooting preview screen is that A corresponds to E, B corresponds to F, C corresponds to G, and D corresponds to H (ie, the above-mentioned positional relationship).
  • the electronic device can determine the zoom ratio according to the input position, and then perform the zoom operation, so that the zoom operation can be conveniently performed on the screen at any position of the shooting preview interface without the user moving the electronic device.
  • the photographing is conveniently completed, and the operation steps of photographing are simplified.
  • the photographing method provided by the embodiment of the present application may include the following step B1:
  • Step B1 The photographing device receives a first input from the user when the above-mentioned photographing mode of the photographing preview screen is the time-lapse photographing mode or the video recording mode.
  • the photographing method provided by this embodiment of the present application may include the following steps B2 to B4:
  • Step B2 In response to the above-mentioned first input, the photographing device determines a first area corresponding to the start frame of the above-mentioned photographing mode, a second area corresponding to the above-mentioned end frame of the above-mentioned photographing mode, and photographing in the above-mentioned time-lapse shooting mode or the above-mentioned video recording mode The duration is determined, and the relative positional relationship between the first area and the second area is determined.
  • Step B3 The photographing device receives a second input from the user to record the above-mentioned photographing preview image.
  • Step B4 In response to the second input, the photographing device performs a target operation on the target image content of the first area according to the relative positional relationship between the first area and the second area and the photographing duration.
  • the above-mentioned first input may be a touch input, for example, a sliding input, a long-press input, or a double-click input, a voice input, or a specific gesture input, which is not made in this embodiment of the present application. limited.
  • the above-mentioned start frame refers to the first frame of the video or time-lapse video when shooting video or time-lapse video
  • the above-mentioned end frame refers to the last frame of the video or time-lapse video when shooting video or time-lapse video. a frame of picture.
  • the shooting mode is the time-lapse shooting mode or the video recording mode
  • the above-mentioned first input may be used to trigger the electronic device to determine the picture of the start frame, the picture of the end frame, and the shooting duration.
  • the electronic device may display on the display interface a window for determining the picture of the start frame, the picture of the end frame, and the shooting duration.
  • the electronic device can input the screen size and the center position of the screen (ie the first area) of the start frame, the screen size and the center position of the screen (ie the second area) and the shooting time of the screen of the end frame according to the user input , so as to determine the first area, the second area and the shooting time.
  • the above-mentioned second input may be used to start recording the above-mentioned shooting preview screen, wherein the recording process may be a normal video recording mode or a time-lapse shooting mode, which is not limited in this embodiment of the present application.
  • the above-mentioned second input may be a touch input, for example, a click input, a voice input, or a specific gesture input, which is not limited in this embodiment of the present application.
  • the electronic device may record video for a longer period of time (eg, continuous recording for 5 hours), and then at a faster speed of 15 times, 30 times, etc. play. Before the electronic device starts recording video, the first input in the shooting preview screen may be received.
  • the first area corresponding to the start frame and the second area corresponding to the end frame in this time-lapse shooting mode are set by performing the first input to the electronic device, as well as the shooting duration between the start frame and the end frame.
  • the camera unit of the electronic device will slowly digitally zoom from the first area to the second area within the shooting time, until the end of the frame, and automatically complete the above-mentioned time-lapse shooting process, showing a gradual zoom shooting preview screen. the effect of the first region.
  • the electronic device can confirm the start frame and end frame and the shooting duration of the video recording or the time-lapse shooting before the user records the video or before the time-lapse shooting, and performs zoom input, so that the user does not need to change the camera position. Get better shooting results and simplify the shooting process for users.
  • the above-mentioned first area is the area where the shooting preview image is located
  • the shooting mode of the above-mentioned shooting preview image is the time-lapse shooting mode or the video recording mode
  • the shooting method provided by the embodiment of the present application may include the following: Step C1 and Step C2:
  • Step C1 The photographing device receives a third input from the user to record the above-mentioned photographing preview image.
  • Step C2 In response to the above-mentioned third input, the photographing device divides the picture content of the shooting preview picture into M partial picture contents, and performs an enlarging operation on the first partial picture content in the above-mentioned M partial picture contents, and the above-mentioned first partial picture content is enlarged.
  • the content is displayed in the above-mentioned shooting preview screen, and M is a positive integer greater than 1.
  • the above-mentioned first partial screen content is any one of the above-mentioned M partial screen contents.
  • the above-mentioned third input may also be used to trigger the electronic device to divide the picture content of the shooting preview picture and to enlarge a part of the picture content to display it in the whole shooting preview picture.
  • the above-mentioned part of the picture content is the content of 1/M of the picture content of the shooting preview picture, wherein the above-mentioned M may be preset by the electronic device or user-defined.
  • the above-mentioned division manner may be preset by the electronic device, or may be user-defined.
  • the division method may be grid division.
  • the rectangular shooting preview image is divided into a division line parallel to the wide border from the center point of the long border, and at the same time, a division line parallel to the long border is divided from the center point of the wide border.
  • the screen area of the partial screen is divided into 4 equal parts; it can also be divided by angle, for example, take the center point of the shooting preview screen as the center of the circle, draw lines according to the fan-shaped edges corresponding to different central angles to the border of the shooting preview screen, and divide the shooting preview screen.
  • the screen is divided into screen areas of partial screens of the same angle or screen areas of partial screens of different angles.
  • the electronic device will trigger the electronic device to divide the shooting preview screen according to a preset method or a user-defined method, and hide the collected overall image information of the shooting preview screen into the electronic device.
  • the entire shooting preview screen only displays any one partial screen content among the M partial screen contents, that is, the any one partial screen content is enlarged to the entire shooting preview screen.
  • any part of the screen may be preset by the electronic device, or may be user-defined and set, which is not limited in this embodiment of the present application.
  • the electronic device can automatically capture part of the picture content in the shooting preview screen after obtaining the user's input of recording video or delayed shooting, so that the video required by the user can be recorded more accurately without the user's manual adjustment during shooting.
  • the zoom-in operation is performed on the first part of the pictures in the M partial pictures, and after the content of the first part of the picture is displayed in the shooting preview picture, the embodiment of the present application is performed.
  • the provided shooting method may include the following steps D1 and D2:
  • Step D1 The photographing device receives a fourth input from the user to record the above-mentioned photographing preview image.
  • Step D2 In response to the above fourth input, the photographing device updates the above-mentioned first part of the picture content in the above-mentioned shooting preview picture to the second part of the picture content.
  • the content of the second part of the screen is any one of the contents of the M parts of the screen, and the content of the second part of the screen is different from the content of the first part of the screen.
  • the above-mentioned fourth input may be used to switch the screen content displayed in the shooting preview screen.
  • the fourth input may be touch input, such as sliding input, long-press input, or double-click input, may also be voice input, or may be specific gesture input, which is not limited in this embodiment of the present application.
  • the above-mentioned update method for updating the content of the first part of the screen to the content of the second part of the screen may be a translation update, that is, the content of the first part of the screen is gradually moved out of the shooting preview screen, and the content of the second part of the screen is synchronously moved.
  • the shooting preview screen it can also be a direct update, that is, the electronic device directly switches the content of the first part of the screen displayed in the shooting preview screen to the content of the second part of the screen.
  • the above-mentioned updating manner of updating the content of the first part of the screen to the content of the second part of the screen may be preset by the electronic device, or may be customized by the user, which is not limited in this application.
  • the electronic device can present an effect of switching screen contents similar to that of a professional sports camera without the user moving the electronic device, thereby enhancing the user's experience of using the electronic device.
  • the executing subject may be a photographing device, or a control module in the photographing device for executing the photographing method.
  • the photographing device provided by the embodiment of the present application is described by taking the photographing method performed by the photographing device as an example.
  • FIG. 5 is a schematic structural diagram of a possible structure for implementing the photographing apparatus provided by the embodiment of the present application.
  • the above-mentioned apparatus 600 includes a receiving module 601 and an executing module 602; the above-mentioned receiving module 601 is used for receiving the first input of the user when the shooting preview screen is displayed; the above-mentioned executing module 602 is used for responding to the The above-mentioned first input received by the above-mentioned receiving module 601, according to the relative positional relationship between the first area and the second area, the target operation is performed on the target screen content of the above-mentioned first area; wherein, the above-mentioned first area and the above-mentioned second area are It is the area selected by the first input in the above-mentioned shooting preview screen, the above-mentioned second area is the area where the above-mentioned target screen content is located after the target operation is performed on the target screen content of the above-mentione
  • the photographing device when the photographing preview screen is displayed, the photographing device can receive the enlargement input from the user, and after the photographing device receives the enlargement input, it will The relative position between the selected area (that is, the above-mentioned first area) and the area where the target image content is located (that is, the above-mentioned second area) after the photographing device receives the target operation performed by the user on the target image content of the above-mentioned first area relationship, perform a target operation on the target image content in the first area, the target operation may be a user's zoom operation on the target image content, wherein the second area is also selected by the user when inputting the first input in the shooting preview image.
  • the electronic device can perform a zooming operation on the image content in any area according to the user's input in any area of the shooting preview image, so that the user can realize more abundant framing possibilities through the electronic device.
  • the first area is the area where the target image content is located, and the second area is the area where the shooting preview image is located;
  • the target operation is a zoom-out operation for reducing the content of the target screen
  • the first area is the area where the shooting preview screen is located
  • the second area is the target screen content of the first area after the zoom operation is performed. The area where the screen content is located.
  • the above-mentioned apparatus 600 further includes a determination module 603; the above-mentioned determination module 603 is configured to determine N first area boundaries of the above-mentioned first area and N second areas of the above-mentioned second area. The position information between the boundaries, a first area boundary corresponds to a second area boundary, and N is a positive integer; the above-mentioned determining module 603 is further configured to determine the position of each first area boundary of the above-mentioned first area according to the above-mentioned position information. Zoom rate; the execution module 602 is specifically configured to perform a target operation on the target image content in the first area according to the zoom rate determined by the determination module 603 .
  • the above-mentioned apparatus 600 further includes a determination module 603; the above-mentioned receiving module 601 is further configured to receive the user information when the above-mentioned shooting mode of the shooting preview screen is the time-lapse shooting mode or the video recording mode.
  • the above-mentioned determination module 603 is used to determine the first area corresponding to the start frame of the above-mentioned shooting mode, the second area corresponding to the end frame of the above-mentioned shooting mode, and the shooting in the above-mentioned time-lapse shooting mode or the above-mentioned video recording mode time length, and determine the relative positional relationship between the above-mentioned first area and the above-mentioned second area;
  • the above-mentioned receiving module 601 is specifically used to receive the second input from the user to record the above-mentioned shooting preview screen;
  • the above-mentioned execution module 602 is specifically used to respond to the The above-mentioned second input received by the above-mentioned receiving module, according to the relative positional relationship between the above-mentioned first area and the above-mentioned second area and the shooting duration, perform a target operation on the target screen content of the above-mentioned first area.
  • the above-mentioned first area is the area where the shooting preview screen is located
  • the shooting mode of the above-mentioned shooting preview screen is a time-lapse shooting mode or a video recording mode
  • the above-mentioned receiving module 601 is further configured to receive user recordings.
  • the third input of the above-mentioned shooting preview screen; the above-mentioned execution module 602 is further configured to, in response to the above-mentioned third input received by the above-mentioned receiving module 601, divide the screen content of the shooting preview screen into M partial screen contents, and the above-mentioned M
  • the first part of the screen content in the partial screen content performs an enlarging operation, and the above-mentioned first part of the screen content is displayed in the above-mentioned shooting preview screen, the above-mentioned first part of the screen content is any of the above-mentioned M partial screen contents, and M is a positive value greater than 1. Integer.
  • the above-mentioned device further includes an update module 604; the above-mentioned receiving module 601 is further configured to receive a fourth input from the user to record the above-mentioned shooting preview screen; the above-mentioned update module 604 is used to respond to the above-mentioned receiving
  • the above-mentioned fourth input received by the module 601 is to update the above-mentioned first part of the picture content in the above-mentioned shooting preview picture to the second part of the picture content, the above-mentioned second part of the picture content is any of the above-mentioned M partial picture contents, the above-mentioned second part of the picture content.
  • the content of the partial screen is different from the content of the first partial screen described above.
  • the photographing device in this embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal.
  • the apparatus may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant).
  • UMPC ultra-mobile personal computer
  • netbook or a personal digital assistant
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • Network Attached Storage NAS
  • personal computer personal computer, PC
  • television television
  • teller machine or self-service machine etc.
  • the photographing device in the embodiment of the present application may be a device having an operating system.
  • the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
  • the photographing apparatus provided in this embodiment of the present application can implement each process implemented by the method embodiments in FIG. 1 to FIG. 4 , and to avoid repetition, details are not described herein again.
  • the modules that must be included in the photographing device 600 are indicated by solid line boxes, such as the receiving module 601 ; the modules that may or may not be included in the photographing device 600 are indicated by dotted line boxes, such as the determination module 603.
  • an embodiment of the present application further provides an electronic device 800, including a processor 801, a memory 802, a program or instruction stored in the memory 802 and executable on the processor 801,
  • an electronic device 800 including a processor 801, a memory 802, a program or instruction stored in the memory 802 and executable on the processor 801,
  • the program or instruction is executed by the processor 801
  • each process of the above-mentioned embodiment of the shooting method can be realized, and the same technical effect can be achieved. To avoid repetition, details are not described here.
  • the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 100 includes but is not limited to: 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, etc. part.
  • the user input unit 107 includes a touch panel 1071 and other input devices 1072
  • the display unit 106 includes a display panel 1061
  • the input unit 104 includes an image processor 1041 and a microphone 1042
  • the memory 109 can be used to store software programs (eg, an operating system). , applications required for at least one function) and various data.
  • the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power management through the power management system. consumption management and other functions.
  • a power source such as a battery
  • the structure of the electronic device shown in FIG. 7 does not constitute a limitation on the electronic device.
  • the electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
  • the user input unit 107 is used for receiving the first input of the user when the shooting preview screen is displayed; the processor 110 is used for responding to the above-mentioned first input input by the above-mentioned user input unit 107, according to the first area and the The relative positional relationship between the second areas, the target operation is performed on the target screen content of the first area; wherein, the first area and the second area are the areas selected by the first input in the shooting preview screen, and the first area The second area is the area where the target image content is located after the target operation is performed on the target image content in the first area, and the target operation is a zooming operation on the target image content.
  • the electronic device can receive the first input from the user when the shooting preview screen is displayed, and after the electronic device receives the first input, it will receive the first input according to the first input entered by the user in the shooting preview screen.
  • the area selected during an input that is, the first area
  • the area where the content of the target image is located after the electronic device receives the user's target operation on the content of the target image in the first area that is, the second area.
  • the relative positional relationship of the first area is to perform a target operation on the content of the target screen in the above-mentioned first area, and the target operation may be a zoom operation of the user on the content of the target screen, wherein the second area is also when the user enters the first input in the shooting preview screen. Selected.
  • the electronic device can perform a zooming operation on the image content in any area according to the user's input in any area of the shooting preview image, so that the user can realize more abundant framing possibilities through the electronic device.
  • the processor 110 is specifically configured to determine the position information between the N first area boundaries of the above-mentioned first area and the N second area boundaries of the above-mentioned second area, and one first area boundary corresponds to one second area boundary.
  • area boundary, N is a positive integer; the processor 110 is further configured to determine the scaling rate of each first area boundary of the first area according to the above-mentioned position information; the processor 110 is also specifically configured to, according to the above-mentioned scaling rate, A target operation is performed on the target screen content of the above-mentioned first area.
  • the user input unit 107 is specifically configured to receive the user's first input when the shooting mode of the above-mentioned shooting preview screen is the time-lapse shooting mode or the video recording mode; the processor 110 is specifically configured to respond to the above-mentioned user
  • the above-mentioned first input input by the input unit 107 determines the first area corresponding to the start frame of the above-mentioned shooting mode, the second area corresponding to the above-mentioned end frame of the above-mentioned shooting mode, and the above-mentioned time-lapse shooting mode or the above-mentioned shooting time length of the video recording mode, and determine the relative positional relationship between the above-mentioned first area and the above-mentioned second area;
  • the user input unit 107 is also specifically configured to receive the second input of the user recording the above-mentioned shooting preview screen;
  • the processor 110 is also specifically used to respond to the above-mentioned
  • the above-mentioned first area is the area where the shooting preview screen is located, the shooting mode of the above-mentioned shooting preview screen is a time-lapse shooting mode or a video recording mode, and the above-mentioned user input unit 107 is further configured to receive the first recording of the above-mentioned shooting preview screen by the user.
  • the above-mentioned processor 110 is further configured to, in response to the above-mentioned third input input by the above-mentioned user input unit 107, divide the picture content of the shooting preview picture into M partial picture contents, and analyze the content of the above-mentioned M partial picture contents.
  • the first partial screen content is zoomed in, and the first partial screen content is displayed in the shooting preview screen, where the first partial screen content is any one of the M partial screen contents, where M is a positive integer greater than 1.
  • the above-mentioned user input unit 107 is further configured to receive a fourth input from the user to record the above-mentioned shooting preview screen; the above-mentioned processor 110 is further configured to respond to the above-mentioned fourth input input by the above-mentioned user input unit 107, to record the above-mentioned shooting preview screen.
  • the content of the first part of the screen in the preview screen is updated to the content of the second part of the screen, the content of the second part of the screen is any one of the contents of the M parts of the screen, and the content of the second part of the screen is different from the content of the first part of the screen.
  • the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042. Such as camera) to obtain still pictures or video image data for processing.
  • 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 other input devices 1072 .
  • the 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 repeated here.
  • Memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems.
  • the processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and an application program, and the like, and the modem processor mainly processes wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 110 .
  • the embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium.
  • a program or an instruction is stored on the readable storage medium.
  • the processor is the processor in the electronic device described in the foregoing embodiments.
  • the readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
  • An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each of the foregoing shooting method embodiments process, and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
  • the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
  • the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course 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 software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of this application.
  • a storage medium such as ROM/RAM, magnetic disk, CD-ROM

Abstract

本申请公开了一种拍摄方法、装置、电子设备及介质,属于通信技术领域。该方法包括:电子设备在显示拍摄预览画面的情况下,接收用户的第一输入;响应于上述第一输入,电子设备根据第一区域与第二区域之间的相对位置关系,对上述第一区域的目标画面内容执行目标操作;其中,上述第一区域和上述第二区域为上述拍摄预览画面中上述第一输入选择的区域,上述第二区域为对上述第一区域的目标画面内容执行目标操作后,上述目标画面内容所在的区域,上述目标操作为对目标画面内容的缩放操作。

Description

拍摄方法、装置、电子设备及介质
相关申请的交叉引用
本申请主张在2021年01月27日在中国提交的中国专利申请号202110111441.9的优先权,其全部内容通过引用包含于此。
技术领域
本申请属于通信技术领域,具体涉及一种拍摄方法、装置、电子设备及介质。
背景技术
随着电子设备技术的发展,拍摄功能已经成为了电子设备中的必备功能。在用户使用电子设备进行拍摄的过程中,可以调整拍摄焦距(通常称为“变焦”),即调整拍摄预览区域中的预览画面的显示比例。一般的,电子设备可以通过光学变焦和数码变焦两种方式完成变焦。
在相关技术中,针对数码变焦,电子设备在进行数码变焦的过程中,由于数码变焦是通过在传感器上进行数码裁切来缩小视场的,因此,电子设备一般会放大传感器的中间部分,也即,电子设备仅能够以拍摄预览区域的中心区域的预览画面进行变焦。
通过上述变焦过程可知,相关技术中的数码变焦的变焦方式会使得变焦区域受限,使得电子设备取景的过程不够灵活,进而导致拍摄效率较低。
发明内容
本申请实施例的目的是提供一种拍摄方法、装置、电子设备及介质,能够解决相关技术中的数码变焦的变焦方式会使得变焦区域受限,使得电子设备取景的过程不够灵活,进而导致拍摄效率较低的问题。
为了解决上述技术问题,本申请是这样实现的:
第一方面,本申请实施例提供了一种拍摄方法,该方法包括:电子设备在显示拍摄预览画面的情况下,接收用户的第一输入;响应于上述第一输入,电子设备根据第一区域与第二区域之间的相对位置关系,对上述第一区域的目标画面内容执行目标操作;其中,上述第一区域和上述第二区域为上述拍摄预览画面中上述第一输入选择的区域,上述第二区域为对上述第一区域的目标画面内容执行目标操作后,上述目标画面内容所在的区域,上述目标操作为对目标画面内容的缩放操作。
第二方面,本申请实施例提供了一种拍摄装置,所述装置包括接收模块和执行模块;所述接收模块,用于在显示拍摄预览画面的情况下,接收用户的第一输入;上述执行模块,用于响应于上述接收模块接收的上述第一输入,根据第一区域与第二区域之间的相对位置关系,对上述第一区域的目标画面内容执行目标操作;其中,上述第一区域和上述第二区域为上述拍摄预览画面中上述第一输入选择的区域,上述第二区 域为对上述第一区域的目标画面内容执行目标操作后,所述目标画面内容所在的区域,上述目标操作为对目标画面内容的缩放操作。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。
在本申请实施例中,电子设备在显示拍摄预览画面的情况下,可以接收用户的第一输入,在电子设备接收到该第一输入后,将根据用户在拍摄预览画面中输入第一输入时选择的区域(即上述第一区域),与电子设备接收到用户对所述第一区域的目标画面内容执行目标操作后,该目标画面内容所在的区域(即上述第二区域)之间的相对位置关系,对上述第一区域的目标画面内容执行目标操作,该目标操作可以为用户对目标画面内容的缩放操作,其中,第二区域也为用户在拍摄预览画面中输入第一输入时选择的。如此,电子设备可以根据用户在拍摄预览画面的任意区域处的输入,对任意区域的画面内容进行缩放操作,从而使得用户可以通过电子设备实现更加丰富的取景可能性。
附图说明
图1是本申请实施例提供的一种拍摄方法的流程示意图;
图2为本申请实施例提供的一种拍摄方法所应用的界面的示意图之一;
图3为本申请实施例提供的一种拍摄方法所应用的界面的示意图之二;
图4为本申请实施例提供的一种拍摄方法所应用的界面的示意图之三;
图5为本申请实施例提供的一种拍摄装置的结构示意图;
图6为本申请实施例提供的一种电子设备的结构示意图之一;
图7为本申请实施例提供的一种电子设备的结构示意图之二。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施, 且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的拍摄方法进行详细地说明。
本申请实施例提供的拍摄方法可以应用于用户使用电子设备进行拍照的场景。
针对用户使用电子设备进行拍照的场景,假设用户使用电子设备进行拍照,在调节电子设备的拍摄预览画面的过程中,用户需要对拍摄预览画面左下角区域1中的画面内容时,用户需要将当前拍摄预览画面的中心区域变更为区域1,具体的,可以将电子设备向左下方移动,将区域1的画面内容显示在拍摄预览画面的中心区域。此时,电子设备在接收到用户对拍摄预览画面的指示缩放操作的输入时,可以将区域1中的画面内容放大显示。由上述过程可知,在用户使用电子设备的进行取景的过程中,如需对拍摄预览画面的中心位置以外的其他区域进行放大,需要移动电子设备,将需要放大的区域移动至中心区域。如此,由于变焦区域受限,使得电子设备取景的过程不够灵活,进而导致拍摄效率较低。
本申请实施例提供的拍摄方法,电子设备在显示拍摄预览画面的情况下,可以接收用户的放大输入,在电子设备接收到该放大输入后,将根据用户在拍摄预览画面中输入放大输入时选择的区域(即上述第一区域),与电子设备接收到用户对所述第一区域的目标画面内容执行目标操作后,该目标画面内容所在的区域(即上述第二区域)之间的相对位置关系,对上述第一区域的目标画面内容执行目标操作,该目标操作可以为用户对目标画面内容的缩放操作,其中,第二区域也为用户在拍摄预览画面中输入第一输入时选择的。如此,电子设备可以根据用户在拍摄预览画面的任意区域处的输入,对任意区域的画面内容进行缩放操作,从而使得用户可以通过电子设备实现更加丰富的取景可能性。
本实施例提供一种拍摄方法,如图1所示,该拍摄方法包括以下步骤301和步骤302:
步骤301:拍摄装置在显示拍摄预览画面的情况下,接收用户的第一输入。
在本申请实施例中,上述拍摄预览画面可以为电子设备中任意具备拍摄功能的应用中的拍摄预览画面。例如,拍摄应用的拍摄预览画面,聊天应用的拍摄预览画面。
在本申请实施例中,上述第一输入可以为用户在拍摄预览画面中的任意区域的输入。
在本申请实施例中,上述第一输入可以用于对拍摄预览画面执行目标操作。其中,目标操作可以参照下述内容的描述。
在本申请实施例中,上述第一输入可以为触控输入,例如,滑动输入、长按输入或者双击输入,也可以为语音输入,还可以为特定的手势输入,本申请实施例对此不 作限定。
步骤302:响应于上述第一输入,拍摄装置根据第一区域与第二区域之间的相对位置关系,对上述第一区域的目标画面内容执行目标操作。
在本申请实施例中,上述第一区域和上述第二区域为上述拍摄预览画面中上述第一输入选择的区域,上述第二区域为对上述第一区域的目标画面内容执行目标操作后,上述目标画面内容所在的区域,上述目标操作为对目标画面内容的缩放操作。
在本申请实施例中,上述第一输入选择的区域(即第一区域和第二区域)可以为用户通过对电子设备输入第一输入自定义选择的,也可以为电子设备提前预设的。
在一种示例中,当第一输入选择的区域为用户通过对电子设备输入第一输入自定义选择的区域时,上述第一输入可以为双指反向滑动输入。其中,当双指反向滑动输入为用于指示电子设备放大画面内容时,双指最终的释放位置即为用户自定义选择的第一区域的范围,第二区域为拍摄预览画面所在的区域;当双指反向滑动输入为用于指示电子设备缩小画面内容时,第一区域为拍摄预览画面所在的区域,双指最终的释放位置即为用户自定义选择的第二区域的范围。
在另一种示例中,当第一输入选择的区域为电子设备提前预设的区域时,上述第一输入可以为双击输入。其中,当双击输入用于指示电子设备放大画面内容时,电子设备中可以预设在接收到第一输入后,以双击点为中心的预设区域范围,该预设区域范围为第一区域的范围,第二区域为拍摄预览画面所在的区域;其中,当双击输入用于指示电子设备缩小画面内容时,电子设备中可以预设第二区域为拍摄预览画面所在的区域,同时预设在接收到第一输入后,以双击点为中心的预设区域范围,该预设区域范围为第二区域的范围。
在本申请实施例中,上述第一区域与第二区域的相对位置关系是指第一区域的区域边界与第二区域的区域边界的相对位置关系。例如,当第一区域为长方形,第二区域为与第一区域等比例放大的长方形的情况下,第一区域的4条边与第二区域的4条边之间的相互对应关系。
在本申请实施例中,上述相对位置关系可以包括第一区域与第二区域之间的区域边界对应关系,还可以包括第一区域与第二区域相对应的边界之间的距离。
可以理解的,上述第一区域和第二区域的位置关系可以为:第一区域包含在第二区域之内,或者第二区域在第一区域之内。上述第一区域和第二区域之间可以为等比例放大或者缩小的相同形状的区域,例如,第一区域位于第二区域之内,第一区域与第二区域均为长方形,其中,第二区域为第一区域等比例放大后的区域。上述第一区域和第二区域之间可以为不同形状、且大小不同的区域,例如,第一区域位于第二区域之内,第一区域为圆形,第二区域为长方形。
在本申请实施例中,上述目标画面内容可以为在拍摄预览画面中,用于欲对其执行缩放操作的画面内容。
在本申请实施例中,上述目标操作可以为放大操作,也可以为缩小操作。
可选的,在本申请实施例中,在上述目标操作为放大上述目标画面内容的放大操作的情况下,第一区域为目标画面内容所在的区域,第二区域为拍摄预览画面所在的区域;在上述目标操作为缩小上述目标画面内容的缩小操作的情况下,第一区域为上述拍摄预览画面所在的区域,上述第二区域为对上述第一区域的目标画面内容执行缩小操作后,上述目标画面内容所在的区域。
示例性的,当目标操作为放大操作时,上述放大操作为电子设备执行数码变焦裁切的过程,当上述目标操作为缩小操作时,上述缩小操作为电子设备执行数码变焦恢复的过程。
可以理解的是,在上述拍摄预览画面中对应的数码变焦焦距为最小焦距的情况下,将无法继续执行缩小操作,类似的,在上述拍摄预览画面中对应的数码变焦焦距为最大焦距的情况下,将无法继续执行放大操作。
示例1:假设拍摄预览画面的应用为拍摄应用,上述目标操作为放大操作,则如图2中的(a)所示,在电子设备显示拍摄应用的拍摄预览画面21的情况下,接收用户对拍摄预览画面21的位置22的双击输入(即上述第一输入),在电子设备接收到该双击输入后,电子设备确定以该位置22为中心点的区域23范围内作为目标放大区域(即上述第一区域),拍摄预览画面21所在的区域为区域23放大后的最终区域(即上述第二区域),最终对区域23中的画面内容(即上述目标画面内容)进行放大操作,如图2中的(b)所示,放大至与拍摄预览画面21等大。
示例2:假设拍摄预览画面的应用为拍摄应用,上述目标操作为缩小操作,则如图3中的(a)所示,在电子设备显示拍摄应用的拍摄预览画面21的情况下,接收用户对拍摄预览画面21的位置24的长按输入(即上述第一输入),在电子设备接收到该长按输入后,电子设备将拍摄预览画面21所在的区域作为目标缩小区域(即上述第一区域),预设的缩小后的目标区域25作为缩小后的最终区域(即上述第二区域),最终对拍摄预览画面21所在区域的画面内容(即上述目标画面内容)进行缩小操作,如图3中的(b)所示,缩小至与目标区域25等大。
本申请实施例提供的拍摄方法,拍摄装置在显示拍摄预览画面的情况下,可以接收用户的放大输入,在拍摄装置接收到该放大输入后,将根据用户在拍摄预览画面中输入放大输入时选择的区域(即上述第一区域),与拍摄装置接收到用户对所述第一区域的目标画面内容执行目标操作后,该目标画面内容所在的区域(即上述第二区域)之间的相对位置关系,对上述第一区域的目标画面内容执行目标操作,该目标操作可以为用户对目标画面内容的缩放操作,其中,第二区域也为用户在拍摄预览画面中输入第一输入时选择的。如此,电子设备可以根据用户在拍摄预览画面的任意区域处的输入,对任意区域的画面内容进行缩放操作,从而使得用户可以通过电子设备实现更加丰富的取景可能性。
可选的,在本申请实施例中,上述步骤302中的拍摄装置根据第一区域与第二区域之间的相对位置关系,对第一区域的目标画面内容执行目标操作,包括如下步骤A1至步骤A3:
步骤A1:拍摄装置确定上述第一区域的N个第一区域边界与上述第二区域的N个第二区域边界之间的位置信息,一个第一区域边界对应一个第二区域边界,N为正整数。
步骤A2:拍摄装置根据上述位置信息,确定上述第一区域的每个第一区域边界的缩放速率。
步骤A3:拍摄装置根据上述缩放速率,对上述第一区域的目标画面内容执行目标操作。
示例性的,上述位置信息为第一区域的N个第一区域边界与上述第二区域的N个第二区域边界之间的相对位置关系。其中,相对位置信息可以包括第一区域与第二区域之间距离与方向的对应关系。
在一种示例中,上述位置信息可以通过坐标信息体现,也即,位置信息可以为:第一区域的N个第一区域边界上的X个坐标点的坐标信息,与上述第二区域的N个第二区域边界上的X个坐标点的坐标信息的对应关系。
示例性的,上述缩放速率可以根据缩放时间和缩放距离确定。其中,缩放时间可以为提前预设的,也可以为用户自定义的,本申请实施例对此不作限定。缩放速率为缩放距离与缩放时间的比值。
在一种示例中,当上述目标操作为放大操作时,上述缩放速率可以为可变比率,也即在数码变焦的过程中,单位时间内裁切的像素的比率。一般的,缩放速率为像素/秒。
示例3:结合上述示例1,在电子设备接收到该双击输入并确定以该位置22为中心点的区域23范围内作为目标放大区域(即上述第一区域)后,如图4所示,拍摄预览画面(即第二区域)的4个顶点为A、B、C、D,目标放大区域的4个顶点为E、F、G、H。其中,拍摄预览画面的4个顶点的坐标信息为A(0,4320)、B(7680,7320)、C(0,0)、D(7680,0),目标放大区域的4个顶点的坐标信息为E(960,1620)、F(2880,1620)、G(960,540)、H(2880,540),A、B、C、D四点代表全分辨率,E、F、G、H代表由用户确定的数码变焦裁切。目标放大区域与拍摄预览画面之间的位置关系为A与E对应,B与F对应、C与G对应、D与H对应(即上述位置关系)。在预设缩放时间为1秒的情况下,A-E的可变比率为R1,其中,即R1=2865.59像素/秒,同理,即R2=5507.27像素/秒,即R3=1101.45像素/秒,即R4=4830.28像素/秒。则电子设备按照该放大速率,对由EFGH这4个顶点组成的目标放大区域在1秒内进行放大。
如此,电子设备可以在接收用户的第一输入后,根据输入位置确定缩放缩率,进而执行缩放,从而无需用户移动电子设备,即可方便的对拍摄预览界面的任意位置的 画面进行缩放操作,进而方便的完成拍摄,简化了拍照的操作步骤。
可选的,在本申请实施例中,在上述步骤301中的接收用户的第一输入中,本申请实施例提供的拍摄方法可以包括如下步骤B1:
步骤B1:拍摄装置在上述拍摄预览画面的拍摄模式为延时拍摄模式或者录像模式的情况下,接收用户的第一输入。
在上述步骤B1的基础上,上述步骤301中,本申请实施例提供的拍摄方法可以包括如下步骤B2至步骤B4:
步骤B2:响应于上述第一输入,拍摄装置确定与上述拍摄模式的开始帧对应的第一区域、与上述拍摄模式的结束帧对应的第二区域以及上述延时拍摄模式或者上述录像模式的拍摄时长,并确定上述第一区域与上述第二区域之间的相对位置关系。
步骤B3:拍摄装置接收用户录制上述拍摄预览画面的第二输入。
步骤B4:响应于上述第二输入,拍摄装置根据上述第一区域与上述第二区域之间的相对位置关系以及拍摄时长,对上述第一区域的目标画面内容执行目标操作。
示例性的,上述第一区域和第二区域可以参照前述描述,此处不再赘述。
在本申请实施例中,上述第一输入可以为触控输入,例如,滑动输入、长按输入或者双击输入,也可以为语音输入,还可以为特定的手势输入,本申请实施例对此不作限定。
示例性的,上述开始帧是指拍摄视频或者拍摄延时录像时,视频或者延时录像的第一帧画面,上述结束帧是指拍摄视频或者拍摄延时录像时,视频或者延时录像的最后一帧画面。
示例性的,在拍摄模式为延时拍摄模式或者录像模式的情况下,上述第一输入可以用于触发电子设备确定开始帧的画面、结束帧的画面以及拍摄时长。
在一种示例中,在接收到用户输入的第一输入后,电子设备可以在显示界面上显示用于确定开始帧的画面、结束帧的画面以及拍摄时长的确定窗口。在该确定窗口中,电子设备可以根据用户输入开始帧的画面的画面尺寸以及画面中心位置(即第一区域),结束帧的画面的画面尺寸以及画面中心位置(即第二区域)以及拍摄时长,从而确定第一区域、第二区域和拍摄时长。
示例性的,上述第二输入可以用于开启录制上述拍摄预览画面,其中录制过程可以为普通录像模式或者延时拍摄模式,本申请实施例对此不作限定。
示例性的,上述第二输入可以为触控输入,例如,点击输入,还可以为语音输入,还可以为特定的手势输入,本申请实施例对此不作限定。
在一种示例中,在拍摄模式为延时拍摄模式对的情况下,电子设备可以在较长时间内录制视频(例如,持续录制5个小时),然后以15倍、30倍等更快速度播放。在电子设备开始录制视频之前,可以接收在拍摄预览画面中的第一输入。通过对电子设备进行第一输入从而设置本次延时拍摄模式下的开始帧对应的第一区域和结束帧对 应的第二区域,以及开始帧至结束帧之间的拍摄时长,在电子设备接收到开始进行延时拍摄之后,电子设备的相机单元将在拍摄时长内由第一区域向第二区域缓慢进行数码变焦,直至结束帧,自动完成上述延时拍摄过程,呈现出逐渐缩放拍摄预览画面的第一区域的效果。
如此,电子设备可以在用户录制视频或者在延时拍摄的之前,确认录制视频时或者延时拍摄时的开始帧和结束帧以及拍摄时长,进行缩放输入,进而在无需用户变换摄像位置的情况下获取更好的拍摄效果,简化用户的拍摄过程。
可选的,在本申请实施例中,上述第一区域为拍摄预览画面所在的区域,上述拍摄预览画面的拍摄模式为延时拍摄模式或者录像模式,本申请实施例提供的拍摄方法可以包括如下步骤C1和步骤C2:
步骤C1:拍摄装置接收用户录制上述拍摄预览画面的第三输入。
步骤C2:响应于上述第三输入,拍摄装置将拍摄预览画面的画面内容分割为M个部分画面内容,并对上述M个部分画面内容中的第一部分画面内容执行放大操作,将上述第一部分画面内容显示在上述拍摄预览画面中,M为大于1的正整数。
示例性的,上述第一部分画面内容为上述M个部分画面内容中的任一个。
示例性的,上述第三输入的描述可以参照上述第二输入的描述,此处不再赘述。
示例性的,上述第三输入还可以用于触发电子设备对拍摄预览画面的画面内容进行分割以及放大其中一个部分画面内容显示在整个拍摄预览画面中。
示例性的,上述部分画面内容为拍摄预览画面的画面内容的1/M的内容,其中,上述M可以为电子设备预设的,也可以为用户自定义的。
进一步的,上述分割方式可以为电子设备预设的,也可以为用户自定义的。其中,分割方式可以为网格分割,例如,将长方形的拍摄预览画面自长边界的中心点划分与宽边界平行的分割线,同时,和自宽边界的中心点划分与长边界平行的分割线,分割为4等分的部分画面的画面区域;也可以为角度分割,例如,以拍摄预览画面的中心点为圆心,按照不同圆心角对应的扇形边划线至拍摄预览画面边界,将拍摄预览画面分割为相同角度的部分画面的画面区域或者角度不同的部分画面的画面区域。
可以理解的,电子设备在接收第三输入后,将触发电子设备将拍摄预览画面按照预设方式或者用户自定义方式分割,并采集到的拍摄预览画面的整体图像信息隐藏至电子设备中,在整个拍摄预览画面仅显示M个部分画面内容中的任意一个部分画面内容,也即将该任意一个部分画面内容放大至整个拍摄预览画面上。其中,任意一个部分画面可以为电子设备预设的,也可以为用户自定义设定的,本申请实施例对此不作限定。
如此,电子设备可以在获取到用户录制视频或者延迟拍摄的输入后,自动采集拍摄预览画面中的部分画面内容,从而在无需用户在拍摄时手动调整,即可更加精准的录制用户需要的视频。
可选的,在本申请实施例中,上述步骤C2中的对上述M个部分画面中的第一部分画面执行放大操作,将上述第一部分画面内容显示在上述拍摄预览画面中之后,本申请实施例提供的拍摄方法可以包括如下步骤D1和步骤D2:
步骤D1:拍摄装置接收用户录制上述拍摄预览画面的第四输入。
步骤D2:响应于上述第四输入,拍摄装置将上述拍摄预览画面中的上述第一部分画面内容更新为第二部分画面内容。
示例性的,上述第二部分画面内容为上述M个部分画面内容中的任一个,上述第二部分画面内容与上述第一部分画面内容不同。
示例性的,上述第四输入可以用于切换拍摄预览画面中显示的画面内容。
示例性的,上述第四输入可以为触控输入,例如,滑动输入、长按输入或者双击输入,也可以为语音输入,还可以为特定的手势输入,本申请实施例对此不作限定。
示例性的,上述将第一部分画面内容更新为第二部分画面内容的更新方式可以为平移更新,即将第一部分画面内容逐渐平移出拍摄预览画面,而同步的,将第二部分画面内容逐渐平移进拍摄预览画面中;也可以为直接更新,即电子设备将拍摄预览画面中显示的第一部分画面内容直接切换为第二部分画面内容。
示例性的,上述将第一部分画面内容更新为第二部分画面内容的更新方式可以为电子设备预设的,也可以为用户自定义设置的,本申请对此不作限定。
如此,电子设备通过切换拍摄预览画面中显示的画面内容,可以在无需用户移动电子设备的情况下,呈现出与专业运动相机相似的切换画面内容的效果,从而增强用户使用电子设备的使用体验。
需要说明的是,本申请实施例提供的拍摄方法,执行主体可以为拍摄装置,或者该拍摄装置中的用于执行拍摄方法的控制模块。本申请实施例中以拍摄装置执行拍摄方法为例,说明本申请实施例提供的拍摄装置。
图5为实现本申请实施例提供的拍摄装置的可能的结构示意图。如图5所示,上述装置600包括接收模块601和执行模块602;上述接收模块601,用于在显示拍摄预览画面的情况下,接收用户的第一输入;上述执行模块602,用于响应于上述接收模块601接收的上述第一输入,根据第一区域与第二区域之间的相对位置关系,对上述第一区域的目标画面内容执行目标操作;其中,上述第一区域和上述第二区域为上述拍摄预览画面中上述第一输入选择的区域,上述第二区域为对上述第一区域的目标画面内容执行目标操作后,上述目标画面内容所在的区域,上述目标操作为对目标画面内容的缩放操作。
本申请实施例提供的拍摄装置,该拍摄装置在显示拍摄预览画面的情况下,可以接收用户的放大输入,在拍摄装置接收到该放大输入后,将根据用户在拍摄预览画面中输入放大输入时选择的区域(即上述第一区域),与拍摄装置接收到用户对上述第一区域的目标画面内容执行目标操作后,该目标画面内容所在的区域(即上述第二区 域)之间的相对位置关系,对上述第一区域的目标画面内容执行目标操作,该目标操作可以为用户对目标画面内容的缩放操作,其中,第二区域也为用户在拍摄预览画面中输入第一输入时选择的。如此,电子设备可以根据用户在拍摄预览画面的任意区域处的输入,对任意区域的画面内容进行缩放操作,从而使得用户可以通过电子设备实现更加丰富的取景可能性。
可选的,在本申请实施例中,在上述目标操作为放大上述目标画面内容的放大操作的情况下,第一区域为目标画面内容所在的区域,第二区域为拍摄预览画面所在的区域;在上述目标操作为缩小上述目标画面内容的缩小操作的情况下,第一区域为上述拍摄预览画面所在的区域,上述第二区域为对上述第一区域的目标画面内容执行缩放操作后,上述目标画面内容所在的区域。
可选的,在本申请实施例中,上述装置600还包括确定模块603;上述确定模块603,用于确定上述第一区域的N个第一区域边界与上述第二区域的N个第二区域边界之间的位置信息,一个第一区域边界对应一个第二区域边界,N为正整数;上述确定模块603,还用于根据上述位置信息,确定上述第一区域的每个第一区域边界的缩放速率;上述执行模块602,具体用于根据上述确定模块603确定的上述缩放速率,对上述第一区域的目标画面内容执行目标操作。
可选的,在本申请实施例中,上述装置600还包括确定模块603;上述接收模块601,还用于在上述拍摄预览画面的拍摄模式为延时拍摄模式或者录像模式的情况下,接收用户的第一输入;上述确定模块603,用于确定与上述拍摄模式的开始帧对应的第一区域、与上述拍摄模式的结束帧对应的第二区域以及上述延时拍摄模式或者上述录像模式的拍摄时长,并确定上述第一区域与上述第二区域之间的相对位置关系;上述接收模块601,具体用于接收用户录制上述拍摄预览画面的第二输入;上述执行模块602,具体用于响应于上述接收模块接收的上述第二输入,根据上述第一区域与上述第二区域之间的相对位置关系以及拍摄时长,对上述第一区域的目标画面内容执行目标操作。
可选的,在本申请实施例中,上述第一区域为拍摄预览画面所在的区域,上述拍摄预览画面的拍摄模式为延时拍摄模式或者录像模式,上述接收模块601,还用于接收用户录制上述拍摄预览画面的第三输入;上述执行模块602,还用于响应于上述接收模块601接收的上述第三输入,将拍摄预览画面的画面内容分割为M个部分画面内容,并对上述M个部分画面内容中的第一部分画面内容执行放大操作,将上述第一部分画面内容显示在上述拍摄预览画面中,上述第一部分画面内容为上述M个部分画面内容中的任一个,M为大于1的正整数。
可选的,在本申请实施例中,上述装置还包括更新模块604;上述接收模块601,还用于接收用户录制上述拍摄预览画面的第四输入;上述更新模块604,用于响应于上述接收模块601接收的上述第四输入,将上述拍摄预览画面中的上述第一部分画面 内容更新为第二部分画面内容,上述第二部分画面内容为上述M个部分画面内容中的任一个,上述第二部分画面内容与上述第一部分画面内容不同。
本申请实施例中的拍摄装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的拍摄装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的拍摄装置能够实现图1至图4的方法实施例实现的各个过程,为避免重复,这里不再赘述。
需要说明的是,如图5所示,拍摄装置600中一定包括的模块用实线框示意,如接收模块601;拍摄装置600中可以包括也可以不包括的模块用虚线框示意,如确定模块603。
可选的,如图6所示,本申请实施例还提供一种电子设备800,包括处理器801,存储器802,存储在存储器802上并可在所述处理器801上运行的程序或指令,该程序或指令被处理器801执行时实现上述拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。
图7为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、以及处理器110等部件。其中,用户输入单元107包括:触控面板1071和其他输入设备1072,显示单元106包含显示面板1061,输入单元104包括图像处理器1041和麦克风1042,存储器109可用于存储软件程序(如,操作系统、至少一个功能所需的应用程序)以及各种数据。
本领域技术人员可以理解,电子设备100还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图7中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,用户输入单元107,用于在显示拍摄预览画面的情况下,接收用户的第一输入;处理器110,用于响应于上述用户输入单元107输入的上述第一输入,根据第一区域与第二区域之间的相对位置关系,对上述第一区域的目标画面内容执行目标操作;其中,上述第一区域和上述第二区域为上述拍摄预览画面中上述第一输入选择的区域,上述第二区域为对上述第一区域的目标画面内容执行目标操作后,上述目标画面内容所在的区域,上述目标操作为对目标画面内容的缩放操作。
本申请实施例提供的电子设备,该电子设备在显示拍摄预览画面的情况下,可以接收用户的第一输入,在电子设备接收到该第一输入后,将根据用户在拍摄预览画面中输入第一输入时选择的区域(即上述第一区域),与电子设备接收到用户对上述第一区域的目标画面内容执行目标操作后,该目标画面内容所在的区域(即上述第二区域)之间的相对位置关系,对上述第一区域的目标画面内容执行目标操作,该目标操作可以为用户对目标画面内容的缩放操作,其中,第二区域也为用户在拍摄预览画面中输入第一输入时选择的。如此,电子设备可以根据用户在拍摄预览画面的任意区域处的输入,对任意区域的画面内容进行缩放操作,从而使得用户可以通过电子设备实现更加丰富的取景可能性。
可选的,处理器110,具体用于确定上述第一区域的N个第一区域边界与上述第二区域的N个第二区域边界之间的位置信息,一个第一区域边界对应一个第二区域边界,N为正整数;处理器110,具体还用于根据上述位置信息,确定上述第一区域的每个第一区域边界的缩放速率;处理器110,具体还用于根据上述缩放速率,对上述第一区域的目标画面内容执行目标操作。
可选的,用户输入单元107,具体用于在上述拍摄预览画面的拍摄模式为延时拍摄模式或者录像模式的情况下,接收用户的第一输入;处理器110,具体用于响应于上述用户输入单元107输入的上述第一输入,确定与上述拍摄模式的开始帧对应的第一区域、与上述拍摄模式的结束帧对应的第二区域以及上述延时拍摄模式或者上述录像模式的拍摄时长,并确定上述第一区域与上述第二区域之间的相对位置关系;用户输入单元107,还具体用于接收用户录制上述拍摄预览画面的第二输入;处理器110,还具体用于响应于上述用户输入单元107输入的上述第二输入,根据上述第一区域与上述第二区域之间的相对位置关系以及拍摄时长,对上述第一区域的目标画面内容执行目标操作。
可选的,上述第一区域为拍摄预览画面所在的区域,上述拍摄预览画面的拍摄模式为延时拍摄模式或者录像模式,上述用户输入单元107,还用于接收用户录制上述拍摄预览画面的第三输入;上述处理器110,还用于响应于上述用户输入单元107输入的上述第三输入,将拍摄预览画面的画面内容分割为M个部分画面内容,并对上述M个部分画面内容中的第一部分画面内容执行放大操作,将上述第一部分画面内容显示在上述拍摄预览画面中,上述第一部分画面内容为上述M个部分画面内容中的任一 个,M为大于1的正整数。
可选的,上述用户输入单元107,还用于接收用户录制上述拍摄预览画面的第四输入;上述处理器110,还用于响应于上述用户输入单元107输入的上述第四输入,将上述拍摄预览画面中的上述第一部分画面内容更新为第二部分画面内容,上述第二部分画面内容为上述M个部分画面内容中的任一个,上述第二部分画面内容与上述第一部分画面内容不同。
应理解的是,本申请实施例中,输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元106可包括显示面板1061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板1061。用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器109可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨 论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (17)

  1. 一种拍摄方法,所述方法包括:
    在显示拍摄预览画面的情况下,接收用户的第一输入;
    响应于所述第一输入,根据第一区域与第二区域之间的相对位置关系,对所述第一区域的目标画面内容执行目标操作;
    其中,所述第一区域和所述第二区域为所述拍摄预览画面中所述第一输入选择的区域,所述第二区域为对所述第一区域的目标画面内容执行目标操作后,所述目标画面内容所在的区域,所述目标操作为对目标画面内容的缩放操作。
  2. 根据权利要求1所述的方法,其中,
    在所述目标操作为放大所述目标画面内容的放大操作的情况下,第一区域为目标画面内容所在的区域,第二区域为拍摄预览画面所在的区域;
    在上述目标操作为缩小所述目标画面内容的缩小操作的情况下,第一区域为所述拍摄预览画面所在的区域,所述第二区域为对所述第一区域的目标画面内容执行缩小操作后,所述目标画面内容所在的区域。
  3. 根据权利要求1所述的方法,其中,所述根据第一区域与第二区域之间的相对位置关系,对所述第一区域的目标画面内容执行目标操作,包括:
    确定所述第一区域的N个第一区域边界与所述第二区域的N个第二区域边界之间的位置信息,一个第一区域边界对应一个第二区域边界,N为正整数;
    根据所述位置信息,确定所述第一区域的每个第一区域边界的缩放速率;
    根据所述缩放速率,对所述第一区域的目标画面内容执行目标操作。
  4. 根据权利要求1所述的方法,其中,所述接收用户的第一输入,包括:
    在所述拍摄预览画面的拍摄模式为延时拍摄模式或者录像模式的情况下,接收用户的第一输入;
    所述响应于所述第一输入,根据第一区域与第二区域之间的相对位置关系,对所述第一区域的目标画面内容执行目标操作,包括:
    响应于所述第一输入,确定与所述拍摄模式的开始帧对应的第一区域、与所述拍摄模式的结束帧对应的第二区域以及所述延时拍摄模式或者所述录像模式的拍摄时长,并确定所述第一区域与所述第二区域之间的相对位置关系;
    接收用户录制所述拍摄预览画面的第二输入;
    响应于所述第二输入,根据所述第一区域与所述第二区域之间的相对位置关系以及拍摄时长,对所述第一区域的目标画面内容执行目标操作。
  5. 根据权利要求1所述的方法,其中,所述第一区域为拍摄预览画面所在的区域,所述拍摄预览画面的拍摄模式为延时拍摄模式或者录像模式,所述方法还包括:
    接收用户录制所述拍摄预览画面的第三输入;
    响应于所述第三输入,将拍摄预览画面的画面内容分割为M个部分画面内容,并 对所述M个部分画面内容中的第一部分画面内容执行放大操作,将所述第一部分画面内容显示在所述拍摄预览画面中,所述第一部分画面内容为所述M个部分画面内容中的任一个,M为大于1的正整数。
  6. 根据权利要求5所述的方法,其中,所述对所述M个部分画面中的第一部分画面执行放大操作,将所述第一部分画面内容显示在所述拍摄预览画面中之后,所述方法还包括:
    接收用户录制所述拍摄预览画面的第四输入;
    响应于所述第四输入,将所述拍摄预览画面中的所述第一部分画面内容更新为第二部分画面内容,所述第二部分画面内容为所述M个部分画面内容中的任一个,所述第二部分画面内容与所述第一部分画面内容不同。
  7. 一种拍摄装置,所述装置包括接收模块和执行模块;
    所述接收模块,用于在显示拍摄预览画面的情况下,接收用户的第一输入;
    所述执行模块,用于响应于所述接收模块接收的所述第一输入,根据第一区域与第二区域之间的相对位置关系,对所述第一区域的目标画面内容执行目标操作;
    其中,所述第一区域和所述第二区域为所述拍摄预览画面中所述第一输入选择的区域,所述第二区域为对所述第一区域的目标画面内容执行目标操作后,所述目标画面内容所在的区域,所述目标操作为对目标画面内容的缩放操作。
  8. 根据权利要求7所述的装置,其中,在所述目标操作为放大所述目标画面内容的放大操作的情况下,第一区域为目标画面内容所在的区域,第二区域为拍摄预览画面所在的区域;在上述目标操作为缩小所述目标画面内容的缩小操作的情况下,第一区域为拍摄预览画面所在的区域,所述第二区域为对所述第一区域的目标画面内容执行缩放操作后,所述目标画面内容所在的区域。
  9. 根据权利要求7所述的装置,其中,所述装置还包括确定模块;
    所述确定模块,用于确定所述第一区域的N个第一区域边界与所述第二区域的N个第二区域边界之间的位置信息,一个第一区域边界对应一个第二区域边界,N为正整数;
    所述确定模块,还用于根据所述位置信息,确定所述第一区域的每个第一区域边界的缩放速率;
    所述执行模块,具体用于根据所述确定模块确定的所述缩放速率,对所述第一区域的目标画面内容执行目标操作。
  10. 根据权利要求7所述的装置,其中,所述装置还包括确定模块;
    所述接收模块,具体用于在所述拍摄预览画面的拍摄模式为延时拍摄模式或者录像模式的情况下,接收用户的第一输入;
    所述确定模块,用于确定与所述拍摄模式的开始帧对应的第一区域、与所述拍摄模式的结束帧对应的第二区域以及所述延时拍摄模式或者所述录像模式的拍摄时长, 并确定所述第一区域与所述第二区域之间的相对位置关系;
    所述接收模块,具体用于接收用户录制所述拍摄预览画面的第二输入;
    所述执行模块,具体用于响应于所述接收模块接收的所述第二输入,根据所述第一区域与所述第二区域之间的相对位置关系以及拍摄时长,对所述第一区域的目标画面内容执行目标操作。
  11. 根据权利要求7所述的装置,其中,所述第一区域为拍摄预览画面所在的区域,所述拍摄预览画面的拍摄模式为延时拍摄模式或者录像模式,
    所述接收模块,还用于接收用户录制所述拍摄预览画面的第三输入;
    所述执行模块,还用于响应于所述接收模块接收的所述第三输入,将拍摄预览画面的画面内容分割为M个部分画面内容,并对所述M个部分画面内容中的第一部分画面内容执行放大操作,将所述第一部分画面内容显示在所述拍摄预览画面中,所述第一部分画面内容为所述M个部分画面内容中的任一个,M为大于1的正整数。
  12. 根据权利要求11所述的装置,其中,所述装置还包括更新模块;
    所述接收模块,还用于接收用户录制所述拍摄预览画面的第四输入;
    所述更新模块,用于响应于所述接收模块接收的所述第四输入,将所述拍摄预览画面中的所述第一部分画面内容更新为第二部分画面内容,所述第二部分画面内容为所述M个部分画面内容中的任一个,所述第二部分画面内容与所述第一部分画面内容不同。
  13. 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-6任一项所述的拍摄方法的步骤。
  14. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-6任一项所述的拍摄方法的步骤。
  15. 一种计算机软件产品,所述计算机软件产品被至少一个处理器执行以实现如权利要求1-6任一项所述的拍摄方法。
  16. 一种电子设备,包括电子设备被配置成用于执行如权利要求1-6任一项所述的拍摄方法。
  17. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1-6任一项所述的拍摄方法。
PCT/CN2022/072929 2021-01-27 2022-01-20 拍摄方法、装置、电子设备及介质 WO2022161240A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110111441.9A CN112954193B (zh) 2021-01-27 2021-01-27 拍摄方法、装置、电子设备及介质
CN202110111441.9 2021-01-27

Publications (1)

Publication Number Publication Date
WO2022161240A1 true WO2022161240A1 (zh) 2022-08-04

Family

ID=76237842

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/072929 WO2022161240A1 (zh) 2021-01-27 2022-01-20 拍摄方法、装置、电子设备及介质

Country Status (2)

Country Link
CN (1) CN112954193B (zh)
WO (1) WO2022161240A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112954193B (zh) * 2021-01-27 2023-02-10 维沃移动通信有限公司 拍摄方法、装置、电子设备及介质
CN114222065B (zh) * 2021-12-20 2024-03-08 北京奕斯伟计算技术股份有限公司 图像处理方法、装置、电子设备、存储介质及程序产品
CN114520877A (zh) * 2022-02-10 2022-05-20 维沃移动通信有限公司 视频录制方法、装置和电子设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107637089A (zh) * 2015-05-18 2018-01-26 Lg电子株式会社 显示装置及其控制方法
CN107809581A (zh) * 2017-09-29 2018-03-16 天津远翥科技有限公司 图像处理方法、装置、终端设备及无人机
CN109495681A (zh) * 2017-09-12 2019-03-19 天津三星通信技术研究有限公司 获取图像的方法和设备
CN111031248A (zh) * 2019-12-25 2020-04-17 维沃移动通信(杭州)有限公司 一种拍摄方法及电子设备
US10819911B2 (en) * 2017-08-03 2020-10-27 Lg Electronics Inc. Electronic device for zooming a preview image
CN112954193A (zh) * 2021-01-27 2021-06-11 维沃移动通信有限公司 拍摄方法、装置、电子设备及介质

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4887840B2 (ja) * 2006-03-03 2012-02-29 カシオ計算機株式会社 撮影装置及びプログラム
CN102291571A (zh) * 2011-08-11 2011-12-21 杭州华三通信技术有限公司 一种在监控系统中实现拉框缩放的方法及装置
US9137444B2 (en) * 2011-09-26 2015-09-15 Sony Corporation Image photography apparatus for clipping an image region
US9503645B2 (en) * 2012-05-24 2016-11-22 Mediatek Inc. Preview system for concurrently displaying multiple preview images generated based on input image generated by image capture apparatus and related preview method thereof
CN107087102B (zh) * 2017-03-13 2020-07-24 联想(北京)有限公司 对焦信息处理方法及电子设备
CN106993131B (zh) * 2017-03-13 2020-11-20 联想(北京)有限公司 信息处理方法及电子设备
CN111835972B (zh) * 2020-07-21 2023-04-18 维沃移动通信(杭州)有限公司 拍摄方法、装置和电子设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107637089A (zh) * 2015-05-18 2018-01-26 Lg电子株式会社 显示装置及其控制方法
US10819911B2 (en) * 2017-08-03 2020-10-27 Lg Electronics Inc. Electronic device for zooming a preview image
CN109495681A (zh) * 2017-09-12 2019-03-19 天津三星通信技术研究有限公司 获取图像的方法和设备
CN107809581A (zh) * 2017-09-29 2018-03-16 天津远翥科技有限公司 图像处理方法、装置、终端设备及无人机
CN111031248A (zh) * 2019-12-25 2020-04-17 维沃移动通信(杭州)有限公司 一种拍摄方法及电子设备
CN112954193A (zh) * 2021-01-27 2021-06-11 维沃移动通信有限公司 拍摄方法、装置、电子设备及介质

Also Published As

Publication number Publication date
CN112954193B (zh) 2023-02-10
CN112954193A (zh) 2021-06-11

Similar Documents

Publication Publication Date Title
WO2022161240A1 (zh) 拍摄方法、装置、电子设备及介质
WO2022116885A1 (zh) 拍照方法、装置、电子设备及存储介质
WO2022002053A1 (zh) 拍照方法、装置及电子设备
US11539888B2 (en) Method and apparatus for processing video data
CN112714253B (zh) 视频录制方法、装置、电子设备和可读存储介质
CN113794829B (zh) 拍摄方法、装置及电子设备
CN112887617B (zh) 一种拍摄方法、装置和电子设备
WO2022161340A1 (zh) 图像显示方法、装置及电子设备
WO2022161260A1 (zh) 对焦方法、装置、电子设备及介质
WO2021035485A1 (zh) 拍摄防抖方法、装置、终端及存储介质
CN112911147B (zh) 显示控制方法、显示控制装置及电子设备
WO2023134583A1 (zh) 视频录制方法、装置及电子设备
CN112486390A (zh) 显示控制方法、装置及电子设备
CN113923350A (zh) 视频拍摄方法、装置、电子设备和可读存储介质
WO2022156672A1 (zh) 拍照方法、装置、电子设备及可读存储介质
WO2022156673A1 (zh) 显示控制方法、装置、电子设备及介质
WO2021238942A1 (zh) 防抖方法、防抖装置和电子设备
CN112437232A (zh) 拍摄方法、装置、电子设备及可读存储介质
WO2023125313A1 (zh) 视频录制方法、装置及电子设备
WO2022095878A1 (zh) 拍摄方法、装置、电子设备及可读存储介质
CN112367467B (zh) 显示控制方法、装置、电子设备和介质
CN112887624B (zh) 一种拍摄方法、装置和电子设备
CN112333395B (zh) 对焦控制方法、装置及电子设备
CN113905170A (zh) 变焦控制方法、装置、存储介质及电子装置
CN113873160B (zh) 图像处理方法、装置、电子设备和计算机存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22745115

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22745115

Country of ref document: EP

Kind code of ref document: A1