WO2017096959A1 - Image collection method and device for terminal - Google Patents

Image collection method and device for terminal Download PDF

Info

Publication number
WO2017096959A1
WO2017096959A1 PCT/CN2016/096811 CN2016096811W WO2017096959A1 WO 2017096959 A1 WO2017096959 A1 WO 2017096959A1 CN 2016096811 W CN2016096811 W CN 2016096811W WO 2017096959 A1 WO2017096959 A1 WO 2017096959A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
posture change
posture
threshold
information
Prior art date
Application number
PCT/CN2016/096811
Other languages
French (fr)
Chinese (zh)
Inventor
曹庆华
Original Assignee
乐视控股(北京)有限公司
乐视移动智能信息技术(北京)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 乐视控股(北京)有限公司, 乐视移动智能信息技术(北京)有限公司 filed Critical 乐视控股(北京)有限公司
Publication of WO2017096959A1 publication Critical patent/WO2017096959A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Definitions

  • the embodiments of the present invention relate to the field of communications technologies, and in particular, to an image collection method for a terminal, and an image collection device for the terminal.
  • Photographing is a highly competitive service provided by the terminal, with the appearance of large-screen touch terminals and the mobility of terminals.
  • the terminal has a tendency to gradually replace ordinary cameras or even SLR cameras.
  • the terminal brings great convenience to the user's image acquisition, but the user uses the terminal to collect images in the life through the process of unlocking the terminal screen, opening the terminal camera application, framing, focusing and image acquisition, etc., the operation is relatively cumbersome. And the existence of these operations makes it difficult for the user to capture or grab the front picture by using the terminal camera, which reduces the efficiency of image collection and reduces the convenience of using the terminal camera.
  • the embodiment of the present application provides an image collection method and device for a terminal.
  • the embodiment of the present application automatically unlocks the screen of the terminal, automatically starts the camera application, expands the application of the terminal, and improves the image collection efficiency of the terminal camera.
  • the use of the terminal camera is more convenient.
  • An embodiment of the present invention provides an image collection method for a terminal, where the method includes the following steps:
  • the posture change information includes at least one of a posture change frequency, a posture change acceleration, and a posture change distance.
  • the posture change information of the terminal matches the specified posture information, including the following cases At least one of:
  • the posture change frequency of the terminal is greater than or equal to a first threshold, and/or
  • the attitude change acceleration of the terminal is greater than or equal to a second threshold, and/or
  • the posture change distance of the terminal is greater than or equal to a third threshold.
  • the method further includes:
  • the current image is acquired when it is detected that the image has not changed within the specified length of time.
  • the method further includes:
  • the operation behavior is detected to be a click on a photo button
  • the current image is acquired.
  • the image capturing device of the terminal is further provided in the embodiment of the present application, wherein the camera device comprises:
  • a first detecting module configured to detect posture change information of the terminal
  • a second detecting module configured to detect a pressing duration of the designated button on the terminal
  • a processing module configured to perform an unlocking operation on the terminal, and start the terminal after the unlocking operation, if the detected posture change information of the terminal matches the specified posture information, and the pressed duration reaches a duration threshold Camera features.
  • the posture change information includes at least one of a posture change frequency, a posture change acceleration, and a posture change distance.
  • the posture change information of the terminal matches the specified posture information, including at least one of the following cases:
  • the posture change frequency of the terminal is greater than or equal to a first threshold
  • the attitude change acceleration of the terminal is greater than or equal to a second threshold
  • the posture change distance of the terminal is greater than or equal to a third threshold.
  • the device further comprises:
  • a third detecting module configured to detect, during a framing process after the terminal camera function is activated, whether the current image changes within a specified duration
  • the first image acquisition module is configured to collect the current image when it is detected that the image does not change within the specified duration.
  • the device further comprises:
  • a fourth detecting module configured to detect an operation behavior of the user for the terminal during a framing process after the terminal camera function is started
  • the second image acquisition module is configured to collect the current image when the operation behavior is detected by clicking the photo button.
  • the embodiment of the present application automatically unlocks the screen of the terminal by automatically detecting the posture change information of the terminal and the button time of the terminal, and automatically starts the camera application, thereby reducing the steps of opening the terminal camera in the prior art, and using the Convenient, saving time, improving image collection efficiency, and improving the convenience of using the terminal camera.
  • FIG. 1 is a schematic flowchart of a method for collecting an image of a terminal according to an embodiment of the present application
  • FIG. 2 is a schematic flowchart of a method for collecting an image of a terminal according to an embodiment of the present application
  • FIG. 3 is a schematic flowchart of a method for collecting an image of a terminal according to an embodiment of the present application
  • FIG. 4 is a schematic structural diagram of an image collection device of a terminal according to an embodiment of the present application.
  • FIG. 5 is a structural block diagram of an electronic device according to an embodiment of the present application.
  • FIG. 1 is a schematic flowchart of a method for collecting an image of a terminal according to an embodiment of the present application.
  • the terminal has a built-in or external camera. As shown in FIG. 1 , the method includes the following steps:
  • the attitude change information may include, but is not limited to, at least one of a posture change frequency, a posture change acceleration, and a posture change distance.
  • the pressing duration of the designated button on the terminal is further detected.
  • the posture change information of the terminal is continuously detected.
  • the posture change information of the terminal matches the specified posture information, and may include at least one of the following situations:
  • the posture change frequency of the terminal is greater than or equal to a first threshold
  • the attitude change acceleration of the terminal is greater than or equal to a second threshold
  • the posture change distance of the terminal is greater than or equal to a third threshold.
  • the user's operation behavior for the terminal may also be detected during the framing process after the terminal camera function is activated; when the operation behavior is detected that the camera button is clicked, the current image is acquired.
  • S101 and S102 may be performed after S101 is executed first, or S101 may be executed first, or S101 may be executed first, or S101 and S102 may be executed together. This is not particularly limited.
  • the above-described execution of S101 and the execution of S102 are merely illustrative.
  • the embodiment of the present application automatically unlocks the screen of the terminal and activates the camera application by detecting the posture change information of the terminal and the button time of the terminal, and performs automatic photographing.
  • the steps of opening the terminal camera in the prior art are reduced, the use is more convenient, the time is saved, the photographing efficiency is improved, and the convenience of use of the terminal camera is improved.
  • FIG. 2 the image collection method of the terminal provided in the embodiment of the present application is provided.
  • a schematic diagram of a process in which the terminal has a built-in or external camera, and the method includes the following steps:
  • step S202 is performed.
  • step S203 is performed.
  • the terminal may be a mobile phone, a tablet computer, a navigation terminal, a driving recorder, etc., in order to perform further operations according to the posture change of the terminal in real time, it is required to detect the posture change information of the terminal in real time.
  • the posture change information of the terminal may include, but is not limited to, at least one of a posture change frequency of the terminal, an attitude change acceleration of the terminal, and a posture change distance of the terminal.
  • the posture change information of the terminal matches the specified posture information, and includes at least one of the following cases:
  • the posture change frequency of the terminal is greater than or equal to a first threshold
  • the attitude change acceleration of the terminal is greater than or equal to a second threshold
  • the posture change distance of the terminal is greater than or equal to a third threshold.
  • a gravity sensor is added to the terminal, and a posture change frequency, an attitude change acceleration, and a posture change distance of the terminal are detected by a gravity sensor.
  • the posture change frequency of the terminal refers to the number of changes of the posture of the terminal in a unit time.
  • the attitude change acceleration of the terminal refers to a change in the speed of the attitude of the terminal in a unit time.
  • the attitude change distance of the terminal refers to a difference between an attitude angle of the terminal relative to the preset coordinate system when the terminal is in the first posture and an attitude angle of the terminal relative to the preset coordinate system when the terminal is in the second posture.
  • the designated button may be a power button, a play button, a virtual button or a volume control button.
  • the duration threshold may be 5 seconds, 8 seconds, or 10 seconds, and the like.
  • the automatic image acquisition mode is activated according to a preset condition for starting the automatic image acquisition mode.
  • the preset condition for starting the automatic image capturing mode may be: when the camera application is automatically activated, the image automatic collecting mode is activated.
  • the current image is acquired when it is detected that the image has not changed within the specified length of time.
  • the specified time length may be 5 seconds, 8 seconds, or 10 seconds.
  • S201 and S202 may be performed after S201 is executed first, or S201 may be executed after S202 is executed first, or S201 and S202 may be executed together. It is specifically limited, and S202 is executed after S201 is executed first, and is only an example.
  • the embodiment of the present application automatically unlocks the screen of the terminal and starts the camera application by detecting the posture change information of the terminal and the button time of the terminal, and further automatically starts the automatic process.
  • the photographing mode performs automatic photographing, thereby reducing the steps of opening the terminal camera in the prior art, is more convenient to use, saves time, improves photographing efficiency, and improves the convenience of use of the terminal camera.
  • FIG. 3 is a terminal provided in the specific embodiment of the present application.
  • a schematic diagram of a process of the image collection method, in which the terminal has a built-in or external camera, the method includes the following steps:
  • step S302 is performed;
  • step S303 is performed.
  • the terminal may be a mobile phone, a tablet computer, a navigation terminal, a driving recorder, etc., in order to perform further operations according to the posture change of the terminal in real time, it is required to detect the posture change information of the terminal in real time.
  • the posture change information of the terminal includes at least one of a posture change frequency of the terminal, an attitude change acceleration of the terminal, and an attitude change distance of the terminal.
  • the posture change information of the terminal matches the specified posture information, and includes at least one of the following cases:
  • the posture change frequency of the terminal is greater than or equal to a first threshold
  • the attitude change acceleration of the terminal is greater than or equal to a second threshold
  • the posture change distance of the terminal is greater than or equal to a third threshold.
  • the attitude change frequency of the terminal refers to the number of changes of the posture of the terminal in a unit time
  • the attitude change acceleration of the terminal refers to a change in the speed of the terminal posture in a unit time
  • the attitude change distance of the terminal refers to the distance from the initial position to the end position of the attitude change of the terminal.
  • the designated button may be a power button, a play button, a virtual button or a volume control button.
  • the duration threshold may be 5 seconds, 8 seconds, or 10 seconds, and the like.
  • S301 and the S302 may be executed in the S301, and the S302 may be executed in the S301, or the S301 may be executed in the S302, or the S301 and S302 may be executed together. It is specifically limited, and S302 is executed after S301 is executed first, and is only an example.
  • the embodiment of the present application automatically unlocks the screen of the terminal and starts the camera application by detecting the posture change information of the terminal and the button time of the terminal, and further automatically starts the automatic process.
  • the photographing mode performs automatic photographing, thereby reducing the steps of opening the terminal camera in the prior art, is more convenient to use, saves time, improves photographing efficiency, and improves the convenience of use of the terminal camera.
  • the image acquisition device 400 of the terminal is further provided in the embodiment of the present application.
  • the terminal has a built-in or external camera, as shown in FIG. 4, the device is the same as the application of the image acquisition method of the above-mentioned terminal. Includes:
  • the first detecting module 401 is configured to detect posture change information of the terminal.
  • the second detecting module 402 is configured to detect a pressing duration of the designated button on the terminal.
  • the processing module 403 is configured to: if the detected posture change information of the terminal matches the specified posture information, and the pressing duration reaches a duration threshold, perform an unlocking operation on the terminal, and start the unlocking operation after the unlocking operation The camera function of the terminal.
  • the posture change information includes at least one of a posture change frequency, a posture change acceleration, and a posture change distance.
  • Matching the posture change information of the terminal with the specified posture information includes at least one of the following cases:
  • the posture change frequency of the terminal is greater than or equal to a first threshold
  • the attitude change acceleration of the terminal is greater than or equal to a second threshold
  • the posture change distance of the terminal is greater than or equal to a third threshold.
  • the device also includes:
  • the third detecting module 404 is configured to detect, during the framing process after the terminal camera function is activated, whether the current image changes within a specified duration;
  • the first image acquisition module 405 is configured to collect the current image when it is detected that the image does not change within the specified duration.
  • the device further includes:
  • the fourth detecting module 406 is configured to detect an operation behavior of the user for the terminal during the framing process after the terminal camera function is activated;
  • the second image acquisition module 407 is configured to collect the current image when the operation behavior is detected by clicking a photo button.
  • the embodiment of the present application automatically unlocks the screen of the terminal and starts the camera application by detecting the posture change information of the terminal and the button time of the terminal, and further automatically starts the automatic process.
  • the photographing mode performs automatic photographing, thereby reducing the steps of opening the terminal camera in the prior art, is more convenient to use, saves time, improves photographing efficiency, and improves the convenience of use of the terminal camera.
  • the modules of the device in the embodiment of the present application may be integrated into one or may be separately deployed.
  • the above modules can be combined into one module, or can be further split into multiple sub-modules.
  • FIG. 5 is a structural block diagram of an electronic device according to an embodiment of the present disclosure. As shown in FIG. 5, the electronic device 500 includes:
  • processors 510 and memory 520 one processor 510 is taken as an example in FIG.
  • the processor 510 and the memory 520 may be connected by a bus or other means, and the bus connection is taken as an example in FIG.
  • the memory 520 is a non-volatile computer readable storage medium, and is applicable to a non-volatile software program, a non-volatile computer-executable program, and a module, such as an image acquisition method of a terminal in the embodiment of the present application.
  • Program instructions/modules eg, first detection module 401, second detection module 402, processing module 403 of image acquisition device 400 of the terminal shown in FIG. 4.
  • the processor 510 executes various functional applications and data processing of the electronic device 500 by running non-volatile software programs, instructions, and modules stored in the memory 520, that is, the image collecting method of the terminal of the foregoing method embodiment and the above The functions of the various modules of the image acquisition device embodiment of the terminal.
  • Memory 520 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 520 can optionally include memory remotely located relative to processor 510, which can be coupled to processor 510 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the program instructions/modules are stored in the memory 520, and when executed by the one or more processors 510, an image acquisition method of the terminal in any of the above method embodiments may be performed, for example, performing the above described diagram Method step S101 to step S102 in FIG. 1, method step S201 to step S206 in FIG. 2, method step S301 to step S306 in FIG. 3; functions of modules 401-403 in FIG. 4 can also be implemented.
  • the electronic device 500 of the embodiment of the present application exists in various forms, including but not limited to:
  • Mobile communication devices These devices are characterized by mobile communication functions and are mainly aimed at providing voice and data communication.
  • Such terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
  • Ultra-mobile personal computer equipment This type of equipment belongs to the category of personal computers, has computing and processing functions, and generally has mobile Internet access.
  • Such terminals include: PDAs, MIDs, and UMPC devices, such as the iPad.
  • Portable entertainment devices These devices can display and play multimedia content. Such devices include: audio, video players (such as iPod), handheld game consoles, e-books, and smart toys and portable car navigation devices.
  • the embodiment of the present application further provides a non-volatile computer storage medium storing computer-executable instructions executed by one or more processors, such as one of the processes in FIG.
  • the 510 may be configured to cause the one or more processors to perform the terminal control method in any of the foregoing method embodiments, for example, to perform the method steps S101 to S102 in FIG. 1 described above, the method step S201 to the step in FIG. S206, the method steps S301 to S306 in FIG. 3; the functions of the modules 401-403 in FIG. 4 can also be implemented.
  • the apparatus or device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie It can be located in one place or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.

Abstract

Disclosed in embodiments of the present application are an image collection method and device for a terminal. The method comprises: detecting posture change information of a terminal; detecting a press duration of a specified key on the terminal; and if the detected posture change information of the terminal matches specified posture information and the press duration reaches a duration threshold, performing an unlocking operation on the terminal, and starting a camera function of the terminal after the unlocking operation. In the embodiments of the present application, an automatic snapshot function is additionally arranged in a terminal, and a camera application can be automatically started, thereby expanding application of the terminal, improving the shooting efficiency of the terminal camera, and improving use convenience of the terminal camera.

Description

一种终端的图像采集方法及装置Image acquisition method and device for terminal 技术领域Technical field
本申请实施例涉及通信技术领域,特别涉及一种终端的图像采集方法,以及一种终端的图像采集装置。The embodiments of the present invention relate to the field of communications technologies, and in particular, to an image collection method for a terminal, and an image collection device for the terminal.
背景技术Background technique
随着终端相机硬件技术的迅猛发展,终端的数码相机功能得到了迅速的发展,拍照作为终端提供的一种极具竞争力的服务,随着大屏触摸终端的出现,以及终端移动携带性的优势,终端有逐渐替代普通相机甚至单反相机的趋势。With the rapid development of terminal camera hardware technology, the digital camera function of the terminal has been rapidly developed. Photographing is a highly competitive service provided by the terminal, with the appearance of large-screen touch terminals and the mobility of terminals. Advantages, the terminal has a tendency to gradually replace ordinary cameras or even SLR cameras.
终端给用户图像采集带来了很大的便捷,但是用户在生活中使用终端进行图像采集要经过解锁终端屏幕、打开终端相机应用、取景、对焦并进行图像采集等多个过程,操作比较繁琐,并且这些操作的存在让用户很难利用终端相机对面前画面进行抓拍或抢拍,降低了图像采集的效率,降低了终端相机使用的便捷性。The terminal brings great convenience to the user's image acquisition, but the user uses the terminal to collect images in the life through the process of unlocking the terminal screen, opening the terminal camera application, framing, focusing and image acquisition, etc., the operation is relatively cumbersome. And the existence of these operations makes it difficult for the user to capture or grab the front picture by using the terminal camera, which reduces the efficiency of image collection and reduces the convenience of using the terminal camera.
发明内容Summary of the invention
本申请实施例中提供一种终端的图像采集方法及装置,本申请实施例自动解锁所述终端的屏幕,并自动启动相机应用,扩展了终端的应用,提高了终端相机图像采集效率,使所述终端相机的使用更加便捷。The embodiment of the present application provides an image collection method and device for a terminal. The embodiment of the present application automatically unlocks the screen of the terminal, automatically starts the camera application, expands the application of the terminal, and improves the image collection efficiency of the terminal camera. The use of the terminal camera is more convenient.
本申请实施例中提供一种终端的图像采集方法,其特征在于,所述方法包括以下步骤:An embodiment of the present invention provides an image collection method for a terminal, where the method includes the following steps:
检测所述终端的姿态变化信息;Detecting posture change information of the terminal;
检测所述终端上指定按键的按下时长;Detecting a pressing time of a designated button on the terminal;
若检测到的所述终端的姿态变化信息与指定姿态信息相匹配,且所述按下时长达到时长阈值,对所述终端执行解锁操作,以及在解锁操作之后启动所述终端的相机功能。And if the detected posture change information of the terminal matches the specified posture information, and the pressing duration reaches a duration threshold, performing an unlocking operation on the terminal, and starting a camera function of the terminal after the unlocking operation.
优选地,所述姿态变化信息,包括:姿态变化频率、姿态变化加速度和姿态变化距离中的至少一个。Preferably, the posture change information includes at least one of a posture change frequency, a posture change acceleration, and a posture change distance.
优选地,所述终端的姿态变化信息与指定姿态信息相匹配,包括以下情况 中至少一个:Preferably, the posture change information of the terminal matches the specified posture information, including the following cases At least one of:
所述终端的姿态变化频率大于或等于第一阈值,和/或The posture change frequency of the terminal is greater than or equal to a first threshold, and/or
所述终端的姿态变化加速度大于或等于第二阈值,和/或The attitude change acceleration of the terminal is greater than or equal to a second threshold, and/or
所述终端的姿态变化距离大于或等于第三阈值。The posture change distance of the terminal is greater than or equal to a third threshold.
优选地,所述方法还包括:Preferably, the method further includes:
在所述终端相机功能启动后的取景过程中,检测在指定时长内当前图像是否发生变化;In the framing process after the terminal camera function is started, detecting whether the current image changes within a specified duration;
当检测到在所述指定时长内所述图像没有发生变化,采集当前图像。The current image is acquired when it is detected that the image has not changed within the specified length of time.
优选地,所述方法还包括:Preferably, the method further includes:
在所述终端相机功能启动后的取景过程中,检测用户针对所述终端的操作行为;In the framing process after the terminal camera function is activated, detecting an operation behavior of the user for the terminal;
当检测到所述操作行为是点击拍照按键时,采集当前图像。When the operation behavior is detected to be a click on a photo button, the current image is acquired.
本申请实施例中还提供一种终端的图像采集装置,其特征在于,所述拍照装置包括:The image capturing device of the terminal is further provided in the embodiment of the present application, wherein the camera device comprises:
第一检测模块,用于检测所述终端的姿态变化信息;a first detecting module, configured to detect posture change information of the terminal;
第二检测模块,用于检测所述终端上指定按键的按下时长;a second detecting module, configured to detect a pressing duration of the designated button on the terminal;
处理模块,用于若检测到的所述终端的姿态变化信息与指定姿态信息相匹配,且所述按下时长达到时长阈值,对所述终端执行解锁操作,以及在解锁操作之后启动所述终端的相机功能。a processing module, configured to perform an unlocking operation on the terminal, and start the terminal after the unlocking operation, if the detected posture change information of the terminal matches the specified posture information, and the pressed duration reaches a duration threshold Camera features.
优选地,所述姿态变化信息,包括:姿态变化频率、姿态变化加速度和姿态变化距离中的至少一个。Preferably, the posture change information includes at least one of a posture change frequency, a posture change acceleration, and a posture change distance.
优选地,所述终端的姿态变化信息与指定姿态信息相匹配包括以下情况中至少一个:Preferably, the posture change information of the terminal matches the specified posture information, including at least one of the following cases:
所述终端的姿态变化频率大于或等于第一阈值;The posture change frequency of the terminal is greater than or equal to a first threshold;
所述终端的姿态变化加速度大于或等于第二阈值;The attitude change acceleration of the terminal is greater than or equal to a second threshold;
所述终端的姿态变化距离大于或等于第三阈值。The posture change distance of the terminal is greater than or equal to a third threshold.
优选地,所述装置还包括:Preferably, the device further comprises:
第三检测模块,用于在所述终端相机功能启动后的取景过程中,检测在指定时长内当前图像是否发生变化; a third detecting module, configured to detect, during a framing process after the terminal camera function is activated, whether the current image changes within a specified duration;
第一图像采集模块,用于当检测到在所述指定时长内所述图像没有发生变化,采集当前图像。The first image acquisition module is configured to collect the current image when it is detected that the image does not change within the specified duration.
优选地,所述装置还包括:Preferably, the device further comprises:
第四检测模块,用于在所述终端相机功能启动后的取景过程中,检测用户针对所述终端的操作行为;a fourth detecting module, configured to detect an operation behavior of the user for the terminal during a framing process after the terminal camera function is started;
第二图像采集模块,用于当检测到所述操作行为是点击拍照按键时,采集当前图像。The second image acquisition module is configured to collect the current image when the operation behavior is detected by clicking the photo button.
与现有技术相比,本申请实施例所提供的技术方案至少具有以下优点:Compared with the prior art, the technical solution provided by the embodiment of the present application has at least the following advantages:
本申请实施例通过检测所述终端的姿态变化信息和所述终端的按键时间,自动解锁所述终端的屏幕,并自动启动相机应用,从而减少了现有技术中打开终端相机的步骤,使用更加方便,节约了时间,提高了图像采集效率,提高了所述终端相机使用的便捷性。The embodiment of the present application automatically unlocks the screen of the terminal by automatically detecting the posture change information of the terminal and the button time of the terminal, and automatically starts the camera application, thereby reducing the steps of opening the terminal camera in the prior art, and using the Convenient, saving time, improving image collection efficiency, and improving the convenience of using the terminal camera.
附图说明DRAWINGS
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。The one or more embodiments are exemplified by the accompanying drawings in the accompanying drawings, and FIG. The figures in the drawings do not constitute a scale limitation unless otherwise stated.
图1为本申请实施例提出的一种终端的图像采集方法的流程示意图;FIG. 1 is a schematic flowchart of a method for collecting an image of a terminal according to an embodiment of the present application;
图2为本申请实施例提出的一种终端的图像采集方法的流程示意图;2 is a schematic flowchart of a method for collecting an image of a terminal according to an embodiment of the present application;
图3为本申请实施例提出的一种终端的图像采集方法的流程示意图;FIG. 3 is a schematic flowchart of a method for collecting an image of a terminal according to an embodiment of the present application;
图4为本申请实施例提出的一种终端的图像采集装置的结构示意图FIG. 4 is a schematic structural diagram of an image collection device of a terminal according to an embodiment of the present application;
图5为本申请实施例提出的一种电子设备的结构框图。FIG. 5 is a structural block diagram of an electronic device according to an embodiment of the present application.
具体实施方式detailed description
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present application. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
现有技术使用终端的相机进行图像采集需要很多操作,使用不方便并且需 要花费较多的时间,导致所述终端的相机使用效率低下。为了克服现有技术中的缺陷,本申请实施例提出了以下几种实施例:The prior art uses the camera of the terminal for image acquisition, which requires many operations, is inconvenient to use, and requires It takes more time to cause the camera of the terminal to be inefficient. In order to overcome the deficiencies in the prior art, the following embodiments are proposed in the embodiments of the present application:
实施例一Embodiment 1
请参考图1,其为本申请实施例中提供的一种终端的图像采集方法的流程示意图,终端内置或者外接有摄像头,如图1所示,所述方法包括以下步骤:Please refer to FIG. 1 , which is a schematic flowchart of a method for collecting an image of a terminal according to an embodiment of the present application. The terminal has a built-in or external camera. As shown in FIG. 1 , the method includes the following steps:
S101,检测所述终端的姿态变化信息。S101. Detect posture change information of the terminal.
在本申请实施例具体实施例中,为了对所述终端进行解锁以及启动所述终端的相机应用,需要首先获取所述终端的姿态变化信息和所述终端上指定按键的按下时长,因此需要对所述终端的姿态变化信息以及所述终端上指定按键的按下时长进行检测。In the specific embodiment of the present application, in order to unlock the terminal and start the camera application of the terminal, it is necessary to first acquire the posture change information of the terminal and the pressing duration of the designated button on the terminal, so The posture change information of the terminal and the pressing duration of the designated button on the terminal are detected.
在一个具体的实现过程中,所述姿态变化信息可以包括但不限于:姿态变化频率、姿态变化加速度和姿态变化距离中的至少一个。In a specific implementation process, the attitude change information may include, but is not limited to, at least one of a posture change frequency, a posture change acceleration, and a posture change distance.
进一步的,检测终端的姿态变化信息,然后根据检测到的终端的姿态变化信息,判断是否检测终端上指定按键的按下时长。Further, detecting the posture change information of the terminal, and then determining whether to detect the pressing duration of the designated button on the terminal according to the detected posture change information of the terminal.
当检测到的所述终端的姿态变化信息与指定姿态信息相匹配时,进一步检测终端上指定按键的按下时长。反之,若检测到的所述终端的姿态变化信息与指定姿态信息不匹配,则继续检测所述终端的姿态变化信息。When the detected posture change information of the terminal matches the specified posture information, the pressing duration of the designated button on the terminal is further detected. On the other hand, if the detected posture change information of the terminal does not match the specified posture information, the posture change information of the terminal is continuously detected.
所述终端的姿态变化信息与指定姿态信息相匹配,可以包括以下情况中至少一个:The posture change information of the terminal matches the specified posture information, and may include at least one of the following situations:
所述终端的姿态变化频率大于或等于第一阈值;The posture change frequency of the terminal is greater than or equal to a first threshold;
所述终端的姿态变化加速度大于或等于第二阈值;以及,The attitude change acceleration of the terminal is greater than or equal to a second threshold; and,
所述终端的姿态变化距离大于或等于第三阈值。The posture change distance of the terminal is greater than or equal to a third threshold.
S102,检测所述终端上指定按键的按下时长。S102. Detect a pressing duration of a designated button on the terminal.
S103,若检测到的所述终端的姿态变化信息与指定姿态信息相匹配,且所述按下时长达到时长阈值,对所述终端执行解锁操作,以及在解锁操作之后启动所述终端的相机功能。S103. If the detected posture change information of the terminal matches the specified posture information, and the pressed duration reaches a duration threshold, performing an unlocking operation on the terminal, and starting a camera function of the terminal after the unlocking operation. .
S103之后,还可以在所述终端相机功能启动后的取景过程中,检测在指定 时长内当前图像是否发生变化;当检测到在所述指定时长内所述图像没有发生变化,采集当前图像。After S103, it is also possible to detect the designation in the framing process after the terminal camera function is activated. Whether the current image changes within the duration; when it is detected that the image does not change within the specified duration, the current image is acquired.
或者,S103之后,也可以在所述终端相机功能启动后的取景过程中,检测用户针对所述终端的操作行为;当检测到所述操作行为是点击拍照按键时,采集当前图像。Alternatively, after S103, the user's operation behavior for the terminal may also be detected during the framing process after the terminal camera function is activated; when the operation behavior is detected that the camera button is clicked, the current image is acquired.
可以理解的是,S101和S102的执行顺序可以是先执行S101后执行S102,或者,或者,也可以是先执行S102后执行S101,或者,还可以是S101与S102一起执行,本申请实施例对此不进行特别限定,上述先执行S101后执行S102仅为举例说明。It can be understood that the execution sequence of S101 and S102 may be performed after S101 is executed first, or S101 may be executed first, or S101 may be executed first, or S101 and S102 may be executed together. This is not particularly limited. The above-described execution of S101 and the execution of S102 are merely illustrative.
综上所述,与现有技术相比,本申请实施例通过检测所述终端的姿态变化信息和所述终端的按键时间,自动解锁所述终端的屏幕和启动相机应用,并进行自动拍照,从而减少了现有技术中打开终端相机的步骤,使用更加方便,节约了时间,提高了拍照效率,提高了所述终端相机使用的便捷性。In summary, compared with the prior art, the embodiment of the present application automatically unlocks the screen of the terminal and activates the camera application by detecting the posture change information of the terminal and the button time of the terminal, and performs automatic photographing. Thereby, the steps of opening the terminal camera in the prior art are reduced, the use is more convenient, the time is saved, the photographing efficiency is improved, and the convenience of use of the terminal camera is improved.
实施例二Embodiment 2
为了进一步阐述本申请实施例的技术方案,现结合具体的应用场景,对本申请实施例的技术方案进行说明,如图2所示,为本申请实施例中的提供的一种终端的图像采集方法的流程示意图,所述终端内置或者外接有摄像头,所述方法包括以下步骤:To further illustrate the technical solution of the embodiment of the present application, the technical solution of the embodiment of the present application is described in conjunction with a specific application scenario. As shown in FIG. 2, the image collection method of the terminal provided in the embodiment of the present application is provided. A schematic diagram of a process in which the terminal has a built-in or external camera, and the method includes the following steps:
S201,检测所述终端的姿态变化信息。S201. Detect posture change information of the terminal.
当所述终端的姿态变化信息与指定姿态信息相匹配时,执行步骤S202。When the posture change information of the terminal matches the specified posture information, step S202 is performed.
当所述终端的姿态变化信息与指定姿态信息不匹配时,执行步骤S203。When the posture change information of the terminal does not match the specified posture information, step S203 is performed.
在一个具体的实现过程中,所述终端可以为手机、平板电脑、导航终端、行车记录仪等,为了实时根据所述终端的姿态变化进行进一步的操作,需要实时检测所述终端的姿态变化信息。In a specific implementation process, the terminal may be a mobile phone, a tablet computer, a navigation terminal, a driving recorder, etc., in order to perform further operations according to the posture change of the terminal in real time, it is required to detect the posture change information of the terminal in real time. .
具体地,所述终端的姿态变化信息可以包括但不限于:所述终端的姿态变化频率、所述终端的姿态变化加速度和所述终端的姿态变化距离中的至少一个。Specifically, the posture change information of the terminal may include, but is not limited to, at least one of a posture change frequency of the terminal, an attitude change acceleration of the terminal, and a posture change distance of the terminal.
所述终端的姿态变化信息与指定姿态信息相匹配,包括以下情况中至少一个: The posture change information of the terminal matches the specified posture information, and includes at least one of the following cases:
所述终端的姿态变化频率大于或等于第一阈值;The posture change frequency of the terminal is greater than or equal to a first threshold;
所述终端的姿态变化加速度大于或等于第二阈值;以及,The attitude change acceleration of the terminal is greater than or equal to a second threshold; and,
所述终端的姿态变化距离大于或等于第三阈值。The posture change distance of the terminal is greater than or equal to a third threshold.
具体地,为所述终端添加重力传感器,通过重力传感器检测所述终端的姿态变化频率、姿态变化加速度以及姿态变化距离。Specifically, a gravity sensor is added to the terminal, and a posture change frequency, an attitude change acceleration, and a posture change distance of the terminal are detected by a gravity sensor.
其中,所述终端的姿态变化频率是指所述终端的姿态在单位时间内的变化次数。The posture change frequency of the terminal refers to the number of changes of the posture of the terminal in a unit time.
所述终端的姿态变化加速度是指所述终端的姿态在单位时间内速度的变化。The attitude change acceleration of the terminal refers to a change in the speed of the attitude of the terminal in a unit time.
所述终端的姿态变化距离是指所述终端在第一姿态时相对于预设坐标系的姿态角与终端在第二姿态时相对于预设坐标系的姿态角之间的差值。The attitude change distance of the terminal refers to a difference between an attitude angle of the terminal relative to the preset coordinate system when the terminal is in the first posture and an attitude angle of the terminal relative to the preset coordinate system when the terminal is in the second posture.
S202,检测所述终端上指定按键的按下时长。S202. Detect a pressing duration of a designated button on the terminal.
当所述终端上指定按键的按下时长超过时长阈值时,执行S204;When the pressing time of the designated button on the terminal exceeds the duration threshold, executing S204;
当所述终端上指定按键的按下时长不超过时长阈值时,执行S203。When the pressing duration of the designated button on the terminal does not exceed the duration threshold, S203 is performed.
在本申请实施例具体实施例中,在检测到所述终端的姿态变化信息后,还需要根据所述检测到所述终端的姿态变化信息,进一步判断是否检测所述终端上指定按键的按下时长。In the specific embodiment of the present application, after detecting the posture change information of the terminal, it is further required to further determine whether to detect the pressing of the designated button on the terminal according to the detected posture change information of the terminal. duration.
例如,所述指定按键可以为电源键、播放键、虚拟按键或音量控制键等。,所述时长阈值可以是5秒、8秒或10秒等。For example, the designated button may be a power button, a play button, a virtual button or a volume control button. The duration threshold may be 5 seconds, 8 seconds, or 10 seconds, and the like.
S203,不执行任何操作。S203, no operation is performed.
S204,对所述终端执行解锁操作,以及在解锁操作之后启动所述终端的相机功能。S204. Perform an unlocking operation on the terminal, and start a camera function of the terminal after the unlocking operation.
在一个具体的实现过程中,通过检测所述终端的姿态变化信息和所述终端上指定按键的按下时长两个方面的组合,来判断是否解锁所述终端的屏幕并自动启动相机应用。In a specific implementation process, by detecting a combination of the posture change information of the terminal and the pressing duration of the designated button on the terminal, it is determined whether to unlock the screen of the terminal and automatically start the camera application.
S205,在所述终端相机功能启动后的取景过程中,检测在指定时长内当前图像是否发生变化。 S205. During the framing process after the terminal camera function is started, detect whether the current image changes within a specified duration.
当检测到在所述指定时长内所述图像没有发生变化,执行S206。When it is detected that the image does not change within the specified length of time, S206 is performed.
当检测到在所述指定时长内所述图像发生变化,执行S203。When it is detected that the image changes within the specified length of time, S203 is performed.
S206,采集当前图像。S206, collecting a current image.
在一个具体的实现过程中,在所述终端相机功能启动后,根据预设的启动自动图像采集模式的条件,启动自动图像采集模式。In a specific implementation process, after the terminal camera function is activated, the automatic image acquisition mode is activated according to a preset condition for starting the automatic image acquisition mode.
例如,所述预设的启动自动图像采集模式的条件可以为:当相机应用是被自动启动时,启动图像自动采集模式。For example, the preset condition for starting the automatic image capturing mode may be: when the camera application is automatically activated, the image automatic collecting mode is activated.
当检测到在所述指定时长内所述图像没有发生变化时,采集当前图像。The current image is acquired when it is detected that the image has not changed within the specified length of time.
例如,当检测到当前画面的停留时间超过指定时长时,认为指定时长内所述图像没有发生变化,所述指定时长可以是5秒、8秒或10秒等。For example, when it is detected that the dwell time of the current picture exceeds the specified time length, it is considered that the image does not change within a specified time period, and the specified time length may be 5 seconds, 8 seconds, or 10 seconds.
可以理解的是,S201和S202的执行顺序可以是先执行S201后执行S202,或者,也可以是先执行S202后执行S201,或者,还可以是S201与S202一起执行,本申请实施例对此不进行特别限定,上述先执行S201后执行S202仅为举例说明。It can be understood that the execution order of S201 and S202 may be performed after S201 is executed first, or S201 may be executed after S202 is executed first, or S201 and S202 may be executed together. It is specifically limited, and S202 is executed after S201 is executed first, and is only an example.
综上所述,与现有技术相比,本申请实施例通过检测所述终端的姿态变化信息和所述终端的按键时间,自动解锁所述终端的屏幕和启动相机应用,并进一步自动启动自动拍照模式,进行自动拍照,从而减少了现有技术中打开终端相机的步骤,使用更加方便,节约了时间,提高了拍照效率,提高了所述终端相机使用的便捷性。In summary, compared with the prior art, the embodiment of the present application automatically unlocks the screen of the terminal and starts the camera application by detecting the posture change information of the terminal and the button time of the terminal, and further automatically starts the automatic process. The photographing mode performs automatic photographing, thereby reducing the steps of opening the terminal camera in the prior art, is more convenient to use, saves time, improves photographing efficiency, and improves the convenience of use of the terminal camera.
实施例三Embodiment 3
为了进一步阐述本申请实施例的技术方案,现结合具体的应用场景,对本申请实施例的技术方案进行说明,如图3所示,为本申请实施例具体实施例中的提供的一种终端的图像采集方法的流程示意图,所述终端内置或者外接有摄像头,所述方法包括以下步骤:In order to further illustrate the technical solution of the embodiment of the present application, the technical solution of the embodiment of the present application is described in conjunction with a specific application scenario, as shown in FIG. 3, which is a terminal provided in the specific embodiment of the present application. A schematic diagram of a process of the image collection method, in which the terminal has a built-in or external camera, the method includes the following steps:
S301,检测所述终端的姿态变化信息。S301. Detect posture change information of the terminal.
当所述终端的姿态变化信息与指定姿态信息相匹配时,执行步骤S302;When the posture change information of the terminal matches the specified posture information, step S302 is performed;
当所述终端的姿态变化信息与指定姿态信息不匹配时,执行步骤S303。 When the posture change information of the terminal does not match the specified posture information, step S303 is performed.
在一个具体的实现过程中,所述终端可以为手机、平板电脑、导航终端、行车记录仪等,为了实时根据所述终端的姿态变化进行进一步的操作,需要实时检测所述终端的姿态变化信息。In a specific implementation process, the terminal may be a mobile phone, a tablet computer, a navigation terminal, a driving recorder, etc., in order to perform further operations according to the posture change of the terminal in real time, it is required to detect the posture change information of the terminal in real time. .
具体地,所述终端的姿态变化信息包括:所述终端的姿态变化频率、所述终端的姿态变化加速度和所述终端的姿态变化距离中的至少一个。Specifically, the posture change information of the terminal includes at least one of a posture change frequency of the terminal, an attitude change acceleration of the terminal, and an attitude change distance of the terminal.
所述终端的姿态变化信息与指定姿态信息相匹配,包括以下情况中至少一个:The posture change information of the terminal matches the specified posture information, and includes at least one of the following cases:
所述终端的姿态变化频率大于或等于第一阈值;The posture change frequency of the terminal is greater than or equal to a first threshold;
所述终端的姿态变化加速度大于或等于第二阈值;以及,The attitude change acceleration of the terminal is greater than or equal to a second threshold; and,
所述终端的姿态变化距离大于或等于第三阈值。The posture change distance of the terminal is greater than or equal to a third threshold.
为所述终端添加频率检测传感器,通过频率检测传感器检测所述终端的姿态变化频率;Adding a frequency detecting sensor to the terminal, and detecting a frequency of changing the posture of the terminal by using a frequency detecting sensor;
为所述终端添加加速度检测传感器,通过加速度检测传感器检测所述终端的姿态变化加速度;Adding an acceleration detecting sensor to the terminal, and detecting an attitude change acceleration of the terminal by using an acceleration detecting sensor;
为所述终端添加距离检测传感器,通过距离检测传感器检测所述终端的姿态变化距离;Adding a distance detecting sensor to the terminal, and detecting a posture change distance of the terminal by using a distance detecting sensor;
其中,所述终端的姿态变化频率是指所述终端的姿态在单位时间内的变化次数;The attitude change frequency of the terminal refers to the number of changes of the posture of the terminal in a unit time;
所述终端的姿态变化加速度是指所述终端的姿态在单位时间内速度的变化;The attitude change acceleration of the terminal refers to a change in the speed of the terminal posture in a unit time;
所述终端的姿态变化距离是指所述终端的姿态变化初始位置至结束位置的距离。The attitude change distance of the terminal refers to the distance from the initial position to the end position of the attitude change of the terminal.
S302,检测所述终端上指定按键的按下时长;S302. Detect a duration of pressing a designated button on the terminal.
当所述终端上指定按键的按下时长超过时长阈值时,执行S304;When the pressing time of the designated button on the terminal exceeds the duration threshold, executing S304;
当所述终端上指定按键的按下时长不超过时长阈值时,执行S303。When the pressing duration of the designated button on the terminal does not exceed the duration threshold, S303 is performed.
在一个具体的实现过程中,在检测到所述终端的姿态变化信息后,还需要根据所述检测到所述终端的姿态变化信息,进一步判断是否检测所述终端上指 定按键的按下时长。In a specific implementation process, after detecting the posture change information of the terminal, it is further required to further determine whether to detect the upper finger of the terminal according to the detected posture change information of the terminal. The length of time the button is pressed.
例如,所述指定按键可以为电源键、播放键、虚拟按键或音量控制键等。所述时长阈值可以是5秒、8秒或10秒等。For example, the designated button may be a power button, a play button, a virtual button or a volume control button. The duration threshold may be 5 seconds, 8 seconds, or 10 seconds, and the like.
S303,不执行任何操作。S303, no operation is performed.
S304,对所述终端执行解锁操作,以及在解锁操作之后启动所述终端的相机功能。S304. Perform an unlocking operation on the terminal, and start a camera function of the terminal after the unlocking operation.
在一个具体的实现过程中,通过检测所述终端的姿态变化信息和所述终端上指定按键的按下时长两个方面的组合,来判断是否解锁所述终端的屏幕并自动启动相机应用。In a specific implementation process, by detecting a combination of the posture change information of the terminal and the pressing duration of the designated button on the terminal, it is determined whether to unlock the screen of the terminal and automatically start the camera application.
S305,在所述终端相机功能启动后的取景过程中,检测用户针对所述终端的操作行为。S305. In the framing process after the terminal camera function is started, detecting an operation behavior of the user for the terminal.
当检测到所述操作行为是点击拍照按键时,执行S306。When it is detected that the operation behavior is a click of a photographing button, S306 is performed.
当检测到所述操作行为是不是点击拍照按键时,执行S303。When it is detected whether the operation behavior is a click of a photographing button, S303 is performed.
S306,采集当前图像。S306, collecting a current image.
可以理解的是,S301和S302的执行顺序可以是先执行S301后执行S302,或者,也可以是先执行S302后执行S301,或者,还可以是S301与S302一起执行,本申请实施例对此不进行特别限定,上述先执行S301后执行S302仅为举例说明。It is to be understood that the S301 and the S302 may be executed in the S301, and the S302 may be executed in the S301, or the S301 may be executed in the S302, or the S301 and S302 may be executed together. It is specifically limited, and S302 is executed after S301 is executed first, and is only an example.
综上所述,与现有技术相比,本申请实施例通过检测所述终端的姿态变化信息和所述终端的按键时间,自动解锁所述终端的屏幕和启动相机应用,并进一步自动启动自动拍照模式,进行自动拍照,从而减少了现有技术中打开终端相机的步骤,使用更加方便,节约了时间,提高了拍照效率,提高了所述终端相机使用的便捷性。In summary, compared with the prior art, the embodiment of the present application automatically unlocks the screen of the terminal and starts the camera application by detecting the posture change information of the terminal and the button time of the terminal, and further automatically starts the automatic process. The photographing mode performs automatic photographing, thereby reducing the steps of opening the terminal camera in the prior art, is more convenient to use, saves time, improves photographing efficiency, and improves the convenience of use of the terminal camera.
实施例四Embodiment 4
基于与上述终端的图像采集方法的流程同样的申请构思,本申请实施例中还提供了一种终端的图像采集装置400,所述终端内置或者外接有摄像头,如图4所示,所述装置包括: The image acquisition device 400 of the terminal is further provided in the embodiment of the present application. The terminal has a built-in or external camera, as shown in FIG. 4, the device is the same as the application of the image acquisition method of the above-mentioned terminal. Includes:
第一检测模块401,用于检测所述终端的姿态变化信息。The first detecting module 401 is configured to detect posture change information of the terminal.
第二检测模块402,用于检测所述终端上指定按键的按下时长。The second detecting module 402 is configured to detect a pressing duration of the designated button on the terminal.
处理模块403,用于若检测到的所述终端的姿态变化信息与指定姿态信息相匹配,且所述按下时长达到时长阈值,对所述终端执行解锁操作,以及在解锁操作之后启动所述终端的相机功能。The processing module 403 is configured to: if the detected posture change information of the terminal matches the specified posture information, and the pressing duration reaches a duration threshold, perform an unlocking operation on the terminal, and start the unlocking operation after the unlocking operation The camera function of the terminal.
在一个具体的实现过程中,所述姿态变化信息,包括:姿态变化频率、姿态变化加速度和姿态变化距离中的至少一个。In a specific implementation process, the posture change information includes at least one of a posture change frequency, a posture change acceleration, and a posture change distance.
所述终端的姿态变化信息与指定姿态信息相匹配包括以下情况中至少一个:Matching the posture change information of the terminal with the specified posture information includes at least one of the following cases:
所述终端的姿态变化频率大于或等于第一阈值;The posture change frequency of the terminal is greater than or equal to a first threshold;
所述终端的姿态变化加速度大于或等于第二阈值;以及The attitude change acceleration of the terminal is greater than or equal to a second threshold;
所述终端的姿态变化距离大于或等于第三阈值。The posture change distance of the terminal is greater than or equal to a third threshold.
所述装置还包括:The device also includes:
第三检测模块404,用于在所述终端相机功能启动后的取景过程中,检测在指定时长内当前图像是否发生变化;The third detecting module 404 is configured to detect, during the framing process after the terminal camera function is activated, whether the current image changes within a specified duration;
第一图像采集模块405,用于当检测到在所述指定时长内所述图像没有发生变化,采集当前图像。The first image acquisition module 405 is configured to collect the current image when it is detected that the image does not change within the specified duration.
在一个具体的实现过程中,所述装置还包括:In a specific implementation process, the device further includes:
第四检测模块406,用于在所述终端相机功能启动后的取景过程中,检测用户针对所述终端的操作行为;The fourth detecting module 406 is configured to detect an operation behavior of the user for the terminal during the framing process after the terminal camera function is activated;
第二图像采集模块407,用于当检测到所述操作行为是点击拍照按键时,采集当前图像。The second image acquisition module 407 is configured to collect the current image when the operation behavior is detected by clicking a photo button.
综上所述,与现有技术相比,本申请实施例通过检测所述终端的姿态变化信息和所述终端的按键时间,自动解锁所述终端的屏幕和启动相机应用,并进一步自动启动自动拍照模式,进行自动拍照,从而减少了现有技术中打开终端相机的步骤,使用更加方便,节约了时间,提高了拍照效率,提高了所述终端相机使用的便捷性。 In summary, compared with the prior art, the embodiment of the present application automatically unlocks the screen of the terminal and starts the camera application by detecting the posture change information of the terminal and the button time of the terminal, and further automatically starts the automatic process. The photographing mode performs automatic photographing, thereby reducing the steps of opening the terminal camera in the prior art, is more convenient to use, saves time, improves photographing efficiency, and improves the convenience of use of the terminal camera.
其中,本申请实施例装置的各个模块可以集成于一体,也可以分离部署。上述模块可以合并为一个模块,也可以进一步拆分成多个子模块。The modules of the device in the embodiment of the present application may be integrated into one or may be separately deployed. The above modules can be combined into one module, or can be further split into multiple sub-modules.
图5为本申请实施例提出的一种电子设备的结构框图,如图5所示,该电子设备500包括:FIG. 5 is a structural block diagram of an electronic device according to an embodiment of the present disclosure. As shown in FIG. 5, the electronic device 500 includes:
一个或多个处理器510以及存储器520,图5中以一个处理器510为例。One or more processors 510 and memory 520, one processor 510 is taken as an example in FIG.
处理器510、存储器520可以通过总线或者其他方式连接,图5中以通过总线连接为例。The processor 510 and the memory 520 may be connected by a bus or other means, and the bus connection is taken as an example in FIG.
存储器520作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本申请实施例中的终端的图像采集方法对应的程序指令/模块(例如,附图4所示的终端的图像采集装置400的第一检测模块401,第二检测模块402,处理模块403)。处理器510通过运行存储在存储器520中的非易失性软件程序、指令以及模块,从而执行电子设备500的各种功能应用以及数据处理,即实现上述方法实施例的终端的图像采集方法和上述终端的图像采集装置实施例的各个模块的功能。The memory 520 is a non-volatile computer readable storage medium, and is applicable to a non-volatile software program, a non-volatile computer-executable program, and a module, such as an image acquisition method of a terminal in the embodiment of the present application. Program instructions/modules (eg, first detection module 401, second detection module 402, processing module 403 of image acquisition device 400 of the terminal shown in FIG. 4). The processor 510 executes various functional applications and data processing of the electronic device 500 by running non-volatile software programs, instructions, and modules stored in the memory 520, that is, the image collecting method of the terminal of the foregoing method embodiment and the above The functions of the various modules of the image acquisition device embodiment of the terminal.
存储器520可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器520可选包括相对于处理器510远程设置的存储器,这些远程存储器可以通过网络连接至处理器510。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。 Memory 520 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 520 can optionally include memory remotely located relative to processor 510, which can be coupled to processor 510 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
所述程序指令/模块存储在所述存储器520中,当被所述一个或者多个处理器510执行时,可执行上述任意方法实施例中的终端的图像采集方法,例如,执行以上描述的图1中的方法步骤S101至步骤S102,图2中的方法步骤S201至步骤S206,图3中的方法步骤S301至步骤S306;也可实现图4中的模块401-403的功能。The program instructions/modules are stored in the memory 520, and when executed by the one or more processors 510, an image acquisition method of the terminal in any of the above method embodiments may be performed, for example, performing the above described diagram Method step S101 to step S102 in FIG. 1, method step S201 to step S206 in FIG. 2, method step S301 to step S306 in FIG. 3; functions of modules 401-403 in FIG. 4 can also be implemented.
本申请实施例的电子设备500以多种形式存在,包括但不限于:The electronic device 500 of the embodiment of the present application exists in various forms, including but not limited to:
(1)移动通信设备:这类设备的特点是具备移动通信功能,并且以提供话音、数据通信为主要目标。这类终端包括:智能手机(例如iPhone)、多媒体手机、功能性手机,以及低端手机等。 (1) Mobile communication devices: These devices are characterized by mobile communication functions and are mainly aimed at providing voice and data communication. Such terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
(2)超移动个人计算机设备:这类设备属于个人计算机的范畴,有计算和处理功能,一般也具备移动上网特性。这类终端包括:PDA、MID和UMPC设备等,例如iPad。(2) Ultra-mobile personal computer equipment: This type of equipment belongs to the category of personal computers, has computing and processing functions, and generally has mobile Internet access. Such terminals include: PDAs, MIDs, and UMPC devices, such as the iPad.
(3)便携式娱乐设备:这类设备可以显示和播放多媒体内容。该类设备包括:音频、视频播放器(例如iPod),掌上游戏机,电子书,以及智能玩具和便携式车载导航设备。(3) Portable entertainment devices: These devices can display and play multimedia content. Such devices include: audio, video players (such as iPod), handheld game consoles, e-books, and smart toys and portable car navigation devices.
(4)其他具有数据交互功能的电子装置。(4) Other electronic devices with data interaction functions.
本申请实施例还提供了一种非易失性计算机存储介质,所述计算机存储介质存储有计算机可执行指令,该计算机可执行指令被一个或多个处理器执行,例如图5中的一个处理器510,可使得上述一个或多个处理器执行上述任意方法实施例中的终端控制方法,例如,执行以上描述的图1中的方法步骤S101至步骤S102,图2中的方法步骤S201至步骤S206,图3中的方法步骤S301至步骤S306;也可实现图4中的模块401-403的功能。The embodiment of the present application further provides a non-volatile computer storage medium storing computer-executable instructions executed by one or more processors, such as one of the processes in FIG. The 510 may be configured to cause the one or more processors to perform the terminal control method in any of the foregoing method embodiments, for example, to perform the method steps S101 to S102 in FIG. 1 described above, the method step S201 to the step in FIG. S206, the method steps S301 to S306 in FIG. 3; the functions of the modules 401-403 in FIG. 4 can also be implemented.
以上所描述的装置或设备实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The apparatus or device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie It can be located in one place or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the various embodiments can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on such understanding, the above technical solutions may be embodied in the form of software products in essence or in the form of software products, which may be stored in a computer readable storage medium such as a ROM/RAM or a disk. , an optical disk, etc., includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments or portions of the embodiments.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;在本申请的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,步骤可以以任意顺序实现,并存在如上所述的本申请的不同方面的许多其它变化,为了简明,它们没有在细节中提供;尽管参照前述实施例对本 申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。 Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, and are not limited thereto; in the idea of the present application, the technical features in the above embodiments or different embodiments may also be combined. The steps may be performed in any order, and there are many other variations of the various aspects of the present application as described above, which are not provided in the details for the sake of brevity; The application is described in detail, and those skilled in the art should understand that the technical solutions described in the foregoing embodiments may be modified, or some of the technical features may be equivalently replaced; and these modifications or replacements are not The essence of the corresponding technical solutions is deviated from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

  1. 一种终端的图像采集方法,其特征在于,所述方法包括:A method for image collection of a terminal, the method comprising:
    检测所述终端的姿态变化信息;Detecting posture change information of the terminal;
    检测所述终端上指定按键的按下时长;Detecting a pressing time of a designated button on the terminal;
    若检测到的所述终端的姿态变化信息与指定姿态信息相匹配,且所述按下时长达到时长阈值,对所述终端执行解锁操作,以及在解锁操作之后启动所述终端的相机功能。And if the detected posture change information of the terminal matches the specified posture information, and the pressing duration reaches a duration threshold, performing an unlocking operation on the terminal, and starting a camera function of the terminal after the unlocking operation.
  2. 根据权利要求1所述的方法,其特征在于,所述姿态变化信息包括:姿态变化频率、姿态变化加速度和姿态变化距离中的至少一个。The method according to claim 1, wherein the posture change information comprises at least one of a posture change frequency, a posture change acceleration, and a posture change distance.
  3. 根据权利要求2所述的方法,其特征在于,所述终端的姿态变化信息与指定姿态信息相匹配,包括以下情况中至少一个:The method according to claim 2, wherein the posture change information of the terminal matches the specified posture information, including at least one of the following cases:
    所述终端的姿态变化频率大于或等于第一阈值;The posture change frequency of the terminal is greater than or equal to a first threshold;
    所述终端的姿态变化加速度大于或等于第二阈值;以及,The attitude change acceleration of the terminal is greater than or equal to a second threshold; and,
    所述终端的姿态变化距离大于或等于第三阈值。The posture change distance of the terminal is greater than or equal to a third threshold.
  4. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    在所述终端相机功能启动后的取景过程中,检测在指定时长内当前图像是否发生变化;In the framing process after the terminal camera function is started, detecting whether the current image changes within a specified duration;
    当检测到在所述指定时长内所述图像没有发生变化,采集当前图像。The current image is acquired when it is detected that the image has not changed within the specified length of time.
  5. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    在所述终端相机功能启动后的取景过程中,检测用户针对所述终端的操作行为;In the framing process after the terminal camera function is activated, detecting an operation behavior of the user for the terminal;
    当检测到所述操作行为是点击拍照按键时,采集当前图像。When the operation behavior is detected to be a click on a photo button, the current image is acquired.
  6. 一种终端的图像采集装置,其特征在于,所述装置包括:An image collection device for a terminal, characterized in that the device comprises:
    第一检测模块,用于检测所述终端的姿态变化信息;a first detecting module, configured to detect posture change information of the terminal;
    第二检测模块,用于检测所述终端上指定按键的按下时长;a second detecting module, configured to detect a pressing duration of the designated button on the terminal;
    处理模块,用于若检测到的所述终端的姿态变化信息与指定姿态信息相匹配,且所述按下时长达到时长阈值,对所述终端执行解锁操作,以及在解锁操作之后启动所述终端的相机功能。 a processing module, configured to perform an unlocking operation on the terminal, and start the terminal after the unlocking operation, if the detected posture change information of the terminal matches the specified posture information, and the pressed duration reaches a duration threshold Camera features.
  7. 根据权利要求6所述的装置,其特征在于,所述姿态变化信息包括:姿态变化频率、姿态变化加速度和姿态变化距离中的至少一个。The apparatus according to claim 6, wherein the posture change information comprises at least one of a posture change frequency, a posture change acceleration, and a posture change distance.
  8. 根据权利要求7所述的装置,其特征在于,所述终端的姿态变化信息与指定姿态信息相匹配,包括以下情况中至少一个:The apparatus according to claim 7, wherein the posture change information of the terminal matches the specified posture information, and includes at least one of the following cases:
    所述终端的姿态变化频率大于或等于第一阈值;The posture change frequency of the terminal is greater than or equal to a first threshold;
    所述终端的姿态变化加速度大于或等于第二阈值;以及,The attitude change acceleration of the terminal is greater than or equal to a second threshold; and,
    所述终端的姿态变化距离大于或等于第三阈值。The posture change distance of the terminal is greater than or equal to a third threshold.
  9. 根据权利要求6所述的装置,其特征在于,所述装置还包括:The device according to claim 6, wherein the device further comprises:
    第三检测模块,用于在所述终端相机功能启动后的取景过程中,检测在指定时长内当前图像是否发生变化;a third detecting module, configured to detect, during a framing process after the terminal camera function is activated, whether the current image changes within a specified duration;
    第一采集模块,用于当检测到在所述指定时长内所述图像没有发生变化,采集当前图像。The first collecting module is configured to collect the current image when it is detected that the image does not change within the specified duration.
  10. 根据权利要求6所述的装置,其特征在于,所述装置还包括:The device according to claim 6, wherein the device further comprises:
    第四检测模块,用于在所述终端相机功能启动后的取景过程中,检测用户针对所述终端的操作行为;a fourth detecting module, configured to detect an operation behavior of the user for the terminal during a framing process after the terminal camera function is started;
    第二采集模块,用于当检测到所述操作行为是点击拍照按键时,采集当前图像。 The second collection module is configured to collect the current image when the operation behavior is detected by clicking the photo button.
PCT/CN2016/096811 2015-12-08 2016-08-26 Image collection method and device for terminal WO2017096959A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510900137.7A CN105872194A (en) 2015-12-08 2015-12-08 Image acquisition method and device for terminal
CN201510900137.7 2015-12-08

Publications (1)

Publication Number Publication Date
WO2017096959A1 true WO2017096959A1 (en) 2017-06-15

Family

ID=56624355

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/096811 WO2017096959A1 (en) 2015-12-08 2016-08-26 Image collection method and device for terminal

Country Status (2)

Country Link
CN (1) CN105872194A (en)
WO (1) WO2017096959A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111660282A (en) * 2020-06-08 2020-09-15 北京配天技术有限公司 Robot teaching method, device, system and storage medium
CN111812031A (en) * 2020-06-02 2020-10-23 维库(厦门)信息技术有限公司 Detection method based on Internet of things detection system
CN115412673A (en) * 2022-08-29 2022-11-29 中国联合网络通信集团有限公司 Camera control method, mobile terminal and medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872194A (en) * 2015-12-08 2016-08-17 乐视移动智能信息技术(北京)有限公司 Image acquisition method and device for terminal
CN106851118A (en) * 2017-04-05 2017-06-13 深圳天珑无线科技有限公司 Camera control method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104348976A (en) * 2014-10-23 2015-02-11 深圳市金立通信设备有限公司 Terminal
CN104539838A (en) * 2014-12-02 2015-04-22 厦门美图移动科技有限公司 Method and device for rapidly opening mobile phone camera for performing video recording
CN105094585A (en) * 2014-05-18 2015-11-25 刘永健 Mobile phone capable of performing rapid shooting on lock screen
CN105872194A (en) * 2015-12-08 2016-08-17 乐视移动智能信息技术(北京)有限公司 Image acquisition method and device for terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103955670B (en) * 2014-04-22 2018-04-20 广州宽度信息技术有限公司 A kind of method of Dynamic Recognition collection Z-code
CN104965703A (en) * 2015-06-17 2015-10-07 广东欧珀移动通信有限公司 Method and mobile terminal for controlling screen-on of mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094585A (en) * 2014-05-18 2015-11-25 刘永健 Mobile phone capable of performing rapid shooting on lock screen
CN104348976A (en) * 2014-10-23 2015-02-11 深圳市金立通信设备有限公司 Terminal
CN104539838A (en) * 2014-12-02 2015-04-22 厦门美图移动科技有限公司 Method and device for rapidly opening mobile phone camera for performing video recording
CN105872194A (en) * 2015-12-08 2016-08-17 乐视移动智能信息技术(北京)有限公司 Image acquisition method and device for terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111812031A (en) * 2020-06-02 2020-10-23 维库(厦门)信息技术有限公司 Detection method based on Internet of things detection system
CN111660282A (en) * 2020-06-08 2020-09-15 北京配天技术有限公司 Robot teaching method, device, system and storage medium
CN115412673A (en) * 2022-08-29 2022-11-29 中国联合网络通信集团有限公司 Camera control method, mobile terminal and medium
CN115412673B (en) * 2022-08-29 2023-06-20 中国联合网络通信集团有限公司 Camera control method, mobile terminal and medium

Also Published As

Publication number Publication date
CN105872194A (en) 2016-08-17

Similar Documents

Publication Publication Date Title
US11846877B2 (en) Method and terminal for acquiring panoramic image
WO2017096959A1 (en) Image collection method and device for terminal
CN107205088B (en) Photographing control method and related product
CN108197450B (en) Face recognition method, face recognition device, storage medium and electronic equipment
CN108038825B (en) Image processing method and mobile terminal
CN106488335A (en) Live-broadcast control method and device
WO2015180652A1 (en) Method for acquiring interactive information, terminal, server and system
CN109120877B (en) Video recording method, device, equipment and readable storage medium
WO2017036018A1 (en) Fingerprint identification method and apparatus, and mobile terminal
US9883018B2 (en) Apparatus for recording conversation and method thereof
WO2017166629A1 (en) Method for starting application program, and terminal device
WO2019042049A1 (en) Image processing method and mobile terminal
WO2022156598A1 (en) Bluetooth connection method and apparatus, and electronic device
WO2017063133A1 (en) Shooting method and mobile device
US10671713B2 (en) Method for controlling unlocking and related products
WO2018094911A1 (en) Multimedia file sharing method and terminal device
CN105120158B (en) The image pickup method and device of mobile terminal
CN107728877B (en) Application recommendation method and mobile terminal
CN107277364B (en) Shooting method, mobile terminal and computer readable storage medium
CN109120858A (en) A kind of image capturing method, device, equipment and storage medium
CN107105165A (en) The switching method and device of a kind of exposal model
WO2022111458A1 (en) Image capture method and apparatus, electronic device, and storage medium
WO2019061223A1 (en) Camera application control method and device
WO2017101502A1 (en) Terminal control method and apparatus
WO2017020671A1 (en) Video interaction method and apparatus, and video source device

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: 16872155

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: 16872155

Country of ref document: EP

Kind code of ref document: A1