[go: up one dir, main page]

CN108710468A - Image acquisition method and device, storage medium and electronic equipment - Google Patents

Image acquisition method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN108710468A
CN108710468A CN201810394912.XA CN201810394912A CN108710468A CN 108710468 A CN108710468 A CN 108710468A CN 201810394912 A CN201810394912 A CN 201810394912A CN 108710468 A CN108710468 A CN 108710468A
Authority
CN
China
Prior art keywords
camera
touch
electronic device
image
acceleration
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201810394912.XA
Other languages
Chinese (zh)
Inventor
张海平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810394912.XA priority Critical patent/CN108710468A/en
Publication of CN108710468A publication Critical patent/CN108710468A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Studio Devices (AREA)

Abstract

本申请实施例提供一种图像获取方法、装置、存储介质及电子设备,所述图像获取方法包括:获取电子设备的加速度;若所述加速度大于预设加速度阈值,则通过触控感应模组检测触控操作;根据所述触控操作开启摄像头并通过所述摄像头获取图像。所述图像获取方法中,由于触控感应模组设置在电子设备的边框上,用户只需要在电子设备的边框上进行触控操作即可开启摄像头进行抓拍,无需通过电子设备的显示屏对电子设备进行解锁、开启拍摄应用等操作,从而可以简化用户的操作,使得用户可以实现快速抓拍。

The embodiment of the present application provides an image acquisition method, device, storage medium and electronic device, the image acquisition method comprising: acquiring the acceleration of the electronic device; if the acceleration is greater than a preset acceleration threshold, detecting a touch operation through a touch sensing module; turning on a camera according to the touch operation and acquiring an image through the camera. In the image acquisition method, since the touch sensing module is disposed on the frame of the electronic device, the user only needs to perform a touch operation on the frame of the electronic device to turn on the camera for capturing, without having to unlock the electronic device through the display screen of the electronic device, turn on the shooting application, etc., thereby simplifying the user's operation and allowing the user to capture quickly.

Description

图像获取方法、装置、存储介质及电子设备Image acquisition method, device, storage medium and electronic equipment

技术领域technical field

本申请涉及电子技术领域,特别涉及一种图像获取方法、装置、存储介质及电子设备。The present application relates to the field of electronic technology, and in particular to an image acquisition method, device, storage medium and electronic equipment.

背景技术Background technique

随着电子技术的快速发展,诸如智能手机等电子设备的功能越来越丰富。其中,拍照功能已经成为智能手机等电子设备必不可少的功能。With the rapid development of electronic technology, electronic devices such as smart phones have more and more functions. Among them, the camera function has become an indispensable function of electronic devices such as smart phones.

在用户的日常生活中,经常会遇到一些精彩的瞬间。用户往往想要将遇到的精彩瞬间通过照片的方式记录下来。然而,当前的电子设备中,用户想要通过电子设备抓拍精彩瞬间时,需要进行一系列繁琐的操作。例如,首先需要解锁电子设备,然后需要开启拍摄应用,最后通过拍摄应用调用摄像头来拍照。繁琐的拍照操作不仅浪费用户的时间,往往还会导致无法抓拍到精彩镜头。In the daily life of users, some wonderful moments are often encountered. Users often want to record the wonderful moments they encounter through photos. However, in current electronic devices, when a user wants to capture a wonderful moment through the electronic device, a series of cumbersome operations need to be performed. For example, the electronic device first needs to be unlocked, then the shooting application needs to be started, and finally the camera is called to take pictures through the shooting application. The cumbersome camera operation not only wastes the user's time, but also often leads to failure to capture wonderful shots.

发明内容Contents of the invention

本申请实施例提供一种图像获取方法、装置、存储介质及电子设备,可以实现快速抓拍。Embodiments of the present application provide an image acquisition method, device, storage medium, and electronic equipment, which can realize quick snapshots.

本申请实施例提供一种图像获取方法,应用于电子设备,所述电子设备包括边框以及固定在所述边框上的摄像头,所述电子设备的边框上设置有触控感应模组,所述图像获取方法包括:An embodiment of the present application provides an image acquisition method, which is applied to an electronic device. The electronic device includes a frame and a camera fixed on the frame. A touch sensing module is arranged on the frame of the electronic device. The image Access methods include:

获取所述电子设备的加速度;Acquiring the acceleration of the electronic device;

若所述加速度大于预设加速度阈值,则通过所述触控感应模组检测触控操作;If the acceleration is greater than a preset acceleration threshold, the touch operation is detected by the touch sensing module;

根据所述触控操作开启所述摄像头并通过所述摄像头获取图像。The camera is turned on according to the touch operation and an image is acquired through the camera.

本申请实施例还提供一种图像获取装置,应用于电子设备,所述电子设备包括边框以及固定在所述边框上的摄像头,所述电子设备的边框上设置有触控感应模组,所述图像获取装置包括:The embodiment of the present application also provides an image acquisition device, which is applied to an electronic device, the electronic device includes a frame and a camera fixed on the frame, a touch sensing module is arranged on the frame of the electronic device, the Image acquisition devices include:

第一获取模块,用于获取所述电子设备的加速度;a first acquisition module, configured to acquire the acceleration of the electronic device;

检测模块,用于若所述加速度大于预设加速度阈值,则通过所述触控感应模组检测触控操作;A detection module, configured to detect a touch operation through the touch sensing module if the acceleration is greater than a preset acceleration threshold;

第二获取模块,用于根据所述触控操作开启所述摄像头并通过所述摄像头获取图像。The second acquiring module is configured to turn on the camera according to the touch operation and acquire images through the camera.

本申请实施例还提供一种存储介质,所述存储介质中存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述图像获取方法。An embodiment of the present application further provides a storage medium, wherein a computer program is stored in the storage medium, and when the computer program is run on a computer, the computer is made to execute the above image acquisition method.

本申请实施例还提供一种电子设备,所述电子设备包括存储电路和处理电路,所述存储电路中存储有计算机程序,所述处理电路通过调用所述存储电路中存储的所述计算机程序,用于执行上述图像获取方法。An embodiment of the present application also provides an electronic device, the electronic device includes a storage circuit and a processing circuit, the storage circuit stores a computer program, and the processing circuit invokes the computer program stored in the storage circuit, Used to execute the above image acquisition method.

本申请实施例还提供一种电子设备,包括加速度传感器、摄像头、处理电路以及壳体,所述加速度传感器、摄像头、处理电路分别设置在所述壳体内部,所述壳体的边框设置有触控感应模组,所述加速度传感器、摄像头、触控感应模组分别与所述处理电路连接,其中:The embodiment of the present application also provides an electronic device, which includes an acceleration sensor, a camera, a processing circuit, and a housing. The acceleration sensor, the camera, and the processing circuit are respectively arranged inside the housing. A control sensing module, the acceleration sensor, the camera, and the touch sensing module are respectively connected to the processing circuit, wherein:

所述加速度传感器用于获取所述电子设备的加速度;The acceleration sensor is used to obtain the acceleration of the electronic device;

所述触控感应模组用于在所述加速度大于预设加速度阈值时检测触控操作;The touch sensing module is used to detect a touch operation when the acceleration is greater than a preset acceleration threshold;

所述处理电路用于根据所述触控操作开启所述摄像头并通过所述摄像头获取图像。The processing circuit is used for turning on the camera according to the touch operation and acquiring images through the camera.

本申请实施例提供的图像获取方法,包括:获取电子设备的加速度;若所述加速度大于预设加速度阈值,则通过触控感应模组检测触控操作;根据所述触控操作开启摄像头并通过所述摄像头获取图像。所述图像获取方法中,由于触控感应模组设置在电子设备的边框上,用户只需要在电子设备的边框上进行触控操作即可开启摄像头进行抓拍,无需通过电子设备的显示屏对电子设备进行解锁、开启拍摄应用等操作,从而可以简化用户的操作,使得用户可以实现快速抓拍。The image acquisition method provided by the embodiment of the present application includes: acquiring the acceleration of the electronic device; if the acceleration is greater than a preset acceleration threshold, detecting a touch operation through a touch sensing module; turning on the camera according to the touch operation and passing The camera captures images. In the image acquisition method, since the touch sensing module is set on the frame of the electronic device, the user only needs to perform a touch operation on the frame of the electronic device to turn on the camera to take a snapshot, and there is no need to touch the electronic device through the display screen of the electronic device. Operations such as unlocking the device and opening the shooting application can simplify the user's operation and enable the user to quickly capture pictures.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍。显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application, and those skilled in the art can also obtain other drawings according to these drawings without creative efforts.

图1为本申请实施例提供的电子设备的结构示意图。FIG. 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.

图2为本申请实施例电子设备上设置的触控感应模组的电路示意图。FIG. 2 is a schematic circuit diagram of a touch sensing module provided on an electronic device according to an embodiment of the present application.

图3为本申请实施例电子设备上设置的触控感应模组的另一电路示意图。FIG. 3 is another schematic circuit diagram of a touch sensing module disposed on an electronic device according to an embodiment of the present application.

图4为本申请实施例提供的图像获取方法的第一种流程示意图。FIG. 4 is a schematic flowchart of the first image acquisition method provided by the embodiment of the present application.

图5为本申请实施例提供的图像获取方法的第二种流程示意图。FIG. 5 is a schematic flowchart of a second image acquisition method provided by the embodiment of the present application.

图6为本申请实施例提供的图像获取方法的第三种流程示意图。FIG. 6 is a schematic flowchart of a third image acquisition method provided by an embodiment of the present application.

图7为本申请实施例提供的图像获取方法的第四种流程示意图。FIG. 7 is a schematic flowchart of a fourth image acquisition method provided by the embodiment of the present application.

图8为本申请实施例提供的图像获取方法的第五种流程示意图。FIG. 8 is a schematic flowchart of a fifth image acquisition method provided by the embodiment of the present application.

图9为本申请实施例提供的图像获取方法的第六种流程示意图。FIG. 9 is a schematic flowchart of a sixth image acquisition method provided by the embodiment of the present application.

图10为本申请实施例提供的图像获取方法的第七种流程示意图。FIG. 10 is a schematic flowchart of a seventh image acquisition method provided by the embodiment of the present application.

图11为本申请实施例提供的图像获取方法的应用场景示意图。FIG. 11 is a schematic diagram of an application scenario of the image acquisition method provided by the embodiment of the present application.

图12为本申请实施例提供的图像获取装置的结构示意图。FIG. 12 is a schematic structural diagram of an image acquisition device provided by an embodiment of the present application.

图13为本申请实施例提供的图像获取装置的另一结构示意图。FIG. 13 is another schematic structural diagram of the image acquisition device provided by the embodiment of the present application.

图14为本申请实施例提供的图像获取装置的又一结构示意图。FIG. 14 is another schematic structural diagram of the image acquisition device provided by the embodiment of the present application.

图15为本申请实施例提供的电子设备的另一结构示意图。FIG. 15 is another schematic structural diagram of an electronic device provided by an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有付出创造性劳动前提下所获得的所有其它实施例,都属于本申请的保护范围。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Apparently, the described embodiments are only some of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts belong to the protection scope of this application.

本申请的说明书和权利要求书以及上述附图中的术语“第一”、“第二”、“第三”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应当理解,这样描述的对象在适当情况下可以互换。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含。例如,包含了一系列步骤的过程、方法或包含了一系列模块或单元的装置、电子设备、系统不必限于清楚地列出的那些步骤或模块或单元,还可以包括没有清楚地列出的步骤或模块或单元,也可以包括对于这些过程、方法、装置、电子设备或系统固有的其它步骤或模块或单元。The terms "first", "second", "third", etc. (if any) in the description and claims of the present application and the above drawings are used to distinguish similar objects and not necessarily to describe a specific order or sequentially. It should be understood that the items so described are interchangeable under appropriate circumstances. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, a method comprising a series of steps, or an apparatus comprising a series of modules or units, an electronic device, a system are not necessarily limited to those steps or modules or units clearly listed, and may also include steps not clearly listed or modules or units, may also include other steps or modules or units inherent to these processes, methods, devices, electronic equipment or systems.

参考图1,图1为本申请实施例提供的电子设备的结构示意图。所述电子设备可以是智能手机、平板电脑、游戏设备、AR(Augmented Reality,增强现实)设备、汽车、数据存储装置、音频播放装置、视频播放装置、笔记本、桌面计算设备、可穿戴设备诸如手表、眼镜、头盔、电子手链、电子项链、电子衣物等设备。电子设备100包括显示屏10、中框20、电路板30、电池40、壳体50以及摄像头60。Referring to FIG. 1 , FIG. 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. The electronic device may be a smart phone, a tablet computer, a game device, an AR (Augmented Reality, augmented reality) device, a car, a data storage device, an audio playback device, a video playback device, a notebook, a desktop computing device, a wearable device such as a watch , glasses, helmets, electronic bracelets, electronic necklaces, electronic clothing and other equipment. The electronic device 100 includes a display screen 10 , a middle frame 20 , a circuit board 30 , a battery 40 , a casing 50 and a camera 60 .

其中,显示屏10安装在壳体50上,以形成电子设备100的显示面。显示屏10作为电子设备100的前壳,与壳体50形成一收容空间,用于容纳电子设备100的其他电子元件或功能组件。同时,显示屏10形成电子设备100的显示面,用于显示图像、文本等信息。显示屏10可以为液晶显示屏(Liquid Crystal Display,LCD)或有机发光二极管显示屏(OrganicLight-Emitting Diode,OLED)等类型的显示屏。Wherein, the display screen 10 is installed on the casing 50 to form a display surface of the electronic device 100 . As the front shell of the electronic device 100 , the display screen 10 and the casing 50 form a storage space for containing other electronic components or functional components of the electronic device 100 . Meanwhile, the display screen 10 forms a display surface of the electronic device 100 for displaying information such as images and texts. The display screen 10 may be a liquid crystal display (Liquid Crystal Display, LCD) or an organic light-emitting diode display (Organic Light-Emitting Diode, OLED) or other type of display.

在一些实施例中,显示屏10上可以设置有玻璃盖板。其中,玻璃盖板可以覆盖显示屏10,以对显示屏10进行保护,防止显示屏10被刮伤或者被水损坏。In some embodiments, a glass cover may be disposed on the display screen 10 . Wherein, the glass cover can cover the display screen 10 to protect the display screen 10 and prevent the display screen 10 from being scratched or damaged by water.

在一些实施例中,如图1所示,显示屏10可以包括显示区域11以及非显示区域12。其中,显示区域11执行显示屏10的显示功能,用于显示图像、文本等信息。非显示区域12可以用于设置摄像头、受话器、显示屏触控电极等功能组件。在一些实施例中,非显示区域12可以包括位于显示区域11上部和下部的至少一个区域。In some embodiments, as shown in FIG. 1 , the display screen 10 may include a display area 11 and a non-display area 12 . Wherein, the display area 11 performs the display function of the display screen 10, and is used for displaying information such as images and texts. The non-display area 12 can be used to set functional components such as a camera, a receiver, and touch electrodes of a display screen. In some embodiments, the non-display area 12 may include at least one area located above and below the display area 11 .

在一些实施例中,显示屏10可以为全面屏。此时,显示屏10可以全屏显示信息,从而电子设备100具有较大的屏占比。显示屏10只包括显示区域11,而不包括非显示区域,或者对用户而言非显示区域的面积较小。此时,电子设备100中的摄像头、环境光传感器等功能组件可以隐藏在显示屏10下方,而电子设备100的指纹识别模组可以设置在电子设备100的背面。In some embodiments, the display screen 10 may be a full screen. At this time, the display screen 10 can display information in a full screen, so that the electronic device 100 has a larger screen ratio. The display screen 10 only includes a display area 11 and does not include a non-display area, or the area of the non-display area is relatively small for the user. At this time, functional components such as a camera and an ambient light sensor in the electronic device 100 can be hidden under the display screen 10 , while the fingerprint identification module of the electronic device 100 can be arranged on the back of the electronic device 100 .

中框20可以为薄板状或薄片状的结构,也可以为中空的框体结构。其中,中框20可以收容在上述显示屏10与壳体50形成的收容空间中。中框20用于为电子设备100中的电子元件或功能组件提供支撑作用,以将电子设备中的电子元件、功能组件安装到一起。例如,电子设备中的摄像头、受话器、电路板、电池等功能组件都可以安装到中框20上以进行固定。在一些实施例中,中框20的材质可以包括金属或塑胶。The middle frame 20 may be a thin plate or sheet structure, or a hollow frame structure. Wherein, the middle frame 20 can be accommodated in the accommodation space formed by the above-mentioned display screen 10 and the housing 50 . The middle frame 20 is used to provide support for the electronic components or functional components in the electronic device 100, so as to install the electronic components and functional components in the electronic device together. For example, functional components such as cameras, receivers, circuit boards, and batteries in electronic equipment can be installed on the middle frame 20 for fixing. In some embodiments, the material of the middle frame 20 may include metal or plastic.

电路板30安装在上述收容空间内部。例如,电路板30可以安装在所述中框20上,并随中框20一同收容在上述收容空间中。电路板30可以为电子设备100的主板。电路板30上设置有接地点,以实现电路板30的接地。电路板30上集成有处理电路。所述处理电路用于运行电子设备中的应用程序,以及对电子设备中存储的数据进行处理。所述处理电路可以与所述电路板30一起安装在壳体50内部。电路板30上还可以集成有马达、麦克风、扬声器、受话器、耳机接口、通用串行总线接口(USB接口)、摄像头、距离传感器、环境光传感器、加速度传感器、陀螺仪等功能组件中的一个、两个或多个。同时,显示屏10可以电连接至电路板30。The circuit board 30 is installed inside the above-mentioned receiving space. For example, the circuit board 30 can be installed on the middle frame 20 and accommodated together with the middle frame 20 in the above-mentioned receiving space. The circuit board 30 may be a main board of the electronic device 100 . A grounding point is provided on the circuit board 30 to realize the grounding of the circuit board 30 . A processing circuit is integrated on the circuit board 30 . The processing circuit is used to run the application program in the electronic device and process the data stored in the electronic device. The processing circuit may be mounted inside the housing 50 together with the circuit board 30 . The circuit board 30 can also be integrated with one of functional components such as a motor, a microphone, a loudspeaker, a receiver, an earphone interface, a universal serial bus interface (USB interface), a camera, a distance sensor, an ambient light sensor, an acceleration sensor, and a gyroscope. two or more. Meanwhile, the display screen 10 may be electrically connected to the circuit board 30 .

在一些实施例中,电路板30上设置有显示控制电路。所述显示控制电路向显示屏10输出电信号,以控制显示屏10显示信息。In some embodiments, a display control circuit is disposed on the circuit board 30 . The display control circuit outputs electrical signals to the display screen 10 to control the display screen 10 to display information.

电池40安装在上述收容空间内部。例如,电池40可以安装在所述中框20上,并随中框20一同收容在上述收容空间中。电池40可以电连接至所述电路板30,以实现电池40为电子设备100供电。其中,电路板30上可以设置有电源管理电路。所述电源管理电路用于将电池40提供的电压分配到电子设备100中的各个电子元件。The battery 40 is installed inside the above-mentioned storage space. For example, the battery 40 may be mounted on the middle frame 20 and accommodated together with the middle frame 20 in the above-mentioned receiving space. The battery 40 can be electrically connected to the circuit board 30 , so that the battery 40 can provide power for the electronic device 100 . Wherein, the circuit board 30 may be provided with a power management circuit. The power management circuit is used to distribute the voltage provided by the battery 40 to various electronic components in the electronic device 100 .

壳体50用于形成电子设备100的边框以及后盖。壳体50可以一体成型。在壳体50的成型过程中,可以在壳体50上形成后置摄像头孔、指纹识别模组安装孔等结构。The casing 50 is used to form a frame and a rear cover of the electronic device 100 . The casing 50 can be integrally formed. During the molding process of the housing 50 , structures such as a rear camera hole and a fingerprint recognition module installation hole may be formed on the housing 50 .

在本申请实施例中,所述壳体50的边框上设置有触控感应模组。所述触控感应模组与电子设备100中的处理电路连接。其中,所述触控感应模组可以包括压力传感器。所述压力传感器可以设置在壳体50的边框内,并在压力传感器的上方设置触控面板,以形成触控感应模组。In the embodiment of the present application, a touch sensing module is disposed on the frame of the casing 50 . The touch sensing module is connected to the processing circuit in the electronic device 100 . Wherein, the touch sensing module may include a pressure sensor. The pressure sensor can be arranged in the frame of the casing 50, and a touch panel is arranged above the pressure sensor to form a touch sensing module.

在一些实施例中,如图2所示,压力传感器可以包括由四个压敏电阻组成的电桥电路。其中,电桥电路由首尾相连且电阻值相同的压敏电阻R1、R2、R3、R4组成。当压力传感器没有受到按压力作用时,电桥电路中四个电阻的电阻值是相等的。当压力传感器受到按压力作用时,两个相向电阻的电阻值增加,另外两个电阻的电阻值将减小。从而,将电阻值的变化量转换为对应的电压值,以根据电压值的变化获知按压力的大小。In some embodiments, as shown in FIG. 2 , the pressure sensor may include a bridge circuit composed of four piezoresistors. Wherein, the bridge circuit is composed of piezoresistors R1, R2, R3 and R4 connected end to end and having the same resistance value. When the pressure sensor is not subjected to pressing force, the resistance values of the four resistors in the bridge circuit are equal. When the pressure sensor is subjected to pressing force, the resistance values of the two opposite resistors will increase, and the resistance values of the other two resistors will decrease. Therefore, the change amount of the resistance value is converted into a corresponding voltage value, so as to obtain the magnitude of the pressing force according to the change of the voltage value.

举例而言,如图3所示,当电阻R2和电阻R3的电阻值受到按压力均减小1%时,电阻R1和电阻R4的电阻值则增加1%,那么两个“中”点间的电压值将从0变为2%,进而,可将该电压值经过放大处理到适合ADC的电平,进而,由ADC将放大后的传感器输出电压转换为数字式,再交给电路板中的控制器或DSP处理,获知当前按压力的大小以及按压位置。For example, as shown in Figure 3, when the resistance values of the resistors R2 and R3 are both reduced by 1% by the pressing force, the resistance values of the resistors R1 and R4 are increased by 1%, then the distance between the two "middle" points The voltage value of the sensor will change from 0 to 2%, and then, the voltage value can be amplified to a level suitable for the ADC, and then the ADC will convert the amplified sensor output voltage into digital, and then deliver it to the circuit board. The controller or DSP process to know the current pressing force and pressing position.

继续参考图1,摄像头60可以集成在所述电路板30上,并与电路板30一起设置在壳体50内部。所述摄像头60可以固定在壳体50的边框上。摄像头60与电子设备100中的处理电路连接。摄像头60用于实现拍照功能,也即摄像头60可以用于获取图像。其中,所述摄像头60可以包括前置摄像头,也可以包括后置摄像头。所述摄像头60可以是单摄像头,也可以是双摄像头,或者还可以是多摄像头。本申请对摄像头60在电子设备100上的设置位置以及摄像头的数量不做限定。Continuing to refer to FIG. 1 , the camera 60 may be integrated on the circuit board 30 and arranged inside the casing 50 together with the circuit board 30 . The camera 60 can be fixed on the frame of the casing 50 . The camera 60 is connected to the processing circuit in the electronic device 100 . The camera 60 is used to realize the function of taking pictures, that is, the camera 60 can be used to acquire images. Wherein, the camera 60 may include a front camera or a rear camera. The camera 60 may be a single camera, a dual camera, or multiple cameras. The present application does not limit the installation position of the camera 60 on the electronic device 100 and the number of cameras.

本申请实施例提供一种图像获取方法,所述图像获取方法可以应用于上述电子设备100中。其中,所述电子设备100包括边框以及固定在所述边框上的摄像头。所述电子设备100的边框上设置有触控感应模组。如图4所示,所述图像获取方法,可以包括以下步骤:An embodiment of the present application provides an image acquisition method, and the image acquisition method may be applied to the above-mentioned electronic device 100 . Wherein, the electronic device 100 includes a frame and a camera fixed on the frame. A touch sensing module is arranged on the frame of the electronic device 100 . As shown in Figure 4, the image acquisition method may include the following steps:

110,获取电子设备的加速度。110. Acquire the acceleration of the electronic device.

其中,电子设备中设置有加速度传感器。所述加速度传感器可以集成在电子设备的电路板上,并与电路板上的处理电路连接。Wherein, the electronic device is provided with an acceleration sensor. The acceleration sensor can be integrated on the circuit board of the electronic device and connected with the processing circuit on the circuit board.

所述加速度传感器用于检测电子设备的加速度。其中,电子设备的加速度可以作为电子设备运动状态的参考。The acceleration sensor is used to detect the acceleration of the electronic device. Wherein, the acceleration of the electronic device can be used as a reference for the motion state of the electronic device.

电子设备可以通过所述加速度传感器获取自身的加速度,以通过获取到的加速度数据来判断自身的运动状态。The electronic device can acquire its own acceleration through the acceleration sensor, so as to judge its own motion state according to the acquired acceleration data.

需要说明的是,电子设备获取的加速度可以是瞬时加速度,也可以是一段时长内的加速度变化数据,例如100ms(毫秒)内的加速度变化数据,还可以是一段时长内的平均加速度,例如100ms内的平均加速度。It should be noted that the acceleration obtained by the electronic device can be instantaneous acceleration, or acceleration change data within a period of time, such as acceleration change data within 100ms (milliseconds), or average acceleration within a period of time, such as within 100ms average acceleration.

120,若所述加速度大于预设加速度阈值,则通过触控感应模组检测触控操作。120. If the acceleration is greater than a preset acceleration threshold, detect a touch operation through a touch sensing module.

通常,用户在发现精彩瞬间,想要通过电子设备进行抓拍时,电子设备往往未处于可以立即进行拍摄的姿态。例如,电子设备可能被置于桌上,可能被置于口袋中,也可能被置于背包中,也可能用户在行走的过程中手持电子设备。用户想要通过电子设备抓拍时,需要将电子设备调整为可以进行拍摄的姿态。此时,电子设备会发生一个急速运动的过程,也即用户将电子设备由不宜进行拍摄的姿态调整为可进行拍摄的姿态的过程。这一急速运动的过程中,电子设备的加速度会发生明显的改变。Usually, when a user finds a wonderful moment and wants to capture a picture through the electronic device, the electronic device is often not in a posture where the picture can be taken immediately. For example, the electronic device may be placed on a table, may be placed in a pocket, or may be placed in a backpack, or the user may hold the electronic device while walking. When the user wants to capture a picture through the electronic device, the electronic device needs to be adjusted to a posture capable of taking pictures. At this time, the electronic device will undergo a rapid movement process, that is, the user adjusts the electronic device from a posture that is not suitable for shooting to a posture that can be used for shooting. During this rapid movement, the acceleration of the electronic device will change significantly.

其中,电子设备中可以预先设置一个预设加速度阈值,例如3m/s2(米每二次方秒)。当电子设备的加速度大于所述预设加速度阈值时,可以认为电子设备发生了姿态的调整;当电子设备的加速度小于或等于所述预设加速度阈值时,可以认为电子设备未发生姿态的调整。Wherein, a preset acceleration threshold may be preset in the electronic device, for example, 3m/s 2 (meter per second squared). When the acceleration of the electronic device is greater than the preset acceleration threshold, it can be considered that the attitude of the electronic device has been adjusted; when the acceleration of the electronic device is less than or equal to the preset acceleration threshold, it can be considered that the attitude of the electronic device has not been adjusted.

电子设备获取到自身的加速度后,可以将获取到的加速度与所述预设加速度阈值进行比较。若所述加速度大于所述预设加速度阈值,则可认为电子设备发生了姿态的调整,此时电子设备通过触控感应模组检测触控操作。若所述加速度小于或等于所述预设加速度阈值,则电子设备可以不进行响应。After the electronic device acquires its own acceleration, it may compare the acquired acceleration with the preset acceleration threshold. If the acceleration is greater than the preset acceleration threshold, it can be considered that the attitude of the electronic device has been adjusted, and at this time, the electronic device detects the touch operation through the touch sensing module. If the acceleration is less than or equal to the preset acceleration threshold, the electronic device may not respond.

所述触控操作为用户通过电子设备边框的触控感应模组所进行的操作。例如,用户可以按压所述触控感应模组,用户也可以在所述触控感应模组上进行滑动操作。电子设备可以通过所述触控感应模组检测用户按压的按压力大小、按压位置以及持续按压时长。当用户在所述触控感应模组上进行滑动操作时,触控感应模组可以通过检测用户滑动操作中的多个按压点来检测用户滑动操作的滑动方向、滑动轨迹以及滑动速度。The touch operation is an operation performed by the user through the touch sensing module on the frame of the electronic device. For example, the user can press the touch sensing module, or the user can perform a sliding operation on the touch sensing module. The electronic device can detect the pressing force, the pressing position and the duration of the pressing by the user through the touch sensing module. When the user performs a sliding operation on the touch sensing module, the touch sensing module can detect the sliding direction, sliding track and sliding speed of the user's sliding operation by detecting multiple pressing points in the user's sliding operation.

130,根据所述触控操作开启摄像头并通过所述摄像头获取图像。130. Turn on a camera according to the touch operation and acquire an image through the camera.

电子设备通过触控感应模组检测到触控操作后,即可根据所述触控操作开启电子设备的摄像头并通过所述摄像头获取图像。电子设备可以将获取的图像保存为照片,也即通过所述摄像头拍摄照片,或者也可以将获取的图像保存为视频,也即通过所述摄像头进行录像。其中,录像也可以称为摄像。After the electronic device detects the touch operation through the touch sensing module, it can turn on the camera of the electronic device according to the touch operation and acquire images through the camera. The electronic device may save the obtained image as a photo, that is, take a photo through the camera, or may also save the obtained image as a video, that is, perform video recording through the camera. Wherein, video recording may also be referred to as video recording.

本申请实施例中,由于触控感应模组设置在电子设备的边框上,用户只需要在电子设备的边框上进行触控操作即可开启摄像头进行抓拍,无需通过电子设备的显示屏对电子设备进行解锁、开启拍摄应用等操作,从而可以简化用户的操作,使得用户可以实现快速抓拍。In the embodiment of the present application, since the touch sensing module is set on the frame of the electronic device, the user only needs to perform a touch operation on the frame of the electronic device to turn on the camera to take a snapshot, and there is no need to monitor the electronic device through the display screen of the electronic device. Perform operations such as unlocking and opening the shooting application, thereby simplifying the user's operations and enabling the user to quickly capture pictures.

在一些实施例中,如图5所示,步骤130、根据所述触控操作开启摄像头并通过所述摄像头获取图像,包括以下步骤:In some embodiments, as shown in FIG. 5, step 130, turning on the camera according to the touch operation and acquiring images through the camera includes the following steps:

131,若所述触控操作位于第一触控感应区,则开启前置摄像头并通过所述前置摄像头获取图像;若所述触控操作位于第二触控感应区,则开启后置摄像头并通过所述后置摄像头获取图像。131. If the touch operation is located in the first touch sensing area, turn on the front camera and acquire an image through the front camera; if the touch operation is in the second touch sensing area, turn on the rear camera And acquire images through said rear camera.

同时参考图11,其中,电子设备边框上设置的触控感应模组包括第一触控感应区和第二触控感应区。所述第一触控感应区与第二触控感应区彼此间隔设置。例如,所述第一触控感应区可以位于电子设备边框的一端,所述第二触控感应区可以位于电子设备边框的另一端。Also refer to FIG. 11 , wherein the touch sensing module disposed on the frame of the electronic device includes a first touch sensing area and a second touch sensing area. The first touch sensing area and the second touch sensing area are spaced apart from each other. For example, the first touch sensing area may be located at one end of the frame of the electronic device, and the second touch sensing area may be located at the other end of the frame of the electronic device.

电子设备通过触控感应模组检测到触控操作后,确定所述触控操作位于哪个触控感应区。也即,判断是第一触控感应区检测到的触控操作还是第二触控感应区检测到的触控操作。After the electronic device detects the touch operation through the touch sensing module, it determines which touch sensing area the touch operation is located in. That is, it is determined whether it is a touch operation detected by the first touch sensing area or a touch operation detected by the second touch sensing area.

同时,电子设备上的摄像头包括前置摄像头和后置摄像头。其中,前置摄像头设置在电子设备的显示屏所在的一面,前置摄像头的拍摄方向朝向显示屏所在的方向。后置摄像头设置在电子设备的后盖所在的一面,后置摄像头的拍摄方向朝向后盖所在的方向。Meanwhile, cameras on electronic devices include front cameras and rear cameras. Wherein, the front camera is arranged on the side where the display screen of the electronic device is located, and the shooting direction of the front camera faces the direction where the display screen is located. The rear camera is arranged on the side where the back cover of the electronic device is located, and the shooting direction of the rear camera faces the direction where the rear cover is located.

若所述触控操作位于所述第一触控感应区,则开启前置摄像头并通过所述前置摄像头获取图像。例如,用户可以通过所述前置摄像头获取用户自身的图像,也即进行自拍。If the touch operation is located in the first touch sensing area, the front camera is turned on and an image is acquired through the front camera. For example, the user may obtain an image of the user himself through the front camera, that is, take a selfie.

若所述触控操作位于所述第二触控感应区,则开启后置摄像头并通过所述后置摄像头获取图像。例如,用户可以通过所述后置摄像头获取较远处的景物图像。If the touch operation is located in the second touch sensing area, the rear camera is turned on and an image is acquired through the rear camera. For example, the user can acquire distant scene images through the rear camera.

在一些实施例中,如图6所示,步骤130、根据所述触控操作开启摄像头并通过所述摄像头获取图像,包括以下步骤:In some embodiments, as shown in FIG. 6, step 130, turning on the camera according to the touch operation and acquiring an image through the camera includes the following steps:

132,若所述触控操作位于第一触控感应区,则开启摄像头并通过所述摄像头获取当前图像;若所述触控操作位于第二触控感应区,则开启摄像头并通过所述摄像头持续获取图像。132. If the touch operation is in the first touch sensing area, turn on the camera and acquire the current image through the camera; if the touch operation is in the second touch sensing area, turn on the camera and use the camera Continuously acquire images.

同时参考图11,其中,电子设备边框上设置的触控感应模组包括第一触控感应区和第二触控感应区。所述第一触控感应区与第二触控感应区彼此间隔设置。例如,所述第一触控感应区可以位于电子设备边框的一端,所述第二触控感应区可以位于电子设备边框的另一端。Also refer to FIG. 11 , wherein the touch sensing module disposed on the frame of the electronic device includes a first touch sensing area and a second touch sensing area. The first touch sensing area and the second touch sensing area are spaced apart from each other. For example, the first touch sensing area may be located at one end of the frame of the electronic device, and the second touch sensing area may be located at the other end of the frame of the electronic device.

电子设备通过触控感应模组检测到触控操作后,确定所述触控操作位于哪个触控感应区。也即,判断是第一触控感应区检测到的触控操作还是第二触控感应区检测到的触控操作。After the electronic device detects the touch operation through the touch sensing module, it determines which touch sensing area the touch operation is located in. That is, it is determined whether it is a touch operation detected by the first touch sensing area or a touch operation detected by the second touch sensing area.

若所述触控操作位于所述第一触控感应区,则开启摄像头并通过所述摄像头获取当前图像。其中,当前图像即为此时通过所述摄像头获取到的图像。电子设备获取当前图像后将获取到的当前图像保存为照片或图片。If the touch operation is located in the first touch sensing area, turn on the camera and acquire the current image through the camera. Wherein, the current image is the image acquired through the camera at this time. After acquiring the current image, the electronic device saves the acquired current image as a photo or a picture.

若所述触控操作位于所述第二触控感应区,则开启摄像头并通过所述摄像头持续获取图像。其中,持续获取图像即为通过所述摄像头持续进行拍摄,也即进行录像。电子设备持续获取图像后将持续获取到的图像保存为视频。If the touch operation is located in the second touch sensing area, the camera is turned on and continuously acquires images through the camera. Wherein, continuous acquisition of images means continuous shooting by the camera, that is, video recording. After continuously acquiring images, the electronic device saves the continuously acquired images as a video.

在一些实施例中,如图7所示,步骤130、根据所述触控操作开启摄像头并通过所述摄像头获取图像,包括以下步骤:In some embodiments, as shown in FIG. 7, step 130, turning on the camera according to the touch operation and acquiring an image through the camera includes the following steps:

133,根据所述触控操作确定所述触控操作的操作类型,所述操作类型包括点击操作、滑动操作以及持续按压操作;133. Determine an operation type of the touch operation according to the touch operation, where the operation type includes a click operation, a slide operation, and a continuous press operation;

134,若所述操作类型为第一预设操作类型,则开启摄像头并通过所述摄像头获取当前图像;若所述操作类型为第二预设操作类型,则开启摄像头并通过所述摄像头持续获取图像。134. If the operation type is the first preset operation type, turn on the camera and obtain the current image through the camera; if the operation type is the second preset operation type, turn on the camera and continuously obtain the image through the camera image.

其中,电子设备获取到的触控操作可以包括点击操作(例如单击操作、双击操作等)、滑动操作以及持续按压操作。持续按压操作也称为长按操作。当用户持续按压触控感应模组的时长达到一定时长,例如1s(秒)时,即可认为用户的操作为持续按压操作。Wherein, the touch operation acquired by the electronic device may include a click operation (such as a single click operation, a double click operation, etc.), a slide operation, and a continuous press operation. A continuous pressing operation is also called a long pressing operation. When the user continues to press the touch sensing module for a certain period of time, such as 1 second (second), it can be considered that the user's operation is a continuous pressing operation.

电子设备中可以预先设置触发摄像头拍摄照片的第一预设操作类型。所述第一预设操作类型可以为点击操作、滑动操作、持续按压操作等任一类型的操作。A first preset operation type that triggers the camera to take pictures can be preset in the electronic device. The first preset operation type may be any type of operation such as click operation, slide operation, and continuous press operation.

电子设备中也可以预先设置触发摄像头进行录像的第二预设操作类型。所述第二预设操作类型也可以为点击操作、滑动操作、持续按压操作等任一类型的操作。并且,所述第二预设操作类型与所述第一预设操作类型是不同类型的触控操作。例如,所述第一预设操作类型为点击操作,所述第二预设操作类型为持续按压操作。A second preset operation type that triggers the camera to record video may also be preset in the electronic device. The second preset operation type may also be any type of operation such as click operation, slide operation, and continuous press operation. Moreover, the second preset operation type and the first preset operation type are touch operations of different types. For example, the first preset operation type is a click operation, and the second preset operation type is a continuous press operation.

若所述操作类型为所述第一预设操作类型,则开启摄像头并通过所述摄像头获取当前图像,也即拍摄照片。若所述操作类型为所述第二预设操作类型,则开启摄像头并通过所述摄像头持续获取图像,也即进行录像。If the operation type is the first preset operation type, the camera is turned on and the current image is acquired through the camera, that is, a photo is taken. If the operation type is the second preset operation type, turn on the camera and continuously acquire images through the camera, that is, perform video recording.

在一些实施例中,如图8所示,步骤130、根据所述触控操作开启摄像头并通过所述摄像头获取图像,包括以下步骤:In some embodiments, as shown in FIG. 8, step 130, turning on the camera according to the touch operation and acquiring an image through the camera includes the following steps:

135,获取所述触控操作的持续按压时长;135. Obtain the continuous pressing duration of the touch operation;

136,若所述持续按压时长小于预设时长,则开启摄像头并通过所述摄像头获取当前图像;若所述持续按压时长大于或等于所述预设时长,则开启摄像头并通过所述摄像头持续获取图像。136. If the duration of the continuous pressing is less than the preset duration, turn on the camera and obtain the current image through the camera; if the duration of the continuous pressing is greater than or equal to the preset duration, turn on the camera and continuously obtain the image through the camera image.

其中,触控感应模组检测到的所述触控操作包括持续按压操作。电子设备中可以预先设置一个预设时长。所述预设时长用于触发电子设备进行录像。例如,所述预设时长可以为3s(秒)、4s等。Wherein, the touch operation detected by the touch sensing module includes a continuous pressing operation. A preset duration can be preset in the electronic device. The preset duration is used to trigger the electronic device to record. For example, the preset duration may be 3s (seconds), 4s and so on.

电子设备获取到触控感应模组检测到的触控操作后,进一步获取所述触控操作的持续按压时长。若所述持续按压时长小于所述预设时长,则开启摄像头并通过所述摄像头获取当前图像,也即拍摄照片。若所述持续按压时长大于或等于所述预设时长,则开启摄像头并通过所述摄像头持续获取图像,也即进行录像。After the electronic device acquires the touch operation detected by the touch sensing module, it further acquires the duration of continuous pressing of the touch operation. If the duration of the continuous pressing is less than the preset duration, the camera is turned on and the current image is acquired through the camera, that is, a photo is taken. If the duration of the continuous pressing is greater than or equal to the preset duration, the camera is turned on and images are continuously acquired through the camera, that is, video recording is performed.

例如,所述预设时长为3s。所述触控操作的持续按压时长为3.5s,则所述持续按压时长大于所述预设时长。此时,电子设备开启摄像头并通过所述摄像头进行录像。For example, the preset duration is 3s. The continuous pressing duration of the touch operation is 3.5s, and the continuous pressing duration is longer than the preset duration. At this time, the electronic device turns on the camera and performs video recording through the camera.

在一些实施例中,如图9所示,步骤130、根据所述触控操作开启摄像头并通过所述摄像头获取图像之前,还包括以下步骤:In some embodiments, as shown in FIG. 9, step 130, before turning on the camera according to the touch operation and acquiring images through the camera, further includes the following steps:

140,判断所述电子设备所处环境的环境光强度是否发生改变;140. Determine whether the ambient light intensity of the environment where the electronic device is located changes;

130,若所述环境光强度发生改变,则根据所述触控操作开启所述摄像头并通过所述摄像头获取图像。130. If the ambient light intensity changes, turn on the camera according to the touch operation and acquire an image through the camera.

其中,电子设备中设置有环境光传感器。所述环境光传感器可以集成在电子设备的电路板上,并与电子设备中的处理电路连接。所述环境光传感器用于检测环境光强度。Wherein, the electronic device is provided with an ambient light sensor. The ambient light sensor can be integrated on the circuit board of the electronic device and connected with the processing circuit in the electronic device. The ambient light sensor is used to detect the intensity of ambient light.

电子设备通过触控感应模组检测到触控操作后,可以通过环境光传感器多次获取电子设备所处环境的环境光强度。例如,电子设备可以通过环境光传感器先获取一次环境光强度,间隔一段时长后再次获取环境光强度,例如间隔50ms(毫秒)再次获取环境光强度。After the electronic device detects a touch operation through the touch sensing module, the ambient light intensity of the environment in which the electronic device is located can be acquired multiple times through the ambient light sensor. For example, the electronic device may acquire the ambient light intensity once by using the ambient light sensor, and then acquire the ambient light intensity again after a period of time, for example, acquire the ambient light intensity again at an interval of 50 ms (milliseconds).

随后,电子设备将多次获取的环境光强度进行比较,即可判断出电子设备所处环境的环境光强度是否发生改变。例如,两次获取的环境光强度分别为200lux(勒克斯)、300lux。则可以判断为电子设备所处环境的环境光强度发生了改变。Subsequently, the electronic device compares the ambient light intensities obtained multiple times to determine whether the ambient light intensity of the environment where the electronic device is located changes. For example, the ambient light intensity obtained twice is 200lux (lux) and 300lux respectively. Then it can be determined that the ambient light intensity of the environment where the electronic device is located has changed.

若电子设备所处环境的环境光强度发生了改变,则可以认为电子设备所处的环境发生了改变,也即可以对电子设备发生了姿态改变的过程进行进一步确认。此时,电子设备开启摄像头并通过所述摄像头获取图像。若电子设备所处环境的环境光强度未发生改变,则电子设备可以不对检测到的触控操作进行响应。If the ambient light intensity of the environment where the electronic device is located changes, it can be considered that the environment where the electronic device is located has changed, that is, the process of changing the posture of the electronic device can be further confirmed. At this point, the electronic device turns on the camera and acquires images through the camera. If the ambient light intensity of the environment where the electronic device is located does not change, the electronic device may not respond to the detected touch operation.

在一些实施例中,如图10所示,步骤130、根据所述触控操作开启摄像头并通过所述摄像头获取图像之前,还包括以下步骤:In some embodiments, as shown in FIG. 10 , step 130, before turning on the camera according to the touch operation and acquiring images through the camera, further includes the following steps:

150,判断所述电子设备的显示屏是否处于熄屏状态;150. Determine whether the display screen of the electronic device is in an off state;

130,若所述电子设备的显示屏处于熄屏状态,则根据所述触控操作开启所述摄像头并通过所述摄像头获取图像。130. If the display screen of the electronic device is in a screen-off state, turn on the camera according to the touch operation and acquire an image through the camera.

其中,电子设备可以检测显示屏处于熄屏状态还是亮屏状态。电子设备处于熄屏状态时,说明电子设备未处于被用户使用的状态。因此,在显示屏处于熄屏状态的场景下,用户有更大的需求进行抓拍。Wherein, the electronic device can detect whether the display screen is in a screen-off state or in a screen-on state. When the screen of the electronic device is off, it means that the electronic device is not being used by the user. Therefore, in the scene where the display screen is off, users have a greater demand for snapshots.

若电子设备的显示屏处于熄屏状态,则根据所述触控操作开启所述摄像头并通过所述摄像头获取图像。若电子设备的显示屏未处于熄屏状态,则电子设备可以不对检测到的触控操作进行响应。If the display screen of the electronic device is in a screen-off state, the camera is turned on according to the touch operation and an image is acquired through the camera. If the display screen of the electronic device is not in a screen-off state, the electronic device may not respond to the detected touch operation.

在一些实施例中,继续参考图10,步骤130、根据所述触控操作开启摄像头并通过所述摄像头获取图像之后,还包括以下步骤:In some embodiments, continuing to refer to FIG. 10 , step 130, after turning on the camera according to the touch operation and acquiring an image through the camera, further includes the following steps:

161,控制所述电子设备的显示屏点亮;161. Control the display screen of the electronic device to light up;

162,在所述显示屏上显示获取的图像。162. Display the acquired image on the display screen.

其中,当电子设备的显示屏处于熄屏状态,电子设备通过摄像头获取图像后,可以控制电子设备的显示屏点亮,并将获取到的图像显示在所述显示屏上,以向用户展示获取到的图像,使用户可以得知抓拍的结果。用户可以对拍摄的照片或视频进行保存、删除等操作。Wherein, when the display screen of the electronic device is in the off-screen state, the electronic device can control the display screen of the electronic device to light up after obtaining an image through the camera, and display the obtained image on the display screen to show the user The captured image, so that the user can know the result of the capture. Users can save, delete and other operations on the photos or videos taken.

具体实施时,本申请不受所描述的各个步骤的执行顺序的限制,在不产生冲突的情况下,某些步骤还可以采用其它顺序进行或者同时进行。During specific implementation, the present application is not limited by the execution order of the described steps, and some steps may be performed in other orders or simultaneously in the case of no conflict.

由上可知,本申请实施例提供的图像获取方法,包括:获取电子设备的加速度;若所述加速度大于预设加速度阈值,则通过触控感应模组检测触控操作;根据所述触控操作开启摄像头并通过所述摄像头获取图像。所述图像获取方法中,由于触控感应模组设置在电子设备的边框上,用户只需要在电子设备的边框上进行触控操作即可开启摄像头进行抓拍,无需通过电子设备的显示屏对电子设备进行解锁、开启拍摄应用等操作,从而可以简化用户的操作,使得用户可以实现快速抓拍。It can be seen from the above that the image acquisition method provided by the embodiment of the present application includes: acquiring the acceleration of the electronic device; if the acceleration is greater than the preset acceleration threshold, detecting the touch operation through the touch sensing module; according to the touch operation Turn on the camera and acquire images through the camera. In the image acquisition method, since the touch sensing module is set on the frame of the electronic device, the user only needs to perform a touch operation on the frame of the electronic device to turn on the camera to take a snapshot, and there is no need to monitor the electronic device through the display screen of the electronic device. Operations such as unlocking the device and opening the shooting application can simplify the user's operation and enable the user to quickly capture pictures.

本申请实施例还提供一种图像获取装置,所述图像获取装置可以集成在上述电子设备100中。其中,所述电子设备100包括边框以及固定在所述边框上的摄像头。所述电子设备100的边框上设置有触控感应模组。The embodiment of the present application also provides an image acquisition device, and the image acquisition device may be integrated in the above-mentioned electronic device 100 . Wherein, the electronic device 100 includes a frame and a camera fixed on the frame. A touch sensing module is arranged on the frame of the electronic device 100 .

如图12所示,图像获取装置200可以包括:第一获取模块201、检测模块202、第二获取模块203。As shown in FIG. 12 , the image acquisition apparatus 200 may include: a first acquisition module 201 , a detection module 202 , and a second acquisition module 203 .

第一获取模块201,用于获取电子设备的加速度。The first obtaining module 201 is configured to obtain the acceleration of the electronic device.

其中,电子设备中设置有加速度传感器。所述加速度传感器可以集成在电子设备的电路板上,并与电路板上的处理电路连接。Wherein, the electronic device is provided with an acceleration sensor. The acceleration sensor can be integrated on the circuit board of the electronic device and connected with the processing circuit on the circuit board.

所述加速度传感器用于检测电子设备的加速度。其中,电子设备的加速度可以作为电子设备运动状态的参考。The acceleration sensor is used to detect the acceleration of the electronic device. Wherein, the acceleration of the electronic device can be used as a reference for the motion state of the electronic device.

第一获取模块201可以通过所述加速度传感器获取电子设备的加速度,以通过获取到的加速度数据来判断电子设备的运动状态。The first obtaining module 201 may obtain the acceleration of the electronic device through the acceleration sensor, so as to judge the motion state of the electronic device through the obtained acceleration data.

需要说明的是,第一获取模块201获取的加速度可以是瞬时加速度,也可以是一段时长内的加速度变化数据,例如100ms(毫秒)内的加速度变化数据,还可以是一段时长内的平均加速度,例如100ms内的平均加速度。It should be noted that the acceleration acquired by the first acquisition module 201 may be instantaneous acceleration, or acceleration change data within a period of time, such as acceleration change data within 100 ms (milliseconds), or the average acceleration within a period of time, For example, the average acceleration within 100ms.

检测模块202,用于若所述加速度大于预设加速度阈值,则通过触控感应模组检测触控操作。The detection module 202 is configured to detect a touch operation through a touch sensing module if the acceleration is greater than a preset acceleration threshold.

通常,用户在发现精彩瞬间,想要通过电子设备进行抓拍时,电子设备往往未处于可以立即进行拍摄的姿态。例如,电子设备可能被置于桌上,可能被置于口袋中,也可能被置于背包中,也可能用户在行走的过程中手持电子设备。用户想要通过电子设备抓拍时,需要将电子设备调整为可以进行拍摄的姿态。此时,电子设备会发生一个急速运动的过程,也即用户将电子设备由不宜进行拍摄的姿态调整为可进行拍摄的姿态的过程。这一急速运动的过程中,电子设备的加速度会发生明显的改变。Usually, when a user finds a wonderful moment and wants to capture a picture through the electronic device, the electronic device is often not in a posture where the picture can be taken immediately. For example, the electronic device may be placed on a table, may be placed in a pocket, or may be placed in a backpack, or the user may hold the electronic device while walking. When the user wants to capture a picture through the electronic device, the electronic device needs to be adjusted to a posture capable of taking pictures. At this time, the electronic device will undergo a rapid movement process, that is, the user adjusts the electronic device from a posture that is not suitable for shooting to a posture that can be used for shooting. During this rapid movement, the acceleration of the electronic device will change significantly.

其中,电子设备中可以预先设置一个预设加速度阈值,例如3m/s2(米每二次方秒)。当电子设备的加速度大于所述预设加速度阈值时,可以认为电子设备发生了姿态的调整;当电子设备的加速度小于或等于所述预设加速度阈值时,可以认为电子设备未发生姿态的调整。Wherein, a preset acceleration threshold may be preset in the electronic device, for example, 3m/s 2 (meter per second squared). When the acceleration of the electronic device is greater than the preset acceleration threshold, it can be considered that the attitude of the electronic device has been adjusted; when the acceleration of the electronic device is less than or equal to the preset acceleration threshold, it can be considered that the attitude of the electronic device has not been adjusted.

第一获取模块201获取到电子设备的加速度后,检测模块202可以将获取到的加速度与所述预设加速度阈值进行比较。若所述加速度大于所述预设加速度阈值,则可认为电子设备发生了姿态的调整,此时检测模块202通过触控感应模组检测触控操作。若所述加速度小于或等于所述预设加速度阈值,则可以不进行响应。After the first acquisition module 201 acquires the acceleration of the electronic device, the detection module 202 may compare the acquired acceleration with the preset acceleration threshold. If the acceleration is greater than the preset acceleration threshold, it can be considered that the attitude of the electronic device has been adjusted. At this time, the detection module 202 detects the touch operation through the touch sensing module. If the acceleration is less than or equal to the preset acceleration threshold, no response may be performed.

第二获取模块203,用于根据所述触控操作开启摄像头并通过所述摄像头获取图像。The second acquiring module 203 is configured to turn on the camera according to the touch operation and acquire images through the camera.

检测模块202通过触控感应模组检测到触控操作后,第二获取模块203即可根据所述触控操作开启电子设备的摄像头并通过所述摄像头获取图像。第二获取模块203可以将获取的图像保存为照片,也即通过所述摄像头拍摄照片,或者也可以将获取的图像保存为视频,也即通过所述摄像头进行录像。其中,录像也可以称为摄像。After the detection module 202 detects the touch operation through the touch sensing module, the second acquisition module 203 can turn on the camera of the electronic device according to the touch operation and acquire images through the camera. The second obtaining module 203 may save the obtained image as a photo, that is, take a photo through the camera, or may save the obtained image as a video, that is, record a video through the camera. Wherein, video recording may also be referred to as video recording.

本申请实施例中,由于触控感应模组设置在电子设备的边框上,用户只需要在电子设备的边框上进行触控操作即可开启摄像头进行抓拍,无需通过电子设备的显示屏对电子设备进行解锁、开启拍摄应用等操作,从而可以简化用户的操作,使得用户可以实现快速抓拍。In the embodiment of the present application, since the touch sensing module is set on the frame of the electronic device, the user only needs to perform a touch operation on the frame of the electronic device to turn on the camera to take a snapshot, and there is no need to monitor the electronic device through the display screen of the electronic device. Perform operations such as unlocking and opening the shooting application, thereby simplifying the user's operations and enabling the user to quickly capture pictures.

在一些实施例中,第二获取模块203用于执行以下步骤:In some embodiments, the second acquiring module 203 is configured to perform the following steps:

若所述触控操作位于第一触控感应区,则开启前置摄像头并通过所述前置摄像头获取图像;若所述触控操作位于第二触控感应区,则开启后置摄像头并通过所述后置摄像头获取图像。If the touch operation is located in the first touch sensing area, turn on the front camera and acquire an image through the front camera; if the touch operation is in the second touch sensing area, turn on the rear camera and pass The rear camera acquires images.

其中,电子设备边框上设置的触控感应模组包括第一触控感应区和第二触控感应区。所述第一触控感应区与第二触控感应区彼此间隔设置。例如,所述第一触控感应区可以位于电子设备边框的一端,所述第二触控感应区可以位于电子设备边框的另一端。Wherein, the touch sensing module provided on the frame of the electronic device includes a first touch sensing area and a second touch sensing area. The first touch sensing area and the second touch sensing area are spaced apart from each other. For example, the first touch sensing area may be located at one end of the frame of the electronic device, and the second touch sensing area may be located at the other end of the frame of the electronic device.

检测模块202通过触控感应模组检测到触控操作后,第二获取模块203确定所述触控操作位于哪个触控感应区。也即,判断是第一触控感应区检测到的触控操作还是第二触控感应区检测到的触控操作。After the detection module 202 detects the touch operation through the touch sensing module, the second acquisition module 203 determines which touch sensing area the touch operation is located in. That is, it is determined whether it is a touch operation detected by the first touch sensing area or a touch operation detected by the second touch sensing area.

同时,电子设备上的摄像头包括前置摄像头和后置摄像头。其中,前置摄像头设置在电子设备的显示屏所在的一面,前置摄像头的拍摄方向朝向显示屏所在的方向。后置摄像头设置在电子设备的后盖所在的一面,后置摄像头的拍摄方向朝向后盖所在的方向。Meanwhile, cameras on electronic devices include front cameras and rear cameras. Wherein, the front camera is arranged on the side where the display screen of the electronic device is located, and the shooting direction of the front camera faces the direction where the display screen is located. The rear camera is arranged on the side where the back cover of the electronic device is located, and the shooting direction of the rear camera faces the direction where the rear cover is located.

若所述触控操作位于所述第一触控感应区,则第二获取模块203开启前置摄像头并通过所述前置摄像头获取图像。例如,用户可以通过所述前置摄像头获取用户自身的图像,也即进行自拍。If the touch operation is located in the first touch sensing area, the second acquisition module 203 turns on the front camera and acquires an image through the front camera. For example, the user may obtain an image of the user himself through the front camera, that is, take a selfie.

若所述触控操作位于所述第二触控感应区,则第二获取模块203开启后置摄像头并通过所述后置摄像头获取图像。例如,用户可以通过所述后置摄像头获取较远处的景物图像。If the touch operation is located in the second touch sensing area, the second acquisition module 203 turns on the rear camera and acquires an image through the rear camera. For example, the user can acquire distant scene images through the rear camera.

在一些实施例中,第二获取模块203用于执行以下步骤:In some embodiments, the second acquiring module 203 is configured to perform the following steps:

若所述触控操作位于第一触控感应区,则开启摄像头并通过所述摄像头获取当前图像;若所述触控操作位于第二触控感应区,则开启摄像头并通过所述摄像头持续获取图像。If the touch operation is located in the first touch sensing area, turn on the camera and obtain the current image through the camera; if the touch operation is located in the second touch sensing area, turn on the camera and continuously obtain the image through the camera image.

其中,电子设备边框上设置的触控感应模组包括第一触控感应区和第二触控感应区。所述第一触控感应区与第二触控感应区彼此间隔设置。例如,所述第一触控感应区可以位于电子设备边框的一端,所述第二触控感应区可以位于电子设备边框的另一端。Wherein, the touch sensing module provided on the frame of the electronic device includes a first touch sensing area and a second touch sensing area. The first touch sensing area and the second touch sensing area are spaced apart from each other. For example, the first touch sensing area may be located at one end of the frame of the electronic device, and the second touch sensing area may be located at the other end of the frame of the electronic device.

检测模块202通过触控感应模组检测到触控操作后,第二获取模块203确定所述触控操作位于哪个触控感应区。也即,判断是第一触控感应区检测到的触控操作还是第二触控感应区检测到的触控操作。After the detection module 202 detects the touch operation through the touch sensing module, the second acquisition module 203 determines which touch sensing area the touch operation is located in. That is, it is determined whether it is a touch operation detected by the first touch sensing area or a touch operation detected by the second touch sensing area.

若所述触控操作位于所述第一触控感应区,则第二获取模块203开启摄像头并通过所述摄像头获取当前图像。其中,当前图像即为此时通过所述摄像头获取到的图像。第二获取模块203获取当前图像后将获取到的当前图像保存为照片或图片。If the touch operation is located in the first touch sensing area, the second acquiring module 203 turns on the camera and acquires the current image through the camera. Wherein, the current image is the image acquired through the camera at this time. After acquiring the current image, the second acquiring module 203 saves the acquired current image as a photo or picture.

若所述触控操作位于所述第二触控感应区,则第二获取模块203开启摄像头并通过所述摄像头持续获取图像。其中,持续获取图像即为通过所述摄像头持续进行拍摄,也即进行录像。第二获取模块203持续获取图像后将持续获取到的图像保存为视频。If the touch operation is located in the second touch sensing area, the second acquisition module 203 turns on the camera and continuously acquires images through the camera. Wherein, continuous acquisition of images means continuous shooting by the camera, that is, video recording. The second obtaining module 203 continuously obtains images and saves the continuously obtained images as a video.

在一些实施例中,第二获取模块203用于执行以下步骤:In some embodiments, the second acquiring module 203 is configured to perform the following steps:

根据所述触控操作确定所述触控操作的操作类型,所述操作类型包括点击操作、滑动操作以及持续按压操作;determining an operation type of the touch operation according to the touch operation, where the operation type includes a click operation, a slide operation, and a continuous press operation;

若所述操作类型为第一预设操作类型,则开启摄像头并通过所述摄像头获取当前图像;若所述操作类型为第二预设操作类型,则开启摄像头并通过所述摄像头持续获取图像。If the operation type is the first preset operation type, turn on the camera and acquire the current image through the camera; if the operation type is the second preset operation type, turn on the camera and continuously acquire images through the camera.

其中,检测模块202检测到的触控操作可以包括点击操作(例如单击操作、双击操作等)、滑动操作以及持续按压操作。持续按压操作也称为长按操作。当用户持续按压触控感应模组的时长达到一定时长,例如1s(秒)时,即可认为用户的操作为持续按压操作。Wherein, the touch operation detected by the detection module 202 may include a click operation (such as a single click operation, a double click operation, etc.), a slide operation, and a continuous press operation. A continuous pressing operation is also called a long pressing operation. When the user continues to press the touch sensing module for a certain period of time, such as 1 second (second), it can be considered that the user's operation is a continuous pressing operation.

电子设备中可以预先设置触发摄像头拍摄照片的第一预设操作类型。所述第一预设操作类型可以为点击操作、滑动操作、持续按压操作等任一类型的操作。A first preset operation type that triggers the camera to take pictures can be preset in the electronic device. The first preset operation type may be any type of operation such as click operation, slide operation, and continuous press operation.

电子设备中也可以预先设置触发摄像头进行录像的第二预设操作类型。所述第二预设操作类型也可以为点击操作、滑动操作、持续按压操作等任一类型的操作。并且,所述第二预设操作类型与所述第一预设操作类型是不同类型的触控操作。例如,所述第一预设操作类型为点击操作,所述第二预设操作类型为持续按压操作。A second preset operation type that triggers the camera to record video may also be preset in the electronic device. The second preset operation type may also be any type of operation such as click operation, slide operation, and continuous press operation. Moreover, the second preset operation type and the first preset operation type are touch operations of different types. For example, the first preset operation type is a click operation, and the second preset operation type is a continuous press operation.

若所述操作类型为所述第一预设操作类型,则第二获取模块203开启摄像头并通过所述摄像头获取当前图像,也即拍摄照片。若所述操作类型为所述第二预设操作类型,则第二获取模块203开启摄像头并通过所述摄像头持续获取图像,也即进行录像。If the operation type is the first preset operation type, the second obtaining module 203 turns on the camera and obtains the current image through the camera, that is, takes a photo. If the operation type is the second preset operation type, the second acquiring module 203 turns on the camera and continuously acquires images through the camera, that is, performs video recording.

在一些实施例中,第二获取模块203用于执行以下步骤:In some embodiments, the second acquiring module 203 is configured to perform the following steps:

获取所述触控操作的持续按压时长;Obtain the duration of the continuous pressing of the touch operation;

若所述持续按压时长小于预设时长,则开启摄像头并通过所述摄像头获取当前图像;若所述持续按压时长大于或等于所述预设时长,则开启摄像头并通过所述摄像头持续获取图像。If the duration of the continuous pressing is less than the preset duration, the camera is turned on and the current image is acquired through the camera; if the duration of the continuous pressing is greater than or equal to the preset duration, the camera is turned on and the image is continuously acquired through the camera.

其中,检测模块202检测到的所述触控操作包括持续按压操作。电子设备中可以预先设置一个预设时长。所述预设时长用于触发电子设备进行录像。例如,所述预设时长可以为3s(秒)、4s等。Wherein, the touch operation detected by the detection module 202 includes a continuous press operation. A preset duration can be preset in the electronic device. The preset duration is used to trigger the electronic device to record. For example, the preset duration may be 3s (seconds), 4s and so on.

检测模块202获取到触控感应模组检测到的触控操作后,第二获取模块203进一步获取所述触控操作的持续按压时长。若所述持续按压时长小于所述预设时长,则第二获取模块203开启摄像头并通过所述摄像头获取当前图像,也即拍摄照片。若所述持续按压时长大于或等于所述预设时长,则第二获取模块203开启摄像头并通过所述摄像头持续获取图像,也即进行录像。After the detection module 202 acquires the touch operation detected by the touch sensing module, the second acquisition module 203 further acquires the continuous pressing duration of the touch operation. If the duration of the continuous pressing is less than the preset duration, the second obtaining module 203 turns on the camera and obtains the current image through the camera, that is, takes a photo. If the duration of the continuous pressing is greater than or equal to the preset duration, the second acquisition module 203 turns on the camera and continuously acquires images through the camera, that is, performs video recording.

例如,所述预设时长为3s。所述触控操作的持续按压时长为3.5s,则所述持续按压时长大于所述预设时长。此时,第二获取模块203开启摄像头并通过所述摄像头进行录像。For example, the preset duration is 3s. The continuous pressing duration of the touch operation is 3.5s, and the continuous pressing duration is longer than the preset duration. At this time, the second acquisition module 203 turns on the camera and performs video recording through the camera.

在一些实施例中,如图13所示,图像获取装置200还包括第一判断模块204。In some embodiments, as shown in FIG. 13 , the image acquisition device 200 further includes a first judging module 204 .

第一判断模块204,用于判断所述电子设备所处环境的环境光强度是否发生改变;The first judging module 204 is configured to judge whether the ambient light intensity of the environment where the electronic device is located changes;

第二获取模块203,用于若所述环境光强度发生改变,则根据所述触控操作开启所述摄像头并通过所述摄像头获取图像。The second acquiring module 203 is configured to turn on the camera according to the touch operation and acquire an image through the camera if the ambient light intensity changes.

其中,电子设备中设置有环境光传感器。所述环境光传感器可以集成在电子设备的电路板上,并与电子设备中的处理电路连接。所述环境光传感器用于检测环境光强度。Wherein, the electronic device is provided with an ambient light sensor. The ambient light sensor can be integrated on the circuit board of the electronic device and connected with the processing circuit in the electronic device. The ambient light sensor is used to detect the intensity of ambient light.

检测模块202通过触控感应模组检测到触控操作后,第一判断模块204可以通过环境光传感器多次获取电子设备所处环境的环境光强度。例如,第一判断模块204可以通过环境光传感器先获取一次环境光强度,间隔一段时长后再次获取环境光强度,例如间隔50ms(毫秒)再次获取环境光强度。After the detection module 202 detects a touch operation through the touch sensing module, the first judgment module 204 may obtain the ambient light intensity of the environment where the electronic device is located multiple times through the ambient light sensor. For example, the first judging module 204 may obtain the ambient light intensity once by using the ambient light sensor, and obtain the ambient light intensity again after a certain period of time, for example, obtain the ambient light intensity again at an interval of 50 ms (milliseconds).

随后,第一判断模块204将多次获取的环境光强度进行比较,即可判断出电子设备所处环境的环境光强度是否发生改变。例如,两次获取的环境光强度分别为200lux(勒克斯)、300lux。则可以判断为电子设备所处环境的环境光强度发生了改变。Subsequently, the first judging module 204 compares the acquired ambient light intensities multiple times to judge whether the ambient light intensity of the environment where the electronic device is located changes. For example, the ambient light intensity obtained twice is 200lux (lux) and 300lux respectively. Then it can be determined that the ambient light intensity of the environment where the electronic device is located has changed.

若电子设备所处环境的环境光强度发生了改变,则可以认为电子设备所处的环境发生了改变,也即可以对电子设备发生了姿态改变的过程进行进一步确认。此时,第二获取模块203开启摄像头并通过所述摄像头获取图像。若电子设备所处环境的环境光强度未发生改变,则可以不对检测到的触控操作进行响应。If the ambient light intensity of the environment where the electronic device is located changes, it can be considered that the environment where the electronic device is located has changed, that is, the process of changing the posture of the electronic device can be further confirmed. At this time, the second acquisition module 203 turns on the camera and acquires an image through the camera. If the ambient light intensity of the environment where the electronic device is located does not change, it may not respond to the detected touch operation.

在一些实施例中,如图14所示,图像获取装置200还包括第二判断模块205。In some embodiments, as shown in FIG. 14 , the image acquisition device 200 further includes a second judging module 205 .

第二判断模块205,用于判断所述电子设备的显示屏是否处于熄屏状态;The second judging module 205 is configured to judge whether the display screen of the electronic device is in a screen-off state;

第二获取模块203,用于若所述电子设备的显示屏处于熄屏状态,则根据所述触控操作开启所述摄像头并通过所述摄像头获取图像。The second acquiring module 203 is configured to turn on the camera according to the touch operation and acquire images through the camera if the display screen of the electronic device is in an off state.

其中,第二判断模块205可以检测显示屏处于熄屏状态还是亮屏状态。电子设备处于熄屏状态时,说明电子设备未处于被用户使用的状态。因此,在显示屏处于熄屏状态的场景下,用户有更大的需求进行抓拍。Wherein, the second judging module 205 can detect whether the display screen is in the off state or the on state. When the screen of the electronic device is off, it means that the electronic device is not being used by the user. Therefore, in the scene where the display screen is off, users have a greater demand for snapshots.

若电子设备的显示屏处于熄屏状态,则第二获取模块203根据所述触控操作开启所述摄像头并通过所述摄像头获取图像。若电子设备的显示屏未处于熄屏状态,则可以不对检测到的触控操作进行响应。If the display screen of the electronic device is in an off state, the second acquiring module 203 turns on the camera according to the touch operation and acquires an image through the camera. If the display screen of the electronic device is not in a screen-off state, it may not respond to the detected touch operation.

在一些实施例中,继续参考图14,图像获取装置200还包括控制模块206。所述控制模块206用于执行以下步骤:In some embodiments, continuing to refer to FIG. 14 , the image acquisition device 200 further includes a control module 206 . The control module 206 is used to perform the following steps:

控制所述电子设备的显示屏点亮;Controlling the display screen of the electronic device to light up;

在所述显示屏上显示获取的图像。The acquired image is displayed on the display screen.

其中,当电子设备的显示屏处于熄屏状态,第二获取模块203通过摄像头获取图像后,控制模块206可以控制电子设备的显示屏点亮,并将第二获取模块203获取到的图像显示在所述显示屏上,以向用户展示获取到的图像,使用户可以得知抓拍的结果。用户可以对拍摄的照片或视频进行保存、删除等操作。Wherein, when the display screen of the electronic device is in the off-screen state, after the second obtaining module 203 obtains an image through the camera, the control module 206 can control the display screen of the electronic device to light up, and display the image obtained by the second obtaining module 203 on the On the display screen, the obtained image is displayed to the user, so that the user can know the result of the snapping. Users can save, delete and other operations on the photos or videos taken.

具体实施时,以上各个模块可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现。During specific implementation, each of the above modules may be implemented as an independent entity, or may be combined arbitrarily to be implemented as the same or several entities.

由上可知,本申请实施例提供的图像获取装置200,通过第一获取模块201获取电子设备的加速度;检测模块202在所述加速度大于预设加速度阈值时,通过触控感应模组检测触控操作;第二获取模块203根据所述触控操作开启摄像头并通过所述摄像头获取图像。所述图像获取装置中,由于触控感应模组设置在电子设备的边框上,用户只需要在电子设备的边框上进行触控操作即可开启摄像头进行抓拍,无需通过电子设备的显示屏对电子设备进行解锁、开启拍摄应用等操作,从而可以简化用户的操作,使得用户可以实现快速抓拍。It can be seen from the above that the image acquisition device 200 provided by the embodiment of the present application acquires the acceleration of the electronic device through the first acquisition module 201; Operation; the second acquisition module 203 turns on the camera according to the touch operation and acquires an image through the camera. In the image acquisition device, since the touch sensing module is arranged on the frame of the electronic device, the user only needs to perform a touch operation on the frame of the electronic device to turn on the camera to take a snapshot, and there is no need to touch the electronic device through the display screen of the electronic device. Operations such as unlocking the device and opening the shooting application can simplify the user's operation and enable the user to quickly capture pictures.

本申请实施例还提供一种电子设备。所述电子设备可以是智能手机、平板电脑、游戏设备、AR(Augmented Reality,增强现实)设备、汽车、数据存储装置、音频播放装置、视频播放装置、笔记本、桌面计算设备、可穿戴设备诸如手表、眼镜、头盔、电子手链、电子项链、电子衣物等设备。The embodiment of the present application also provides an electronic device. The electronic device may be a smart phone, a tablet computer, a game device, an AR (Augmented Reality, augmented reality) device, a car, a data storage device, an audio playback device, a video playback device, a notebook, a desktop computing device, a wearable device such as a watch , glasses, helmets, electronic bracelets, electronic necklaces, electronic clothing and other equipment.

如图15所示,电子设备300可以包括控制电路。其中,所述控制电路可以包括存储电路310和处理电路320。存储电路310与处理电路320连接。As shown in FIG. 15, the electronic device 300 may include a control circuit. Wherein, the control circuit may include a storage circuit 310 and a processing circuit 320 . The storage circuit 310 is connected to the processing circuit 320 .

存储电路310可以包括存储器,例如硬盘驱动存储器、非易失性存储器(例如闪存或用于形成固态驱动器的其它电子可编程只读存储器等)、易失性存储器(例如静态或动态随机存取存储器等)等,本申请实施例对此不作限定。Storage circuitry 310 may include memory such as hard disk drive memory, non-volatile memory such as flash memory or other electronically programmable read-only memory used to form solid-state drives, etc., volatile memory such as static or dynamic random access memory etc.), etc., which are not limited in this embodiment of the present application.

存储电路310可用于存储计算机程序和数据。存储电路310中存储的计算机程序中包含有可在处理电路320中执行的指令。所述计算机程序可以组成各种功能模块。处理电路320通过调用存储在存储电路310中的计算机程序和数据,从而执行各种功能应用以及数据处理。Storage circuitry 310 may be used to store computer programs and data. The computer program stored in the storage circuit 310 includes instructions executable in the processing circuit 320 . The computer program can be composed of various functional modules. The processing circuit 320 executes various functional applications and data processing by calling computer programs and data stored in the storage circuit 310 .

处理电路320可以用于控制电子设备300的运转。所述处理电路320可以基于一个或多个微处理器、微控制器、数字信号处理器、基带处理器、功率管理单元、音频编解码器芯片、专用集成电路、显示驱动器集成电路等来实现。The processing circuit 320 may be used to control the operation of the electronic device 300 . The processing circuit 320 may be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.

处理电路320可用于运行电子设备中的应用程序,例如互联网浏览应用程序、互联网协议语音(Voice over Internet Protocol,VOIP)电话呼叫应用程序、电子邮件应用程序、媒体播放应用程序、操作系统功能等。这些应用程序可以用于执行一些控制操作,例如基于照相机的图像采集、基于环境光传感器的环境光测量、基于接近传感器的接近传感器测量、基于诸如发光二极管的状态指示灯等状态指示器实现的信息显示功能、基于触摸传感器的触摸事件检测、与在多个(例如分层的)显示器上显示信息相关联的功能、与执行无线通信功能相关联的操作、与收集和产生音频信号相关联的操作、与收集和处理按钮按压事件数据相关联的控制操作、以及电子设备中的其它功能等,本申请实施例对此不作限制。The processing circuit 320 can be used to run applications in the electronic device, such as Internet browsing applications, Voice over Internet Protocol (Voice over Internet Protocol, VOIP) phone calling applications, email applications, media player applications, operating system functions, and the like. These applications can be used to perform control operations such as camera-based image acquisition, ambient light measurement by ambient light sensor, proximity sensor-based measurement by proximity sensor, information based on status indicators such as status indicators such as LEDs Display functions, touch sensor based touch event detection, functions associated with displaying information on multiple (e.g. layered) displays, operations associated with performing wireless communication functions, operations associated with collecting and generating audio signals , control operations associated with collecting and processing button press event data, and other functions in the electronic device, etc., which are not limited in this embodiment of the present application.

本申请实施例中,电子设备300中的处理电路320可以按照如下的步骤调用存储电路310中存储的计算机程序,将一个或一个以上的计算机程序的进程对应的指令加载到存储电路310中,并由处理电路320来运行存储在存储电路310中的计算机程序,从而实现以下功能:In the embodiment of the present application, the processing circuit 320 in the electronic device 300 can call the computer program stored in the storage circuit 310 according to the following steps, load one or more instructions corresponding to the process of the computer program into the storage circuit 310, and The computer program stored in the storage circuit 310 is executed by the processing circuit 320, thereby realizing the following functions:

获取电子设备的加速度;Obtain the acceleration of the electronic device;

若所述加速度大于预设加速度阈值,则通过触控感应模组检测触控操作;If the acceleration is greater than the preset acceleration threshold, the touch operation is detected by the touch sensing module;

根据所述触控操作开启摄像头并通过所述摄像头获取图像。The camera is turned on according to the touch operation and an image is acquired through the camera.

在一些实施例中,所述触控感应模组包括间隔设置的第一触控感应区和第二触控感应区,所述摄像头包括前置摄像头和后置摄像头,根据所述触控操作开启摄像头并通过所述摄像头获取图像时,处理电路320执行以下步骤:In some embodiments, the touch sensing module includes a first touch sensing area and a second touch sensing area arranged at intervals, and the camera includes a front camera and a rear camera, which are turned on according to the touch operation When the camera is used to acquire images through the camera, the processing circuit 320 performs the following steps:

若所述触控操作位于所述第一触控感应区,则开启所述前置摄像头并通过所述前置摄像头获取图像;If the touch operation is located in the first touch sensing area, turn on the front camera and acquire an image through the front camera;

若所述触控操作位于所述第二触控感应区,则开启所述后置摄像头并通过所述后置摄像头获取图像。If the touch operation is located in the second touch sensing area, the rear camera is turned on and an image is acquired through the rear camera.

在一些实施例中,所述触控感应模组包括间隔设置的第一触控感应区和第二触控感应区,根据所述触控操作开启摄像头并通过所述摄像头获取图像时,处理电路320执行以下步骤:In some embodiments, the touch sensing module includes a first touch sensing area and a second touch sensing area arranged at intervals. When the camera is turned on according to the touch operation and an image is acquired through the camera, the processing circuit 320 performs the following steps:

若所述触控操作位于所述第一触控感应区,则开启所述摄像头并通过所述摄像头获取当前图像;If the touch operation is located in the first touch sensing area, turn on the camera and acquire the current image through the camera;

若所述触控操作位于所述第二触控感应区,则开启所述摄像头并通过所述摄像头持续获取图像。If the touch operation is located in the second touch sensing area, the camera is turned on and continuously acquires images through the camera.

在一些实施例中,根据所述触控操作开启摄像头并通过所述摄像头获取图像时,处理电路320执行以下步骤:In some embodiments, when the camera is turned on according to the touch operation and an image is acquired through the camera, the processing circuit 320 performs the following steps:

根据所述触控操作确定所述触控操作的操作类型,所述操作类型包括点击操作、滑动操作以及持续按压操作;determining an operation type of the touch operation according to the touch operation, where the operation type includes a click operation, a slide operation, and a continuous press operation;

若所述操作类型为第一预设操作类型,则开启所述摄像头并通过所述摄像头获取当前图像;If the operation type is the first preset operation type, turn on the camera and acquire the current image through the camera;

若所述操作类型为第二预设操作类型,则开启所述摄像头并通过所述摄像头持续获取图像。If the operation type is the second preset operation type, the camera is turned on and images are continuously acquired through the camera.

在一些实施例中,所述触控操作包括持续按压操作,根据所述触控操作开启摄像头并通过所述摄像头获取图像时,处理电路320执行以下步骤:In some embodiments, the touch operation includes a continuous press operation, and when the camera is turned on according to the touch operation and an image is acquired through the camera, the processing circuit 320 performs the following steps:

获取所述触控操作的持续按压时长;Obtain the duration of the continuous pressing of the touch operation;

若所述持续按压时长小于预设时长,则开启所述摄像头并通过所述摄像头获取当前图像;If the duration of the continuous pressing is less than the preset duration, the camera is turned on and the current image is acquired through the camera;

若所述持续按压时长大于或等于所述预设时长,则开启所述摄像头并通过所述摄像头持续获取图像。If the duration of the continuous pressing is greater than or equal to the preset duration, the camera is turned on and images are acquired continuously through the camera.

在一些实施例中,根据所述触控操作开启摄像头并通过所述摄像头获取图像之前,处理电路320还执行以下步骤:In some embodiments, before turning on the camera according to the touch operation and acquiring images through the camera, the processing circuit 320 further performs the following steps:

判断所述电子设备所处环境的环境光强度是否发生改变;Judging whether the ambient light intensity of the environment where the electronic device is located changes;

若所述环境光强度发生改变,则根据所述触控操作开启所述摄像头并通过所述摄像头获取图像。If the ambient light intensity changes, the camera is turned on according to the touch operation and an image is acquired through the camera.

在一些实施例中,根据所述触控操作开启摄像头并通过所述摄像头获取图像之前,处理电路320还执行以下步骤:In some embodiments, before turning on the camera according to the touch operation and acquiring images through the camera, the processing circuit 320 further performs the following steps:

判断所述电子设备的显示屏是否处于熄屏状态;judging whether the display screen of the electronic device is in an off state;

若所述电子设备的显示屏处于熄屏状态,则根据所述触控操作开启所述摄像头并通过所述摄像头获取图像。If the display screen of the electronic device is in a screen-off state, the camera is turned on according to the touch operation and an image is acquired through the camera.

在一些实施例中,根据所述触控操作开启摄像头并通过所述摄像头获取图像之后,处理电路320还执行以下步骤:In some embodiments, after the camera is turned on according to the touch operation and images are acquired through the camera, the processing circuit 320 further performs the following steps:

控制所述电子设备的显示屏点亮;Controlling the display screen of the electronic device to light up;

在所述显示屏上显示获取的图像。The acquired image is displayed on the display screen.

电子设备300还可以包括输入输出电路330。其中,输入输出电路330与处理电路320连接。输入输出电路330可用于使电子设备300实现数据的输入和输出,即允许电子设备从外部设备接收数据和允许电子设备将数据输出至外部设备。用户可以通过输入输出电路输入命令来控制电子设备的操作,可以使用输入输出电路的输出数据以实现接收电子设备的状态信息和其它输出信息。The electronic device 300 may also include an input-output circuit 330 . Among them, the input-output circuit 330 is connected to the processing circuit 320 . The input and output circuit 330 can be used to enable the electronic device 300 to realize data input and output, that is, allow the electronic device to receive data from external devices and allow the electronic device to output data to external devices. The user can input commands through the input-output circuit to control the operation of the electronic device, and can use the output data of the input-output circuit to receive status information and other output information of the electronic device.

输入输出电路330可以包括一个或多个传感器331。传感器331可以包括环境光传感器、基于光或电容或声波的接近传感器、触摸传感器(例如,基于光的触摸传感器和/或电容式触摸传感器,其中,触摸传感器可以是触控显示屏的一部分,也可以作为一个触摸传感器结构独立使用)、加速度传感器,基于光信号的图像传感器,例如摄像头,以及其它传感器等。其中,输入输出电路330中的加速度传感器、摄像头分别与处理电路320连接。Input-output circuitry 330 may include one or more sensors 331 . The sensor 331 may include an ambient light sensor, a proximity sensor based on light or capacitance or sound waves, a touch sensor (for example, a light-based touch sensor and/or a capacitive touch sensor, wherein the touch sensor may be part of a touchscreen display, or It can be used independently as a touch sensor structure), acceleration sensor, image sensor based on light signal, such as camera, and other sensors. Wherein, the acceleration sensor and the camera in the input-output circuit 330 are respectively connected to the processing circuit 320 .

输入输出电路330可以包括一个或多个显示器332。显示器332可以包括液晶显示器、有机发光二极管显示器、电子墨水显示器、等离子显示器、使用其它显示技术的显示器中一种或者几种的组合。显示器332可以包括触摸传感器阵列(即,显示器332可以是触控显示屏)。触摸传感器可以是由透明的触摸传感器电极(例如氧化铟锡(ITO)电极)阵列形成的电容式触摸传感器,或者可以是使用其它触摸技术形成的触摸传感器,例如音波触控、压敏触摸、电阻触摸、光学触摸等,本申请实施例对此不作限定。Input-output circuitry 330 may include one or more displays 332 . The display 332 may include one or a combination of liquid crystal displays, organic light emitting diode displays, electronic ink displays, plasma displays, and displays using other display technologies. Display 332 may include a touch sensor array (ie, display 332 may be a touchscreen display). The touch sensor may be a capacitive touch sensor formed from an array of transparent touch sensor electrodes such as indium tin oxide (ITO) electrodes, or may be a touch sensor formed using other touch technologies such as acoustic touch, pressure sensitive touch, resistive touch Touch, optical touch, etc. are not limited in this embodiment of the present application.

输入输出电路330可以包括音频电路333。音频电路333可以用于为电子设备提供音频输入和/或音频输出功能。音频电路333可以包括受话器(听筒)扬声器、麦克风、蜂鸣器、音调发生器以及其它用于产生和/或检测声音的组件。The input-output circuit 330 may include an audio circuit 333 . The audio circuit 333 may be used to provide audio input and/or audio output functions for the electronic device. Audio circuitry 333 may include a receiver (earpiece) speaker, microphone, buzzer, tone generator, and other components for generating and/or detecting sound.

输入输出电路330可以包括通信电路334。通信电路334可以用于为电子设备提供与外部设备通信的能力。通信电路334可以包括模拟信号输入输出电路、数字信号输入输出电路、基于射频信号和/或光信号的无线通信电路等。通信电路中的无线通信电路可以包括射频收发电路、功率放大电路、低噪声放大电路、开关组件、滤波电路和天线等。举例来说,通信电路中的无线通信电路可以包括通过发射和/或接收近场耦合电磁信号来支持近场通信(Near Field Communication,NFC)的电路。例如,通信电路可以包括近场通信天线和近场通信收发器。通信电路还可以包括蜂窝电话收发器和蜂窝电话天线、无线局域网收发器和无线局域网天线等。Input-output circuitry 330 may include communication circuitry 334 . The communication circuit 334 can be used to provide the electronic device with the ability to communicate with external devices. The communication circuit 334 may include an analog signal input and output circuit, a digital signal input and output circuit, a wireless communication circuit based on a radio frequency signal and/or an optical signal, and the like. The wireless communication circuit in the communication circuit may include a radio frequency transceiver circuit, a power amplifier circuit, a low noise amplifier circuit, a switch component, a filter circuit, an antenna, and the like. For example, the wireless communication circuit in the communication circuit may include a circuit that supports near field communication (Near Field Communication, NFC) by transmitting and/or receiving near field coupled electromagnetic signals. For example, communication circuitry may include a near field communication antenna and a near field communication transceiver. Communications circuitry may also include a cellular telephone transceiver and antenna, a wireless LAN transceiver and wireless LAN antenna, and the like.

输入输出电路330还可以包括其它输入输出单元335。例如,输入输出单元335可以包括按钮、操纵杆、点击轮、滚动轮、触摸板、键盘、摄像头、发光二极管和其它状态指示器等。The input-output circuit 330 may also include other input-output units 335 . For example, the input and output unit 335 may include buttons, a joystick, a click wheel, a scroll wheel, a touch pad, a keyboard, a camera, light emitting diodes and other status indicators, and the like.

电子设备300还可以包括电源340。电源340用于为电子设备的各个部件供电。其中,电源340可以通过电源管理系统与处理电路320逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The electronic device 300 may also include a power supply 340 . The power supply 340 is used to supply power to various components of the electronic device. Wherein, the power supply 340 can be logically connected with the processing circuit 320 through the power management system, so as to implement functions such as management of charging, discharging, and power consumption management through the power management system.

由上可知,本申请实施例提供了一种电子设备,所述电子设备执行以下步骤:获取电子设备的加速度;若所述加速度大于预设加速度阈值,则通过触控感应模组检测触控操作;根据所述触控操作开启摄像头并通过所述摄像头获取图像。所述电子设备中,由于触控感应模组设置在电子设备的边框上,用户只需要在电子设备的边框上进行触控操作即可开启摄像头进行抓拍,无需通过电子设备的显示屏对电子设备进行解锁、开启拍摄应用等操作,从而可以简化用户的操作,使得用户可以实现快速抓拍。It can be seen from the above that the embodiment of the present application provides an electronic device, and the electronic device performs the following steps: acquire the acceleration of the electronic device; if the acceleration is greater than the preset acceleration threshold, detect the touch operation through the touch sensing module ; Turn on the camera according to the touch operation and acquire images through the camera. In the electronic device, since the touch sensing module is arranged on the frame of the electronic device, the user only needs to perform a touch operation on the frame of the electronic device to turn on the camera to take a snapshot, and there is no need to monitor the electronic device through the display screen of the electronic device. Perform operations such as unlocking and opening the shooting application, thereby simplifying the user's operations and enabling the user to quickly capture pictures.

本申请实施例还提供一种存储介质,所述存储介质中存储有计算机程序,当所述计算机程序在计算机上运行时,所述计算机执行上述任一实施例所述的图像获取方法。An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program is run on a computer, the computer executes the image acquisition method described in any one of the above embodiments.

需要说明的是,本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过计算机程序来指令相关的硬件来完成,所述计算机程序可以存储于计算机可读存储介质中,所述存储介质可以包括但不限于:只读存储器(ROM,Read OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁盘或光盘等。It should be noted that those skilled in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a computer program, and the computer program can be stored in a computer-readable storage medium In this example, the storage medium may include but not limited to: a read only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and the like.

以上对本申请实施例所提供的图像获取方法、装置、存储介质及电子设备进行了详细介绍。本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The image acquisition method, device, storage medium, and electronic device provided in the embodiments of the present application have been introduced in detail above. In this paper, specific examples are used to illustrate the principle and implementation of the application. The description of the above embodiments is only used to help understand the method and core idea of the application; meanwhile, for those skilled in the art, according to the application Thoughts, specific implementation methods and application ranges all have changes. In summary, the content of this specification should not be construed as limiting the application.

Claims (12)

1. a kind of image acquiring method is applied to electronic equipment, which is characterized in that the electronic equipment includes frame and fixation Camera on the frame is provided with touch-control sensing module, described image acquisition methods on the frame of the electronic equipment Including:
Obtain the acceleration of the electronic equipment;
If the acceleration is more than predetermined acceleration threshold value, touch control operation is detected by the touch-control sensing module;
The camera is opened according to the touch control operation and image is obtained by the camera.
2. image acquiring method according to claim 1, which is characterized in that the touch-control sensing module includes that interval is arranged The first touch-control sensing area and the second touch-control sensing area, the camera includes front camera and rear camera, described The camera is opened according to the touch control operation and includes the step of obtaining image by the camera:
If the touch control operation is located at first touch-control sensing area, opens the front camera and preposition taken the photograph by described As head obtains image;
If the touch control operation is located at second touch-control sensing area, opens the rear camera and taken the photograph by the postposition As head obtains image.
3. image acquiring method according to claim 1, which is characterized in that the touch-control sensing module includes that interval is arranged The first touch-control sensing area and the second touch-control sensing area, it is described the camera to be opened according to the touch control operation and by described Camera obtain image the step of include:
If the touch control operation is located at first touch-control sensing area, opens the camera and obtained by the camera Present image;
If the touch control operation is located at second touch-control sensing area, opens the camera and continued by the camera Obtain image.
4. image acquiring method according to claim 1, which is characterized in that described according to described in touch control operation unlatching Camera and by the camera obtain image the step of include:
Determine that the action type of the touch control operation, the action type include clicking operation, sliding according to the touch control operation Operation and Continued depression operation;
If the action type is the first predetermined registration operation type, opens the camera and obtained by the camera current Image;
If the action type is second predetermined registration operation type, opens the camera and persistently obtained by the camera Image.
5. image acquiring method according to claim 1, which is characterized in that the touch control operation includes Continued depression behaviour Make, it is described that the camera is opened according to the touch control operation and includes the step of obtaining image by the camera:
Obtain the Continued depression duration of the touch control operation;
If the Continued depression duration is less than preset duration, opens the camera and current figure is obtained by the camera Picture;
If the Continued depression duration is greater than or equal to the preset duration, the camera is opened and by the camera Persistently obtain image.
6. image acquiring method according to any one of claims 1 to 4, which is characterized in that described to be grasped according to the touch-control Before the step of making the unlatching camera and obtaining image by the camera, further include:
Judge whether the ambient light intensity of the electronic equipment local environment changes;
If the ambient light intensity changes, the camera is opened according to the touch control operation and passes through the camera Obtain image.
7. image acquiring method according to any one of claims 1 to 4, which is characterized in that described to be grasped according to the touch-control Before the step of making the unlatching camera and obtaining image by the camera, further include:
Judge whether the display screen of the electronic equipment is in and puts out screen state;
If the display screen of the electronic equipment, which is in, puts out screen state, the camera is opened according to the touch control operation and is passed through The camera obtains image.
8. image acquiring method according to claim 7, which is characterized in that described according to described in touch control operation unlatching Camera and by the camera obtain image the step of after, further include:
The display screen for controlling the electronic equipment is lighted;
The image of acquisition is shown on the display screen.
9. a kind of image acquiring device is applied to electronic equipment, which is characterized in that the electronic equipment includes frame and fixation Camera on the frame is provided with touch-control sensing module, described image acquisition device on the frame of the electronic equipment Including:
First acquisition module, the acceleration for obtaining the electronic equipment;
Detection module is detected by the touch-control sensing module and is touched if being more than predetermined acceleration threshold value for the acceleration Control operation;
Second acquisition module, for opening the camera according to the touch control operation and obtaining image by the camera.
10. a kind of storage medium, which is characterized in that computer program is stored in the storage medium, when the computer journey When sequence is run on computers so that the computer perform claim requires 1 to 8 any one of them image acquiring method.
11. a kind of electronic equipment, which is characterized in that the electronic equipment includes storage circuit and processing circuit, the storage electricity Be stored with computer program in road, the processing circuit by calling the computer program stored in the storage circuit, 1 to 8 any one of them image acquiring method is required for perform claim.
12. a kind of electronic equipment, which is characterized in that described including acceleration transducer, camera, processing circuit and shell Acceleration transducer, camera, processing circuit are separately positioned on the enclosure interior, and the frame of the shell is provided with touch-control sense Module, the acceleration transducer, camera, touch-control sensing module is answered to be connect respectively with the processing circuit, wherein:
The acceleration transducer is used to obtain the acceleration of the electronic equipment;
The touch-control sensing module is used to detect touch control operation when the acceleration is more than predetermined acceleration threshold value;
The processing circuit is used to open the camera according to the touch control operation and obtains image by the camera.
CN201810394912.XA 2018-04-27 2018-04-27 Image acquisition method and device, storage medium and electronic equipment Pending CN108710468A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810394912.XA CN108710468A (en) 2018-04-27 2018-04-27 Image acquisition method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810394912.XA CN108710468A (en) 2018-04-27 2018-04-27 Image acquisition method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN108710468A true CN108710468A (en) 2018-10-26

Family

ID=63867585

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810394912.XA Pending CN108710468A (en) 2018-04-27 2018-04-27 Image acquisition method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN108710468A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110198414A (en) * 2019-06-28 2019-09-03 Oppo广东移动通信有限公司 Electronic equipment and control method of camera
CN110266854A (en) * 2019-06-28 2019-09-20 Oppo广东移动通信有限公司 Electronic equipment and control method of camera thereof
CN110290321A (en) * 2019-06-28 2019-09-27 Oppo广东移动通信有限公司 Electronic equipment and method for selecting image processing mode thereof
CN110300265A (en) * 2019-06-28 2019-10-01 Oppo广东移动通信有限公司 Electronic equipment and control method of camera
CN110572566A (en) * 2019-08-21 2019-12-13 维沃移动通信有限公司 Camera control method and electronic device
CN110971834A (en) * 2019-12-09 2020-04-07 维沃移动通信有限公司 Flash control method and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103795923A (en) * 2014-01-27 2014-05-14 北京飞流九天科技有限公司 Shooting control method of camera shooting device and camera shooting device
WO2015096067A1 (en) * 2013-12-25 2015-07-02 华为终端有限公司 Mobile terminal and method for starting shooting of mobile terminal
CN106603902A (en) * 2015-10-14 2017-04-26 中兴通讯股份有限公司 Photographing method and device
CN107133059A (en) * 2016-02-29 2017-09-05 北京小米移动软件有限公司 Camera control method, device and mobile terminal
CN107333004A (en) * 2017-07-25 2017-11-07 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN107395926A (en) * 2017-07-25 2017-11-24 维沃移动通信有限公司 A kind of photographic method, mobile terminal and computer-readable recording medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015096067A1 (en) * 2013-12-25 2015-07-02 华为终端有限公司 Mobile terminal and method for starting shooting of mobile terminal
CN103795923A (en) * 2014-01-27 2014-05-14 北京飞流九天科技有限公司 Shooting control method of camera shooting device and camera shooting device
CN106603902A (en) * 2015-10-14 2017-04-26 中兴通讯股份有限公司 Photographing method and device
CN107133059A (en) * 2016-02-29 2017-09-05 北京小米移动软件有限公司 Camera control method, device and mobile terminal
CN107333004A (en) * 2017-07-25 2017-11-07 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN107395926A (en) * 2017-07-25 2017-11-24 维沃移动通信有限公司 A kind of photographic method, mobile terminal and computer-readable recording medium

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110198414A (en) * 2019-06-28 2019-09-03 Oppo广东移动通信有限公司 Electronic equipment and control method of camera
CN110266854A (en) * 2019-06-28 2019-09-20 Oppo广东移动通信有限公司 Electronic equipment and control method of camera thereof
CN110290321A (en) * 2019-06-28 2019-09-27 Oppo广东移动通信有限公司 Electronic equipment and method for selecting image processing mode thereof
CN110300265A (en) * 2019-06-28 2019-10-01 Oppo广东移动通信有限公司 Electronic equipment and control method of camera
CN110266854B (en) * 2019-06-28 2021-06-15 Oppo广东移动通信有限公司 Electronic device and control method of camera thereof
CN110198414B (en) * 2019-06-28 2021-08-24 Oppo广东移动通信有限公司 Electronic equipment and control method of camera
CN110572566A (en) * 2019-08-21 2019-12-13 维沃移动通信有限公司 Camera control method and electronic device
CN110971834A (en) * 2019-12-09 2020-04-07 维沃移动通信有限公司 Flash control method and electronic device
CN110971834B (en) * 2019-12-09 2021-09-10 维沃移动通信有限公司 Flash lamp control method and electronic equipment

Similar Documents

Publication Publication Date Title
CN108710468A (en) Image acquisition method and device, storage medium and electronic equipment
CN109739669B (en) Unread message prompting method and mobile terminal
CN107995395B (en) Mobile terminal and image acquisition method therefor
KR102353487B1 (en) Mobile terminal and method for controlling the same
CN108810403A (en) Focal length adjusting method and device, storage medium and electronic equipment
CN108139855B (en) watch mobile terminal
EP3518085A1 (en) Mobile terminal and method for controlling the same
CN111459330B (en) Electronic equipment and pressure key operation method
CN111277040B (en) Electronic equipment and power supply method
CN108733298B (en) Touch information processing method and device, storage medium and electronic equipment
CN109257463B (en) Terminal device, control method thereof and computer-readable storage medium
CN108089801A (en) A kind of method for information display and mobile terminal
CN108595105A (en) Light supplement lamp control method and device, storage medium and electronic equipment
CN110609642A (en) Control method, device, storage medium and electronic device for electronic equipment
CN111756913A (en) Electronic equipment, method and device for calling key function
CN110672262B (en) Pressure key threshold calibration method, device, storage medium and electronic device
CN108664206A (en) Information processing method, device, storage medium and electronic equipment
CN108924319B (en) Proximity detection method and mobile terminal
CN108646948A (en) Method and device for adjusting sensitivity of touch key, storage medium and electronic equipment
CN107819902A (en) The color of shell method of adjustment and mobile terminal of a kind of mobile terminal
CN108984099B (en) Man-machine interaction method and terminal
WO2022048623A1 (en) Electronic device, and control method and control apparatus therefor
CN110213412A (en) A kind of display methods and terminal
CN108595093A (en) Camera control method, device, storage medium and electronic equipment
CN108733299A (en) Application split screen method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181026