[go: up one dir, main page]

CN108769514A - Camera control method, device, electronic device and storage medium - Google Patents

Camera control method, device, electronic device and storage medium Download PDF

Info

Publication number
CN108769514A
CN108769514A CN201810474598.6A CN201810474598A CN108769514A CN 108769514 A CN108769514 A CN 108769514A CN 201810474598 A CN201810474598 A CN 201810474598A CN 108769514 A CN108769514 A CN 108769514A
Authority
CN
China
Prior art keywords
camera
electronic device
rotation
face
image
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
CN201810474598.6A
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 CN201810474598.6A priority Critical patent/CN108769514A/en
Publication of CN108769514A publication Critical patent/CN108769514A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • G06V40/166Detection; Localisation; Normalisation using acquisition arrangements
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/172Classification, e.g. identification
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)

Abstract

本申请实施例公开了一种摄像头控制方法、装置、电子装置以及存储介质,涉及电子装置技术领域。该摄像头控制方法应用于电子装置,所述电子装置设置有可转动的摄像头,所述方法包括:当摄像头启动时,检测该电子装置的当前使用场景,判断当前使用场景是否为人脸识别场景,当当前使用场景为人脸识别场景时,控制摄像头转动,在转动的过程中,利用预览图像进行人脸识别,直到成功识别人脸图像。本申请实施例提供的摄像头控制方法、装置、电子装置以及存储介质,通过设置在电子装置上的摄像头自动转动采集人脸图像进行识别,避免获得的人脸图像有畸变,造成人脸识别失败。

The embodiments of the present application disclose a camera control method, device, electronic device and storage medium, and relate to the technical field of electronic devices. The camera control method is applied to an electronic device, and the electronic device is provided with a rotatable camera. The method comprises: when the camera is started, detecting the current use scene of the electronic device, judging whether the current use scene is a face recognition scene, and when the current use scene is a face recognition scene, controlling the camera to rotate, and during the rotation process, using the preview image to perform face recognition until the face image is successfully recognized. The camera control method, device, electronic device and storage medium provided in the embodiments of the present application automatically rotate the camera set on the electronic device to collect face images for recognition, thereby avoiding distortion of the obtained face images and causing face recognition failure.

Description

摄像头控制方法、装置、电子装置以及存储介质Camera control method, device, electronic device and storage medium

技术领域technical field

本申请涉及电子装置技术领域,更具体地,涉及一种摄像头控制方法、装置、电子装置以及存储介质。The present application relates to the technical field of electronic devices, and more specifically, to a method and device for controlling a camera, an electronic device and a storage medium.

背景技术Background technique

随着技术的发展,电子装置的功能越来越多,照相机已经成为电子装置的必备功能之一。由于电子装置已逐渐成为用户的随身、随手物品,利用电子装置进行图像采集变得越来越普遍。但是现有的电子装置进行图像采集的范围固定,需要用户转动手机,操作繁琐。With the development of technology, electronic devices have more and more functions, and cameras have become one of the necessary functions of electronic devices. Since the electronic device has gradually become a user's portable and handy item, it is becoming more and more common to use the electronic device for image collection. However, the range of image acquisition by the existing electronic devices is fixed, requiring the user to turn the mobile phone, and the operation is cumbersome.

发明内容Contents of the invention

鉴于上述问题,本申请提出了一种摄像头控制方法、装置、电子装置以及存储介质,通过设置在电子装置上的摄像头自动转动采集人脸图像进行识别,避免获得的人脸图像有畸变,造成人脸识别失败。In view of the above problems, the present application proposes a camera control method, device, electronic device and storage medium, through which the camera installed on the electronic device automatically rotates to collect face images for recognition, so as to avoid distortion of the obtained face images and cause human Face recognition failed.

第一方面,本申请实施例提供了一种摄像头控制方法,应用于电子装置,所述电子装置设置有可转动的摄像头,所述方法包括:当所述摄像头启动时,检测所述电子装置的当前使用场景;判断所述当前使用场景是否为人脸识别场景;当所述当前使用场景为所述人脸识别场景时,控制所述摄像头转动,在转动的过程中,利用预览图像进行人脸识别,直到成功识别人脸图像。In the first aspect, an embodiment of the present application provides a method for controlling a camera, which is applied to an electronic device, and the electronic device is provided with a rotatable camera, and the method includes: when the camera is started, detecting the The current use scene; judge whether the current use scene is a face recognition scene; when the current use scene is the face recognition scene, control the rotation of the camera, and use the preview image to perform face recognition during the rotation process , until the face image is successfully recognized.

第二方面,本申请实施例提供了一种摄像头控制装置,应用于电子装置,所述电子装置设置有可转动的摄像头,所述装置包括:当前使用场景检测模块,用于当所述摄像头启动时,检测所述电子装置的当前使用场景;当前使用场景判断模块,用于判断所述当前使用场景是否为人脸识别场景;转动控制模块,用于当所述当前使用场景为所述人脸识别场景时,控制所述摄像头转动,在转动的过程中,利用预览图像进行人脸识别,直到成功识别人脸图像。In the second aspect, the embodiment of the present application provides a camera control device, which is applied to an electronic device, and the electronic device is provided with a rotatable camera, and the device includes: a currently used scene detection module, configured to , detect the current use scene of the electronic device; the current use scene judging module is used to judge whether the current use scene is a face recognition scene; the rotation control module is used when the current use scene is the face recognition scene During the scene, the camera is controlled to rotate, and in the process of rotating, the preview image is used for face recognition until the face image is successfully recognized.

第三方面,本申请实施例提供了一种电子装置,包括触摸屏、存储器以及处理器,所述触摸屏与所述存储器耦接到所述处理器,所述存储器存储指令,当所述指令由所述处理器执行时所述处理器执行上述方法。In a third aspect, an embodiment of the present application provides an electronic device, including a touch screen, a memory, and a processor, the touch screen and the memory are coupled to the processor, the memory stores instructions, and when the instructions are executed by the When the processor executes, the processor executes the above method.

第四方面,本申请实施例提供了一种具有处理器可执行的程序代码的计算机可读取存储介质,所述程序代码使所述处理器执行上述方法。In a fourth aspect, the embodiment of the present application provides a computer-readable storage medium having a program code executable by a processor, and the program code causes the processor to execute the above method.

第五方面,本申请实施例提供了一种电子装置,包括:可转动的摄像头,所述摄像头用于获取预览图像;电路,与所述摄像头连接,所述电路包括检测电路、驱动电路以及处理电路,所述检测电路用于检测所述电子装置的当前使用场景是否为人脸识别场景;所述驱动电路用于根据所述人脸识别场景,控制所述摄像头转动;所述处理电路用于在转动的过程中,利用预览图像进行人脸识别,直到成功识别人脸图像。In the fifth aspect, the embodiment of the present application provides an electronic device, including: a rotatable camera, the camera is used to obtain a preview image; a circuit, connected to the camera, the circuit includes a detection circuit, a driving circuit and a processing circuit circuit, the detection circuit is used to detect whether the current use scene of the electronic device is a face recognition scene; the drive circuit is used to control the rotation of the camera according to the face recognition scene; the processing circuit is used to During the rotation process, use the preview image for face recognition until the face image is successfully recognized.

本申请实施例提供的一种摄像头控制方法、装置、电子装置以及存储介质,应用于电子装置,该电子装置设置有可转动的摄像头。当摄像头启动时,检测该电子装置的当前使用场景,判断当前使用场景是否为人脸识别场景,当当前使用场景为人脸识别场景时,控制摄像头转动,在转动的过程中,利用预览图像进行人脸识别,直到成功识别人脸图像,以通过设置在电子装置上的摄像头自动转动采集人脸图像进行识别,避免获得的人脸图像有畸变,造成人脸识别失败。A camera control method, device, electronic device, and storage medium provided in the embodiments of the present application are applied to an electronic device, and the electronic device is provided with a rotatable camera. When the camera is started, it detects the current use scene of the electronic device, and judges whether the current use scene is a face recognition scene. When the current use scene is a face recognition scene, the camera is controlled to rotate. Recognition, until the face image is successfully recognized, the camera installed on the electronic device is automatically rotated to collect the face image for recognition, so as to avoid distortion of the obtained face image and cause face recognition failure.

本申请的这些方面或其它方面在以下实施例的描述中会更加简明易懂。These or other aspects of the present application will be more concise and understandable in the description of the following embodiments.

附图说明Description of drawings

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

图1示出了本申请实施例提供的第一种电子装置的结构示意图;FIG. 1 shows a schematic structural diagram of a first electronic device provided by an embodiment of the present application;

图2示出了本申请实施例提供的第二种电子装置的结构示意图;FIG. 2 shows a schematic structural diagram of a second electronic device provided by an embodiment of the present application;

图3示出了本申请实施例提供的第三种电子装置的结构示意图;FIG. 3 shows a schematic structural diagram of a third electronic device provided by an embodiment of the present application;

图4示出了本申请第一实施例提供的摄像头控制方法的流程示意图;FIG. 4 shows a schematic flowchart of a camera control method provided in the first embodiment of the present application;

图5示出了本申请第二实施例提供的摄像头控制方法的流程示意图;FIG. 5 shows a schematic flowchart of a camera control method provided in a second embodiment of the present application;

图6示出了本申请第二实施例提供的摄像头控制方法的步骤S260的流程示意图;FIG. 6 shows a schematic flowchart of step S260 of the camera control method provided in the second embodiment of the present application;

图7示出了本申请第二实施例提供的摄像头控制方法的步骤S262的流程示意图;FIG. 7 shows a schematic flowchart of step S262 of the camera control method provided in the second embodiment of the present application;

图8示出了本申请第三实施例提供的摄像头控制装置的一种模块框图;FIG. 8 shows a block diagram of a camera control device provided in the third embodiment of the present application;

图9示出了本申请第三实施例提供的摄像头控制装置的另一种模块框图;Fig. 9 shows another module block diagram of the camera control device provided by the third embodiment of the present application;

图10示出了本申请实施例提供的一种电子装置的框图;FIG. 10 shows a block diagram of an electronic device provided by an embodiment of the present application;

图11示出了本申请实施例提供的一种电子装置的正面示意图;FIG. 11 shows a schematic front view of an electronic device provided by an embodiment of the present application;

图12示出了用于执行根据本申请实施例的摄像头控制方法的电子装置的框图。Fig. 12 shows a block diagram of an electronic device for executing a method for controlling a camera according to an embodiment of the present application.

具体实施方式Detailed ways

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

显示屏通常在手机、平板电脑、穿戴式电子设备等电子装置中所起到的作用为显示文本、图片、图标或者视频等内容。随着用户对所显示内容的清晰度以及精细度的要求越来越高,更多的电子装置采用尺寸较大的触控显示屏,以实现全面屏的显示效果。但是,在设置尺寸较大的显示屏的过程中,发现电子装置前端所设置的前置摄像头、接近光传感器、投影组件、听筒等功能器件会影响触控显示屏所能扩展到的区域。Display screens are usually used in electronic devices such as mobile phones, tablet computers, and wearable electronic devices to display content such as text, pictures, icons, or videos. As users have higher and higher requirements on the clarity and fineness of displayed content, more and more electronic devices adopt larger touch screens to achieve a full-screen display effect. However, in the process of setting up a larger display screen, it is found that functional devices such as a front camera, a proximity light sensor, a projection component, and an earpiece installed on the front of the electronic device will affect the area that the touch screen can expand to.

通常电子装置包括前面板、后盖以及边框。在前面板包括上额区、中部屏幕区和下部按键区。通常,上额区设置有听筒出音孔以及前置摄像头等功能器件,中部屏幕区设置有触控显示屏,下部按键区设置有一到三个物理按键。而随着技术的发展,下部按键区被逐渐取消,原本设置在下部按键区的物理按键由触控显示屏中的虚拟按键替代。Generally, an electronic device includes a front panel, a rear cover and a frame. The front panel includes an upper forehead area, a middle screen area and a lower key area. Usually, the upper forehead area is equipped with functional devices such as earpiece sound outlet and front camera, the middle screen area is equipped with a touch display screen, and the lower key area is equipped with one to three physical keys. With the development of technology, the lower key area is gradually canceled, and the physical keys originally arranged in the lower key area are replaced by virtual keys in the touch screen.

而上额区所设置的听筒出音孔以及前置摄像头等功能器件对于手机的功能支持较为重要,不易轻易的取消,所以将触控显示屏的显示区域拓展到覆盖上额区具有较大的难度。在经过一系列研究后,发明人发现可以将投影组件、受话器、摄像头、结构光组件等功能器件隐藏设置电子装置的终端主体的内部或终端主体的背面,再配置滑动组件和/或转动组件从所述终端本体的顶部显露出来,从而实现将原本的上额区扩展为触控显示屏的可显示区域,以增大可显示区域的面积,从而实现全面屏的效果。However, functional devices such as earpiece sound holes and front-facing cameras set in the upper forehead area are more important for the functional support of mobile phones, and cannot be easily canceled. Therefore, expanding the display area of the touch screen to cover the upper forehead area has a greater impact. difficulty. After a series of research, the inventor found that functional devices such as projection components, receivers, cameras, and structured light components can be hidden inside the terminal body of the electronic device or on the back of the terminal body, and then the sliding component and/or rotating component can be configured from The top of the terminal body is exposed, so that the original upper forehead area can be expanded into the displayable area of the touch screen, so as to increase the area of the displayable area, thereby achieving the effect of a full screen.

示例性的,请参阅图1,图1示出了可用于本申请实施例的电子装置100的第一种结构示意图。电子装置包括终端本体130、摄像头150和转动组件140,摄像头150安装在转动组件140上,此外,电子装置的其他功能器件也可以设置在转动组件140上,其中,其他功能器件除了可以包括接近光传感器、听筒、距离传感器、环境光传感器、温度传感器、压力传感器等器件。For example, please refer to FIG. 1 . FIG. 1 shows a first structural schematic view of an electronic device 100 that can be used in the embodiment of the present application. The electronic device includes a terminal body 130, a camera 150, and a rotating assembly 140. The camera 150 is mounted on the rotating assembly 140. In addition, other functional devices of the electronic device may also be arranged on the rotating assembly 140. Among them, other functional devices may include proximity light Sensors, earpieces, distance sensors, ambient light sensors, temperature sensors, pressure sensors and other devices.

转动组件140与终端本体130转动连接,在一些实施中,摄像头150在转动组件140的带动下,能够沿水平方向和竖直方向转动。于本申请实施例中,电子装置设置有驱动组件,该驱动组件可以是电机,能够驱动转动组件140转动。则转动组件140的转动方向可以是二维的,也可以是三维的。The rotating assembly 140 is rotatably connected with the terminal body 130 , and in some implementations, the camera 150 can be rotated horizontally and vertically driven by the rotating assembly 140 . In the embodiment of the present application, the electronic device is provided with a driving component, which may be a motor, capable of driving the rotating component 140 to rotate. Then the rotation direction of the rotation assembly 140 may be two-dimensional or three-dimensional.

其中,二维的转动可以是水平方向的转动,如图1所示,驱动组件带动转动组件140在水平方向上转动,其中,水平方向为当电子装置竖直摆放时,转动组件140的转动平面与电子装置的顶部侧边平行,具体地,该转动组件140可以包括转轴和安装件,则转轴的一端安装在电子装置的顶部,另一端与安装件连接,则上述功能器件安装在安装件上,转轴能够带动安装件水平转动。作为一种实施方式,转动组件140能够上下移动,即沿着远离电子装置的顶部和靠近电子装置的顶部的方向移动,使得转动组件能够收容于电子装置本体内部或背面,例如,转动组件可滑动的设置于终端本体130内部,而终端本体130的顶部开口,转动组件140可以由顶部开口伸出。或者,转动组件140能够被容置于终端本体130的背面,例如,在终端主体130的背面的顶部设置一个凹槽,则转动组件140设置在凹槽内,并且能够在凹槽内伸出或者缩回。Wherein, the two-dimensional rotation may be the rotation in the horizontal direction. As shown in FIG. 1 , the driving assembly drives the rotating assembly 140 to rotate in the horizontal direction, wherein the horizontal direction is the rotation of the rotating assembly 140 when the electronic device is placed vertically. The plane is parallel to the top side of the electronic device. Specifically, the rotating assembly 140 may include a rotating shaft and a mounting part. One end of the rotating shaft is installed on the top of the electronic device, and the other end is connected to the mounting part. The above-mentioned functional devices are installed on the mounting part. , the rotating shaft can drive the mounting part to rotate horizontally. As an embodiment, the rotating assembly 140 can move up and down, that is, along the direction away from the top of the electronic device and close to the top of the electronic device, so that the rotating assembly can be accommodated inside or on the back of the electronic device body, for example, the rotating assembly can slide The terminal body 130 is disposed inside the terminal body 130, and the top of the terminal body 130 is open, and the rotating assembly 140 can protrude from the top opening. Or, the rotating assembly 140 can be accommodated in the back of the terminal body 130, for example, a groove is provided on the top of the back of the terminal body 130, then the rotating assembly 140 is arranged in the groove, and can protrude or retract.

另外,二维的转动也可以是竖直方向上的转动,如图2所示,驱动组件带动转动组件140在竖直方向上转动,其中,水平方向为当电子装置竖直摆放时,转动组件140的转动平面与终端本体130的顶部侧边垂直,具体地,该转动组件140可以包括支架和安装件,则支架安装在终端本体130的顶部,而安装件与支架转动连接,如图2所示,支架的数量为两个,均安装在终端本体130的顶部,而安装件可转动地安装在两个支架,具体地,可以通过一个转轴被安装在两个支架上,在转轴的作用下,安装件能够在竖直方向上转动。另外,图2所示的转动组件也能够收容于终端本体130内部或背面,具体的结构可参考前述,在此不再赘述。In addition, the two-dimensional rotation can also be the rotation in the vertical direction. As shown in FIG. 2 , the driving assembly drives the rotating assembly 140 to rotate in the vertical direction. The rotation plane of the assembly 140 is perpendicular to the top side of the terminal body 130. Specifically, the rotation assembly 140 may include a bracket and a mounting piece, the bracket is mounted on the top of the terminal body 130, and the mounting piece is rotatably connected to the bracket, as shown in FIG. 2 As shown, there are two brackets, both of which are installed on the top of the terminal body 130, and the mounting part is rotatably installed on the two brackets, specifically, it can be installed on the two brackets through a rotating shaft, and the function of the rotating shaft Next, the mount can be rotated in the vertical direction. In addition, the rotating assembly shown in FIG. 2 can also be accommodated inside or on the back of the terminal body 130 , and the specific structure can be referred to above, and will not be repeated here.

再者,在三维方向上的转动,可以包括水平方向和竖直方向上的转动,如图3所示,驱动组件带动转动组件140在竖直方向和水平方向上转动,具体地,该转动组件140可以包括支架和安装件,则支架安装在终端本体130的顶部,而安装件与支架转动连接,并且支架也能够转动,其转动方向为水平方向,由此,就实现了转动组件的三维方向上的转动。Moreover, the rotation in the three-dimensional direction may include the rotation in the horizontal direction and the vertical direction. As shown in FIG. 3 , the drive assembly drives the rotation assembly 140 to rotate in the vertical direction and the horizontal direction. 140 may include a bracket and a mounting piece, the bracket is installed on the top of the terminal body 130, and the mounting piece is connected to the bracket in rotation, and the bracket can also rotate, and the rotation direction is the horizontal direction, thereby realizing the three-dimensional direction of the rotation assembly on the rotation.

因此,针对目前电子装置进行图像采集的范围固定,需要用户转动手机,操作繁琐的问题,发明人提出了本申请实施例提供的摄像头控制方法、装置、电子装置以及存储介质,通过设置在电子装置上的摄像头自动转动采集人脸图像进行识别,避免获得的人脸图像有畸变,造成人脸识别失败。Therefore, in view of the fixed range of image acquisition by the current electronic device, the user needs to turn the mobile phone, and the problem of cumbersome operation, the inventor proposes the camera control method, device, electronic device and storage medium provided by the embodiment of the present application. The camera on the camera automatically rotates to collect face images for recognition, so as to avoid distortion of the obtained face images and cause face recognition failures.

第一实施例first embodiment

请参阅图4,图4示出了本申请第一实施例提供的摄像头控制方法的流程示意图。所述摄像头控制方法用于通过设置在电子装置上的摄像头自动转动采集人脸图像进行识别,避免获得的人脸图像有畸变,造成人脸识别失败。在具体的实施例中,所述摄像头控制方法应用于如图8所示的摄像头控制装置200以及配置有所述摄像头控制装置200的电子装置100(图11),下面将以电子装置为例,说明本实施例的具体流程,当然,可以理解的,本实施例所应用的电子装置可以为智能手机、平板电脑、穿戴式电子设备等,在此不做具体的限定。下面将针对图4所示的流程进行详细的阐述,所述摄像头控制方法具体可以包括以下步骤:Please refer to FIG. 4 . FIG. 4 shows a schematic flowchart of a camera control method provided in the first embodiment of the present application. The camera control method is used to automatically rotate the camera installed on the electronic device to collect face images for recognition, so as to avoid distortion of the obtained face images and cause face recognition failure. In a specific embodiment, the camera control method is applied to the camera control device 200 shown in FIG. 8 and the electronic device 100 ( FIG. 11 ) configured with the camera control device 200 . The electronic device will be used as an example below, The specific process of this embodiment is described. Of course, it can be understood that the electronic device applied in this embodiment may be a smart phone, a tablet computer, a wearable electronic device, etc., and no specific limitation is made here. The process shown in FIG. 4 will be described in detail below, and the camera control method may specifically include the following steps:

步骤S110:当所述摄像头启动时,检测所述电子装置的当前使用场景。Step S110: When the camera is started, detect the current use scene of the electronic device.

在本实施例中,若在支付时通过人脸进行支付验证,则需要摄像头采集人脸图像,因此,该摄像头需要从终端本体中显露出来,其中,摄像头可以通过外力拉动从终端本体中显露出来,也可以在终端本体内的电控装置的带动下从终端本体中显露出来,在此不做限定。作为一种方式,电子装置对摄像头的状态进行检测,当检测到所述摄像头从终端本体中显露出来或者所述摄像头的启动控件被触发时,表征所述摄像头被启动,电子装置作为响应对其当前使用场景进行检测。In this embodiment, if the face is used for payment verification during payment, the camera needs to collect the face image. Therefore, the camera needs to be exposed from the terminal body, wherein the camera can be pulled out from the terminal body by external force , may also be exposed from the terminal body driven by the electric control device in the terminal body, which is not limited here. As a method, the electronic device detects the state of the camera, and when it detects that the camera is exposed from the terminal body or the start control of the camera is triggered, it indicates that the camera is started, and the electronic device responds to the The current scene is used for detection.

其中,电子装置的当前使用场景至少可以包括人脸识别场景和普通拍摄场景,作为第一种方式,可以通过获取调用该摄像头的应用程序对当前使用场景进行获取,具体地,在检测到摄像头启动时,对调用该摄像头的应用程序进行获取,例如,若调用该摄像头的应用程序为照相机、摄像机等拍摄类应用程序时,则表征所述当前使用场景为普通拍摄场景,若调用摄像头的应用程序为支付宝、淘宝等支付类应用程序时或解锁类应用程序时,表征当前使用场景为人脸识别场景,进一步地,基于应用程序可以获取电子装置的当前使用场景,作为一种可实施的方式,电子装置预先设置并存储各个应用程序和当前使用场景之间的映射关系的映射表,在获取到应用程序后,通过查找映射表可以获取到该应用程序对应的当前使用场景。Wherein, the current use scene of the electronic device may at least include a face recognition scene and a normal shooting scene. As a first method, the current use scene may be obtained by obtaining an application program that invokes the camera. Specifically, when the camera is detected to be activated When the application program calling the camera is obtained, for example, if the application program calling the camera is a shooting application program such as a camera or video camera, it indicates that the current usage scene is a normal shooting scene. If the application program calling the camera When it is a payment application program such as Alipay or Taobao or an unlocking application program, the current use scene is characterized as a face recognition scene. Further, the current use scene of the electronic device can be obtained based on the application program. As an implementable method, the electronic The device presets and stores a mapping table of the mapping relationship between each application program and the current usage scenario. After the application program is obtained, the current usage scenario corresponding to the application program can be obtained by looking up the mapping table.

作为第二种方式,可以通过对开启摄像头时的当前显示页面进行识别,根据识别的结果判断当前使用场景是普通拍摄场景或人脸识别场景,例如,若当前显示页面显示拍摄画面,则表征该当前使用场景为普通拍摄场景,若当前显示页面显示购物画面或商品画面,则表征该当前使用场景为人脸识别场景,当然,本实施例还可以包括其他的判断方式,在此不再穷举。As a second method, it is possible to identify the current display page when the camera is turned on, and determine whether the current usage scene is a normal shooting scene or a face recognition scene according to the recognition result. For example, if the current display page displays a shooting picture, it represents the The current usage scene is a common shooting scene. If the currently displayed page displays a shopping screen or a product screen, it indicates that the current usage scenario is a face recognition scene. Of course, this embodiment may also include other judgment methods, which are not exhaustive here.

步骤S120:判断所述当前使用场景是否为人脸识别场景。Step S120: Determine whether the current use scene is a face recognition scene.

步骤S130:当所述当前使用场景为所述人脸识别场景时,控制所述摄像头转动,在转动的过程中,利用预览图像进行人脸识别,直到成功识别人脸图像。Step S130: When the current use scene is the face recognition scene, control the camera to rotate, and use the preview image to perform face recognition during the rotation process until the face image is successfully recognized.

进一步地,当判断当前使用场景为人脸识别场景时,电子装置作为响应控制摄像头转动,由于在摄像头转动的过程中,其相对于电子装置的位置和角度发生改变,因此,采集的图像随之发生改变,电子装置的显示屏上显示的预览图像也对应发生改变。进一步地,在本实施例中,电子装置利用预览图像进行人脸识别,直到成功识别人脸图像,具体地,电子装置对预览图像进行特征提取,获取预览图像中的人脸图像,将该人脸图像与预存的人脸图像进行匹配,以判断该人脸图像是否与预存的人脸图像成功匹配,在人脸图像是否与预存的人脸图像成功匹配时,表征成功识别人脸图像。Further, when it is judged that the current use scene is a face recognition scene, the electronic device controls the rotation of the camera as a response. Since the position and angle of the camera relative to the electronic device change during the rotation process, the captured image will be changed accordingly. changes, the preview image displayed on the display screen of the electronic device also changes correspondingly. Further, in this embodiment, the electronic device uses the preview image to perform face recognition until the face image is successfully recognized. Specifically, the electronic device performs feature extraction on the preview image, acquires the face image in the preview image, and extracts the face image of the person. The face image is matched with the pre-stored face image to determine whether the face image is successfully matched with the pre-stored face image. When the face image is successfully matched with the pre-stored face image, it indicates that the face image has been successfully recognized.

本申请第一实施例提供的摄像头控制方法,当摄像头启动时,检测该电子装置的当前使用场景,判断当前使用场景是否为人脸识别场景,当当前使用场景为人脸识别场景时,控制摄像头转动,在转动的过程中,利用预览图像进行人脸识别,直到成功识别人脸图像,以通过设置在电子装置上的摄像头自动转动采集人脸图像进行识别,避免获得的人脸图像有畸变,造成人脸识别失败。In the camera control method provided in the first embodiment of the present application, when the camera is started, the current use scene of the electronic device is detected, and whether the current use scene is a face recognition scene is judged, and when the current use scene is a face recognition scene, the camera is controlled to rotate, In the process of turning, use the preview image to carry out face recognition until the face image is successfully recognized, so as to automatically rotate and collect the face image through the camera installed on the electronic device for recognition, so as to avoid distortion of the obtained face image and cause human Face recognition failed.

第二实施例second embodiment

请参阅图5,图5示出了本申请第二实施例提供的摄像头控制方法的流程示意图。下面将针对图5所示的流程进行详细的阐述,所述方法具体可以包括以下步骤:Please refer to FIG. 5 , which shows a schematic flowchart of a camera control method provided in a second embodiment of the present application. The process shown in Figure 5 will be described in detail below, and the method may specifically include the following steps:

步骤S210:当所述摄像头启动时,获取调用所述摄像头的应用程序。Step S210: when the camera is started, obtain an application program that invokes the camera.

步骤S220:基于所述应用程序获取所述电子装置的当前使用场景。Step S220: Obtain the current usage scenario of the electronic device based on the application program.

步骤S230:判断所述当前使用场景是否为人脸识别场景。Step S230: Determine whether the current use scene is a face recognition scene.

步骤S240:当所述当前使用场景为人脸识别场景时,获取当前预览图像。Step S240: when the current usage scene is a face recognition scene, acquire a current preview image.

步骤S250:获取所述当前预览图像中的人脸图像,并对所述人脸图像进行识别。Step S250: Obtain the face image in the current preview image, and identify the face image.

其中,步骤S210-步骤S250的实现方法请参见步骤S110-步骤S130,在此不再赘述。Wherein, for the implementation method of step S210-step S250, please refer to step S110-step S130, which will not be repeated here.

步骤S260:当所述人脸图像识别不成功时,控制所述摄像头转动,在转动的过程中,利用所述预览图像进行人脸识别,直到成功识别所述人脸图像。Step S260: When the face image recognition is unsuccessful, control the camera to rotate, and use the preview image to perform face recognition during the rotation process until the face image is recognized successfully.

可以理解的,当所述人脸图像识别不成功时,表征该摄像头所设置的位置无法获取的目标用户的完整人脸信息,则控制摄像头转动,其中,在本实施例中,所述摄像头的转动范围为360°,进一步地,在摄像头转动的过程中,利用预览图像进行人脸识别,直到成功识别该人脸图像。It can be understood that when the face image recognition is unsuccessful, the complete face information representing the target user that cannot be acquired at the position set by the camera is controlled to rotate the camera, wherein, in this embodiment, the camera's The rotation range is 360°. Further, during the rotation of the camera, the face recognition is performed using the preview image until the face image is successfully recognized.

请参阅图6,图6示出了本申请第二实施例提供的摄像头控制方法的步骤S260的流程示意图。下面将针对图6所示的流程进行详细的阐述,所述方法具体可以包括以下步骤:Please refer to FIG. 6 , which shows a schematic flowchart of step S260 of the camera control method provided in the second embodiment of the present application. The process shown in Figure 6 will be described in detail below, and the method may specifically include the following steps:

步骤S261:当所述人脸图像识别不成功时,判断所述人脸图像是否为完整人脸图像。Step S261: When the recognition of the human face image is unsuccessful, determine whether the human face image is a complete human face image.

进一步地,造成人脸识别不成功的情况至少包括人脸图像采集不完整和人脸图像对应的用户不是真实用户,其中,若是人脸图像对应的用户不是真实用户造成的人脸识别失败时,则显示识别失败的提示信息并继续控制所述摄像头转动重新获取人脸图像,若是人脸图像采集不完整造成的人脸识别失败时,则获取完整人脸识别图像后再进行识别。在本实施例中,当该人脸图像识别不成功时,则判断该人脸图像是否为完整人脸图像,其中,可以通过识别该人脸图像是否位于预览图像的边缘位置判断该人脸图像是否完整,也可以对人脸图像进行特征提取判断该人脸图像是否完整等。Further, the situation causing face recognition failure includes at least incomplete face image collection and the user corresponding to the face image is not a real user, wherein, if the face recognition fails caused by the user corresponding to the face image is not a real user, Then display the prompt message of recognition failure and continue to control the rotation of the camera to reacquire the face image. If the face recognition fails due to the incomplete collection of the face image, then obtain the complete face recognition image before recognition. In this embodiment, when the recognition of the human face image is unsuccessful, it is judged whether the human face image is a complete human face image, wherein the human face image can be judged by identifying whether the human face image is located at the edge position of the preview image Whether it is complete or not, feature extraction can also be performed on the face image to judge whether the face image is complete or not.

步骤S262:当所述人脸图像不是完整人脸图像时,获取所述人脸图像在所述当前预览图像中的位置,根据所述位置控制所述摄像头转动,在转动的过程中,利用所述预览图像进行人脸识别,直到成功识别所述人脸图像。Step S262: When the face image is not a complete face image, obtain the position of the face image in the current preview image, control the rotation of the camera according to the position, and use the Face recognition is performed on the preview image until the face image is successfully recognized.

其中,当判定该人脸图像不是完整人脸图像时,电子装置获取人脸图像在当前预览图像中的位置,可以理解的,该人脸图像可以位于当前预览图像中的下部边缘区域,可以位于当前预览图像中的上部边缘区域,可以位于当前预览图像中的左部边缘区域,也可以位于当前预览图像中的右部边缘区域等,进一步地,在确定该人脸图像在当前预览图像中的位置后,根据该位置控制摄像头转动,并在转动过程中,利用预览图像进行人脸识别,直到成功识到别人脸图像。Wherein, when it is determined that the face image is not a complete face image, the electronic device acquires the position of the face image in the current preview image. The upper edge area in the current preview image can be located in the left edge area in the current preview image, or in the right edge area in the current preview image, etc., further, after determining the position of the face image in the current preview image After the position, the camera is controlled to rotate according to the position, and during the rotation, the preview image is used for face recognition until the face image of the person is successfully recognized.

请参阅图7,图7示出了本申请第二实施例提供的摄像头控制方法的流程示意图。下面将针对图7所示的流程进行详细的阐述,所述方法具体可以包括以下步骤:Please refer to FIG. 7 , which shows a schematic flowchart of a camera control method provided in a second embodiment of the present application. The process shown in Figure 7 will be described in detail below, and the method may specifically include the following steps:

步骤S2621:当所述人脸图像不是完整人脸图像时,获取所述人脸图像与所述当前预览图像的位置关系。Step S2621: When the face image is not a complete face image, acquire the positional relationship between the face image and the current preview image.

进一步地,当该人脸图像不是完整人脸图像时,电子装置基于该人脸图像在当前预览图像中的位置获取该人脸图像与当前预览图像的位置关系,作为一种方式,以当前预览图像的中点作为当前预览图像的位置参考点,以人脸图像的中点作为人脸图像的位置参考点,通过人脸图像的位置参考点与当前预览图像的位置参考点获取该人脸图像和当前预览图像之间的位置关系。Further, when the face image is not a complete face image, the electronic device acquires the positional relationship between the face image and the current preview image based on the position of the face image in the current preview image. The midpoint of the image is used as the position reference point of the current preview image, and the midpoint of the face image is used as the position reference point of the face image, and the face image is obtained through the position reference point of the face image and the position reference point of the current preview image and the positional relationship between the current preview image.

步骤S2622:基于所述位置关系计算所述摄像头的旋转角度与旋转方向。Step S2622: Calculate the rotation angle and rotation direction of the camera based on the positional relationship.

另外,在获取人脸图像和当前预览图像的位置关系后,基于该位置关系获取该人脸图像和当前预览图像之间的相对距离和相对角度,并基于该人脸图像和当前预览图像之间的相对距离和相对角度计算摄像头的旋转角度和旋转方向,可以理解的,基于该旋转角度和旋转方向,一方面,摄像头可以转动到既定位置以获取完整人脸图像,另一方面,摄像头可以以最短的距离和最短的时间转动到既定位置,节约摄像头转动时间和降低摄像头转动所需的耗电量。In addition, after obtaining the positional relationship between the face image and the current preview image, the relative distance and relative angle between the face image and the current preview image are obtained based on the positional relationship, and the distance between the face image and the current preview image is The relative distance and relative angle calculate the rotation angle and rotation direction of the camera. It can be understood that based on the rotation angle and rotation direction, on the one hand, the camera can be rotated to a predetermined position to obtain a complete face image; on the other hand, the camera can be The shortest distance and the shortest time to rotate to the predetermined position saves the camera rotation time and reduces the power consumption required for the camera rotation.

步骤S2623:根据所述旋转角度与所述旋转方向控制所述摄像头转动,在转动的过程中,利用所述预览图像进行人脸识别,直到成功识别所述人脸图像。Step S2623: Control the rotation of the camera according to the rotation angle and the rotation direction. During the rotation, use the preview image to perform face recognition until the face image is recognized successfully.

另外,在本实施例中,当所述人脸图像在当前预览图像的左边区域时,表征该人脸图像对应的用户位于相对电子装置偏左的位置处,在电子装置不移动的情况下,可以控制摄像头朝向相对电子装置的左边转动,以在转动的过程中获取包括完整人脸图像的预览图像,并对该预览图像进行人脸识别直到成功识别到人脸图像;当人脸图像在当前预览图像的右边区域时,表征该人脸图像对应的用户位于相对电子装置偏右的位置处,在电子装置不移动的情况下,可以控制摄像头朝向相对电子装置的右边转动,以在转动的过程中获取包括完整人脸图像的预览图像,并对该预览图像进行人脸识别直到成功识别到人脸图像。In addition, in this embodiment, when the face image is in the left area of the current preview image, it indicates that the user corresponding to the face image is located at a position to the left relative to the electronic device, and when the electronic device does not move, The camera can be controlled to rotate towards the left relative to the electronic device, so as to obtain a preview image including a complete face image during the rotation, and perform face recognition on the preview image until the face image is successfully recognized; when the face image is in the current When previewing the right area of the image, it indicates that the user corresponding to the face image is located at a position to the right relative to the electronic device. When the electronic device does not move, the camera can be controlled to rotate towards the right of the relative electronic device, so that during the rotation process Obtain a preview image including a complete face image, and perform face recognition on the preview image until the face image is successfully recognized.

进一步地,由于在电子装置中,摄像头存在最大转动角度,若计算获得的摄像头的旋转角度超过该最大转动角度时,则无法满足转动到既定位置,因此,在本实施例中,在摄像头转动的过程中,检测摄像头的转动角度以判断该摄像头是否已转动至最大转动角度,若转动到最大转动角度,则表征该在转动角度内获取的人脸图像均无法识别,显示人脸识别失败的提示信息,或显示提示用户手动转动电子装置进行人脸识别。Further, since there is a maximum rotation angle of the camera in the electronic device, if the calculated rotation angle of the camera exceeds the maximum rotation angle, the rotation to a predetermined position cannot be satisfied. Therefore, in this embodiment, when the camera rotates During the process, detect the rotation angle of the camera to determine whether the camera has rotated to the maximum rotation angle. If it has rotated to the maximum rotation angle, it means that the face images acquired within the rotation angle cannot be recognized, and the face recognition failure prompt will be displayed. information, or display prompting the user to manually turn the electronic device for face recognition.

本申请第二实施例提供的摄像头控制方法,当摄像头启动时,获取调用摄像头的应用程序,基于该应用程序获取电子装置的当前使用场景,判断当前使用场景是否为人脸识别场景,当当前使用场景为人脸识别场景时,获取当前预览图像,获取当前预览图像中的人脸图像,并对人脸图像进行识别,当人脸图像识别不成功时,控制摄像头转动,在转动的过程中,利用预览图像进行人脸识别,直到成功识别人脸图像,以通过设置在电子装置上的摄像头自动转动采集人脸图像进行识别,避免获得的人脸图像有畸变,造成人脸识别失败。In the camera control method provided in the second embodiment of the present application, when the camera is started, the application program for calling the camera is obtained, based on the application program, the current use scene of the electronic device is obtained, and it is judged whether the current use scene is a face recognition scene. When the current use scene For the face recognition scene, get the current preview image, get the face image in the current preview image, and recognize the face image. When the face image recognition is unsuccessful, control the rotation of the camera. During the rotation, use the preview The image is subjected to face recognition until the face image is successfully recognized, and the camera installed on the electronic device is automatically rotated to collect the face image for recognition, so as to avoid distortion of the obtained face image and cause face recognition failure.

第三实施例third embodiment

请参阅图8,图8示出了本申请第三实施例提供的摄像头控制装置200的模块框图。所述摄像头控制装置200应用于电子装置,该电子装置设置有可转动的摄像头,下面将针对图8所示的框图进行阐述,所述摄像头控制装置200包括:当前使用场景检测模块210、当前使用场景判断模块220以及转动控制模块230,其中:Please refer to FIG. 8 , which shows a module block diagram of a camera control device 200 provided in a third embodiment of the present application. The camera control device 200 is applied to an electronic device, and the electronic device is provided with a rotatable camera. The following will describe the block diagram shown in FIG. The scene judgment module 220 and the rotation control module 230, wherein:

当前使用场景检测模块210,用于当所述摄像头启动时,检测所述电子装置的当前使用场景。请参阅图9,进一步地,所述当前使用场景检测模块210,包括:The current use scene detection module 210 is configured to detect the current use scene of the electronic device when the camera is started. Please refer to FIG. 9, further, the current use scene detection module 210 includes:

应用程序获取子模块211,用于当所述摄像头启动时,获取调用所述摄像头的应用程序。The application acquiring sub-module 211 is configured to acquire the application calling the camera when the camera is started.

当前使用场景获取子模块212,用于基于所述应用程序获取所述电子装置的当前使用场景。The current use scene obtaining submodule 212 is configured to obtain the current use scene of the electronic device based on the application program.

当前使用场景判断模块220,用于判断所述当前使用场景是否为人脸识别场景。The current use scene judging module 220 is configured to judge whether the current use scene is a face recognition scene.

转动控制模块230,用于当所述当前使用场景为所述人脸识别场景时,控制所述摄像头转动,在转动的过程中,利用预览图像进行人脸识别,直到成功识别人脸图像。进一步地,所述转动控制模块230,包括:当前预览图像获取子模块231、人脸图像识别子模块232以及转动控制子模块233,其中:The rotation control module 230 is configured to control the rotation of the camera when the current use scene is the face recognition scene, and during the rotation, use the preview image to perform face recognition until the face image is successfully recognized. Further, the rotation control module 230 includes: a current preview image acquisition submodule 231, a face image recognition submodule 232 and a rotation control submodule 233, wherein:

当前预览图像获取子模块231,用于当所述当前使用场景为人脸识别场景时,获取当前预览图像。The current preview image acquisition sub-module 231 is configured to acquire a current preview image when the current usage scene is a face recognition scene.

人脸图像识别子模块232,用于获取所述当前预览图像中的人脸图像,并对所述人脸图像进行识别。The face image recognition sub-module 232 is configured to acquire the face image in the current preview image, and recognize the face image.

转动控制子模块233,用于当所述人脸图像识别不成功时,控制所述摄像头转动,在转动的过程中,利用所述预览图像进行人脸识别,直到成功识别所述人脸图像。进一步地,所述转动控制子模块233,包括:人脸图像判断单元、位置获取单元以及转动控制单元,其中:The rotation control sub-module 233 is used to control the rotation of the camera when the recognition of the face image is unsuccessful, and during the rotation, use the preview image to perform face recognition until the face image is recognized successfully. Further, the rotation control sub-module 233 includes: a face image judgment unit, a position acquisition unit and a rotation control unit, wherein:

人脸图像判断单元,用于当所述人脸图像识别不成功时,判断所述人脸图像是否为完整人脸图像。A human face image judging unit, configured to judge whether the human face image is a complete human face image when the recognition of the human face image is unsuccessful.

位置获取单元,用于当所述人脸图像不是完整人脸图像时,获取所述人脸图像在所述当前预览图像中的位置。进一步地,所述位置获取单元,包括:位置关系获取子单元和计算子单元,其中:A position acquiring unit, configured to acquire the position of the human face image in the current preview image when the human face image is not a complete human face image. Further, the position acquisition unit includes: a position relationship acquisition subunit and a calculation subunit, wherein:

位置关系获取子单元,用于当所述人脸图像不是完整人脸图像时,获取所述人脸图像与所述当前预览图像的位置关系。A positional relationship acquiring subunit, configured to acquire a positional relationship between the human face image and the current preview image when the human face image is not a complete human face image.

计算子单元,用于基于所述位置关系计算所述摄像头的旋转角度与旋转方向。The calculation subunit is used to calculate the rotation angle and rotation direction of the camera based on the positional relationship.

转动控制单元,用于根据所述位置控制所述摄像头转动,在转动的过程中,利用所述预览图像进行人脸识别,直到成功识别所述人脸图像。进一步地,所述转动控制单元,包括:转动控制子单元,其中:The rotation control unit is used to control the rotation of the camera according to the position, and during the rotation, use the preview image to perform face recognition until the face image is recognized successfully. Further, the rotation control unit includes: a rotation control subunit, wherein:

转动控制子单元,用于根据所述旋转角度与所述旋转方向控制所述摄像头转动,在转动的过程中,利用所述预览图像进行人脸识别,直到成功识别所述人脸图像。The rotation control subunit is used to control the rotation of the camera according to the rotation angle and the rotation direction. During the rotation, use the preview image to perform face recognition until the face image is successfully recognized.

进一步地,所述摄像头控制装置200,还包括:转动角度获取模块240和提示信息显示模块250,其中:Further, the camera control device 200 also includes: a rotation angle acquisition module 240 and a prompt information display module 250, wherein:

转动角度获取模块240,用于在所述摄像头转动过程中检测所述摄像头是否已转动至最大转动角度。The rotation angle acquisition module 240 is configured to detect whether the camera has rotated to a maximum rotation angle during the rotation of the camera.

提示信息显示模块250,用于当所述摄像头已转动至所述最大转动角度时,显示人脸识别失败的提示信息。The prompt information display module 250 is configured to display a prompt message of face recognition failure when the camera has rotated to the maximum rotation angle.

第四实施例Fourth embodiment

请参阅图10,图10示出了本申请第四实施例提供的电子装置300的电路图。下面将针对图10所示的电路图进行阐述,所述电子装置300包括:相互连接的摄像头310和电路320,其中,电路320包括检测电路321、驱动电路322以及处理电路323,其中:Please refer to FIG. 10 , which shows a circuit diagram of an electronic device 300 provided in a fourth embodiment of the present application. The following will describe the circuit diagram shown in FIG. 10 , the electronic device 300 includes: a camera 310 and a circuit 320 connected to each other, wherein the circuit 320 includes a detection circuit 321, a driving circuit 322 and a processing circuit 323, wherein:

所述摄像头320用于获取预览图像;所述检测电路321用于检测所述电子装置300的当前使用场景是否为人脸识别场景;所述驱动电路322用于根据所述人脸识别场景,控制所述摄像头310转动;所述处理电路323用于在转动的过程中,利用预览图像进行人脸识别,直到成功识别人脸图像。The camera 320 is used to obtain a preview image; the detection circuit 321 is used to detect whether the current usage scene of the electronic device 300 is a face recognition scene; the driving circuit 322 is used to control the The camera 310 rotates; the processing circuit 323 is configured to use the preview image to perform face recognition during the rotation process until the face image is successfully recognized.

综上所述,本申请实施例提供的一种摄像头控制方法、装置、电子装置以及存储介质,应用于电子装置,该电子装置设置有可转动的摄像头。当摄像头启动时,检测该电子装置的当前使用场景,判断当前使用场景是否为人脸识别场景,当当前使用场景为人脸识别场景时,控制摄像头转动,在转动的过程中,利用预览图像进行人脸识别,直到成功识别人脸图像,以通过设置在电子装置上的摄像头自动转动采集人脸图像进行识别,避免获得的人脸图像有畸变,造成人脸识别失败。In summary, the camera control method, device, electronic device, and storage medium provided in the embodiments of the present application are applied to an electronic device, and the electronic device is provided with a rotatable camera. When the camera is started, it detects the current use scene of the electronic device, and judges whether the current use scene is a face recognition scene. When the current use scene is a face recognition scene, the camera is controlled to rotate. Recognition, until the face image is successfully recognized, the camera installed on the electronic device is automatically rotated to collect the face image for recognition, so as to avoid distortion of the obtained face image and cause face recognition failure.

需要说明的是,本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。对于装置类实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。对于方法实施例中的所描述的任意的处理方式,在装置实施例中均可以通过相应的处理模块实现,装置实施例中不再一一赘述。It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. For the same and similar parts in each embodiment, refer to each other, that is, Can. As for the device-type embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and for related parts, please refer to part of the description of the method embodiments. Any of the processing methods described in the method embodiments can be implemented by corresponding processing modules in the device embodiments, and details will not be repeated in the device embodiments.

请再次参阅图11,基于上述的摄像头控制方法、装置,本申请实施例还提供一种电子装置100。Please refer to FIG. 11 again. Based on the above-mentioned camera control method and device, an embodiment of the present application further provides an electronic device 100 .

示例性的,电子装置100可以为移动或便携式并执行无线通信的各种类型的计算机系统设备中的任何一种(图11中只示例性的示出了一种形态)。具体的,电子装置100可以为移动电话或智能电话(例如,基于iPhone TM,基于Android TM的电话),便携式游戏设备(例如Nintendo DS TM,PlayStation Portable TM,Gameboy Advance TM,iPhone TM)、膝上型电脑、PDA、便携式互联网设备、音乐播放器以及数据存储设备,其他手持设备以及诸如手表、耳机、吊坠、耳机等,电子装置100还可以为其他的可穿戴设备(例如,诸如电子眼镜、电子衣服、电子手镯、电子项链、电子纹身、电子设备或智能手表的头戴式设备(HMD))。Exemplarily, the electronic device 100 may be any one of various types of computer system devices that are mobile or portable and perform wireless communication (only one form is exemplarily shown in FIG. 11 ). Specifically, the electronic device 100 can be a mobile phone or a smart phone (for example, based on iPhone TM, a phone based on Android TM), a portable game device (for example, Nintendo DS TM, PlayStation Portable TM, Gameboy Advance TM, iPhone TM), a laptop Computers, PDAs, portable Internet devices, music players and data storage devices, other handheld devices and such as watches, earphones, pendants, earphones, etc., the electronic device 100 can also be other wearable devices (for example, such as electronic glasses, electronic head-mounted devices (HMD) for clothing, e-bracelets, e-necklaces, e-tattoos, electronic devices or smart watches).

电子装置100还可以是多个电子设备中的任何一个,多个电子设备包括但不限于蜂窝电话、智能电话、其他无线通信设备、个人数字助理、音频播放器、其他媒体播放器、音乐记录器、录像机、照相机、其他媒体记录器、收音机、医疗设备、车辆运输仪器、计算器、可编程遥控器、寻呼机、膝上型计算机、台式计算机、打印机、上网本电脑、个人数字助理(PDA)、便携式多媒体播放器(PMP)、运动图像专家组(MPEG-1或MPEG-2)音频层3(MP3)播放器,便携式医疗设备以及数码相机及其组合。Electronic apparatus 100 may also be any of a number of electronic devices including, but not limited to, cellular phones, smart phones, other wireless communication devices, personal digital assistants, audio players, other media players, music recorders , video recorders, cameras, other media recorders, radios, medical equipment, vehicle transport equipment, calculators, programmable remote controls, pagers, laptop computers, desktop computers, printers, netbook computers, personal digital assistants (PDAs), portable Multimedia players (PMP), Moving Picture Experts Group (MPEG-1 or MPEG-2) audio layer 3 (MP3) players, portable medical devices, and digital cameras and combinations thereof.

在一些情况下,电子装置100可以执行多种功能(例如,播放音乐,显示视频,存储图片以及接收和发送电话呼叫)。如果需要,电子装置100可以是诸如蜂窝电话、媒体播放器、其他手持设备、腕表设备、吊坠设备、听筒设备或其他紧凑型便携式设备的便携式设备。In some cases, the electronic device 100 may perform various functions (eg, play music, display video, store pictures, and receive and send phone calls). If desired, electronic device 100 may be a portable device such as a cellular telephone, media player, other handheld device, wrist watch device, pendant device, earpiece device, or other compact portable device.

如图11所示的电子装置100包括电子本体部10,所述电子本体部10包括壳体12及设置在所述壳体12上的主显示屏120。所述壳体12可采用金属、如钢材、铝合金制成。本实施例中,所述主显示屏120通常包括显示面板111,也可包括用于响应对所述显示面板111进行触控操作的电路等。所述显示面板111可以为一个液晶显示面板(Liquid CrystalDisplay,LCD),在一些实施例中,所述显示面板111同时为一个触摸屏109。The electronic device 100 shown in FIG. 11 includes an electronic body portion 10 , and the electronic body portion 10 includes a casing 12 and a main display screen 120 disposed on the casing 12 . The housing 12 can be made of metal, such as steel or aluminum alloy. In this embodiment, the main display screen 120 generally includes a display panel 111 , and may also include a circuit for responding to a touch operation on the display panel 111 . The display panel 111 may be a liquid crystal display panel (Liquid Crystal Display, LCD), and in some embodiments, the display panel 111 is also a touch screen 109 .

请同时参阅图12,在实际的应用场景中,所述电子装置100可作为智能手机终端进行使用,在这种情况下所述电子本体部10通常还包括一个或多个(图中仅示出一个)处理器102、存储器104、RF(Radio Frequency,射频)模块106、音频电路110、传感器114、输入模块118、电源模块122。本领域普通技术人员可以理解,图12所示的结构仅为示意,其并不对所述电子本体部10的结构造成限定。例如,所述电子本体部10还可包括比图12中所示更多或者更少的组件,或者具有与图12所示不同的配置。Please also refer to FIG. 12. In an actual application scenario, the electronic device 100 can be used as a smart phone terminal. In this case, the electronic main body 10 usually includes one or more (only shown in the figure) a) A processor 102 , a memory 104 , an RF (Radio Frequency, radio frequency) module 106 , an audio circuit 110 , a sensor 114 , an input module 118 , and a power module 122 . Those skilled in the art can understand that the structure shown in FIG. 12 is only a schematic diagram, which does not limit the structure of the electronic main body 10 . For example, the electronic body part 10 may also include more or fewer components than those shown in FIG. 12 , or have a different configuration than that shown in FIG. 12 .

本领域普通技术人员可以理解,相对于所述处理器102来说,所有其它的组件均属于外设,所述处理器102与这些外设之间通过多个外设接口124相耦合。所述外设接口124可基于以下标准实现:通用异步接收/发送装置(Universal Asynchronous Receiver/Transmitter,UART)、通用输入/输出(General Purpose Input Output,GPIO)、串行外设接口(Serial Peripheral Interface,SPI)、内部集成电路(Inter-Integrated Circuit,I2C),但不并限于上述标准。在一些实例中,所述外设接口124可仅包括总线;在另一些实例中,所述外设接口124还可包括其它元件,如一个或者多个控制器,例如用于连接所述显示面板111的显示控制器或者用于连接存储器的存储控制器。此外,这些控制器还可以从所述外设接口124中脱离出来,而集成于所述处理器102内或者相应的外设内。Those skilled in the art can understand that, relative to the processor 102 , all other components belong to peripherals, and the processor 102 is coupled to these peripherals through a plurality of peripheral interfaces 124 . The peripheral interface 124 can be implemented based on the following standards: Universal Asynchronous Receiver/Transmitter (UART), General Purpose Input Output (GPIO), Serial Peripheral Interface (Serial Peripheral Interface) , SPI), inter-integrated circuit (Inter-Integrated Circuit, I2C), but not limited to the above standards. In some examples, the peripheral interface 124 may only include a bus; in other examples, the peripheral interface 124 may also include other components, such as one or more controllers, for example for connecting the display panel 111 display controller or memory controller for connecting memory. In addition, these controllers can also be separated from the peripheral interface 124 and integrated in the processor 102 or corresponding peripherals.

所述存储器104可用于存储软件程序以及模块,所述处理器102通过运行存储在所述存储器104内的软件程序以及模块,从而执行各种功能应用以及数据处理。所述存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其它非易失性固态存储器。在一些实例中,所述存储器104可进一步包括相对于所述处理器102远程设置的存储器,这些远程存储器可以通过网络连接至所述电子本体部10或所述主显示屏120。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 can be used to store software programs and modules, and the processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104 . The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory that is remotely located relative to the processor 102 , and these remote memories may be connected to the electronic main body 10 or the main display 120 through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

所述RF模块106用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其它设备进行通讯。所述RF模块106可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。所述RF模块106可与各种网络如互联网、企业内部网、无线网络进行通讯或者通过无线网络与其它设备进行通讯。上述的无线网络可包括蜂窝式电话网、无线局域网或者城域网。上述的无线网络可以使用各种通信标准、协议及技术,包括但并不限于全球移动通信系统(Global System for Mobile Communication,GSM)、增强型移动通信技术(Enhanced Data GSM Environment,EDGE),宽带码分多址技术(wideband codedivision multiple access,W-CDMA),码分多址技术(Code division access,CDMA)、时分多址技术(time division multiple access,TDMA),无线保真技术(Wireless,Fidelity,WiFi)(如美国电气和电子工程师协会标准IEEE 802.10A,IEEE802.11b,IEEE802.11g和/或IEEE 802.11n)、网络电话(Voice over internet protocal,VoIP)、全球微波互联接入(Worldwide Interoperability for Microwave Access,Wi-Max)、其它用于邮件、即时通讯及短消息的协议,以及任何其它合适的通讯协议,甚至可包括那些当前仍未被开发出来的协议。The RF module 106 is used to receive and send electromagnetic waves, realize mutual conversion between electromagnetic waves and electrical signals, and communicate with communication networks or other devices. The RF module 106 may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, Subscriber Identity Module (SIM) cards, memory, etc. . The RF module 106 can communicate with various networks such as Internet, intranet, wireless network or communicate with other devices through wireless network. The wireless network mentioned above may include a cellular telephone network, a wireless local area network or a metropolitan area network. The above-mentioned wireless network can use various communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), wideband code Division multiple access technology (wideband code division multiple access, W-CDMA), code division multiple access technology (Code division access, CDMA), time division multiple access technology (time division multiple access, TDMA), wireless fidelity technology (Wireless, Fidelity, WiFi) (such as IEEE 802.10A, IEEE802.11b, IEEE802.11g and/or IEEE 802.11n), VoIP (Voice over internet protocol, Worldwide Interoperability for Microwave Access, Wi-Max), other protocols for mail, instant messaging, and short messages, and any other suitable communication protocols, even those that have not yet been developed.

音频电路110、听筒101、声音插孔103、麦克风105共同提供用户与所述电子本体部10或所述主显示屏120之间的音频接口。具体地,所述音频电路110从所述处理器102处接收声音数据,将声音数据转换为电信号,将电信号传输至所述听筒101。所述听筒101将电信号转换为人耳能听到的声波。所述音频电路110还从所述麦克风105处接收电信号,将电信号转换为声音数据,并将声音数据传输给所述处理器102以进行进一步的处理。音频数据可以从所述存储器104处或者通过所述RF模块106获取。此外,音频数据也可以存储至所述存储器104中或者通过所述RF模块106进行发送。The audio circuit 110 , the earpiece 101 , the sound jack 103 , and the microphone 105 jointly provide an audio interface between the user and the electronic main body 10 or the main display 120 . Specifically, the audio circuit 110 receives sound data from the processor 102 , converts the sound data into electrical signals, and transmits the electrical signals to the earpiece 101 . The earpiece 101 converts electrical signals into sound waves that can be heard by the human ear. The audio circuit 110 also receives electrical signals from the microphone 105, converts the electrical signals into sound data, and transmits the sound data to the processor 102 for further processing. Audio data may be retrieved from the memory 104 or through the RF module 106 . In addition, audio data can also be stored in the memory 104 or sent through the RF module 106 .

所述传感器114设置在所述电子本体部10内或所述主显示屏120内,所述传感器114的实例包括但并不限于:光传感器、运行传感器、压力传感器、重力加速度传感器、以及其它传感器。The sensor 114 is arranged in the electronic body part 10 or in the main display screen 120, examples of the sensor 114 include but not limited to: light sensor, operation sensor, pressure sensor, gravity acceleration sensor, and other sensors .

具体地,所述传感器114可包括光线传感器114F、压力传感器114G。其中,压力传感器114G可以检测由按压在电子装置100产生的压力的传感器。即,压力传感器114G检测由用户和电子装置之间的接触或按压产生的压力,例如由用户的耳朵与电子装置之间的接触或按压产生的压力。因此,压力传感器114G可以用来确定在用户与电子装置100之间是否发生了接触或者按压,以及压力的大小。Specifically, the sensor 114 may include a light sensor 114F and a pressure sensor 114G. Among them, the pressure sensor 114G can detect the pressure generated by pressing on the electronic device 100 . That is, the pressure sensor 114G detects pressure generated by contact or press between the user and the electronic device, for example, pressure generated by contact or press between the user's ear and the electronic device. Therefore, the pressure sensor 114G can be used to determine whether there is contact or pressure between the user and the electronic device 100, and the magnitude of the pressure.

请再次参阅图12,具体地在图12所示的实施例中,所述光线传感器114F及所述压力传感器114G邻近所述显示面板111设置。所述光线传感器114F可在有物体靠近所述主显示屏120时,例如所述电子本体部10移动到耳边时,所述处理器102关闭显示输出。Please refer to FIG. 12 again. Specifically, in the embodiment shown in FIG. 12 , the light sensor 114F and the pressure sensor 114G are disposed adjacent to the display panel 111 . The light sensor 114F can turn off the display output of the processor 102 when an object is close to the main display screen 120 , for example, when the electronic main body 10 moves to the ear.

作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别所述电子装置100姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等。另外,所述电子本体部10还可配置陀螺仪、气压计、湿度计、温度计等其它传感器,在此不再赘述,As a kind of motion sensor, the gravitational acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the application of the posture of the electronic device 100 (such as horizontal and vertical Screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc. In addition, the electronic main body 10 can also be equipped with other sensors such as gyroscope, barometer, hygrometer, thermometer, etc., which will not be repeated here.

本实施例中,所述输入模块118可包括设置在所述主显示屏120上的所述触摸屏109,所述触摸屏109可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在所述触摸屏109上或在所述触摸屏109附近的操作),并根据预先设定的程序驱动相应的连接装置。可选的,所述触摸屏109可包括触摸检测装置和触摸控制器。其中,所述触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给所述触摸控制器;所述触摸控制器从所述触摸检测装置上接收触摸信息,并将该触摸信息转换成触点坐标,再送给所述处理器102,并能接收所述处理器102发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现所述触摸屏109的触摸检测功能。除了所述触摸屏109,在其它变更实施方式中,所述输入模块118还可以包括其它输入设备,如按键107。所述按键107例如可包括用于输入字符的字符按键,以及用于触发控制功能的控制按键。所述控制按键的实例包括“返回主屏”按键、开机/关机按键等等。In this embodiment, the input module 118 may include the touch screen 109 arranged on the main display screen 120, and the touch screen 109 may collect the user's touch operations on or near it (for example, the user uses a finger, a stylus) operation of any suitable object or accessory on the touch screen 109 or near the touch screen 109), and drive the corresponding connection device according to the preset program. Optionally, the touch screen 109 may include a touch detection device and a touch controller. Wherein, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, and The touch information is converted into touch point coordinates, and then sent to the processor 102, and can receive and execute commands sent by the processor 102. In addition, the touch detection function of the touch screen 109 can be realized by various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch screen 109 , in other modified implementation manners, the input module 118 may also include other input devices, such as keys 107 . The keys 107 may include, for example, character keys for inputting characters, and control keys for triggering control functions. Examples of the control buttons include a "return to main screen" button, a power on/off button, and the like.

所述主显示屏120用于显示由用户输入的信息、提供给用户的信息以及所述电子本体部10的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、数字、视频和其任意组合来构成,在一个实例中,所述触摸屏109可设置于所述显示面板111上从而与所述显示面板111构成一个整体。The main display screen 120 is used to display information input by the user, information provided to the user, and various graphical user interfaces of the electronic main body 10. These graphical user interfaces can be composed of graphics, text, icons, numbers, video and Any combination thereof may be used. In one example, the touch screen 109 may be disposed on the display panel 111 so as to form an integral body with the display panel 111 .

所述电源模块122用于向所述处理器102以及其它各组件提供电力供应。具体地,所述电源模块122可包括电源管理系统、一个或多个电源(如电池或者交流电)、充电电路、电源失效检测电路、逆变器、电源状态指示灯以及其它任意与所述电子本体部10或所述主显示屏120内电力的生成、管理及分布相关的组件。The power module 122 is used to provide power supply to the processor 102 and other components. Specifically, the power module 122 may include a power management system, one or more power sources (such as batteries or alternating current), a charging circuit, a power failure detection circuit, an inverter, a power status indicator light, and any other components related to the electronic body. Part 10 or the components related to the generation, management and distribution of power in the main display screen 120 .

所述电子装置100还包括定位器119,所述定位器119用于确定所述电子装置100所处的实际位置。本实施例中,所述定位器119采用定位服务来实现所述电子装置100的定位,所述定位服务,应当理解为通过特定的定位技术来获取所述电子装置100的位置信息(如经纬度坐标),在电子地图上标出被定位对象的位置的技术或服务。The electronic device 100 further includes a locator 119 for determining the actual location of the electronic device 100 . In this embodiment, the locator 119 realizes the positioning of the electronic device 100 by using a positioning service. The positioning service should be understood as obtaining the position information (such as longitude and latitude coordinates) of the electronic device 100 through a specific positioning technology. ), a technology or service that marks the position of a positioned object on an electronic map.

应当理解的是,上述的电子装置100并不局限于智能手机终端,其应当指可以在移动中使用的计算机设备。具体而言,电子装置100,是指搭载了智能操作系统的移动计算机设备,电子装置100包括但不限于智能手机、智能手表、平板电脑,等等。It should be understood that the above-mentioned electronic device 100 is not limited to a smart phone terminal, but refers to a computer device that can be used on the move. Specifically, the electronic device 100 refers to a mobile computer device equipped with an intelligent operating system, and the electronic device 100 includes but is not limited to a smart phone, a smart watch, a tablet computer, and the like.

在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, descriptions referring to the terms "one embodiment", "some embodiments", "example", "specific examples", or "some examples" mean that specific features described in connection with the embodiment or example , structure, material or characteristic is included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the described specific features, structures, materials or characteristics may be combined in any suitable manner in any one or more embodiments or examples. In addition, those skilled in the art can combine and combine different embodiments or examples and features of different embodiments or examples described in this specification without conflicting with each other.

此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本申请的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。In addition, the terms "first" and "second" are used for descriptive purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In the description of the present application, "plurality" means at least two, such as two, three, etc., unless otherwise specifically defined.

流程图中或在此以其它方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。Any process or method descriptions in flowcharts or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing specific logical functions or steps of the process , and the scope of preferred embodiments of the present application includes additional implementations in which functions may be performed out of the order shown or discussed, including in substantially simultaneous fashion or in reverse order depending on the functions involved, which shall It should be understood by those skilled in the art to which the embodiments of the present application belong.

在流程图中表示或在此以其它方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其它可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其它合适的介质,因为可以例如通过对纸或其它介质进行光学扫描,接着进行编辑、解译或必要时以其它合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。The logic and/or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a sequenced listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium, For use with instruction execution systems, devices, or devices (such as computer-based systems, systems including processors, or other systems that can fetch instructions from instruction execution systems, devices, or devices and execute instructions), or in conjunction with these instruction execution systems, devices or equipment used. For the purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use in or in conjunction with an instruction execution system, device or device. More specific examples (non-exhaustive list) of computer-readable media include the following: electrical connection with one or more wires (electronic device), portable computer disk case (magnetic device), random access memory (RAM), Read Only Memory (ROM), Erasable and Editable Read Only Memory (EPROM or Flash Memory), Fiber Optic Devices, and Portable Compact Disc Read Only Memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program can be printed, as it may be possible, for example, by optically scanning the paper or other medium, followed by editing, interpretation, or other suitable processing if necessary. The program is processed electronically and stored in computer memory.

应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that each part of the present application may be realized by hardware, software, firmware or a combination thereof. In the embodiments described above, various steps or methods may be implemented by software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques known in the art: Discrete logic circuits, ASICs with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.

本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。此外,在本申请各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。Those of ordinary skill in the art can understand that all or part of the steps carried by the methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. During execution, one or a combination of the steps of the method embodiments is included. In addition, each functional unit in each embodiment of the present application may be integrated into one processing module, each unit may exist separately physically, or two or more units may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. If the integrated modules are realized in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium.

上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, and the like. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limitations on the present application, and those skilled in the art can make the above-mentioned The embodiments are subject to changes, modifications, substitutions and variations.

最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not drive the essence of the corresponding technical solutions away from the spirit and scope of the technical solutions of the various embodiments of the present application.

Claims (11)

1.一种摄像头控制方法,其特征在于,应用于电子装置,所述电子装置设置有可转动的摄像头,所述方法包括:1. A camera control method, characterized in that it is applied to an electronic device, the electronic device is provided with a rotatable camera, and the method comprises: 当所述摄像头启动时,检测所述电子装置的当前使用场景;When the camera is started, detect the current use scene of the electronic device; 判断所述当前使用场景是否为人脸识别场景;Judging whether the current use scene is a face recognition scene; 当所述当前使用场景为所述人脸识别场景时,控制所述摄像头转动,在转动的过程中,利用预览图像进行人脸识别,直到成功识别人脸图像。When the current use scene is the face recognition scene, the camera is controlled to rotate, and during the rotation, the face recognition is performed using the preview image until the face image is successfully recognized. 2.根据权利要求1所述的方法,其特征在于,所述当所述当前使用场景为人脸识别场景时,控制所述摄像头转动,在转动的过程中,利用预览图像进行人脸识别,直到成功识别人脸图像,包括:2. The method according to claim 1, wherein when the current use scene is a face recognition scene, the camera is controlled to rotate, and during the rotation, the face recognition is performed using a preview image until Successfully recognized face images, including: 当所述当前使用场景为人脸识别场景时,获取当前预览图像;When the current use scene is a face recognition scene, obtain a current preview image; 获取所述当前预览图像中的人脸图像,并对所述人脸图像进行识别;Acquiring the face image in the current preview image, and identifying the face image; 当所述人脸图像识别不成功时,控制所述摄像头转动,在转动的过程中,利用所述预览图像进行人脸识别,直到成功识别所述人脸图像。When the face image recognition is unsuccessful, the camera is controlled to rotate, and during the rotation, the preview image is used for face recognition until the face image is successfully recognized. 3.根据权利要求2所述的方法,其特征在于,所述当所述人脸图像识别不成功时,控制所述摄像头转动,在转动的过程中,利用预览图像进行人脸识别,直到成功识别所述人脸图像,包括:3. The method according to claim 2, wherein when the face image recognition is unsuccessful, the camera is controlled to rotate, and during the rotation, the face recognition is performed using a preview image until it succeeds. Recognizing the face image includes: 当所述人脸图像识别不成功时,判断所述人脸图像是否为完整人脸图像;When the recognition of the human face image is unsuccessful, it is judged whether the human face image is a complete human face image; 当所述人脸图像不是完整人脸图像时,获取所述人脸图像在所述当前预览图像中的位置;When the face image is not a complete face image, acquire the position of the face image in the current preview image; 根据所述位置控制所述摄像头转动,在转动的过程中,利用所述预览图像进行人脸识别,直到成功识别所述人脸图像。The rotation of the camera is controlled according to the position, and during the rotation, the face recognition is performed using the preview image until the face image is successfully recognized. 4.根据权利要求3所述的方法,其特征在于,所述当所述人脸图像不是完整人脸图像时,获取所述人脸图像在所述预览图像终端的位置,根据所述位置控制所述摄像头转动,在转动的过程中,利用所述预览图像进行人脸识别,直到成功识别所述人脸图像,包括:4. The method according to claim 3, wherein, when the face image is not a complete face image, the position of the face image at the preview image terminal is acquired, and the position is controlled according to the position. The camera rotates, and during the rotation process, the preview image is used for face recognition until the face image is successfully recognized, including: 当所述人脸图像不是完整人脸图像时,获取所述人脸图像与所述当前预览图像的位置关系;When the face image is not a complete face image, acquire the positional relationship between the face image and the current preview image; 基于所述位置关系计算所述摄像头的旋转角度与旋转方向;calculating the rotation angle and rotation direction of the camera based on the positional relationship; 根据所述旋转角度与所述旋转方向控制所述摄像头转动,在转动的过程中,利用所述预览图像进行人脸识别,直到成功识别所述人脸图像。The rotation of the camera is controlled according to the rotation angle and the rotation direction. During the rotation, the preview image is used for face recognition until the face image is successfully recognized. 5.根据权利要求4所述的方法,其特征在于,所述根据所述旋转角度与所述旋转方向控制所述摄像头转动,在转动的过程中,利用所述预览图像进行人脸识别,包括:5. The method according to claim 4, characterized in that, controlling the rotation of the camera according to the rotation angle and the rotation direction, during the rotation, using the preview image to perform face recognition includes : 当所述人脸图像在所述当前预览图像的左边区域时,控制所述摄像头朝相对所述电子装置的左边转动,在转动的过程中,利用所述预览图像进行人脸识别,直到成功识别所述人脸图像;或When the face image is in the left area of the current preview image, control the camera to rotate to the left relative to the electronic device, during the rotation, use the preview image to perform face recognition until successful recognition said facial image; or 当所述人脸图像在所述当前预览图像的右边区域时,控制所述摄像头朝相对所述电子装置的右边转动,在转动的过程中,利用所述预览图像进行人脸识别,直到成功识别所述人脸图像。When the face image is in the right area of the current preview image, control the camera to rotate to the right relative to the electronic device, during the rotation process, use the preview image to perform face recognition until successful recognition The face image. 6.根据权利要求1所述的方法,其特征在于,所述当所述摄像头启动时,检测所述电子装置的当前使用场景,包括:6. The method according to claim 1, wherein when the camera is started, detecting the current usage scene of the electronic device comprises: 当所述摄像头启动时,获取调用所述摄像头的应用程序;When the camera starts, obtain an application program that calls the camera; 基于所述应用程序获取所述电子装置的当前使用场景。A current usage scenario of the electronic device is acquired based on the application program. 7.根据权利要求1所述的方法,其特征在于,所述方法,还包括:7. The method according to claim 1, wherein the method further comprises: 在所述摄像头转动过程中检测所述摄像头是否已转动至最大转动角度;Detecting whether the camera has rotated to a maximum rotation angle during the rotation of the camera; 当所述摄像头已转动至所述最大转动角度时,显示人脸识别失败的提示信息。When the camera has rotated to the maximum rotation angle, a prompt message of face recognition failure is displayed. 8.一种摄像头控制装置,其特征在于,应用于电子装置,所述电子装置设置有可转动的摄像头,所述装置包括:8. A camera control device, characterized in that it is applied to an electronic device, and the electronic device is provided with a rotatable camera, and the device includes: 当前使用场景检测模块,用于当所述摄像头启动时,检测所述电子装置的当前使用场景;The current use scene detection module is used to detect the current use scene of the electronic device when the camera is started; 当前使用场景判断模块,用于判断所述当前使用场景是否为人脸识别场景;The current use scene judging module is used to judge whether the current use scene is a face recognition scene; 转动控制模块,用于当所述当前使用场景为所述人脸识别场景时,控制所述摄像头转动,在转动的过程中,利用预览图像进行人脸识别,直到成功识别人脸图像。The rotation control module is used to control the rotation of the camera when the current use scene is the face recognition scene, and use the preview image to perform face recognition during the rotation process until the face image is successfully recognized. 9.一种电子装置,其特征在于,包括触摸屏、存储器以及处理器,所述触摸屏与所述存储器耦接到所述处理器,所述存储器存储指令,当所述指令由所述处理器执行时所述处理器执行如权利要求1-7任一项所述的方法。9. An electronic device, characterized in that it includes a touch screen, a memory, and a processor, the touch screen and the memory are coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor When the processor executes the method according to any one of claims 1-7. 10.一种具有处理器可执行的程序代码的计算机可读取存储介质,其特征在于,所述程序代码使所述处理器执行如权利要求1-7任一项所述的方法。10. A computer-readable storage medium having a program code executable by a processor, wherein the program code causes the processor to execute the method according to any one of claims 1-7. 11.一种电子装置,其特征在于,包括:11. An electronic device, characterized in that it comprises: 可转动的摄像头,所述摄像头用于获取预览图像;A rotatable camera for obtaining preview images; 电路,与所述摄像头连接,所述电路包括检测电路、驱动电路以及处理电路,所述检测电路用于检测所述电子装置的当前使用场景是否为人脸识别场景;所述驱动电路用于根据所述人脸识别场景,控制所述摄像头转动;所述处理电路用于在转动的过程中,利用预览图像进行人脸识别,直到成功识别人脸图像。A circuit, connected to the camera, the circuit includes a detection circuit, a drive circuit and a processing circuit, the detection circuit is used to detect whether the current use scene of the electronic device is a face recognition scene; The face recognition scene described above is used to control the rotation of the camera; the processing circuit is used to perform face recognition using the preview image during the rotation process until the face image is successfully recognized.
CN201810474598.6A 2018-05-17 2018-05-17 Camera control method, device, electronic device and storage medium Pending CN108769514A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810474598.6A CN108769514A (en) 2018-05-17 2018-05-17 Camera control method, device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810474598.6A CN108769514A (en) 2018-05-17 2018-05-17 Camera control method, device, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN108769514A true CN108769514A (en) 2018-11-06

Family

ID=64006769

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810474598.6A Pending CN108769514A (en) 2018-05-17 2018-05-17 Camera control method, device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN108769514A (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110225250A (en) * 2019-05-31 2019-09-10 维沃移动通信(杭州)有限公司 A kind of photographic method and terminal device
CN110602272A (en) * 2019-07-22 2019-12-20 珠海格力电器股份有限公司 Face scanning method, face scanning device, mobile terminal and storage medium
CN110610146A (en) * 2019-08-29 2019-12-24 维沃移动通信(杭州)有限公司 Face recognition method and electronic equipment
CN110728204A (en) * 2019-09-23 2020-01-24 维沃移动通信(杭州)有限公司 Face recognition method and terminal equipment
CN111191586A (en) * 2019-12-30 2020-05-22 安徽小眯当家信息技术有限公司 Method and system for inspecting wearing condition of safety helmet of personnel in construction site
WO2020108058A1 (en) * 2018-11-30 2020-06-04 Oppo广东移动通信有限公司 Mobile terminal
CN111385392A (en) * 2018-12-29 2020-07-07 Oppo广东移动通信有限公司 Face image acquisition method and device, electronic equipment and storage medium
CN111539295A (en) * 2020-04-17 2020-08-14 中移(杭州)信息技术有限公司 Face recognition method, device, system, network device and storage medium
CN111880711A (en) * 2020-07-31 2020-11-03 Oppo广东移动通信有限公司 Display control method, display control device, electronic equipment and storage medium
WO2020235890A1 (en) * 2019-05-23 2020-11-26 Samsung Electronics Co., Ltd. Electronic device having camera module capable of switching line of sight and method for recording video
CN113301250A (en) * 2021-05-13 2021-08-24 Oppo广东移动通信有限公司 Image recognition method and device, computer readable medium and electronic equipment
CN113561908A (en) * 2021-07-27 2021-10-29 奇瑞新能源汽车股份有限公司 Control method and device of vehicle-mounted face recognition equipment
CN114419718A (en) * 2022-03-10 2022-04-29 荣耀终端有限公司 Electronic equipment and face recognition method
EP3979621A4 (en) * 2019-05-31 2022-08-03 Vivo Mobile Communication Co., Ltd. PHOTOGRAPHY PROCESS AND TERMINAL
WO2025002362A1 (en) * 2023-06-30 2025-01-02 厦门松霖科技股份有限公司 Method, apparatus and system for performing skin testing by automatically tracking human face, and vending machine

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201213278Y (en) * 2008-07-02 2009-03-25 希姆通信息技术(上海)有限公司 Intelligent human face tracing device taking image by mobile phone
CN105049686A (en) * 2015-06-30 2015-11-11 广东欧珀移动通信有限公司 Dual camera mobile terminal
CN106027907A (en) * 2016-06-30 2016-10-12 维沃移动通信有限公司 Method for automatically adjusting camera, and mobile terminal
US20170286756A1 (en) * 2016-03-30 2017-10-05 Tinoq Inc. Systems and methods for user detection and recognition
CN107682634A (en) * 2017-10-18 2018-02-09 维沃移动通信有限公司 A kind of facial image acquisition methods and mobile terminal
CN107818251A (en) * 2017-09-27 2018-03-20 维沃移动通信有限公司 A kind of face identification method and mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201213278Y (en) * 2008-07-02 2009-03-25 希姆通信息技术(上海)有限公司 Intelligent human face tracing device taking image by mobile phone
CN105049686A (en) * 2015-06-30 2015-11-11 广东欧珀移动通信有限公司 Dual camera mobile terminal
US20170286756A1 (en) * 2016-03-30 2017-10-05 Tinoq Inc. Systems and methods for user detection and recognition
CN106027907A (en) * 2016-06-30 2016-10-12 维沃移动通信有限公司 Method for automatically adjusting camera, and mobile terminal
CN107818251A (en) * 2017-09-27 2018-03-20 维沃移动通信有限公司 A kind of face identification method and mobile terminal
CN107682634A (en) * 2017-10-18 2018-02-09 维沃移动通信有限公司 A kind of facial image acquisition methods and mobile terminal

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020108058A1 (en) * 2018-11-30 2020-06-04 Oppo广东移动通信有限公司 Mobile terminal
CN111385392B (en) * 2018-12-29 2021-08-24 Oppo广东移动通信有限公司 Face image acquisition method, device, electronic device and storage medium
CN111385392A (en) * 2018-12-29 2020-07-07 Oppo广东移动通信有限公司 Face image acquisition method and device, electronic equipment and storage medium
WO2020235890A1 (en) * 2019-05-23 2020-11-26 Samsung Electronics Co., Ltd. Electronic device having camera module capable of switching line of sight and method for recording video
US11196908B2 (en) 2019-05-23 2021-12-07 Samsung Electronics Co., Ltd. Electronic device having camera module capable of switching line of sight and method for recording video
US11778304B2 (en) 2019-05-31 2023-10-03 Vivo Mobile Communication Co., Ltd. Shooting method and terminal
CN110225250A (en) * 2019-05-31 2019-09-10 维沃移动通信(杭州)有限公司 A kind of photographic method and terminal device
EP3979621A4 (en) * 2019-05-31 2022-08-03 Vivo Mobile Communication Co., Ltd. PHOTOGRAPHY PROCESS AND TERMINAL
CN110602272A (en) * 2019-07-22 2019-12-20 珠海格力电器股份有限公司 Face scanning method, face scanning device, mobile terminal and storage medium
CN110610146A (en) * 2019-08-29 2019-12-24 维沃移动通信(杭州)有限公司 Face recognition method and electronic equipment
CN110610146B (en) * 2019-08-29 2023-07-11 维沃移动通信(杭州)有限公司 Face recognition method and electronic equipment
CN110728204B (en) * 2019-09-23 2024-01-02 维沃移动通信(杭州)有限公司 Face recognition method and terminal equipment
CN110728204A (en) * 2019-09-23 2020-01-24 维沃移动通信(杭州)有限公司 Face recognition method and terminal equipment
CN111191586B (en) * 2019-12-30 2020-11-27 安徽小眯当家信息技术有限公司 Method and system for inspecting wearing condition of safety helmet of personnel in construction site
CN111191586A (en) * 2019-12-30 2020-05-22 安徽小眯当家信息技术有限公司 Method and system for inspecting wearing condition of safety helmet of personnel in construction site
CN111539295A (en) * 2020-04-17 2020-08-14 中移(杭州)信息技术有限公司 Face recognition method, device, system, network device and storage medium
CN111880711B (en) * 2020-07-31 2022-02-01 Oppo广东移动通信有限公司 Display control method, display control device, electronic equipment and storage medium
CN111880711A (en) * 2020-07-31 2020-11-03 Oppo广东移动通信有限公司 Display control method, display control device, electronic equipment and storage medium
CN113301250A (en) * 2021-05-13 2021-08-24 Oppo广东移动通信有限公司 Image recognition method and device, computer readable medium and electronic equipment
CN113561908A (en) * 2021-07-27 2021-10-29 奇瑞新能源汽车股份有限公司 Control method and device of vehicle-mounted face recognition equipment
CN114419718A (en) * 2022-03-10 2022-04-29 荣耀终端有限公司 Electronic equipment and face recognition method
CN114419718B (en) * 2022-03-10 2022-08-02 荣耀终端有限公司 Electronic equipment and face recognition method
WO2025002362A1 (en) * 2023-06-30 2025-01-02 厦门松霖科技股份有限公司 Method, apparatus and system for performing skin testing by automatically tracking human face, and vending machine

Similar Documents

Publication Publication Date Title
CN108769514A (en) Camera control method, device, electronic device and storage medium
CN109167894B (en) Camera control method, device, mobile terminal and storage medium
CN108495045B (en) Image capturing method, device, electronic device, and storage medium
CN108093099B (en) Drop protection method and system for mobile terminal, and mobile terminal
CN108762859B (en) Wallpaper display method and device, mobile terminal and storage medium
CN109120841B (en) Camera control method, device, mobile terminal and storage medium
CN108391058B (en) Image capturing method, device, electronic device and storage medium
CN108712602A (en) Camera control method and device, mobile terminal and storage medium
CN108734472A (en) Payment method, payment device, electronic device and storage medium
CN108234875A (en) Shoot display methods, device, mobile terminal and storage medium
CN108777731B (en) Key configuration method and device, mobile terminal and storage medium
CN108965691A (en) Camera control method and device, mobile terminal and storage medium
CN109104521B (en) Proximity state correction method, device, mobile terminal and storage medium
CN107807772A (en) Image processing method, device and mobile terminal
CN109040351B (en) Camera control method, device, mobile terminal and storage medium
CN108512997B (en) Display method, display device, mobile terminal and storage medium
CN108932102B (en) Data processing method, device and mobile terminal
CN108984214A (en) Terminal state control method and device, mobile terminal and storage medium
CN108737635A (en) message display method, device, mobile terminal and storage medium
CN110221882B (en) Display method, display device, mobile terminal and storage medium
CN109032465B (en) Data processing method, device and mobile terminal
US12101427B2 (en) Mobile terminal, electronic device comprising mobile terminal, and method for controlling electronic device
CN108803961B (en) Data processing method, device and mobile terminal
CN110764808B (en) Client upgrade detection method, device and computer readable storage medium
CN110221736A (en) Icon processing method, device, mobile terminal and storage medium

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

Application publication date: 20181106

RJ01 Rejection of invention patent application after publication