WO2023240655A1 - 一种图像的拍摄方法及装置 - Google Patents

一种图像的拍摄方法及装置 Download PDF

Info

Publication number
WO2023240655A1
WO2023240655A1 PCT/CN2022/099628 CN2022099628W WO2023240655A1 WO 2023240655 A1 WO2023240655 A1 WO 2023240655A1 CN 2022099628 W CN2022099628 W CN 2022099628W WO 2023240655 A1 WO2023240655 A1 WO 2023240655A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
shooting
sliding
shooting mode
sliding operation
Prior art date
Application number
PCT/CN2022/099628
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 北京小米移动软件有限公司
Priority to PCT/CN2022/099628 priority Critical patent/WO2023240655A1/zh
Priority to CN202280004357.XA priority patent/CN117597939A/zh
Publication of WO2023240655A1 publication Critical patent/WO2023240655A1/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

Definitions

  • image capture is performed using the target capture mode.
  • the target shooting mode is a continuous shooting mode, determine the number of target images to be acquired;
  • the target startup condition is that the sliding operation is terminated and the sliding distance of the sliding operation is greater than the second threshold.
  • using the target shooting mode to perform image shooting includes:
  • the target shooting mode is used for image shooting.
  • Optional also includes:
  • prompt information is generated, where the prompt information is used to prompt that the target shooting mode is selected.
  • the shooting mode associated with the shooting button in the direction of the sliding operation is displayed at the second preset position.
  • Optional also includes:
  • the display position of the shooting button is updated according to the current sliding direction of the sliding operation and the current sliding distance of the sliding operation.
  • Optional also includes:
  • the display position of the shooting button is restored to the initial display position, and the shooting modes in each sliding direction associated with the shooting button are hidden.
  • Optional also includes:
  • the target shooting mode and target starting condition corresponding to each sliding direction associated with the shooting button are updated.
  • an image capturing device including:
  • a determining module configured to determine the type of the touch operation in response to receiving a touch operation for the shooting button
  • the target startup condition is that the sliding distance of the sliding operation is greater than the first threshold
  • the shooting module is used to:
  • the target shooting mode is used for image shooting.
  • the determination module is also used to:
  • the shooting module is also configured to stop image shooting in response to the number of currently shot images being equal to the number of target images.
  • the shooting module is also used for:
  • the target shooting mode is a continuous shooting mode
  • image shooting is stopped in response to detecting that the touch operation is terminated.
  • the target shooting mode is used for image shooting.
  • Optional also includes:
  • a display module configured to display the shooting mode of each sliding direction associated with the shooting button at the first preset position when the type of the touch operation is a click operation;
  • the display module is configured to display the shooting mode associated with the shooting button in the direction of the sliding operation at a second preset position when the type of the touch operation is a sliding operation.
  • the display module is also used for:
  • the display position of the shooting button is updated according to the current sliding direction of the sliding operation and the current sliding distance of the sliding operation.
  • the display module is also used for:
  • the display position of the shooting button is restored to the initial display position, and the shooting modes in each sliding direction associated with the shooting button are hidden.
  • Optional also includes:
  • An acquisition module configured to acquire an update instruction, wherein the update instruction includes target shooting information corresponding to each sliding direction associated with the shooting button;
  • An update module configured to update the target shooting mode and target starting conditions corresponding to each sliding direction associated with the shooting button according to the target shooting information.
  • a third embodiment of the present disclosure provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor.
  • the processor executes the program, the first step is implemented as described above. methods described in this regard.
  • the fourth embodiment of the present disclosure provides a non-transitory computer-readable storage medium on which a computer program is stored.
  • the computer program is executed by a processor, the method as described in the first aspect is implemented.
  • the embodiment of the fifth aspect of the present disclosure provides a computer program product on which a computer program is stored.
  • the program is executed by a processor, the method as described in the first aspect is implemented.
  • Figure 1 is a schematic flowchart of an image capturing method provided by an embodiment of the present disclosure
  • Figure 2 is a schematic flowchart of an image capturing method provided by an embodiment of the present disclosure
  • Figure 3 is a schematic diagram of a touch operation process provided by an embodiment of the present disclosure.
  • Figure 4 is a schematic flowchart of an image capturing method provided by an embodiment of the present disclosure
  • Figure 5 is a schematic flowchart of an image capturing method provided by an embodiment of the present disclosure.
  • Figure 6 is a schematic flowchart of an image capturing method provided by an embodiment of the present disclosure.
  • Figure 7 is a schematic diagram of a sliding operation process provided by an embodiment of the present disclosure.
  • Figure 9 is a schematic structural diagram of an image shooting device provided by the present disclosure.
  • Figure 10 is a block diagram of an electronic device provided by the present disclosure.
  • each sliding direction of the camera button is associated with a shooting mode and the corresponding starting condition of the shooting mode, so that the corresponding shooting mode can be quickly started for image shooting only by operating the shooting button, thereby improving the Image capture efficiency.
  • FIG. 1 is a schematic flowchart of an image capturing method provided by an embodiment of the present disclosure. As shown in Figure 1, the method may include but is not limited to the following steps:
  • Step 101 In response to receiving a touch operation for the shooting button, determine the type of the touch operation.
  • the terminal device can receive a touch operation for the camera button by monitoring the display interface of the terminal device, and then determine the type of the touch operation based on information such as the position change of the touch operation and the duration of the touch operation. For example, when the starting position and the stopping position of the touch operation are the same, and the time interval between the occurrence of the touch operation and the end of the touch operation is less than a threshold, the type of the touch operation can be determined to be a click operation. When the starting position and the stopping position of the touch operation are different, it can be determined that the type of the touch operation is a sliding operation.
  • Step 102 When the type of touch operation is a sliding operation, determine the direction of the sliding operation.
  • the direction of the sliding operation can be determined by the current touch position. For example, when the current touch position is on the right side of the initial position of the photo button, the direction of the sliding operation can be determined to be right. When the current touch position is to the left of the initial position of the camera button, the direction of the sliding operation can be determined to be left. When the current touch position is above the initial position of the photo button, it can be determined that the direction of the sliding operation is upward. When the current touch position is below the initial position of the photo button, it can be determined that the direction of the sliding operation is downward.
  • the initial position of the photo button may be the default position of the photo button.
  • Step 103 Determine the target shooting mode and the target starting conditions corresponding to the target shooting mode according to the direction of the sliding operation.
  • the corresponding relationship between the direction of each sliding operation and the shooting mode can be preset in the system, and then the shooting mode corresponding to the direction of the current sliding operation can be determined through query.
  • the system presets a sliding operation to the left corresponding to the night scene shooting mode.
  • the shooting mode can be determined to be the night scene shooting mode.
  • the system sets the sliding operation to the right to correspond to the continuous shooting mode.
  • the shooting mode is the continuous shooting mode.
  • the starting condition corresponding to the continuous shooting mode may be that the sliding distance of the sliding operation is greater than the first threshold, and the starting condition corresponding to the snapshot mode may be the termination of the sliding operation, etc. This disclosure does not limit this.
  • the corresponding relationship between each shooting mode and the startup condition can be preset in the system, and then the startup condition corresponding to the target shooting mode can be determined through query.
  • the touch operation on the shooting button can be monitored in real time to determine whether the starting condition is met.
  • the target shooting mode can be used for image shooting.
  • the type of the touch operation when receiving a touch operation for the shooting button, the type of the touch operation can be determined.
  • the direction of the sliding operation can be determined. After that, the direction of the sliding operation can be determined according to the sliding operation. direction, determine the target shooting mode and the target starting conditions corresponding to the target shooting mode. When the target starting conditions are met, the target shooting mode can be used to capture images.
  • each sliding direction of the shooting button is associated with a shooting mode and the corresponding starting condition of the shooting mode, so that each shooting mode can be quickly started for image shooting just by operating the shooting button, thereby improving image shooting. s efficiency.
  • Step 201 In response to receiving a touch operation for the shooting button, determine the type of the touch operation.
  • Step 204 The target starting condition is that the sliding distance of the sliding operation is greater than the first threshold, and the current sliding distance of the sliding operation is obtained.
  • the target shooting mode can be automatically adopted for image shooting when the sliding distance of the shooting button reaches a certain distance.
  • the current sliding distance of the sliding operation may be the distance between the current touch position and the initial position of the photo button.
  • Step 205 In response to the current sliding distance being greater than the first threshold, use the target shooting mode to capture images.
  • the sliding distance of the sliding operation can be calculated in real time.
  • the target shooting mode can be automatically used for image shooting.
  • the circle with a smaller diameter in Figure 3 is the shooting button.
  • the shooting mode corresponding to the sliding direction to the right is the continuous shooting mode.
  • the circle corresponding to the shooting button slides to the right to a position with a larger radius.
  • the continuous photo mode can be automatically used to capture images.
  • prompt information may be generated to prompt the user that the target shooting mode is selected.
  • the prompt information may be a sound prompt, a vibration prompt, etc., and this disclosure does not limit this.
  • the type of the touch operation when receiving a touch operation for the shooting button, the type of the touch operation can be determined.
  • the direction of the sliding operation can be determined. After that, the direction of the sliding operation can be determined according to the sliding operation. direction, determine the target shooting mode and the target starting condition corresponding to the target shooting mode.
  • the target starting condition is that the sliding distance of the sliding operation is greater than the first threshold
  • the current sliding distance of the sliding operation can be obtained.
  • the target shooting mode can be used for image shooting.
  • the corresponding shooting mode can be quickly started for image shooting, thereby improving the efficiency of image shooting. efficiency.
  • FIG. 4 is a schematic flowchart of an image capturing method provided by an embodiment of the present disclosure. As shown in Figure 4, the method may include but is not limited to the following steps:
  • Step 401 In response to receiving a touch operation for the shooting button, determine the type of the touch operation.
  • Step 402 When the type of touch operation is a sliding operation, determine the direction of the sliding operation.
  • Step 403 Determine the target shooting mode and the target starting conditions corresponding to the target shooting mode according to the direction of the sliding operation.
  • Step 404 The target starting condition is that the sliding distance of the sliding operation is greater than the first threshold, and the current sliding distance of the sliding operation is obtained.
  • Step 406 When the target shooting mode is a continuous shooting mode, determine the number of target images to be acquired.
  • the target shooting mode is a continuous shooting mode
  • image capturing can be automatically ended based on the desired number of captured images set by the user.
  • the user can pre-set the desired number of captured images in the system, and then the terminal device can determine the desired number of captured images set by the user as the number of target images to be obtained.
  • Step 407 Stop image capturing in response to the number of currently captured images being equal to the number of target images.
  • the number of continuously captured images can be counted in real time, and when the number of currently captured images is equal to the number of target images, the image capture can be stopped.
  • the user can also control the end of image shooting through touch operation. For example, when it is detected that the touch operation is terminated, image capturing will be stopped.
  • the target shooting mode is continuous shooting mode and the number of target images to be acquired is not empty
  • the number of images currently taken is equal to the number of target images and the termination of the touch operation is not detected, you can Stop image shooting.
  • the target shooting mode is continuous shooting mode and the number of target images to be acquired is not empty, it can be stopped when it is detected that the touch operation is terminated but the number of currently captured images is less than the number of target images. Image capture.
  • the type of the touch operation when receiving a touch operation for the shooting button, the type of the touch operation can be determined.
  • the direction of the sliding operation can be determined. After that, the direction of the sliding operation can be determined according to the sliding operation. direction, determine the target shooting mode and the target starting condition corresponding to the target shooting mode.
  • the target starting condition is that the sliding distance of the sliding operation is greater than the first threshold
  • the current sliding distance of the sliding operation can be obtained, and in the current sliding distance If it is greater than the first threshold, the target shooting mode can be used to capture images.
  • the target shooting mode is the continuous shooting mode, the number of target images to be acquired can also be determined, and the number of images that have been currently captured can be determined.
  • FIG. 5 is a schematic flowchart of an image capturing method provided by an embodiment of the present disclosure. As shown in Figure 5, the method may include but is not limited to the following steps:
  • Step 501 In response to receiving a touch operation for the shooting button, determine the type of the touch operation.
  • Step 503 Determine the target shooting mode and the target starting conditions corresponding to the target shooting mode according to the direction of the sliding operation.
  • Step 504 The target starting condition is that the sliding operation is terminated and the sliding distance of the sliding operation is greater than the second threshold.
  • the target shooting mode is used to capture images.
  • Step 601 In response to receiving a touch operation for the shooting button, determine the type of the touch operation.
  • Step 603 When the type of touch operation is a sliding operation, update the display position of the shooting button according to the current sliding direction of the sliding operation and the current sliding distance of the sliding operation.
  • the sliding operation can be monitored in real time to determine the current sliding direction and the current sliding distance of the sliding operation, and according to the current sliding direction and sliding operation The current slide distance moves the display position of the capture button to indicate where the capture button is currently located.
  • the smaller diameter circle in Figure 3 is the shooting button.
  • the radius of the shooting button is a
  • the radius of the larger diameter circle in Figure 3 is b.
  • Step 607 If the termination of the touch operation is not detected within the preset time period, the display position of the shooting button is restored to the initial display position, and the shooting modes in each sliding direction associated with the shooting button are hidden.
  • Step 805 Obtain an update instruction, where the update instruction includes target shooting information corresponding to each sliding direction associated with the shooting button.
  • the target shooting information may include target shooting mode information and target starting condition information.
  • the user can also use the setting function to personalize the shooting modes and desired starting conditions corresponding to each sliding direction associated with the shooting button. Therefore, when the user completes and saves the settings of the shooting mode and startup conditions corresponding to each sliding direction associated with the shooting button, the terminal device can receive the update instruction.
  • Step 806 Update the target shooting mode and target starting conditions corresponding to each sliding direction associated with the shooting button according to the target shooting information.
  • the type of the touch operation when receiving a touch operation for the shooting button, the type of the touch operation can be determined.
  • the direction of the sliding operation can be determined. After that, the direction of the sliding operation can be determined according to the sliding operation. direction, determine the target shooting mode and the target startup conditions corresponding to the target shooting mode. When the target startup conditions are met, the target shooting mode can be used to capture images. Then, the targets corresponding to each sliding direction associated with the shooting button can also be obtained. Update instructions for shooting information, and update the target shooting mode and target start conditions corresponding to each sliding direction associated with the shooting button according to the target shooting information.
  • the above-mentioned determination module 901 is used to determine the direction of the sliding operation when the type of the touch operation is a sliding operation
  • the above-mentioned determination module 901 is used to determine the target shooting mode and the target starting condition corresponding to the target shooting mode according to the direction of the sliding operation;
  • the shooting module 902 is configured to use the target shooting mode to capture images in response to satisfying the target startup condition.
  • the above-mentioned determination module 901 is also used for:
  • the target shooting mode is a continuous shooting mode, determine the number of target images to be acquired;
  • the target start condition is that the sliding operation is terminated and the sliding distance of the sliding operation is greater than the second threshold.
  • the above-mentioned shooting module 902 is used to:
  • Optional also includes:
  • Optional also includes:
  • the above display module is also used for:
  • the above display module is also used for:
  • An acquisition module configured to acquire an update instruction, wherein the update instruction includes target shooting information corresponding to each sliding direction associated with the shooting button;
  • An update module configured to update the target shooting mode and target starting conditions corresponding to each sliding direction associated with the shooting button according to the target shooting information.
  • the type of the touch operation when receiving a touch operation for the shooting button, the type of the touch operation can be determined.
  • the direction of the sliding operation can be determined. After that, the direction of the sliding operation can be determined according to the sliding operation. direction, determine the target shooting mode and the target starting conditions corresponding to the target shooting mode. When the target starting conditions are met, the target shooting mode can be used to capture images.
  • each sliding direction of the shooting button is associated with a shooting mode and the corresponding starting condition of the shooting mode, so that each shooting mode can be quickly started for image shooting just by operating the shooting button, thereby improving image shooting. s efficiency.
  • the present disclosure also proposes an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor.
  • the processor executes the program, the aforementioned method is implemented. methods described in the examples.
  • the present disclosure also proposes a non-transitory computer-readable storage medium on which a computer program is stored.
  • the program is executed by a processor, the method as described in the foregoing method embodiments is implemented.
  • the present disclosure also proposes a computer program product on which a computer program is stored.
  • the computer program is executed by a processor, the method as described in the foregoing method embodiments is implemented.
  • Figure 10 is a block diagram of an electronic device provided by an embodiment of the present disclosure.
  • the electronic device 1000 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or the like.
  • Processing component 1002 generally controls the overall operations of electronic device 1000, such as operations associated with display, phone calls, data communications, camera operations, and recording operations.
  • the processing component 1002 may include one or more processors 1020 to execute instructions to complete all or part of the steps of the above method.
  • processing component 1002 may include one or more modules that facilitate interaction between processing component 1002 and other components.
  • processing component 1002 may include a multimedia module to facilitate interaction between multimedia component 1008 and processing component 1002.
  • Memory 1004 is configured to store various types of data to support operations at electronic device 1000 . Examples of such data include instructions for any application or method operating on the electronic device 1000, contact data, phonebook data, messages, pictures, videos, etc.
  • Memory 1004 may be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EEPROM), Programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read-only memory
  • EEPROM erasable programmable read-only memory
  • EPROM Programmable read-only memory
  • PROM programmable read-only memory
  • ROM read-only memory
  • magnetic memory flash memory, magnetic or optical disk.
  • Power component 1006 provides power to various components of electronic device 1000 .
  • Power components 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 1000 .
  • Multimedia component 1008 includes a screen that provides an output interface between the electronic device 1000 and the user.
  • the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide action.
  • multimedia component 1008 includes a front-facing camera and/or a rear-facing camera.
  • the front camera and/or the rear camera may receive external multimedia data.
  • Each front-facing camera and rear-facing camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.
  • Audio component 1010 is configured to output and/or input audio signals.
  • audio component 1010 includes a microphone (MIC) configured to receive external audio signals when electronic device 1000 is in operating modes, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 1004 or sent via communications component 1016 .
  • audio component 1010 also includes a speaker for outputting audio signals.
  • the I/O interface 1012 provides an interface between the processing component 1002 and a peripheral interface module.
  • the peripheral interface module may be a keyboard, a click wheel, a button, etc. These buttons may include, but are not limited to: Home button, Volume buttons, Start button, and Lock button.
  • Sensor component 1014 includes one or more sensors for providing various aspects of status assessment for electronic device 1000 .
  • the sensor component 1014 can detect the open/closed state of the electronic device 1000 , the relative positioning of components, such as the display and keypad of the electronic device 1000 , the sensor component 1014 can also detect the electronic device 1000 or one of the electronic device 1000 The position of components changes, the presence or absence of user contact with the electronic device 1000 , the orientation or acceleration/deceleration of the electronic device 1000 and the temperature of the electronic device 1000 change.
  • Sensor assembly 1014 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact.
  • Sensor assembly 1014 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the sensor component 1014 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • a non-transitory computer-readable storage medium including instructions such as a memory 1004 including instructions, which can be executed by the processor 1020 of the electronic device 1000 to complete the above method is also provided.
  • the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
  • first and second are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of indicated technical features. Therefore, features defined as “first” and “second” may explicitly or implicitly include at least one of these features.
  • “plurality” means at least two, such as two, three, etc., unless otherwise expressly and specifically limited.
  • Non-exhaustive list of computer readable media include the following: electrical connections with one or more wires (electronic device), portable computer disk cartridges (magnetic device), random access memory (RAM), Read-only memory (ROM), erasable and programmable read-only memory (EPROM or flash memory), fiber optic devices, and portable compact disc read-only memory (CDROM).
  • the computer-readable medium may even be paper or other suitable medium on which the program may be printed, as the paper or other medium may be optically scanned, for example, and subsequently edited, interpreted, or otherwise suitable as necessary. process to obtain the program electronically and then store it in computer memory.
  • the program can be stored in a computer-readable storage medium.
  • the program can be stored in a computer-readable storage medium.

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

公开了一种图像的拍摄方法及装置,其方法包括以下步骤:在接收到针对拍摄按钮的触控操作时,确定触控操作的类型(101);在触控操作的类型为滑动操作的情况下,确定滑动操作的方向(102);根据滑动操作的方向,确定目标拍摄模式及目标拍摄模式对应的目标启动条件(103);响应于满足目标启动条件,采用目标拍摄模式进行图像拍摄。通过为拍摄按钮的各个滑动方向关联一个拍摄模式及拍摄模式对应的启动条件,使得仅通过对拍摄按钮进行操作,即可快速启动各拍摄模式进行图像拍摄,提高了图像拍摄效率。

Description

一种图像的拍摄方法及装置 技术领域
本公开涉及通信技术领域,尤其涉及一种图像的拍摄方法及装置。
背景技术
随着计算摄像的进一步提升,拍摄模式越来越多,比如,连续拍摄模式、摄像模式、单张拍照模式、延时模式等等,当用户需要使用某一拍摄模式进行拍摄时,需要进入功能菜单调出相应的拍摄模式后,再利用相应的拍摄模式进行拍摄,导致拍摄效率较低。
发明内容
本公开实施例提供一种图像的拍摄方法及装置。
第一方面,本公开实施例提供一种图像的拍摄方法,方法包括:
响应于接收到针对拍摄按钮的触控操作,确定所述触控操作的类型;
在所述触控操作的类型为滑动操作的情况下,确定所述滑动操作的方向;
根据所述滑动操作的方向,确定目标拍摄模式及所述目标拍摄模式对应的目标启动条件;
响应于满足所述目标启动条件,采用所述目标拍摄模式进行图像拍摄。
可选的,所述目标启动条件为滑动操作的滑动距离大于第一阈值,所述响应于满足所述目标启动条件,采用所述目标拍摄模式进行图像拍摄,包括:
获取所述滑动操作当前的滑动距离;
响应于所述当前的滑动距离大于所述第一阈值,采用所述目标拍摄模式进行图像拍摄。
可选的,在所述采用所述目标拍摄模式进行图像拍摄之后,还包括:
在所述目标拍摄模式为连续拍摄模式的情况下,确定待获取的目标图像数量;
响应于当前已拍摄的图像数量等于所述目标图像数量时,停止图像拍摄。
可选的,在所述采用所述目标拍摄模式进行图像拍摄之后,还包括:
在所述目标拍摄模式为连续拍摄模式的情况下,响应于监测到所述触控操作终止,停止图像拍摄。
可选的,所述目标启动条件为滑动操作终止、且滑动操作的滑动距离大于第二阈值,所述响应于满足所述目标启动条件,采用所述目标拍摄模式进行图像拍摄,包括:
响应于监测到滑动操作终止、且滑动距离大于所述第二阈值,采用所述目标拍摄模式进行图像拍摄。
可选的,还包括:
响应于所述滑动操作当前的滑动距离大于第三阈值,生成提示信息,其中,所述提示信息用于提示所述目标拍摄模式被选中。
可选的,在所述确定所述触控操作的类型之后,还包括:
在所述触控操作的类型为点击操作的情况下,在第一预设位置显示所述拍摄按钮关联的各个滑动方向的拍摄模式;或者,
在所述触控操作的类型为滑动操作的情况下,在第二预设位置显示所述拍摄按钮在所述滑动操作的方向关联的拍摄模式。
可选的,还包括:
在所述触控操作的类型为滑动操作的情况下,根据所述滑动操作当前的滑动方向及所述滑动操作当前的滑动距离,更新所述拍摄按钮的显示位置。
可选的,还包括:
在预设时间段内,未监测到所述触控操作终止的情况下,将所述拍摄按钮的显示位置恢复到初始显示位置,并隐藏所述拍摄按钮关联的各个滑动方向的拍摄模式。
可选的,还包括:
获取更新指令,其中,所述更新指令中包括所述拍摄按钮关联的各个滑动方向对应的目标拍摄信息;
根据所述目标拍摄信息,更新所述拍摄按钮关联的各个滑动方向对应的目标拍摄模式及目标启动条件。
第二方面,本公开实施例提供一种图像的拍摄装置,包括:
确定模块,用于响应于接收到针对拍摄按钮的触控操作,确定所述触控操作的类型;
所述确定模块,还用于在所述触控操作的类型为滑动操作的情况下,确定所述滑动操作的方向;
所述确定模块,还用于根据所述滑动操作的方向,确定目标拍摄模式及所述目标拍摄模式对应的目标启动条件;
拍摄模块,用于响应于满足所述目标启动条件,采用所述目标拍摄模式进行图像拍摄。
可选的,所述目标启动条件为滑动操作的滑动距离大于第一阈值,所述拍摄模块,用于:
获取所述滑动操作当前的滑动距离;
响应于所述当前的滑动距离大于所述第一阈值,采用所述目标拍摄模式进行图像拍摄。
可选的,所述确定模块,还用于:
在所述目标拍摄模式为连续拍摄模式的情况下,确定待获取的目标图像数量;
所述拍摄模块,还用于响应于当前已拍摄的图像数量等于所述目标图像数量时,停止图像拍摄。
可选的,所述拍摄模块,还用于:
在所述目标拍摄模式为连续拍摄模式的情况下,响应于监测到所述触控操作终止,停止图像拍摄。
可选的,所述目标启动条件为滑动操作终止、且滑动操作的滑动距离大于第二阈值,所述拍摄模块,用于:
响应于监测到滑动操作终止、且滑动距离大于所述第二阈值,采用所述目标拍摄模式进行图像拍摄。
可选的,还包括:
生成模块,用于响应于所述滑动操作当前的滑动距离大于第三阈值,生成提示信息,其中,所述提示信息用于提示所述目标拍摄模式被选中。
可选的,还包括:
显示模块,用于在所述触控操作的类型为点击操作的情况下,在第一预设位置显示所述拍摄按钮关联的各个滑动方向的拍摄模式;或者,
所述显示模块,用于在所述触控操作的类型为滑动操作的情况下,在第二预设位置显示所述拍摄按钮在所述滑动操作的方向关联的拍摄模式。
可选的,所述显示模块,还用于:
在所述触控操作的类型为滑动操作的情况下,根据所述滑动操作当前的滑动方向及所述滑动操作当前的滑动距离,更新所述拍摄按钮的显示位置。
可选的,所述显示模块,还用于:
在预设的时间段内,未监测到所述触控操作终止的情况下,将所述拍摄按钮的显示位置恢复到初始显示位置,并隐藏所述拍摄按钮关联的各个滑动方向的拍摄模式。
可选的,还包括:
获取模块,用于获取更新指令,其中,所述更新指令中包括所述拍摄按钮关联的各个滑动方向对应的目标拍摄信息;
更新模块,用于根据所述目标拍摄信息,更新所述拍摄按钮关联的各个滑动方向对应的目标拍摄模式及目标启动条件。
本公开第三方面实施例提出了一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时,实现如前述第一方面所述的方法。
本公开第四方面实施例提出了一种非临时性计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如前述第一方面所述的方法。
本公开第五方面实施例提出了一种计算机程序产品,其上存储有计算机程序,所述程序被处理器执 行时实现如前述第一方面所述的方法。
本公开中,终端设备在接收到针对拍摄按钮的触控操作时,可以确定触控操作的类型,在触控操作的类型为滑动操作的情况下,可以确定滑动操作的方向,之后,可以根据滑动操作的方向,确定目标拍摄模式及目标拍摄模式对应的目标启动条件,当满足目标启动条件时,即可采用目标拍摄模式进行图像拍摄。由此,通过为拍摄按钮的各个滑动方向关联一个拍摄模式及该拍摄模式对应的启动条件,从而使得仅通过对拍摄按钮进行操作,即可快速启动各拍摄模式进行图像拍摄,从而提高了图像拍摄的效率。
本公开附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本公开的实践了解到。
附图说明
为了更清楚地说明本公开实施例或背景技术中的技术方案,下面将对本公开实施例或背景技术中所需要使用的附图进行说明。
图1是本公开实施例提供的一种图像的拍摄方法的流程示意图;
图2是本公开实施例提供的一种图像的拍摄方法的流程示意图;
图3是本公开实施例提供的一种触控操作的过程示意图;
图4是本公开实施例提供的一种图像的拍摄方法的流程示意图;
图5是本公开实施例提供的一种图像的拍摄方法的流程示意图;
图6是本公开实施例提供的一种图像的拍摄方法的流程示意图;
图7是本公开实施例提供的一种滑动操作的过程示意图;
图8是本公开实施例提供的一种图像的拍摄方法的流程示意图;
图9为本公开提供的一种图像的拍摄装置的结构示意图;
图10为本公开提供的一种电子设备的框图。
具体实施方式
下面详细描述本公开的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本公开,而不能理解为对本公开的限制。
本公开中,通过为拍照按钮各滑动方向关联一种拍摄模式及该拍摄模式对应的启动条件,使得仅通过对拍摄按钮进行操作,即可实现快速启动相应的拍摄模式进行图像拍摄,从而提高了图像拍摄的效率。下面结合附图对本公开所提供的一种图像的拍摄方法及其装置进行详细地介绍。
请参见图1,图1是本公开实施例提供的一种图像的拍摄方法的流程示意图。如图1所示,该方法可以包括但不限于如下步骤:
步骤101,响应于接收到针对拍摄按钮的触控操作,确定触控操作的类型。
其中,触控操作的类型可以包括滑动操作、点击操作、长按操作等,本公开对此不作限制。
本公开中,终端设备可以通过监控终端设备的显示界面,接收针对拍照按钮的触控操作,之后,可以根据触控操作的位置变化及触控操作时长等信息,确定触控操作的类型。比如,当触控操作的起始位置与停止位置相同,并且发生触控操作与结束触控操作的时间间隔小于阈值时,则可以确定触控操作的类型为点击操作。当触控操作的起始位置与停止位置不相同,则可以确定触控操作的类型为滑动操作。
步骤102,在触控操作的类型为滑动操作的情况下,确定滑动操作的方向。
本公开中,滑动操作的方向可以由当前触控位置确定。比如,当前触控位置在拍照按钮初始位置的右侧时,可以确定滑动操作的方向为向右。当前触控位置在拍照按钮初始位置的左侧时,可以确定滑动操作的方向为向左。当前触控位置在拍照按钮初始位置的上方时,可以确定滑动操作的方向为向上。当前触控位置在拍照按钮初始位置的下方时,可以确定滑动操作的方向为向下。
示例地,拍照按钮初始位置可以为拍照按钮的默认设置位置。
步骤103,根据滑动操作的方向,确定目标拍摄模式及目标拍摄模式对应的目标启动条件。
本公开中,可以将各滑动操作的方向与拍摄模式的对应关系预先设置在系统中,之后,即可通过查询,确定当前滑动操作的方向对应的拍摄模式。比如,在系统中预设置了向左的滑动操作对应夜景拍摄模式,当滑动操作的方向为向左时,即可确定拍摄模式为夜景拍照模式。再比如,在系统中设置了向右的滑动操作对应连续拍摄模式,当滑动操作的方向为向右时,即可确定拍摄模式为连续拍照模式。
此外,不同的拍摄模式,对应的拍摄指令可能不同。比如,抓拍模式只需一个启动指令,即可完成抓拍,而连续拍摄模式,不仅需要一个启动指令开始拍摄,还需要一个结束指令结束连续拍摄。为了能够实现快速地使用不同的拍摄模式完成图像拍摄,可以为不同的拍摄模式设置不同的启动条件,从而在触控操作满足启动条件时,即可快速地采用对应的拍摄模式完成图像拍摄,提高拍摄效率。
比如,连续拍摄模式对应的启动条件可以为滑动操作的滑动距离大于第一阈值,抓拍模式对应的启动条件可以为滑动操作终止等,本公开对此不作限制。
本公开中,可以将各拍摄模式与启动条件的对应关系预先设置在系统中,之后,即可通过查询,确定目标拍摄模式对应的启动条件。
步骤104,响应于满足目标启动条件,采用目标拍摄模式进行图像拍摄。
本公开中,可以实时监测针对拍摄按钮的触控操作,以判断是否满足启动条件,当满足启动条件时,即可采用目标拍摄模式进行图像拍摄。
本公开中,在接收到针对拍摄按钮的触控操作时,可以确定触控操作的类型,在触控操作的类型为滑动操作的情况下,可以确定滑动操作的方向,之后,可以根据滑动操作的方向,确定目标拍摄模式及目标拍摄模式对应的目标启动条件,当满足目标启动条件时,即可采用目标拍摄模式进行图像拍摄。由此,通过为拍摄按钮的各个滑动方向关联一个拍摄模式及该拍摄模式对应的启动条件,从而使得仅通过对拍摄按钮进行操作,即可快速启动各拍摄模式进行图像拍摄,从而提高了图像拍摄的效率。
请参见图2,图2是本公开实施例提供的一种图像的拍摄方法的流程示意图。如图2所示,该方法可以包括但不限于如下步骤:
步骤201,响应于接收到针对拍摄按钮的触控操作,确定触控操作的类型。
步骤202,在触控操作的类型为滑动操作的情况下,确定滑动操作的方向。
步骤203,根据滑动操作的方向,确定目标拍摄模式及目标拍摄模式对应的目标启动条件。
本公开中,步骤201-步骤203的具体实现过程,可参见本公开任一实施例的详细描述,在此不再赘述。
步骤204,目标启动条件为滑动操作的滑动距离大于第一阈值,获取滑动操作当前的滑动距离。
本公开中,当用户滑动拍摄按钮到一定距离,说明用户已选中目标拍摄模式。因此,为了快速启动目标拍摄模式进行图像拍摄,可以在拍摄按钮的滑动距离到达一定距离时,自动采用目标拍摄模式进行图像拍摄。
其中,滑动操作当前的滑动距离可以为当前触控位置与拍照按钮初始位置之间的距离。
步骤205,响应于当前的滑动距离大于第一阈值,采用目标拍摄模式进行图像拍摄。
本公开中,可以实时计算滑动操作的滑动距离,在当前的滑动距离大于预设的第一阈值的情况下,即可自动采用目标拍摄模式进行图像拍摄。
比如,如图3所示,图3中直径较小的圆为拍摄按钮,向右的滑动方向对应的拍摄模式为连续拍摄模式,当拖动拍摄按钮对应的圆向右滑动到与半径较大的圆相交时,即可自动采用连续拍照模式进行图像拍摄。
可选的,在滑动操作当前的滑动距离大于预设的第三阈值时,可以生成提示信息,以提示用户目标拍摄模式被选中。其中,提示信息可以为声音提示,或者振动提示等,本公开对此不作限制。
本公开中,在接收到针对拍摄按钮的触控操作时,可以确定触控操作的类型,在触控操作的类型为滑动操作的情况下,可以确定滑动操作的方向,之后,可以根据滑动操作的方向,确定目标拍摄模式及目标拍摄模式对应的目标启动条件,在目标启动条件为滑动操作的滑动距离大于第一阈值的情况下,可以获取滑动操作当前的滑动距离,在当前的滑动距离大于第一阈值的情况下,即可采用目标拍摄模式进行图像拍摄。由此,通过为拍摄按钮的各个滑动方向关联一个拍摄模式,并在某一方向上拍摄按钮的滑动距离大于第一阈值时,即可快速启动对应的拍摄模式进行图像拍摄,从而提高了图像拍摄的效率。
请参见图4,图4是本公开实施例提供的一种图像的拍摄方法的流程示意图。如图4所示,该方法 可以包括但不限于如下步骤:
步骤401,响应于接收到针对拍摄按钮的触控操作,确定触控操作的类型。
步骤402,在触控操作的类型为滑动操作的情况下,确定滑动操作的方向。
步骤403,根据滑动操作的方向,确定目标拍摄模式及目标拍摄模式对应的目标启动条件。
步骤404,目标启动条件为滑动操作的滑动距离大于第一阈值,获取滑动操作当前的滑动距离。
步骤405,响应于当前的滑动距离大于第一阈值,采用目标拍摄模式进行图像拍摄。
本公开中,步骤401-步骤405的具体实现过程,可参见本公开任一实施例的详细描述,在此不再赘述。
步骤406,在目标拍摄模式为连续拍摄模式的情况下,确定待获取的目标图像数量。
本公开中,在目标拍摄模式为连续拍摄模式的情况下,还需要确定何时停止图像拍摄。为了提高图像拍摄的便捷性,可以根据用户设置的期望的拍摄图像数量,自动结束图像拍摄。
本公开中,用户可以在系统中预先设置期望的拍摄图像数量,之后,终端设备即可将用户设置的期望的图像拍摄数量,确定为待获取的目标图像数量。
步骤407,响应于当前已拍摄的图像数量等于目标图像数量时,停止图像拍摄。
本公开中,可以实时对连续拍摄的图像数量进行统计,在当前已拍摄的图像数量等于目标图像数量时,即可停止图像拍摄。
可选的,在目标拍摄模式为连续拍摄模式的情况下,用户还可以通过触控操作,控制图像拍摄结束。比如,当监测到触控操作终止时,即停止图像拍摄。
可选的,在目标拍摄模式为连续拍摄模式,且待获取的目标图像数量不为空的情况下,在当前已拍摄的图像数量等于目标图像数量,仍未监测到触控操作终止时,可以停止图像拍摄。
可选的,在目标拍摄模式为连续拍摄模式,且待获取的目标图像数量不为空的情况下,在监测到触控操作终止,但当前已拍摄的图像数量小于目标图像数量时,可以停止图像拍摄。
本公开中,在接收到针对拍摄按钮的触控操作时,可以确定触控操作的类型,在触控操作的类型为滑动操作的情况下,可以确定滑动操作的方向,之后,可以根据滑动操作的方向,确定目标拍摄模式及目标拍摄模式对应的目标启动条件,在目标启动条件为滑动操作的滑动距离大于第一阈值的情况下,可以获取滑动操作当前的滑动距离,并且在当前的滑动距离大于第一阈值的情况下,即可采用目标拍摄模式进行图像拍摄,然后,在目标拍摄模式为连续拍摄模式的情况下,还可以确定待获取的目标图像数量,并在当前已拍摄的图像数量等于目标图像数量时,停止图像拍摄。由此,通过为拍摄按钮的各个滑动方向关联一个拍摄模式,在某一方向上拍摄按钮的滑动距离大于第一阈值时,,即可快速启动对应的拍摄模式进行图像拍摄,并在当前已拍摄的图像数量等于目标图像数量时,自动停止连续图像拍摄,从而提高了图像拍摄的效率。
请参见图5,图5是本公开实施例提供的一种图像的拍摄方法的流程示意图。如图5所示,该方法可以包括但不限于如下步骤:
步骤501,响应于接收到针对拍摄按钮的触控操作,确定触控操作的类型。
步骤502,在触控操作的类型为滑动操作的情况下,确定滑动操作的方向。
步骤503,根据滑动操作的方向,确定目标拍摄模式及目标拍摄模式对应的目标启动条件。
本公开中,步骤501-步骤503的具体实现过程,可参见本公开任一实施例的详细描述,在此不再赘述。
步骤504,目标启动条件为滑动操作终止、且滑动操作的滑动距离大于第二阈值,响应于监测到滑动操作终止、且滑动距离大于第二阈值,采用目标拍摄模式进行图像拍摄。
本公开中,用户可以通过控制触控操作,自主控制开始图像拍摄,比如,用户可以通过控制触控操作结束,指示可以开始图像拍摄。因此,终端设备可以在监测到滑动操作终止时,采用目标拍摄模式进行图像拍摄。此外,为了防止因误操作,导致进行的图像拍摄,可以在监测到滑动操作终止,且滑动操作的滑动距离大于预设的第二阈值的情况下,再采用目标拍摄模式进行图像拍摄。
本公开中,在接收到针对拍摄按钮的触控操作时,可以确定触控操作的类型,在触控操作的类型为滑动操作的情况下,可以确定滑动操作的方向,之后,可以根据滑动操作的方向,确定目标拍摄模式及目标拍摄模式对应的目标启动条件,在目标启动条件为滑动操作终止、且滑动操作的滑动距离大于第二阈值的情况下,可以在监测到滑动操作终止、且滑动距离大于第二阈值时,采用目标拍摄模式进行图像 拍摄。由此,通过为拍摄按钮的各个滑动方向关联一个拍摄模式,并在某一方向上拍摄按钮的滑动距离大于第一阈值且滑动操作终止时,即可快速启动对应拍摄模式进行图像拍摄,从而提高了图像拍摄的效率。
请参见图6,图6是本公开实施例提供的一种图像的拍摄方法的流程示意图。如图6所示,该方法可以包括但不限于如下步骤:
步骤601,响应于接收到针对拍摄按钮的触控操作,确定触控操作的类型。
本公开中,步骤601的具体实现过程,可参见本公开任一实施例的详细描述,在此不再赘述。
步骤602,在触控操作的类型为点击操作的情况下,在第一预设位置显示拍摄按钮关联的各个滑动方向的拍摄模式。
本公开中,当监测到拍摄按钮被点击时,可以在第一预设位置显示预设的拍摄按钮关联的各个滑动方向的拍摄模式,以提示拍摄按钮关联的各个滑动方向的拍摄模式,以便用户进行拍摄模式的选择。
比如,如图7所示,图7中直径较小的圆为拍摄按钮,假设拍摄按钮向上的滑动方向关联的拍摄模式为拍照模式,拍摄按钮向下的滑动方向关联的拍摄模式为抓拍模式,拍摄按钮向左的滑动方向关联的拍摄模式为夜景模式,拍摄按钮向右的滑动方向关联的拍摄模式为连续拍摄模式。当用户点击拍摄按钮时,可以在拍摄按钮的左侧显示“夜景”,在拍摄按钮的下方显示“抓拍”,在拍摄按钮的右侧显示“连拍”,在拍摄按钮的上方显示“拍照”,以提示拍摄按钮关联的各个滑动方向的拍摄模式。
可选的,在触控操作的类型为滑动操作的情况下,可以只在第二预设位置显示预设的拍摄按钮在滑动操作的方向关联的拍摄模式,以提示拍摄按钮在该滑动方向关联的拍摄模式。或者,也可以在第一预设位置显示预设的拍摄按钮关联的各个滑动方向的拍摄模式。
步骤603,在触控操作的类型为滑动操作的情况下,根据滑动操作当前的滑动方向及滑动操作当前的滑动距离,更新拍摄按钮的显示位置。
本公开中,当触控操作的类型为滑动操作时,可以实时对滑动操作进行监控,以确定滑动操作当前的滑动方向及滑动操作当前的滑动距离,并根据滑动操作当前的滑动方向及滑动操作当前的滑动距离移动拍摄按钮的显示位置,以指示当前拍摄按钮所在的位置。
比如,如图3所示,图3中直径较小的圆为拍摄按钮,假设拍摄按钮的半径为a,图3中直径较大的圆的半径为b,当滑动拍摄按钮水平向右移动b-a长度时,则可以将拍摄按钮对应的圆水平向右移动b-a。
步骤604,在触控操作的类型为滑动操作的情况下,确定滑动操作的方向。
步骤605,根据滑动操作的方向,确定目标拍摄模式及目标拍摄模式对应的目标启动条件。
步骤606,响应于满足目标启动条件,采用目标拍摄模式进行图像拍摄。
本公开中,步骤604-步骤606的具体实现过程,可参见本公开任一实施例的详细描述,在此不再赘述。
步骤607,在预设时间段内,未监测到触控操作终止的情况下,将拍摄按钮的显示位置恢复到初始显示位置,并隐藏拍摄按钮关联的各个滑动方向的拍摄模式。
本公开中,在预设时间段内,未监测到触控操作终止的情况下,说明用户可能选错了拍摄模式,或者是因为误操作选择了拍摄模式。因此,在预设时间段内,未监测到触控操作终止的情况下,可以将拍摄按钮的显示位置恢复到初始显示位置,并隐藏拍摄按钮关联的各个滑动方向的拍摄模式。之后,用户可以重新滑动拍摄按钮,选择目标拍摄模式进行图像拍摄。
本公开中,在接收到针对拍摄按钮的触控操作时,可以确定触控操作的类型。在触控操作的类型为点击操作的情况下,可以在第一预设位置显示拍摄按钮关联的各个滑动方向的拍摄模式,并且在触控操作的类型为滑动操作的情况下,可以根据滑动操作当前的滑动方向及滑动操作当前的滑动距离,更新拍摄按钮的显示位置,之后,在触控操作的类型为滑动操作的情况下,可以确定滑动操作的方向,并根据滑动操作的方向,确定目标拍摄模式及目标拍摄模式对应的目标启动条件,然后,可以在满足目标启动条件时,采用目标拍摄模式进行图像拍摄,并在预设时间段内,未监测到触控操作终止的情况下,将拍摄按钮的显示位置恢复到初始显示位置,并隐藏拍摄按钮关联的各个滑动方向的拍摄模式。由此,通过为拍摄按钮的各个滑动方向关联一个拍摄模式及该拍摄模式对应的启动条件,从而使得仅通过对拍摄按钮进行操作,即可快速启动各拍摄模式进行图像拍摄,从而提高了图像拍摄的效率。
请参见图8,图8是本公开实施例提供的一种图像的拍摄方法的流程示意图。如图8所示,该方法 可以包括但不限于如下步骤:
步骤801,响应于接收到针对拍摄按钮的触控操作,确定触控操作的类型。
步骤802,在触控操作的类型为滑动操作的情况下,确定滑动操作的方向。
步骤803,根据滑动操作的方向,确定目标拍摄模式及目标拍摄模式对应的目标启动条件。
步骤804,响应于满足目标启动条件,采用目标拍摄模式进行图像拍摄。
本公开中,步骤801-步骤804的具体实现过程,可参见本公开任一实施例的详细描述,在此不再赘述。
步骤805,获取更新指令,其中,更新指令中包括拍摄按钮关联的各个滑动方向对应的目标拍摄信息。
其中,目标拍摄信息可以包括目标拍摄模式信息以及目标启动条件信息。
本公开中,用户还可以通过设置功能,个性化设置拍摄按钮关联的各个滑动方向对应的拍摄模式及期望的启动条件。由此,当用户完成拍摄按钮关联的各个滑动方向对应的拍摄模式及启动条件的设置并保存时,终端设备即可接收到更新指令。
步骤806,根据目标拍摄信息,更新拍摄按钮关联的各个滑动方向对应的目标拍摄模式及目标启动条件。
本公开中,终端设备可以根据更新指令,确定拍摄按钮关联的各个滑动方向对应的目标拍摄信息,之后,可以根据各个滑动方向对应的目标拍摄信息,更新拍摄按钮关联的各个滑动方向对应的目标拍摄模式及目标启动条件。
需要说明的是,上述步骤801至步骤806可以按照上述顺序依次执行,或者,也可以先执行步骤805和806,再执行步骤801至步骤804,本公开对此不做限定。
本公开中,在接收到针对拍摄按钮的触控操作时,可以确定触控操作的类型,在触控操作的类型为滑动操作的情况下,可以确定滑动操作的方向,之后,可以根据滑动操作的方向,确定目标拍摄模式及目标拍摄模式对应的目标启动条件,当满足目标启动条件时,即可采用目标拍摄模式进行图像拍摄,然后,还可以获取包括拍摄按钮关联的各个滑动方向对应的目标拍摄信息的更新指令,并根据目标拍摄信息,更新拍摄按钮关联的各个滑动方向对应的目标拍摄模式及目标启动条件。由此,通过更新指令,可以实现个性化设置拍摄按钮的关联的各个滑动方向的拍摄模式及该拍摄模式对应的启动条件,从而使得仅通过对拍摄按钮进行操作,即可快速启动各拍摄模式进行图像拍摄,从而提高了图像拍摄的效率。
图9为本公开实施例提供的一种图像的拍摄装置的结构示意图。
如图9所示,该装置可以包括:
确定模块901,用于响应于接收到针对拍摄按钮的触控操作,确定所述触控操作的类型;
上述确定模块901,用于在所述触控操作的类型为滑动操作的情况下,确定所述滑动操作的方向;
上述确定模块901,用于根据所述滑动操作的方向,确定目标拍摄模式及所述目标拍摄模式对应的目标启动条件;
拍摄模块902,用于响应于满足所述目标启动条件,采用所述目标拍摄模式进行图像拍摄。
可选的,所述目标启动条件为滑动操作的滑动距离大于第一阈值,上述拍摄模块902,用于:
获取所述滑动操作当前的滑动距离;
响应于所述当前的滑动距离大于所述第一阈值,采用所述目标拍摄模式进行图像拍摄。
可选的,上述确定模块901,还用于:
在所述目标拍摄模式为连续拍摄模式的情况下,确定待获取的目标图像数量;
所述拍摄模块,还用于响应于当前已拍摄的图像数量等于所述目标图像数量时,停止图像拍摄。
可选的,上述拍摄模块902,还用于:
在所述目标拍摄模式为连续拍摄模式的情况下,响应于监测到所述触控操作终止,停止图像拍摄。
可选的,所述目标启动条件为滑动操作终止、且滑动操作的滑动距离大于第二阈值,上述拍摄模块902,用于:
响应于监测到滑动操作终止、且滑动距离大于所述第二阈值,采用所述目标拍摄模式进行图像拍摄。
可选的,还包括:
生成模块,用于响应于所述滑动操作当前的滑动距离大于第三阈值,生成提示信息,其中,所述提示信息用于提示所述目标拍摄模式被选中。
可选的,还包括:
显示模块,用于在所述触控操作的类型为点击操作的情况下,在第一预设位置显示所述拍摄按钮关联的各个滑动方向的拍摄模式;或者,
上述显示模块,还用于在所述触控操作的类型为滑动操作的情况下,在第二预设位置显示所述拍摄按钮在所述滑动操作的方向关联的拍摄模式。
可选的,上述显示模块,还用于:
在所述触控操作的类型为滑动操作的情况下,根据所述滑动操作当前的滑动方向及所述滑动操作当前的滑动距离,更新所述拍摄按钮的显示位置。
可选的,上述显示模块,还用于:
在预设时间段内,未监测到所述触控操作终止的情况下,将所述拍摄按钮的显示位置恢复到初始显示位置,并隐藏所述拍摄按钮关联的各个滑动方向的拍摄模式。
可选的,还包括:
获取模块,用于获取更新指令,其中,所述更新指令中包括所述拍摄按钮关联的各个滑动方向对应的目标拍摄信息;
更新模块,用于根据所述目标拍摄信息,更新所述拍摄按钮关联的各个滑动方向对应的目标拍摄模式及目标启动条件。
需要说明的是,前述对方法实施例的解释说明也适用于该实施例的装置,此处不再赘述。
本公开中,在接收到针对拍摄按钮的触控操作时,可以确定触控操作的类型,在触控操作的类型为滑动操作的情况下,可以确定滑动操作的方向,之后,可以根据滑动操作的方向,确定目标拍摄模式及目标拍摄模式对应的目标启动条件,当满足目标启动条件时,即可采用目标拍摄模式进行图像拍摄。由此,通过为拍摄按钮的各个滑动方向关联一个拍摄模式及该拍摄模式对应的启动条件,从而使得仅通过对拍摄按钮进行操作,即可快速启动各拍摄模式进行图像拍摄,从而提高了图像拍摄的效率。
为了实现上述实施例,本公开还提出一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时,实现如前述方法实施例所述的方法。
为了实现上述实施例,本公开还提出一种非临时性计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时,实现如前述方法实施例所述的方法。
为了实现上述实施例,本公开还提出一种计算机程序产品,其上存储有计算机程序,所述计算机程序被处理器执行时实现如前述方法实施例所述的方法。
图10为本公开实施例提供的一种电子设备的框图。例如,电子设备1000可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。
参照图10,电子设备1000可以包括以下一个或多个组件:处理组件1002,存储器1004,电力组件1006,多媒体组件1008,音频组件1010,输入/输出(I/O)接口1012,传感器组件1014,以及通信组件1016。
处理组件1002通常控制电子设备1000的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件1002可以包括一个或多个处理器1020来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件1002可以包括一个或多个模块,便于处理组件1002和其他组件之间的交互。例如,处理组件1002可以包括多媒体模块,以方便多媒体组件1008和处理组件1002之间的交互。
存储器1004被配置为存储各种类型的数据以支持在电子设备1000的操作。这些数据的示例包括用于在电子设备1000上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器1004可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
电力组件1006为电子设备1000的各种组件提供电力。电力组件1006可以包括电源管理系统,一个或多个电源,及其他与为电子设备1000生成、管理和分配电力相关联的组件。
多媒体组件1008包括在所述电子设备1000和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸 面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件1008包括一个前置摄像头和/或后置摄像头。当电子设备1000处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件1010被配置为输出和/或输入音频信号。例如,音频组件1010包括一个麦克风(MIC),当电子设备1000处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器1004或经由通信组件1016发送。在一些实施例中,音频组件1010还包括一个扬声器,用于输出音频信号。
I/O接口1012为处理组件1002和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。
传感器组件1014包括一个或多个传感器,用于为电子设备1000提供各个方面的状态评估。例如,传感器组件1014可以检测到电子设备1000的打开/关闭状态,组件的相对定位,例如所述组件为电子设备1000的显示器和小键盘,传感器组件1014还可以检测电子设备1000或电子设备1000一个组件的位置改变,用户与电子设备1000接触的存在或不存在,电子设备1000方位或加速/减速和电子设备1000的温度变化。传感器组件1014可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件1014还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件1014还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。
通信组件1016被配置为便于电子设备1000和其他设备之间有线或无线方式的通信。电子设备1000可以接入基于通信标准的无线网络,如WiFi,4G或5G,或它们的组合。在一个示例性实施例中,通信组件1016经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件1016还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
在示例性实施例中,电子设备1000可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器1004,上述指令可由电子设备1000的处理器1020执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本公开的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本公开的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现定制逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本公开的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本公开的实施例所属技术领域的技术人员所理解。
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是 任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。
应当理解,本公开的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。如,如果用硬件来实现和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。
此外,在本公开各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。
上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本公开的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本公开的限制,本领域的普通技术人员在本公开的范围内可以对上述实施例进行变化、修改、替换和变型。

Claims (13)

  1. 一种图像的拍摄方法,其特征在于,包括:
    响应于接收到针对拍摄按钮的触控操作,确定所述触控操作的类型;
    在所述触控操作的类型为滑动操作的情况下,确定所述滑动操作的方向;
    根据所述滑动操作的方向,确定目标拍摄模式及所述目标拍摄模式对应的目标启动条件;
    响应于满足所述目标启动条件,采用所述目标拍摄模式进行图像拍摄。
  2. 如权利要求1所述的方法,其特征在于,所述目标启动条件为滑动操作的滑动距离大于第一阈值,所述响应于满足所述目标启动条件,采用所述目标拍摄模式进行图像拍摄,包括:
    获取所述滑动操作当前的滑动距离;
    响应于所述当前的滑动距离大于所述第一阈值,采用所述目标拍摄模式进行图像拍摄。
  3. 如权利要求2所述的方法,其特征在于,在所述采用所述目标拍摄模式进行图像拍摄之后,还包括:
    在所述目标拍摄模式为连续拍摄模式的情况下,确定待获取的目标图像数量;
    响应于当前已拍摄的图像数量等于所述目标图像数量时,停止图像拍摄。
  4. 如权利要求2所述的方法,其特征在于,在所述采用所述目标拍摄模式进行图像拍摄之后,还包括:
    在所述目标拍摄模式为连续拍摄模式的情况下,响应于监测到所述触控操作终止,停止图像拍摄。
  5. 如权利要求1所述的方法,其特征在于,所述目标启动条件为滑动操作终止,且所述滑动操作的滑动距离大于第二阈值,所述响应于满足所述目标启动条件,采用所述目标拍摄模式进行图像拍摄,包括:
    响应于监测到所述滑动操作终止、且所述滑动距离大于所述第二阈值,采用所述目标拍摄模式进行图像拍摄。
  6. 如权利要求1所述的方法,其特征在于,还包括:
    响应于所述滑动操作当前的滑动距离大于第三阈值,生成提示信息,其中,所述提示信息用于提示所述目标拍摄模式被选中。
  7. 如权利要求1-6任一所述的方法,其特征在于,在所述确定所述触控操作的类型之后,还包括:
    在所述触控操作的类型为点击操作的情况下,在第一预设位置显示所述拍摄按钮关联的各个滑动方向的拍摄模式;或者,
    在所述触控操作的类型为滑动操作的情况下,在第二预设位置显示所述拍摄按钮在所述滑动操作的方向关联的拍摄模式。
  8. 如权利要求7所述的方法,其特征在于,还包括:
    在所述触控操作的类型为滑动操作的情况下,根据所述滑动操作当前的滑动方向及所述滑动操作当前的滑动距离,更新所述拍摄按钮的显示位置。
  9. 如权利要求8所述的方法,其特征在于,还包括:
    在预设时间段内,未监测到所述触控操作终止的情况下,将所述拍摄按钮的显示位置恢复到初始显示位置,并隐藏所述拍摄按钮关联的各个滑动方向的拍摄模式。
  10. 如权利要求1-9任一所述的方法,其特征在于,还包括:
    获取更新指令,其中,所述更新指令中包括所述拍摄按钮关联的各个滑动方向对应的目标拍摄信息;
    根据所述目标拍摄信息,更新所述拍摄按钮关联的各个滑动方向对应的目标拍摄模式及目标启动条件。
  11. 一种图像的拍摄装置,其特征在于,包括:
    确定模块,用于响应于接收到针对拍摄按钮的触控操作,确定所述触控操作的类型;
    所述确定模块,用于在所述触控操作的类型为滑动操作的情况下,确定所述滑动操作的方向;
    所述确定模块,用于根据所述滑动操作的方向,确定目标拍摄模式及所述目标拍摄模式对应的目标启动条件;
    拍摄模块,用于响应于满足所述目标启动条件,采用所述目标拍摄模式进行图像拍摄。
  12. 一种电子设备,其特征在于,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时,实现如权利要求1-10中任一所述的方法。
  13. 一种非临时性计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1-10中任一所述的方法。
PCT/CN2022/099628 2022-06-17 2022-06-17 一种图像的拍摄方法及装置 WO2023240655A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2022/099628 WO2023240655A1 (zh) 2022-06-17 2022-06-17 一种图像的拍摄方法及装置
CN202280004357.XA CN117597939A (zh) 2022-06-17 2022-06-17 一种图像的拍摄方法及装置

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/099628 WO2023240655A1 (zh) 2022-06-17 2022-06-17 一种图像的拍摄方法及装置

Publications (1)

Publication Number Publication Date
WO2023240655A1 true WO2023240655A1 (zh) 2023-12-21

Family

ID=89192942

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/099628 WO2023240655A1 (zh) 2022-06-17 2022-06-17 一种图像的拍摄方法及装置

Country Status (2)

Country Link
CN (1) CN117597939A (zh)
WO (1) WO2023240655A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160309076A1 (en) * 2015-04-17 2016-10-20 mPerpetuo, Inc. Method of Controlling a Camera Using a Touch Slider
CN107734248A (zh) * 2017-09-14 2018-02-23 维沃移动通信有限公司 一种拍摄模式启动方法及移动终端
CN108668083A (zh) * 2018-07-24 2018-10-16 维沃移动通信有限公司 一种拍照方法及终端
CN111258671A (zh) * 2020-01-08 2020-06-09 Oppo广东移动通信有限公司 拍摄方式开启方法及装置、设备、存储介质
CN111757004A (zh) * 2020-07-06 2020-10-09 Oppo广东移动通信有限公司 拍摄参数的调整方法、装置、移动终端及存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160309076A1 (en) * 2015-04-17 2016-10-20 mPerpetuo, Inc. Method of Controlling a Camera Using a Touch Slider
CN107734248A (zh) * 2017-09-14 2018-02-23 维沃移动通信有限公司 一种拍摄模式启动方法及移动终端
CN108668083A (zh) * 2018-07-24 2018-10-16 维沃移动通信有限公司 一种拍照方法及终端
CN111258671A (zh) * 2020-01-08 2020-06-09 Oppo广东移动通信有限公司 拍摄方式开启方法及装置、设备、存储介质
CN111757004A (zh) * 2020-07-06 2020-10-09 Oppo广东移动通信有限公司 拍摄参数的调整方法、装置、移动终端及存储介质

Also Published As

Publication number Publication date
CN117597939A (zh) 2024-02-23

Similar Documents

Publication Publication Date Title
EP3125530B1 (en) Video recording method and device
KR101840145B1 (ko) 이동 단말기의 제어 방법 및 이동 단말기
KR101763806B1 (ko) 네트워크 접속 채널 상태의 검출방법, 장치, 전자기기, 프로그램 및 기록매체
RU2612389C2 (ru) Способ и устройство получения потока мультимедийных данных
CN104219448B (zh) 拍摄方法和装置
WO2016033955A1 (zh) 一种升级方法、装置及设备
KR20160020396A (ko) 촬영 파라미터 조절 방법, 장치, 프로그램 및 기록매체
RU2621285C2 (ru) Способ и устройство замедленной съемки
WO2017036039A1 (zh) 远程协助方法和客户端
RU2641949C2 (ru) Способ и устройство для управления интеллектуальным устройством
CN104065883B (zh) 拍摄方法及装置
KR101788496B1 (ko) 단말 및 비디오 이미지를 제어하는 장치 및 방법
RU2664674C2 (ru) Способ и устройство для создания панорамы
US10042328B2 (en) Alarm setting method and apparatus, and storage medium
WO2015161588A1 (zh) 一种配置拍摄参数的方法及装置
CN105282446A (zh) 相机管理方法及装置
CN104243829A (zh) 自拍的方法及装置
KR20150122574A (ko) 사용자 명령 실행방법, 장치, 프로그램 및 기록매체
CN113032030A (zh) 相机启动方法、装置、终端设备和存储介质
CN104980662A (zh) 拍照过程中调整成像风格的方法、装置及摄像装置
CN108028951A (zh) 控制播放的方法及装置
CN105516588A (zh) 拍摄处理方法及装置
CN107872620B (zh) 视频录制方法及装置、计算机可读存储介质
WO2023240655A1 (zh) 一种图像的拍摄方法及装置
CN107948876B (zh) 控制音箱设备的方法、装置及介质

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 202280004357.X

Country of ref document: CN

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

Ref document number: 22946336

Country of ref document: EP

Kind code of ref document: A1