CN110263509B - Unlocking method and device, electronic equipment and storage medium - Google Patents

Unlocking method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110263509B
CN110263509B CN201910452845.7A CN201910452845A CN110263509B CN 110263509 B CN110263509 B CN 110263509B CN 201910452845 A CN201910452845 A CN 201910452845A CN 110263509 B CN110263509 B CN 110263509B
Authority
CN
China
Prior art keywords
display area
angle
rotation
specified
electronic device
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.)
Expired - Fee Related
Application number
CN201910452845.7A
Other languages
Chinese (zh)
Other versions
CN110263509A (en
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 CN201910452845.7A priority Critical patent/CN110263509B/en
Publication of CN110263509A publication Critical patent/CN110263509A/en
Application granted granted Critical
Publication of CN110263509B publication Critical patent/CN110263509B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/45Structures or tools for the administration of authentication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Lock And Its Accessories (AREA)

Abstract

本申请实施例提供了一种解锁方法、装置、电子设备及存储介质,方法包括在折叠式电子设备处于锁屏状态时,检测第一显示区域和第二显示区域的转动角度以及转动次数;当转动角度符合指定角度,且符合指定角度的转动时,对折叠式电子设备解锁。本申请提供的解锁方法、装置、电子设备及存储介质,用户可以自行设置指定角度和指定次数,通过获取第一显示区域和第二显示区域之间的转动角度以及转动次数,并与预先存储的指定角度和指定次数进行对比,当当前第一显示区域和第二显示区域之间转动角度以及转动次数匹配时,实现解锁。由于不需要借助显示区域输入或采集生物识别信息,大大提高了解锁的安全性。

Figure 201910452845

Embodiments of the present application provide an unlocking method, device, electronic device, and storage medium. The method includes, when the folding electronic device is in a screen-locked state, detecting the rotation angle and the number of rotations of the first display area and the second display area; When the rotation angle conforms to the specified angle, and when the rotation conforms to the specified angle, the folding electronic device is unlocked. In the unlocking method, device, electronic device and storage medium provided by this application, the user can set the specified angle and the specified number of times by himself, and obtain the rotation angle and rotation number between the first display area and the second display area, and compare them with the pre-stored The specified angle is compared with the specified number of times, and when the rotation angle and the number of rotations between the current first display area and the second display area match, unlocking is achieved. Since there is no need to input or collect biometric information through the display area, the security of unlocking is greatly improved.

Figure 201910452845

Description

解锁方法、装置、电子设备及存储介质Unlocking method, device, electronic device and storage medium

技术领域technical field

本申请涉及电子设备技术领域,具体涉及一种解锁方法、装置、电子设备及存储介质。The present application relates to the technical field of electronic devices, and in particular, to an unlocking method, an apparatus, an electronic device, and a storage medium.

背景技术Background technique

随着现有的电子设备技术的发展,越来越多的出现可折叠式的电子设备,这类电子设备可以折叠使用也可以展开使用,即增大了使用时的显示区域面积,又提高了设备的便携性,极大的方便了用户。With the development of existing electronic device technology, more and more foldable electronic devices appear. Such electronic devices can be used folded or unfolded, which not only increases the display area during use, but also improves the The portability of the device greatly facilitates the user.

随着电子设备的日益普及,手机等移动终端的安全问题变得越来越严重,用户每天需要频繁的解锁等操作,为了提高准确性和安全性,由此应用了很多生物传感器,目前比较流行的主要有两种指纹和面部识别。但这些生物传感器存在信息泄露或被复制盗用的缺陷。With the increasing popularity of electronic devices, the security problems of mobile terminals such as mobile phones have become more and more serious, and users need to unlock and other operations frequently every day. There are two main types of fingerprint and facial recognition. However, these biosensors have the defects of information leakage or copying and misappropriation.

发明内容SUMMARY OF THE INVENTION

本申请的目的在于提供一种解锁方法、装置、电子设备及存储介质,以更为安全的实现解锁操作。The purpose of the present application is to provide an unlocking method, device, electronic device and storage medium, so as to realize the unlocking operation more securely.

第一方面,本申请实施例提供了一种解锁方法,应用于折叠式电子设备,所述折叠式电子设备具有第一显示区域和第二显示区域,所述第一显示区域和所述第二显示区域可相对折叠或展开。所述方法包括:在所述折叠式电子设备处于锁屏状态时,检测所述第一显示区域和所述第二显示区域的转动角度以及转动次数;当所述转动角度符合指定角度,且符合指定角度的转动次数为指定次数时,对所述折叠式电子设备解锁。In a first aspect, an embodiment of the present application provides an unlocking method, which is applied to a foldable electronic device, where the foldable electronic device has a first display area and a second display area, the first display area and the second display area The display area can be collapsed or expanded relatively. The method includes: when the foldable electronic device is in a locked screen state, detecting the rotation angle and the number of rotations of the first display area and the second display area; when the rotation angle conforms to a specified angle and meets the When the number of rotations at the specified angle is the specified number of times, the foldable electronic device is unlocked.

第二方面,本申请实施例提供了一种解锁装置,解锁装置包括检测装置和显示区域解锁装置,检测装置用于在所述折叠式电子设备处于锁屏状态时,分别检测所述第一显示区域和所述第二显示区域的转动角度以及转动次数;显示区域解锁装置用于在所述转动角度符合指定角度,且符合指定角度的转动次数为指定次数时,对所述折叠式电子设备解锁。In a second aspect, an embodiment of the present application provides an unlocking device, the unlocking device includes a detection device and a display area unlocking device, and the detection device is configured to detect the first display respectively when the folding electronic device is in a screen-locked state The rotation angle and the number of rotations of the area and the second display area; the display area unlocking device is used to unlock the folding electronic device when the rotation angle conforms to the specified angle and the number of rotations conforming to the specified angle is the specified number of times .

第三方面,本申请实施例提供了一种电子设备,电子设备包括显示屏、处理器以及存储器,显示屏包括第一显示区域和第二显示区域,第一显示区域和第二显示区域可选择性的相对折叠或展开;处理器与柔性显示屏电连接;存储器与处理器耦合;存储器存储指令,当指令由处理器执行时以使处理器执行上述的解锁方法。In a third aspect, an embodiment of the present application provides an electronic device, the electronic device includes a display screen, a processor, and a memory, the display screen includes a first display area and a second display area, and the first display area and the second display area can be selected The processor is electrically connected with the flexible display screen; the memory is coupled with the processor; the memory stores instructions, and when the instructions are executed by the processor, the processor executes the above unlocking method.

第四方面,本申请实施例提供了一种计算机可读取存储介质,计算机可读取存储介质中存储有程序代码,程序代码可被处理器调用执行上述的解锁方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a program code is stored in the computer-readable storage medium, and the program code can be invoked by a processor to execute the aforementioned unlocking method.

本申请提供的解锁方法、装置、电子设备及存储介质,用户可以自行设置指定角度和指定次数,通过获取第一显示区域和第二显示区域之间的转动角度以及转动次数,并与预先存储的指定角度和指定次数进行对比,当当前第一显示区域和第二显示区域之间转动角度以及转动次数匹配时,实现解锁。由于不需要借助显示区域输入或采集生物识别信息,大大提高了解锁的安全性。In the unlocking method, device, electronic device and storage medium provided by this application, the user can set a specified angle and a specified number of times by himself, and obtain the rotation angle and rotation number between the first display area and the second display area, and compare them with the pre-stored The specified angle is compared with the specified number of times, and when the rotation angle and the number of rotations between the current first display area and the second display area match, unlocking is achieved. Since there is no need to input or collect biometric information through the display area, the security of unlocking is greatly improved.

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

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. 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 from these drawings without creative effort.

图1是本申请中示出的一种电子设备的结构示意图;1 is a schematic structural diagram of an electronic device shown in the present application;

图2是图1中示出的电子设备在折叠过程中的结构示意图;FIG. 2 is a schematic structural diagram of the electronic device shown in FIG. 1 during a folding process;

图3是本申请中示出的又一种电子设备的结构示意图;3 is a schematic structural diagram of another electronic device shown in this application;

图4是本申请实施例提供的一种解锁方法的流程图;4 is a flowchart of an unlocking method provided by an embodiment of the present application;

图5是本申请实施例提供的一种获取转动角度和转动次数方法的流程图;5 is a flowchart of a method for obtaining a rotation angle and a number of rotations provided by an embodiment of the present application;

图6是本申请实施例示出的一种加密界面的界面图;6 is an interface diagram of an encryption interface shown in an embodiment of the present application;

图7是本申请实施例提供的另一种解锁方法的流程图;7 is a flowchart of another unlocking method provided by an embodiment of the present application;

图8是本申请实施例提供的再一种解锁方法的流程图;8 is a flowchart of yet another unlocking method provided by an embodiment of the present application;

图9是本申请实施例提供的又一种解锁方法的流程图;9 is a flowchart of another unlocking method provided by an embodiment of the present application;

图10是本申请实施例提供的再又一种解锁方法的流程图;10 is a flowchart of yet another unlocking method provided by an embodiment of the present application;

图11是本申请实施例提供的再另一种解锁方法的流程图;11 is a flowchart of yet another unlocking method provided by an embodiment of the present application;

图12是本申请实施例提供的一种解锁装置的框图;12 is a block diagram of an unlocking device provided by an embodiment of the present application;

图13是本申请实施例提供的又一种解锁装置的框图;13 is a block diagram of another unlocking device provided by an embodiment of the present application;

图14是本申请实施例提供的电子设备的结构框图;14 is a structural block diagram of an electronic device provided by an embodiment of the present application;

图15是本申请实施例提供的存储介质的结构框图。FIG. 15 is a structural block diagram of a storage medium provided by an embodiment of the present application.

具体实施方式Detailed ways

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

请参阅图1和图2,本申请实施方式示出一种可折叠电子设备500,可折叠电子设备500 可以为但不限于为手机、平板电脑、游戏机等电子设备。本实施方式的可折叠电子设备500 以手机为例进行说明。Referring to FIG. 1 and FIG. 2 , the embodiment of the present application shows a foldable electronic device 500 . The foldable electronic device 500 may be, but is not limited to, an electronic device such as a mobile phone, a tablet computer, and a game console. The foldable electronic device 500 of this embodiment is described by taking a mobile phone as an example.

可折叠电子设备500包括可折叠壳体组件100、显示屏200以及电子组件(图中未示出),电子组件设置于可折叠壳体组件100内,显示屏200铺设于可折叠壳体组件100上。可折叠壳体组件100用于对显示屏200进行承载,同时对电子组件进行防护。The foldable electronic device 500 includes a foldable casing assembly 100 , a display screen 200 and an electronic assembly (not shown in the figure), the electronic assembly is arranged in the foldable casing assembly 100 , and the display screen 200 is laid on the foldable casing assembly 100 superior. The foldable housing assembly 100 is used to carry the display screen 200 while protecting the electronic components.

可折叠壳体组件100包括第一壳体10、第二壳体30以及转轴机构70,第一壳体10和第二壳体30分别连接于转轴机构50的两侧。第二壳体30能够通过转轴机构70相对第一壳体10折叠或展开,使可折叠壳体组件100带动显示屏200折叠或展开,可折叠壳体组件100及显示屏200呈叠合状时,可折叠电子设备500的体积相对较小,便于收纳及携带。The foldable housing assembly 100 includes a first housing 10 , a second housing 30 and a rotating shaft mechanism 70 . The first casing 10 and the second casing 30 are respectively connected to two sides of the rotating shaft mechanism 50 . The second housing 30 can be folded or unfolded relative to the first housing 10 through the hinge mechanism 70 , so that the foldable housing assembly 100 drives the display screen 200 to fold or unfold. , the volume of the foldable electronic device 500 is relatively small, which is convenient for storage and carrying.

第一壳体10包括第一中框12以及第一盖体14。第一中框12的一侧连接于转轴机构70,其用于承载电子组件的部分结构。第一盖体14盖设于第一中框12。当第一壳体10与第二壳体30呈叠合状时,第一盖体14与第二壳体30相叠置,也即,第一盖体14贴合于第二壳体30。第二壳体30包括第二中框32以及第二盖体34。第二中框32的一侧连接于转轴机构70,其用于承载电子组件的部分结构。第二盖体34盖设于第二中框32。当第一壳体10与第二壳体30呈叠合状时,第二盖体34与第一盖体14相叠置,也即,第二盖体34贴合于第一盖体 14。The first casing 10 includes a first middle frame 12 and a first cover 14 . One side of the first middle frame 12 is connected to the rotating shaft mechanism 70, which is used to carry part of the structure of the electronic components. The first cover 14 covers the first middle frame 12 . When the first casing 10 and the second casing 30 are in a stacked shape, the first cover 14 and the second casing 30 are stacked, that is, the first cover 14 is attached to the second casing 30 . The second casing 30 includes a second middle frame 32 and a second cover 34 . One side of the second middle frame 32 is connected to the rotating shaft mechanism 70, which is used to carry part of the structure of the electronic components. The second cover 34 covers the second middle frame 32 . When the first casing 10 and the second casing 30 are in a stacked shape, the second cover 34 and the first cover 14 are stacked, that is, the second cover 34 is attached to the first cover 14 .

电子组件可以分成两部分,其中一部分设置于第一壳体10内,另一部分设置于第二壳体 30内,电子组件可以通过柔性电路板与显示屏进行电连接。进一步地,电子组件可以是主板和设置主板的中央处理器、存储器、天线、摄像头、送受话器、印刷电路板和设置于印刷电路板的功能模块等。其中电子组件还可以包括电池、连接器、指纹模组等。The electronic assembly can be divided into two parts, one part is disposed in the first casing 10, and the other part is disposed in the second casing 30, and the electronic assembly can be electrically connected to the display screen through a flexible circuit board. Further, the electronic components may be a mainboard and a central processing unit provided on the mainboard, a memory, an antenna, a camera, a microphone, a printed circuit board, and functional modules provided on the printed circuit board, and the like. The electronic components may also include batteries, connectors, fingerprint modules, and the like.

显示屏200依次铺设于第一壳体10、转轴机构70和第二壳体30上。在本实施方式中,显示屏200为柔性显示屏。显示屏200随第一壳体10与第二壳体30相互翻转呈折叠状态或展开状态。显示屏200电连接于电子组件,以使电子组件能够控制显示屏200运行。The display screen 200 is laid on the first casing 10 , the rotating shaft mechanism 70 and the second casing 30 in sequence. In this embodiment, the display screen 200 is a flexible display screen. The display screen 200 is in a folded state or an unfolded state when the first casing 10 and the second casing 30 are turned over to each other. The display screen 200 is electrically connected to the electronic components so that the electronic components can control the operation of the display screen 200 .

请同时参阅图1及图2,本实施方式中,显示屏200包括连接于第一壳体10的第一显示区域202、连接于第二壳体30的第二显示区域203和连接于第一显示区域202和第二显示区域203的弯折显示区域204。第一显示区域202和第二显示区域203分别随第一壳体10和第二壳体30相对地折叠或展开。弯折显示区域204随第一显示区域202与第二显示区域203的折叠或展开而弯折或展平。在一些实施方式中,第一显示区域202、第二显示区域203以及弯折显示区域204可以为一体结构,使显示屏200为整片式的柔性显示屏;或者,在其他的一些实施方式中,弯折显示区域204为可弯折的柔性部分,而第一显示区域202、第二显示区域203可以为非柔性部分,第一显示区域202、第二显示区域203通过弯折显示区域204 相对地折叠或展开。在本实施方式中,第一壳体10与第二壳体30呈叠合状时,第一显示区域202与第二显示区域203相背离,使可折叠电子设备500呈现为外折屏幕的结构,使用户在折叠的情况下同样能够观察显示屏200的显示内容,提高了可折叠电子设备500使用的便利性。在其他的一些实施方式中,第一壳体10与第二壳体30呈叠合状时,第一显示区域202 与第二显示区域203相叠置,使可折叠电子设备500呈现为内折屏幕的结构,以使显示屏200 免于刮花损坏。1 and 2, in this embodiment, the display screen 200 includes a first display area 202 connected to the first casing 10, a second display area 203 connected to the second casing 30, and a first display area 203 connected to the first casing 10. The curved display area 204 of the display area 202 and the second display area 203 . The first display area 202 and the second display area 203 are respectively folded or unfolded relative to the first casing 10 and the second casing 30 . The bent display area 204 is bent or flattened as the first display area 202 and the second display area 203 are folded or unfolded. In some embodiments, the first display area 202 , the second display area 203 and the curved display area 204 may be of an integrated structure, so that the display screen 200 is a one-piece flexible display screen; or, in other embodiments , the bending display area 204 is a flexible part that can be bent, while the first display area 202 and the second display area 203 can be non-flexible parts. The first display area 202 and the second display area 203 are opposite to each other by bending the display area 204 fold or unfold. In this embodiment, when the first casing 10 and the second casing 30 are in a superimposed shape, the first display area 202 and the second display area 203 are away from each other, so that the foldable electronic device 500 presents a structure with an outwardly folded screen , so that the user can also observe the display content of the display screen 200 in the case of folding, which improves the convenience of using the foldable electronic device 500 . In other embodiments, when the first casing 10 and the second casing 30 are in a superimposed shape, the first display area 202 and the second display area 203 are overlapped, so that the foldable electronic device 500 is folded inward. The structure of the screen so that the display screen 200 is not damaged by scratches.

应当理解的是,上述的第一显示区域202、第二显示区域203以及弯折显示区域204的命名仅为便于描述而设置,并不作为显示屏的结构限制,在实际的应用场景中,第一显示区域202、第二显示区域203以及弯折显示区域204可以没有明显的界限,或者,显示屏可以以其他的划分结构出现,例如,显示屏包括第一显示区域202以及连接于该第一显示区域202 的第二显示区域203,该第一显示区域202及该第二显示区域203能够相对转动以折叠或展开。It should be understood that the above-mentioned names of the first display area 202, the second display area 203 and the bending display area 204 are only set for the convenience of description, and are not used as structural limitations of the display screen. A display area 202, a second display area 203, and a curved display area 204 may not have clear boundaries, or the display screen may appear in other divisional structures. For example, the display screen includes the first display area 202 and is connected to the first display area 202 The second display area 203 of the display area 202, the first display area 202 and the second display area 203 can be rotated relative to each other to be folded or unfolded.

可以理解的是,参阅图3,在一些实施方式中,可折叠电子设备500还可以包括第三壳体50以及对应的第三显示区域205,第三壳体50可转动地连接于第一壳体10与第二壳体30 之间,第三显示区域205铺设于第三壳体50,并连接于第一显示区域202、第二显示区域203 之间。此时,第一壳体10、第二壳体30均可以相对第三壳体50转动,第一显示区域202、第二显示区域203均可以相对第三显示区域205折叠,使可折叠电子设备500呈现为可以进行二次折叠的三折式电子设备。在一些实施方式中,第三显示区域205的显示区域面积可以与第一显示区域202的显示区域面积以及第二显示区域203的显示区域面积大致相同,以使第一显示区域202、第二显示区域203以及第三显示区域205可以折叠成三层结构。在一些实施方式中,第三显示区域205的显示区域面积可以等于或大于第一显示区域202的显示面积与第二显示区域203的显示区域面积之和,在折叠时,第一显示区域202和第二显示区域203可以同时折叠至与第三显示区域205贴合。可以理解的是,上述的第三壳体30及其上的第三显示区域205可以设置于其他的位置,例如,第三壳体30可以转动地连接于第一壳体10远离第二壳体30的一侧,或者第三壳体50可以转动地连接于第二壳体30离第一壳体10的一侧。同样可以理解的是,可折叠电子设备500还可以包括第四壳体(图中未示出)以及对应的第四显示部(图中未示出),或者,可折叠电子设备500还可以包括第五壳体(图中未示出)以及对应的第五显示部(图中未示出),使可折叠电子设备500呈现为多次折叠结构的电子设备,从而在保证可折叠电子设备500具有较大的显示面积的前提之下,具有较小的收纳体积,以利于可折叠电子设备500的收纳及携带。It can be understood that, referring to FIG. 3 , in some embodiments, the foldable electronic device 500 may further include a third casing 50 and a corresponding third display area 205 , and the third casing 50 is rotatably connected to the first casing Between the body 10 and the second casing 30 , the third display area 205 is laid on the third casing 50 and connected between the first display area 202 and the second display area 203 . At this time, both the first casing 10 and the second casing 30 can be rotated relative to the third casing 50, and the first display area 202 and the second display area 203 can be folded relative to the third display area 205, so that the foldable electronic device can be folded. 500 presents a tri-fold electronic device that can be double-folded. In some embodiments, the display area of the third display area 205 may be approximately the same as the display area of the first display area 202 and the display area of the second display area 203, so that the first display area 202, the second display area The area 203 and the third display area 205 can be folded into a three-layer structure. In some embodiments, the display area of the third display area 205 may be equal to or greater than the sum of the display area of the first display area 202 and the display area of the second display area 203. When folded, the first display area 202 and The second display area 203 can be folded to fit with the third display area 205 at the same time. It can be understood that the above-mentioned third housing 30 and the third display area 205 thereon may be arranged in other positions. For example, the third housing 30 may be rotatably connected to the first housing 10 and away from the second housing. One side of the second casing 30 , or the third casing 50 can be rotatably connected to the side of the second casing 30 away from the first casing 10 . It can also be understood that the foldable electronic device 500 may further include a fourth casing (not shown in the figure) and a corresponding fourth display part (not shown in the figure), or the foldable electronic device 500 may further include The fifth casing (not shown in the figure) and the corresponding fifth display part (not shown in the figure) make the foldable electronic device 500 appear as an electronic device with a multi-fold structure, so as to ensure the foldable electronic device 500 On the premise of having a larger display area, it has a smaller storage volume to facilitate the storage and carrying of the foldable electronic device 500 .

其中上述的可折叠电子设备500中,可以在第一显示区域202或第二显示区域203设置霍尔传感器,用于检测第一显示区域202和第二显示区域203的相对角度,或者第一显示区域202以及第二显示区域203与水平面/竖直面等参考面之间的实时角度。同时可折叠电子设备500内可以设置计数器以及脉冲发生器,用于进行计数,例如:用于对第一显示区域202 以及第二显示区域203之间的转动次数进行计数。In the above-mentioned foldable electronic device 500, a Hall sensor may be provided in the first display area 202 or the second display area 203 to detect the relative angle between the first display area 202 and the second display area 203, or the first display area The real-time angle between the area 202 and the second display area 203 and the reference plane such as the horizontal plane/vertical plane. At the same time, a counter and a pulse generator may be provided in the foldable electronic device 500 for counting, for example, for counting the number of rotations between the first display area 202 and the second display area 203 .

现有技术中,电子设备通常采用指纹、面部识别等生物特征信息进行电子设备的解锁操作,但这些生物特征信息存在较多弊端。如指纹识别中,某些人或某些群体的指纹特征少,使用指纹时较难识别到清晰的指纹图像。并且每次使用指纹时都会在指纹采集头上留下用户的指纹印痕,而这些指纹痕迹存在被用来复制指纹的可能性。同时指纹信息可能被橘皮攻击等方式破解。面部识别中,存在面部结构相似的个体,同时个体的面部结构可能因为一些事件出现改变(例如用户因为手术、车祸等因素造成面部特征出现改变),导致识别困难。In the prior art, electronic devices usually use biometric information such as fingerprints and facial recognition to perform an unlocking operation of the electronic device, but these biometric information have many drawbacks. For example, in fingerprint recognition, some people or some groups have few fingerprint features, and it is difficult to identify a clear fingerprint image when using fingerprints. And every time a fingerprint is used, the fingerprint of the user will be left on the fingerprint collection head, and these fingerprints may be used to replicate the fingerprint. At the same time, fingerprint information may be cracked by orange peel attacks and other methods. In facial recognition, there are individuals with similar facial structures, and at the same time, the facial structure of individuals may change due to some events (for example, the user's facial features change due to factors such as surgery, car accidents, etc.), which leads to difficulty in recognition.

因此,发明人提出了本申请实施例中的电子设备的解锁方法、装置、电子设备及存储介质。下面将结合附图具体描述本申请的各实施例。Therefore, the inventor proposes an unlocking method, device, electronic device, and storage medium of an electronic device in the embodiments of the present application. The embodiments of the present application will be described in detail below with reference to the accompanying drawings.

本实施例提供一种解锁方法,其可以应用于如图1或图3所示的折叠式电子设备。参阅图4,所述方法可以包括以下步骤:This embodiment provides an unlocking method, which can be applied to a foldable electronic device as shown in FIG. 1 or FIG. 3 . Referring to Figure 4, the method may include the following steps:

步骤S110:在所述折叠式电子设备处于锁屏状态时,检测所述第一显示区域和所述第二显示区域的转动角度以及转动次数。Step S110: When the folding electronic device is in a screen-locked state, detect the rotation angle and the number of rotations of the first display area and the second display area.

锁屏状态是指折叠式电子设备处于未使用,显示区域被锁定的状态,此时显示区域可以是熄屏状态也可以是亮屏状态。在接收到用户的解锁操作后,折叠式电子设备可以被点亮。可以理解的是,当折叠式电子设备处于锁屏状态时,第一显示区域和第二显示区域之间的夹角可以是0-180°之间的任意值。The screen-locked state refers to a state in which the foldable electronic device is not in use and the display area is locked. At this time, the display area may be in a screen-off state or a screen-on state. After receiving the unlocking operation of the user, the foldable electronic device may be turned on. It can be understood that, when the foldable electronic device is in the locked screen state, the angle between the first display area and the second display area may be any value between 0-180°.

检测第一显示区域和第二显示区域的转动角度以及转动次数,可以是分别检测第一显示区域的转动角度和转动次数,以及检测第二显示区域的转动角度和转动次数;也可以是检测第一显示区域和第二显示区域的相对转动角度以及转动次数。Detecting the rotation angle and number of rotations of the first display area and the second display area may be to detect the rotation angle and number of rotations of the first display area, respectively, and to detect the rotation angle and number of rotations of the second display area; The relative rotation angle and the number of rotations between the first display area and the second display area.

其中第一显示区域的转动角度是指第一显示区域在转动过程中从初始状态转动至停止转动状态转过的角度,第二显示区域的转动角度是指第二显示区域在转动过程中从初始状态转动至停止转动状态转过的角度。可以理解,第一显示区域和第二显示区域可以各自独立的转动,也可以是同步转动,即同时转动相同的角度。The rotation angle of the first display area refers to the angle that the first display area rotates from the initial state to the stop rotation state during the rotation process, and the rotation angle of the second display area refers to the rotation angle of the second display area from the initial state during the rotation process. The angle by which the state turns to the stop-turn state. It can be understood that the first display area and the second display area can be rotated independently, or can be rotated synchronously, that is, rotated by the same angle at the same time.

转动次数是指第一显示区域和第二显示区域各自进行转动的次数,其中转动次数可以按照预定的规则进行计数。作为一种示例:以下示出一种计数方式,例如以第一显示区域和第二显示区域的夹角开始变小为起点,至第一显示区域和第二显示区域之间的夹角不再减小为终点,计数为1,其中第一显示区域和第二显示区域之间的夹角变不再减小并不特指第一显示区域和第二显示区域之间的夹角为0,也可以是其他值。再例如:以第一显示区域和第二显示区域的夹角开始变小为起点,至第一显示区域和第二显示区域之间的夹角从逐渐减小改变为逐渐增大,且当夹角不再继续增大时为终点,计数为1。可以理解的是,在其他的一些实施方式中,计数规则还可以设置成其他形式。The number of rotations refers to the number of times each of the first display area and the second display area rotates, wherein the number of rotations can be counted according to a predetermined rule. As an example: a counting method is shown below, for example, the angle between the first display area and the second display area starts to become smaller as the starting point, and the angle between the first display area and the second display area is no longer Reduction is the end point, and the count is 1, wherein the angle between the first display area and the second display area is no longer reduced, and it does not specifically mean that the angle between the first display area and the second display area is 0, Other values are also possible. Another example: starting from the angle between the first display area and the second display area that starts to decrease, the angle between the first display area and the second display area changes from gradually decreasing to increasing gradually, and when the angle between the first display area and the second display area gradually decreases. The end point is when the angle no longer continues to increase, and the count is 1. It can be understood that, in some other implementations, the counting rule can also be set in other forms.

在一些实施方式中,从所述第一显示区域和所述第二显示区域开始转动时开始计数,所述第一显示区域和所述第二显示区域每完成一次转动后,检测所述第一显示区域和所述第二显示区域保持当前相对角度的停顿时间,当停顿时间大于或等于预设时长,转动次数计数终止。其中预设时长可以是5s、10s等。这种计数方式,可以更为精确的确定当前用户的转动次数,防止出现盗用者通过快速的多次折叠折叠式电子设备,使得计数超过指定次数完成解锁。In some implementations, counting starts when the first display area and the second display area start to rotate, and each time the first display area and the second display area complete one rotation, the first display area and the second display area are detected. The display area and the second display area maintain the pause time of the current relative angle. When the pause time is greater than or equal to the preset time length, the counting of the number of rotations is terminated. The preset duration may be 5s, 10s, or the like. This counting method can more accurately determine the number of rotations of the current user, and prevent a thief from quickly folding the foldable electronic device multiple times so that the count exceeds the specified number of times to complete the unlocking.

可以理解的是,在一些实施例中,第一显示区域和第二显示区域中,可能只有一个显示区域进行转动,因此第一显示区域的转动次数和第二显示区域的转动次数可能相同也可能不相同。It can be understood that, in some embodiments, among the first display area and the second display area, only one display area may rotate, so the number of rotations of the first display area and the number of rotations of the second display area may be the same or possible. Are not the same.

步骤S120:当所述转动角度符合指定角度,且符合指定角度的转动时,对所述折叠式电子设备解锁。Step S120: Unlock the foldable electronic device when the rotation angle conforms to the specified angle, and the rotation conforms to the specified angle.

其中:指定角度是指预设的转动角度,用于判断用户在折叠过程中,是否在进行解锁操作以及判断是否正确的在进行解锁操作。指定次数是指用户在解锁过程中,需要有效转动第一显示区域和第二显示区域的次数,其中有效转动第一显示区域和第二显示区域是指将第一显示区域和第二显示区域转动指定角度。指定角度和指定次数均可以预设于系统中或是由用户自定义设置。The specified angle refers to a preset rotation angle, which is used to determine whether the user is performing the unlocking operation during the folding process and whether the unlocking operation is performed correctly. The specified number of times refers to the number of times that the user needs to effectively rotate the first display area and the second display area during the unlocking process. The effective rotation of the first display area and the second display area refers to the rotation of the first display area and the second display area. Specify the angle. Both the specified angle and the specified number of times can be preset in the system or set by the user.

可以理解的是,在一些实施方式中,只要转动次数大于或等于指定次数,即可完成解锁,而在其他的一些实施方式中,只有在转动次数等于指定次数时,才能完成解锁操作,即当用户的转动次数大于指定次数时,也不能完成解锁,这样可以进一步的提高安全性。It can be understood that, in some embodiments, as long as the number of rotations is greater than or equal to the specified number of times, the unlocking operation can be completed, while in other embodiments, the unlocking operation can be completed only when the number of rotations is equal to the specified number of times, that is, when the When the number of rotations of the user is greater than the specified number of times, the unlocking cannot be completed, which can further improve the security.

可以理解的是,在一些实施方式中,指定角度和指定次数的获取方法可以是用户根据自身需要自行输入,或者通过完成相同的转动操作,通过获取用户的转动操作获取响应的指定角度和指定次数信息。It can be understood that, in some embodiments, the method for obtaining the specified angle and the specified number of times may be input by the user according to their own needs, or by completing the same rotation operation, the specified angle and specified number of times of the response are obtained by obtaining the user's rotation operation. information.

作为一种示例,图5示出一种指定角度和指定次数的获取方法。该方法可以包括以下步骤:As an example, FIG. 5 shows a method for obtaining a specified angle and a specified number of times. The method may include the following steps:

步骤S111:显示加密界面。Step S111: Display an encryption interface.

其中加密界面用于提示用户进行锁屏加密设置,加密界面可以在用户首次对折叠式电子设备进行设置时显示。作为一种示例,图6示出了一种加密界面,该加密界面中可以包括密码设置选项列表,列表中可以包括设置转动参数密码(即通过转动参数进行密码设置),还可以包括录入数字密码、录入指纹密码、录入面部特征密码等方式,由用户自行选择。当用户选择设置转动参数密码时,即可通过转动第一显示区域和第二显示区域进行加密设置。在一些实施方式中,也可以响应用户的密码设置请求后,再显示加密界面。The encryption interface is used to prompt the user to perform lock screen encryption settings, and the encryption interface can be displayed when the user sets the foldable electronic device for the first time. As an example, FIG. 6 shows an encryption interface, the encryption interface may include a password setting option list, the list may include a password for setting rotation parameters (that is, password setting by rotating parameters), and may also include entering a digital password , input fingerprint password, input facial feature password, etc., which are selected by the user. When the user chooses to set the rotation parameter password, the encryption setting can be performed by rotating the first display area and the second display area. In some embodiments, the encryption interface may also be displayed after responding to the user's password setting request.

步骤S112:检测所述第一显示区域和所述第二显示区域的转动角度以及转动次数。Step S112: Detect the rotation angle and the number of rotations of the first display area and the second display area.

用户选择进入加密设置模式后,检测用户的转动操作,获取所述第一显示区域和所述第二显示区域的转动角度以及转动次数等信息。其中,第一显示区域和第二显示区域的转动角度可以从用户进入加密设置模式开始获取第一显示区域和第二显示区域之间的夹角作为第一相对角度,再获取每次转动过程中的转动角度。具体的,可以通过检测所述第一显示区域和所述第二显示区域在初始位置的第一相对角度,以及所述第一显示区域与所述第二显示区域在转动完成后的第二相对角度,确定所述第一相对角度和所述第二相对角度之间的差值作为所述转动角度。After the user chooses to enter the encryption setting mode, the user's rotation operation is detected, and information such as rotation angles and rotation times of the first display area and the second display area are acquired. Wherein, the rotation angle of the first display area and the second display area can be obtained from the time the user enters the encryption setting mode, and the angle between the first display area and the second display area can be obtained as the first relative angle, and then obtained during each rotation process. angle of rotation. Specifically, the first relative angle between the first display area and the second display area at the initial position can be detected, and the second relative angle between the first display area and the second display area after the rotation is completed angle, and the difference between the first relative angle and the second relative angle is determined as the rotation angle.

转动次数可以通过获取设定时间段的转动的次数进行获取。也可以通过以下方式获取,从所述第一显示区域和所述第二显示区域开始转动时开始计数,所述第一显示区域和所述第二显示区域每完成一次转动后,检测所述第一显示区域和所述第二显示区域保持当前相对角度的停顿时间,当停顿时间大于或等于预设时长,转动次数计数终止。The number of rotations can be acquired by acquiring the number of rotations in a set time period. It can also be obtained in the following manner, starting counting from the time the first display area and the second display area start to rotate, and detecting the first display area after each rotation of the first display area and the second display area is completed. The first display area and the second display area maintain the pause time of the current relative angle. When the pause time is greater than or equal to the preset time length, the counting of the number of rotations is terminated.

在一些实施方式中,在获取第一显示区域和第二显示区域之间的转动以及转动次数时,可以实时的将当前的转动角度值以及转动次数值显示于显示区域上,以便于用户知晓当前的设定值,进而可以调整设置过程,达到更契合自身的使用需求的目的。In some embodiments, when acquiring the rotation and the number of rotations between the first display area and the second display area, the current value of the rotation angle and the value of the number of rotations may be displayed on the display area in real time, so that the user can know the current You can adjust the setting process to better suit your own needs.

步骤S113:将检测到的转动角度作为所述指定角度存储,将检测到的转动次数作为所述指定次数存储。Step S113: Store the detected rotation angle as the specified angle, and store the detected rotation times as the specified number of times.

上述的转动角度以及转动次数获取方式,可以更为直观的给予用户转动操作的感受,这样用户可以选择更适合自身的设置方式。便于后续进行解锁操作时,能够以更合适的方式进行解锁操作。The above-mentioned ways of acquiring the rotation angle and the number of rotations can give the user a more intuitive feeling of the rotation operation, so that the user can choose a setting method that is more suitable for him. It is convenient for the unlocking operation to be performed in a more appropriate manner when the unlocking operation is performed subsequently.

在一些实施方式中,还可以采集用户的生物特征识别信息,例如指纹信息、面部特征信息、虹膜信息、视网膜信息以及静脉特征信息等,采集后与用户设定的转动次数以及转动角度想绑定,然后存储。这样后续用户还可以通过指纹以及面部特征信息等方式进行身份验证,经身份验证合格后才能进行解锁操作。In some embodiments, the user's biometric identification information, such as fingerprint information, facial feature information, iris information, retinal information, and vein feature information, etc., can also be collected, and the collection is bound to the number of rotations and the rotation angle set by the user. , then store. In this way, subsequent users can also perform identity verification through fingerprints and facial feature information, etc., and unlocking operations can only be performed after the identity verification is qualified.

本实施例提供的解锁方法,由于通过用户对第一显示区域和第二显示区域的转动操作进行解锁,不会被不法分子通过获取电子设备上的指纹或者通过其他方式盗取面部特征、密码等方式破解,达到更为安全的效果。With the unlocking method provided in this embodiment, since the user is used to unlock the first display area and the second display area by rotating operations, criminals will not be allowed to steal facial features, passwords, etc. by acquiring fingerprints on electronic devices or by other means way to crack, to achieve a more secure effect.

在一些实施例中,所述指定角度包括用于表示第一显示区域预设转动角度的第一指定角度和用于表示第二显示区域预设转动角度的第二指定角度。同时在一些实施方式中,指定次数包括第一显示区域转动第一指定角度的第一指定次数和第二显示区域转动第二指定角度的第二转动次数。In some embodiments, the specified angle includes a first specified angle representing a preset rotation angle of the first display area and a second specified angle representing a preset rotation angle of the second display area. Meanwhile, in some embodiments, the specified number of times includes a first specified number of times when the first display area is rotated by a first specified angle and a second number of times when the second display area is rotated by a second specified angle.

参阅图7,所述的解锁方法可以包括如下步骤:Referring to Figure 7, the unlocking method may include the following steps:

步骤S210:在所述折叠式电子设备处于锁屏状态时,分别检测所述第一显示区域和所述第二显示区域的转动角度以及转动次数。Step S210: When the foldable electronic device is in a screen-locked state, respectively detect the rotation angle and the number of rotations of the first display area and the second display area.

通常用户在不使用折叠式电子设备时,会将折叠式电子设备折叠起来,也即是此时第一显示区域和第二显示区域之间的夹角为0°。而在用户打开折叠式电子设备时,通常采用一个显示区域不动,转动另外一个转动区域的方式进行。尤其是对于内折式的折叠式电子设备,当转动其中一个显示区域时,此时另一个未发生转动的显示区域朝向用户。Usually, when the user does not use the foldable electronic device, the foldable electronic device is folded up, that is, the angle between the first display area and the second display area is 0° at this time. However, when the user opens the foldable electronic device, it is usually done in a manner of not moving one display area and rotating the other rotating area. Especially for an inward-folding foldable electronic device, when one of the display areas is rotated, the other display area that has not been rotated faces the user.

步骤S220:当在预设时长内检测到所述第二显示区域的转动角度保持为0,所述第一显示区域的转动角度符合所述第一转动角度,且符合所述第一转动角度的转动次数为指定次数时,对所述第一显示区域和所述第二显示区域中的至少一个进行解锁。Step S220: When it is detected that the rotation angle of the second display area remains 0 within a preset time period, the rotation angle of the first display area conforms to the first rotation angle and is consistent with the first rotation angle. When the number of rotations is a specified number of times, at least one of the first display area and the second display area is unlocked.

预设时长可以是系统预设或是用户自定义设置,例如可以设置成3s、5s等。其中,第二显示区域的转动角度可以是指第二显示区域相对于参考面的转动角度,参考面可以是水平面、竖直面等。当满足第二显示区域的转动角度保持为0,此时检测第一显示区域的转动角度符合第一转动角度的转动次数为指定次数时,对第一显示区域和第二显示区域中的一个或两个进行解锁。The preset duration can be a system preset or a user-defined setting, for example, it can be set to 3s, 5s, etc. The rotation angle of the second display area may refer to the rotation angle of the second display area relative to the reference plane, and the reference plane may be a horizontal plane, a vertical plane, or the like. When it is satisfied that the rotation angle of the second display area remains 0, and the number of rotations for which the rotation angle of the first display area conforms to the first rotation angle is detected to be a specified number of times, one of the first display area and the second display area or Two to unlock.

其中,在选择解锁的显示区域时,可以根据用户的喜好或者根据用户当前的握持姿势进行选择,可以将第一显示区域和第二显示区域同时解锁,也可以仅解锁第一显示区域和第二显示区域中的一个。Wherein, when selecting the unlocked display area, the selection can be made according to the user's preference or the user's current holding posture, the first display area and the second display area can be unlocked at the same time, or only the first display area and the second display area can be unlocked. One of the two display areas.

在一些实施方式中,当在预设时长内检测到所述第二显示区域的转动角度保持为0,所述第一显示区域的转动角度符合第一指定角度,且符合所述第一转动角度的转动次数为指定次数时,对所述第二显示区域进行解锁。这样实施的好处在于,当用户始终保持第二显示区域的转动角度为0时,说明第二显示区域可能对于用户而言始终朝向用户或者更利于其观看 (例如始终保持水平放置状态),此时解锁第二显示区域可以让用户快速的使用第二显示区域,并且由于第一显示区域未解锁,可以节省第一显示区域的功耗,达到省电的目的。除此之外,这种解锁方式还可以达到更为安全的效果,用户可以在第一显示区域放置个人隐私内容,在外使用电子设备时,可以仅解锁第二显示区域进行使用,避免个人隐私泄露。In some embodiments, when it is detected that the rotation angle of the second display area remains 0 within a preset period of time, the rotation angle of the first display area conforms to a first specified angle and conforms to the first rotation angle When the number of rotations is a specified number of times, the second display area is unlocked. The advantage of this implementation is that when the user always keeps the rotation angle of the second display area at 0, it means that the second display area may always face the user or be more convenient for the user to view (for example, always keep the horizontal state), at this time Unlocking the second display area allows the user to use the second display area quickly, and since the first display area is not unlocked, power consumption of the first display area can be saved, thereby achieving the purpose of power saving. In addition, this unlocking method can also achieve a more secure effect. Users can place personal privacy content in the first display area. When using electronic devices outside, they can only unlock the second display area for use to avoid personal privacy leakage. .

本实施例提供的解锁方法,可以达到更好的隐私保护效果,同时不易被不法分子破解,并且在一些使用环境下更加省电。The unlocking method provided in this embodiment can achieve better privacy protection effect, and is not easy to be cracked by criminals, and saves more power in some usage environments.

在一些实施例中,参阅图8,所述的解锁方法可以包括如下步骤:In some embodiments, referring to FIG. 8 , the unlocking method may include the following steps:

步骤S310:在所述折叠式电子设备处于锁屏状态时,分别检测所述第一显示区域和所述第二显示区域的转动角度以及转动次数。Step S310: When the foldable electronic device is in a screen-locked state, respectively detect the rotation angle and the number of rotations of the first display area and the second display area.

步骤S320:当在预设时长内检测到所述第一显示区域与所述第二显示区域之间的夹角符合指定角度,且符合指定角度的转动次数为指定次数时,对所述第一显示区域和所述第二显示区域同时进行解锁。Step S320: When it is detected that the included angle between the first display area and the second display area conforms to the specified angle within the preset duration, and the number of rotations that conform to the specified angle is the specified number of times, the first The display area and the second display area are unlocked simultaneously.

在一些实施例中,可以直接检测第一显示区域和第二显示区域之间的转动角度和转动次数,进而分别计算出第一显示区域的转动角度和转动次数以及第二显示区域的转动角度以及转动次数。第一显示区域和第二显示区域的转动角度是指第一显示区域和第二显示区域初始位置的夹角与实时位置的夹角之间的差值。例如,第一显示区域和第二显示区域在初始位置时呈相对展开状态,即第一显示区域和第二显示区域之间的夹角大致为180°,当第一显示区域和第二显示区域转动至相互之间的夹角大致为90°,此时第一显示区域和第二显示区域的转动角度即为90°-180°=-(90°)。其中“-(负)”是指转动时,第一显示区域和第二显示区域之间的夹角变小,可以理解的是,当转动角度为“+(正)”时,是指第一显示区域和第二显示区域之间的夹角变大。此时,第一显示区域的转动角度和第二显示区域的转动角度之和为-90°。可以理解的是,第一显示区域和第二显示区域在初始状态时的夹角可以是任意角度。In some embodiments, the rotation angle and the number of rotations between the first display area and the second display area may be directly detected, and then the rotation angle and number of rotations of the first display area and the rotation angle of the second display area and number of turns. The rotation angle of the first display area and the second display area refers to the difference between the angle between the initial positions of the first display area and the second display area and the angle between the real-time positions. For example, the first display area and the second display area are in a relatively expanded state at the initial position, that is, the angle between the first display area and the second display area is approximately 180°. Rotate until the included angle between them is approximately 90°, and the rotation angle between the first display area and the second display area is 90°-180°=-(90°). Among them, "-(negative)" means that the angle between the first display area and the second display area becomes smaller when the rotation angle is "+(positive)". The angle between the display area and the second display area becomes larger. At this time, the sum of the rotation angle of the first display area and the rotation angle of the second display area is -90°. It can be understood that the included angle between the first display area and the second display area in the initial state may be any angle.

例如:在一些实施方式中,第一显示区域和第二显示区域是同步转动(即同时转动)的,因此,根据第一显示区域和第二显示区域之间的相对角度的变化进行判断,当相对角度的变化量为指定角度,且转动次数为指定次数时,即可对第一显示区域和第二显示区域进行解锁。For example, in some implementations, the first display area and the second display area are rotated synchronously (ie, rotated at the same time). The first display area and the second display area can be unlocked when the change amount of the relative angle is a specified angle and the number of rotations is a specified number of times.

这种实施方式简化了对第一显示区域和第二显示区域的转动角度的测量,只需通过获取第一显示区域和第二显示区域之间的相对角度以及转动次数作为判断标准,大大简化的检测流程,节省系统资源。并且第一显示区域和第二显示区域的相对转动角度在测量上更方便,也节约了进行检测的硬件成本。This embodiment simplifies the measurement of the rotation angle of the first display area and the second display area, and only needs to obtain the relative angle between the first display area and the second display area and the number of rotations as the judgment criteria, which greatly simplifies Detection process, saving system resources. In addition, the relative rotation angle of the first display area and the second display area is more convenient to measure, and the hardware cost for detection is also saved.

在一些实施例中,折叠式电子设备还设置有指纹识别模组,用于采集或验证用户的指纹特征信息,指纹识别模组可以设置于第一显示区域、第二显示区域或者折叠式电子设备的其他部分。参阅图9,所述的解锁方法可以包括以下步骤:In some embodiments, the foldable electronic device is further provided with a fingerprint recognition module for collecting or verifying the user's fingerprint feature information, and the fingerprint recognition module can be arranged in the first display area, the second display area or the foldable electronic device of other parts. Referring to Figure 9, the unlocking method may include the following steps:

步骤S410:在所述折叠电子设备处于锁屏状态时,检测所述指纹识别模组的识别结果,以及所述第一显示区域和所述第二显示区域的转动角度以及转动次数。Step S410: Detect the recognition result of the fingerprint recognition module, the rotation angle and the rotation times of the first display area and the second display area when the folding electronic device is in the locked screen state.

可以理解,检测指纹识别模组的识别结果可以与检测第一显示区域和第二显示区域的转动角度以及转动次数同时进行,或者分步进行。当两者分步进行时,可以先检测指纹识别模组的识别结果,也可以先检测第一显示区域和第二显示区域的转动角度以及转动次数,在此并不需要做限定。通过对解锁用户进行指纹特征识别,可以进一步的对用户的信息进行确定,防止被不法分子破解。It can be understood that the detection of the identification result of the fingerprint identification module may be performed simultaneously with the detection of the rotation angle and the number of rotations of the first display area and the second display area, or may be performed in steps. When the two are carried out step by step, the recognition result of the fingerprint recognition module can be detected first, and the rotation angle and the number of rotations of the first display area and the second display area can also be detected first, which does not need to be limited here. By identifying the unlocked user's fingerprint features, the user's information can be further determined to prevent being cracked by criminals.

在一些实施方式中,步骤S410可以按以下方式进行:在所述折叠电子设备处于锁屏状态时,检测所述指纹识别模组被持续按压时所述第一显示区域和所述第二显示区域的转动角度以及转动次数。In some embodiments, step S410 may be performed in the following manner: when the folding electronic device is in a locked screen state, detecting the first display area and the second display area when the fingerprint recognition module is continuously pressed The angle of rotation and the number of rotations.

指纹识别模组被持续按压,是指在整个转动过程中,指纹识别模组均能采集到指纹信息。系统可预先采集合法用户的指纹信息并存储,作为合法指纹信息。可以理解的是,合法指纹信息可以包括一个或多个合法用户的指纹信息。可以理解的是,“持续按压”并不特指要对指纹识别模组施加压力,在一些实施方式中,通过与指纹识别模组接触也可以实现指纹信息的采集,这种方式也是可行的。The fingerprint identification module is continuously pressed, which means that the fingerprint identification module can collect fingerprint information during the entire rotation process. The system can collect and store the fingerprint information of legal users in advance as legal fingerprint information. It can be understood that the legal fingerprint information may include fingerprint information of one or more legal users. It can be understood that "continuous pressing" does not specifically refer to exerting pressure on the fingerprint identification module. In some embodiments, fingerprint information can also be collected by contacting the fingerprint identification module, which is also feasible.

由于在检测过程中需要持续的采集进行解锁操作的用户的指纹信息,因此可以将指纹识别模组设置于第一显示区域或第二显示区域,以使得用户在进行转动操作时,可以更为方便的触压指纹识别模组。由于需要在整个转动过程中,均能采集到指纹信息,因此进行解锁操作的用户需要非常熟悉解锁规则,同时能准确的找到指纹识别模组的位置,这样对于不法分子而言,通过穷举、试验等方式解锁的概率将大幅降低。Since the fingerprint information of the user who performs the unlocking operation needs to be continuously collected during the detection process, the fingerprint identification module can be set in the first display area or the second display area, so that the user can perform the rotation operation more conveniently. touch fingerprint recognition module. Since the fingerprint information needs to be collected during the entire rotation process, the user who performs the unlocking operation needs to be very familiar with the unlocking rules, and at the same time can accurately find the position of the fingerprint recognition module. The probability of unlocking through experiments and other methods will be greatly reduced.

步骤S420:当所述转动角度符合指定角度,且符合指定角度的转动次数为指定次数,且所述指纹识别模组识别结果为指定用户时,对所述折叠式电子设备解锁。Step S420: Unlock the foldable electronic device when the rotation angle conforms to the specified angle, and the number of rotations that conform to the specified angle is the specified number of times, and the identification result of the fingerprint identification module is the specified user.

在指纹识别模组识别到的指纹信息始终为指定用户时,才进行解锁操作。这样可以极大的提高电子设备解锁的安全性。The unlocking operation is performed only when the fingerprint information recognized by the fingerprint recognition module is always the designated user. In this way, the security of unlocking the electronic device can be greatly improved.

在一些实施方式中,可以设置多个指纹识别模组,多个指纹识别模组可以分别设置于不同的显示区域上。例如在每个显示区域设置一个指纹识别模组。此时用户在进行转动操作时,多个指纹识别模组可以同时采集用户的多个指纹特征信息,以进一步提高解锁的安全性。In some embodiments, a plurality of fingerprint identification modules may be provided, and the plurality of fingerprint identification modules may be respectively disposed on different display areas. For example, a fingerprint identification module is set in each display area. At this time, when the user performs a rotation operation, multiple fingerprint identification modules can simultaneously collect multiple fingerprint feature information of the user, so as to further improve the security of unlocking.

例如:在所述折叠电子设备处于锁屏状态时,检测每个所述指纹识别模组同时被持续按压时所述第一显示区域和所述第二显示区域的转动角度以及转动次数。当所述转动角度符合指定角度,且符合指定角度的转动次数为指定次数,且每个所述指纹识别模组识别结果均为指定用户时,对所述折叠式电子设备解锁。此种实施方式,不仅可以提高解锁的安全性,同时也不会增大用户的操作难度,因为用户在转动操作时,需要左右手分别控制一个显示区域,此时用户可以将左右手的大拇指分别置于第一显示区域和第二显示区域的指纹采集区域,并持续的按压指纹识别模组。对于不法分子而言,即使观看到用户的解锁过程,由于不熟悉解锁规则,也很难完成解锁操作。For example, when the folding electronic device is in a locked screen state, detect the rotation angle and rotation times of the first display area and the second display area when each of the fingerprint recognition modules is continuously pressed at the same time. When the rotation angle conforms to the specified angle, and the number of rotations conforming to the specified angle is the specified number of times, and the identification result of each fingerprint identification module is the specified user, the foldable electronic device is unlocked. This embodiment can not only improve the security of unlocking, but also will not increase the difficulty of the user's operation, because the user needs to control a display area with the left and right hands respectively when the user rotates, and the user can place the thumbs of the left and right hands respectively. In the fingerprint collection area of the first display area and the second display area, press the fingerprint recognition module continuously. For criminals, even if they watch the user's unlocking process, it is difficult to complete the unlocking operation because they are not familiar with the unlocking rules.

在一些实施方式中,折叠式电子设备设置有图像采集模组,例如:3D结构光模组,可以用于采集、分析用户的面部特征并进行识别。参阅图10,所述的解锁方法可以包括以下步骤:In some embodiments, the foldable electronic device is provided with an image capture module, such as a 3D structured light module, which can be used to capture, analyze and identify the user's facial features. Referring to Figure 10, the unlocking method may include the following steps:

步骤S510:在所述折叠式电子设备处于锁屏状态时,开启所述图像采集模组,检测所述第一显示区域和所述第二显示区域的转动角度以及转动次数。Step S510 : when the foldable electronic device is in the locked screen state, turn on the image capture module, and detect the rotation angle and the rotation times of the first display area and the second display area.

在转动操作过程中,图像采集模组采集识别用户的特征信息,例如识别用户的面部特征信息,并与预存的用户面部特征信息进行比较。可以理解的是,步骤S510中,在进行转动操作的全过程中,均需要开启图像采集模组,并持续采集用户的特征信息。During the rotation operation, the image acquisition module collects and identifies the user's feature information, such as the user's facial feature information, and compares it with the pre-stored user's facial feature information. It can be understood that, in step S510, in the whole process of the rotation operation, the image acquisition module needs to be turned on, and the characteristic information of the user is continuously collected.

步骤S520:所述当所述转动角度符合指定角度,且符合指定角度的转动次数为指定次数时,且所述图像采集模组识别结果为指定用户时,对所述折叠式电子设备解锁。Step S520: When the rotation angle conforms to the specified angle, and the number of rotations conforming to the specified angle is the specified number of times, and the image capture module identifies the specified user, unlock the foldable electronic device.

这种实施方式,可以在用户的转动操作过程中,对用户的特征信息进行识别,判断是否为指定用户进行的转动操作,可以进一步增强解锁操作的安全性。同时仅需要用户在进行转动操作时实时采集用户的面部特征信息,不会额外增加用户的操作以及解锁的时间。In this embodiment, during the user's rotation operation, the user's characteristic information can be identified to determine whether it is a rotation operation performed by a designated user, which can further enhance the security of the unlocking operation. At the same time, the user only needs to collect the user's facial feature information in real time when the user performs the rotation operation, and the user's operation and unlocking time will not be additionally increased.

在一些实施方式中,参阅图11,所述的解锁方法可以包括以下步骤:In some embodiments, referring to FIG. 11 , the unlocking method may include the following steps:

S610:在所述折叠式电子设备处于锁屏状态时,分别检测所述第一显示区域和所述第二显示区域的转动角度以及转动次数。S610: When the foldable electronic device is in a locked screen state, respectively detect the rotation angle and the number of rotations of the first display area and the second display area.

S620:当所述转动角度符合第一指定角度的转动次数为第一指定次数,以及当所述第二转动角度符合第二指定角度的转动次数为第二指定次数时,对所述折叠式电子设备解锁。S620: When the number of rotations of the rotation angle conforming to the first specified angle is the first specified number of times, and when the number of rotations of the second rotation angle conforming to the second specified angle is the second specified number of times, apply the foldable electronic Device unlocked.

其中第一指定角度、第二指定角度、第一指定次数以及第二指定次数的定义可以参考前述内容。The definitions of the first specified angle, the second specified angle, the first specified number of times, and the second specified number of times may refer to the foregoing content.

通过将第一显示区域和第二显示区域分开进行检测,同时可以将第一指定角度和第二指定角度设置为相同或不同,将第一指定次数和第二指定次数设置为相同或不同,可以显著的增加解锁条件的多样性以及解锁条件的组合,显著的提高解锁操作的安全性。By separating the first display area and the second display area for detection, the first specified angle and the second specified angle can be set to be the same or different, and the first specified number of times and the second specified number of times can be set to be the same or different. Significantly increases the variety of unlocking conditions and the combination of unlocking conditions, and significantly improves the security of unlocking operations.

作为一种示例,将第一指定角度设为45°,第一指定次数设为2次,将第二指定角度设为30°,第二指定次数设为3次。此时用户在进行解锁操作时,第一显示区域需要2次转动且每次转动的转动角度应达到45°。第二显示区域需要转动3次,且每次转动的转动角度应达到30°,方能完成解锁。As an example, the first specified angle is set to 45°, the first specified number of times is set to 2, the second specified angle is set to 30°, and the second specified number of times is set to 3 times. At this time, when the user performs the unlocking operation, the first display area needs to be rotated twice and the rotation angle of each rotation should reach 45°. The second display area needs to be rotated 3 times, and the rotation angle of each rotation should reach 30° to complete the unlocking.

上述的实施方式,即使用户在公共场合进行解锁操作时被不法分子观察到解锁过程,也很难复制或者重现,增大解锁的难度。In the above-mentioned embodiments, even if the unlocking process is observed by criminals when the user performs the unlocking operation in a public place, it is difficult to copy or reproduce, which increases the difficulty of unlocking.

在一些实施方式中,第一指定角度的第一指定次数与第二指定角度的第二指定次数还可以按照预定顺序完成。即第一显示区域在完成第一指定次数的转动以及第二显示区域完成第二指定次数的转动时,不同时进行,而是按照预定顺序交错进行。In some embodiments, the first specified number of times of the first specified angle and the second specified number of times of the second specified angle may also be performed in a predetermined order. That is, when the first display area completes the rotation of the first specified number of times and the second display area completes the rotation of the second specified number of times, the rotation is not performed simultaneously, but is performed staggered in a predetermined order.

作为一种示例,设定第一指定角度的第一转动次数为3次,第二指定角度的第二转动次数为2次。预定顺序可以以第一显示区域转动和第二显示区域的转动交替进行的方式进行,例如先进行第一显示区域的转动,然后进行第二显示区域的转动,再然后进行第一显示区域的转动,依次类推。这种实施方式,可以进一步增大解锁条件的组合,增大不法分子破解的难度。As an example, the number of times of the first rotation of the first specified angle is set to be 3 times, and the number of times of the second rotation of the second specified angle is set to be 2 times. The predetermined sequence can be performed by alternately performing the rotation of the first display area and the rotation of the second display area. For example, the rotation of the first display area is performed first, then the rotation of the second display area is performed, and then the rotation of the first display area is performed. ,And so on. This implementation can further increase the combination of unlocking conditions and increase the difficulty of cracking by criminals.

在一些实施方式中,步骤S620中,第一指定角度可以包括两个或两个以上的不同角度值,且两个或两个以上的不同角度值可以按第一预定顺序进行排列,并分别对应于第一显示区域每一次转动的指定角度。第二指定角度可以包括两个或两个以上的不同角度值,且两个或两个以上的不同角度值可以按第二预定顺序进行排列,并分别对应于第二显示区域每一次转动的指定角度。可以理解,第一预定顺序和第二预定顺序可以是相同的顺序,也可以是不同的顺序。上述的实施方式可以产生更多的排列组合形式,进一步提高解锁的安全性。In some embodiments, in step S620, the first specified angle may include two or more different angle values, and the two or more different angle values may be arranged in a first predetermined order and correspond to The specified angle for each rotation of the first display area. The second designated angle may include two or more different angle values, and the two or more different angle values may be arranged in a second predetermined order and correspond to the designation of each rotation of the second display area respectively angle. It can be understood that the first predetermined order and the second predetermined order may be the same order, or may be different orders. The above-mentioned embodiments can generate more permutations and combinations, further improving the security of unlocking.

作为一种示例:第一指定次数设为3次,且每一次对应的指定角度分别为45°、60°、45°,第二指定次数设为2次,每一次对应的指定角度为30°、60°。此时用户在进行解锁操作时,第一显示区域需要3次转动,第一次转动的转动角度为45°,第二次转动的转动角度为60度,第三次转动的转动角度为45°。第二显示区域需要转动2次,且第一次转动的转动角度为30°,第二次转动的转动角度为60°。如此方能完成解锁。As an example: the first specified number of times is set to 3 times, and the specified angles corresponding to each time are 45°, 60°, and 45° respectively, the second specified number of times is set to 2 times, and the specified angle corresponding to each time is 30° , 60°. At this time, when the user performs the unlocking operation, the first display area needs to be rotated three times. The rotation angle of the first rotation is 45°, the rotation angle of the second rotation is 60 degrees, and the rotation angle of the third rotation is 45°. . The second display area needs to be rotated twice, and the rotation angle of the first rotation is 30°, and the rotation angle of the second rotation is 60°. Only then can the unlocking be completed.

在一些实施方式中,第一预定顺序和第二预定顺序可以按预定规则进行统一编排,即:组成一连续的顺序。作为一种示例:第一指定次数设为3次,且每一次对应的指定角度分别为25°、50°、35°,第二指定次数设为2次,每一次对应的指定角度为30°、45°。可以按以下方式排布转动方式:第一次转动,第一显示区域转动25;第二次转动,第一显示区域转动50°;第三次转动,第二显示区域转动30°;第四次转动,第一显示区域转动35°;第五次转动,第二显示区域转动45°。由此可以进一步提高排列组合的形式数量,提高解锁安全性。In some embodiments, the first predetermined order and the second predetermined order may be uniformly arranged according to predetermined rules, that is, form a continuous order. As an example: the first specified number of times is set to 3 times, and the specified angles corresponding to each time are 25°, 50°, and 35° respectively, the second specified number of times is set to 2 times, and the specified angle corresponding to each time is 30° , 45°. The rotation modes can be arranged as follows: the first rotation, the first display area rotates 25; the second rotation, the first display area rotates 50°; the third rotation, the second display area rotates 30°; the fourth rotation Rotation, the first display area rotates 35°; the fifth rotation, the second display area rotates 45°. As a result, the number of permutations and combinations can be further increased, and the unlocking security can be improved.

参阅图12,本实施例还提供一种解锁装置400,解锁装置400可以应用于如图1或图3 所示的折叠式电子设备500,解锁装置400包括检测装置410和显示区域解锁装置420。Referring to FIG. 12 , this embodiment further provides an unlocking apparatus 400 , which can be applied to the foldable electronic device 500 shown in FIG. 1 or FIG. 3 .

检测装置410用于在所述折叠式电子设备处于锁屏状态时,检测所述第一显示区域和所述第二显示区域的转动角度以及转动次数。显示区域解锁装置420用于在所述转动角度符合指定角度,且符合指定角度的转动次数为指定次数时,对所述折叠式电子设备解锁。The detection device 410 is configured to detect the rotation angle and the number of rotations of the first display area and the second display area when the foldable electronic device is in a locked screen state. The display area unlocking device 420 is configured to unlock the foldable electronic device when the rotation angle conforms to a specified angle and the number of rotations that meet the specified angle is a specified number of times.

参阅图13,在一些实施方式中,解锁装置400还可以包括获取装置430,获取装置430 用于获取指定角度以及指定次数。Referring to FIG. 13 , in some embodiments, the unlocking device 400 may further include an obtaining device 430, and the obtaining device 430 is configured to obtain a specified angle and a specified number of times.

需要说明的是,本申请中装置实施例与前述方法实施例是相互对应的,装置实施例中具体的原理可以参见前述方法实施例中的内容,此处不再赘述。It should be noted that the apparatus embodiments in the present application correspond to the foregoing method embodiments, and the specific principles in the apparatus embodiments may refer to the content in the foregoing method embodiments, which will not be repeated here.

请参阅图14,本实施例还提供一种电子设备500,前述的应用程序显示方法可以应用于本实施例的电子设备500中。电子设备500包括显示屏200以及相互耦合的一个或多个(图中仅示出一个)处理器502、存储器504。Referring to FIG. 14 , this embodiment further provides an electronic device 500 , and the aforementioned application program display method can be applied to the electronic device 500 in this embodiment. The electronic device 500 includes a display screen 200 and one or more (only one shown in the figure) processors 502 and a memory 504 coupled to each other.

显示屏200为一柔性显示屏且与处理器502电连接,且显示屏200为一连续的柔性显示屏并铺设于壳体组件上。The display screen 200 is a flexible display screen and is electrically connected to the processor 502, and the display screen 200 is a continuous flexible display screen and is laid on the casing assembly.

其中,该存储器504中存储有可以执行前述实施例中内容的程序,而处理器302可以执行该存储器504中存储的程序。The memory 504 stores a program that can execute the content in the foregoing embodiments, and the processor 302 can execute the program stored in the memory 504 .

其中,处理器502可以包括一个或者多个处理核。处理器502利用各种接口和线路连接整个电子设备500内的各个部分,通过运行或执行存储在存储器504内的指令、程序、代码集或指令集,以及调用存储在存储器504内的数据,执行电子设备500的各种功能和处理数据。可选地,处理器502可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(ProgrammableLogic Array,PLA)中的至少一种硬件形式来实现。处理器502可集成中央处理器(CentralProcessing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器502中,单独通过一块通信芯片进行实现。The processor 502 may include one or more processing cores. The processor 502 uses various interfaces and lines to connect various parts of the entire electronic device 500, and executes by running or executing the instructions, programs, code sets or instruction sets stored in the memory 504, and calling the data stored in the memory 504. Various functions of the electronic device 500 and processing data. Optionally, the processor 502 may employ at least one of a digital signal processing (Digital Signal Processing, DSP), a Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and a Programmable Logic Array (Programmable Logic Array, PLA). implemented in hardware. The processor 502 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a modem, and the like. Among them, the CPU mainly handles the operating system, user interface and application programs, etc.; the GPU is used for rendering and drawing of the display content; the modem is used to handle wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 502, and is implemented by a communication chip alone.

存储器504可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器504可用于存储指令、程序、代码、代码集或指令集。存储器504可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储电子设备500在使用中所创建的数据 (比如电话本、音视频数据、聊天记录数据)等。The memory 504 may include random access memory (Random Access Memory, RAM), or may include read-only memory (Read-Only Memory). Memory 504 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. The memory 504 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the following method embodiments, and the like. The storage data area may also store data (such as phone book, audio and video data, chat record data) created by the electronic device 500 during use.

在一些实施方式中,电子设备500还可以选择性的包括霍尔传感器506、指纹识别模组 508以及图像采集模组507,霍尔传感器506可以是一个或多个(图中仅示出一个)。霍尔传感器506用于检测第一显示区域以及第二显示区域之间的相对转动角度,同时当电子设备500 具有多个可相互折叠的显示区域时,可以设置多个霍尔传感器506,每个霍尔传感器506用于测定两个显示区域之间的相对转动角度。在一些实施方式中,多个霍尔传感器506可以设置于第一显示区域和第二显示区域下方或者电子设备500的转轴处等。霍尔传感器506与处理器502电连接,并可以将获取到的第一显示区域的以及第二显示区域之间的相对转动角度数据发送给处理器502进行处理。指纹识别模组508以及图像采集模组507均可以选择性的设置于第一显示区域或第二显示区域。In some embodiments, the electronic device 500 may also selectively include a Hall sensor 506, a fingerprint recognition module 508 and an image capture module 507, and the number of the Hall sensor 506 may be one or more (only one is shown in the figure) . The hall sensor 506 is used to detect the relative rotation angle between the first display area and the second display area, and when the electronic device 500 has a plurality of mutually foldable display areas, a plurality of hall sensors 506 may be provided, each The Hall sensor 506 is used to measure the relative rotation angle between the two display areas. In some implementations, a plurality of Hall sensors 506 may be disposed under the first display area and the second display area or at the rotating shaft of the electronic device 500 or the like. The Hall sensor 506 is electrically connected to the processor 502, and can send the acquired relative rotation angle data of the first display area and the second display area to the processor 502 for processing. Both the fingerprint identification module 508 and the image capture module 507 can be selectively disposed in the first display area or the second display area.

可以理解的是,本申请中的电子设备500可以为移动电话或智能电话(例如,基于iPhone TM,基于Android TM的电话),便携式游戏设备(例如Nintendo DS TM,PlayStationPortable TM,Gameboy Advance TM,iPhone TM)、膝上型电脑、PDA、便携式互联网设备、音乐播放器以及数据存储设备,其他手持设备以及诸如手表、耳机、吊坠、耳机等,电子设备500还可以为其他的可穿戴设备(例如,诸如电子眼镜、电子衣服、电子手镯、电子项链、电子纹身、电子设备500或智能手表的头戴式设备(HMD))。It will be appreciated that the electronic device 500 in this application may be a mobile phone or smart phone (eg, iPhone TM based, Android TM based phone), portable gaming device (eg Nintendo DS TM, PlayStationPortable TM, Gameboy Advance TM, iPhone TM), laptops, PDAs, portable Internet devices, music players, and data storage devices, other handheld devices and devices such as watches, headphones, pendants, earphones, etc., the electronic device 500 may also be other wearable devices (eg, Head mounted devices (HMDs) such as electronic glasses, electronic clothing, electronic bracelets, electronic necklaces, electronic tattoos, electronic devices 500 or smart watches.

电子设备500还可以是多个电子设备500中的任何一个,多个电子设备500包括但不限于蜂窝电话、智能电话、其他无线通信设备、个人数字助理、音频播放器、其他媒体播放器、音乐记录器、录像机、照相机、其他媒体记录器、收音机、医疗设备、车辆运输仪器、计算器、可编程遥控器、寻呼机、膝上型计算机、台式计算机、打印机、上网本电脑、个人数字助理(PDA)、便携式多媒体播放器(PMP)、运动图像专家组(MPEG-1或MPEG-2)音频层3(MP3) 播放器,便携式医疗设备以及数码相机及其组合。The electronic device 500 may also be any of a plurality of electronic devices 500 including, but not limited to, cellular phones, smart phones, other wireless communication devices, personal digital assistants, audio players, other media players, music Recorders, VCRs, Cameras, Other Media Recorders, Radios, Medical Equipment, Vehicle Transportation Instruments, Calculators, Programmable Remote Controls, Pagers, Laptops, Desktops, Printers, Netbooks, 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.

参阅图15,本申请实施例提供一种计算机可读存储介质的结构框图。该计算机可读介质 800中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Referring to FIG. 15 , an embodiment of the present application provides a structural block diagram of a computer-readable storage medium. The computer-readable medium 800 stores program codes, and the program codes can be invoked by the processor to execute the methods described in the above method embodiments.

计算机可读存储介质800可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质 800 包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质800 具有执行上述方法中的任何方法步骤的程序代码810的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码810 可以例如以适当形式进行压缩。The computer readable storage medium 800 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium. Computer readable storage medium 800 has storage space for program code 810 to perform any of the method steps in the above-described methods. These program codes can be read from or written to one or more computer program products. Program code 810 may be compressed, for example, in a suitable form.

以上所述仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included within the protection scope of this application.

Claims (13)

1. An unlocking method applied to a folding type electronic device, wherein the folding type electronic device is provided with a first display area and a second display area, and the first display area and the second display area can be folded or unfolded relatively, and the unlocking method is characterized by comprising the following steps:
when the folding electronic equipment is in a screen locking state, detecting the rotation angles and the rotation times of the first display area and the second display area;
when the fact that the rotating angle accords with the specified angle is detected within the preset time, the specified angle comprises a first specified angle used for representing the preset rotating angle of the first display area and a second specified angle used for representing the preset rotating angle of the second display area;
when the rotation angle of the second display area is detected to be kept to be 0 within a preset time length and the rotation frequency of the first display area, which is the first specified angle, is the specified frequency, unlocking the second display area of the folding electronic equipment;
wherein the number of rotations of the first display region and the second display region is determined in the following manner:
counting is started when the first display area and the second display area start to rotate, after the first display area and the second display area finish rotating once, the dwell time of the first display area and the second display area keeping the current relative angle is detected, and when the dwell time is larger than or equal to the preset time length, the counting of the number of times of rotation is ended.
2. The method according to claim 1, wherein when it is detected that the included angle between the first display area and the second display area meets the specified angle within a preset time length, and it is detected that the rotation angle of the second display area is kept to be 0 within the preset time length, and the rotation number of the first display area is a specified number of rotations of the first specified angle, the first display area and the second display area are unlocked simultaneously.
3. The method according to claim 1, wherein the foldable electronic device further comprises a fingerprint recognition module, and the detecting the rotation angles and the rotation times of the first display area and the second display area when the foldable electronic device is in the screen locking state comprises:
when the folding electronic equipment is in a screen locking state, detecting the identification result of the fingerprint identification module, and the rotation angles and the rotation times of the first display area and the second display area;
when the rotation angle accords with the specified angle, and the rotation times according with the specified angle is the specified times, the foldable electronic device is unlocked, including:
and when the rotating angle accords with the specified angle, the rotating times which accord with the specified angle are the specified times, and the fingerprint identification module identifies that the result is the specified user, unlocking the folding electronic equipment.
4. The method according to claim 1, wherein the foldable electronic device further comprises an image capturing module, the image capturing module is turned on when the rotation angles and the rotation times of the first display area and the second display area are detected, and the unlocking of the foldable electronic device when the rotation angles accord with a specified angle and the rotation times accord with the specified angle are a specified time comprises:
and when the rotating angle accords with the specified angle, the rotating times which accord with the specified angle are the specified times, and the image acquisition module identifies that the result is the specified user, unlocking the folding electronic equipment.
5. The method according to any one of claims 1 to 4, wherein the method for acquiring the specified angle and the specified number of times comprises:
displaying an encryption interface;
detecting the rotation angles and the rotation times of the first display area and the second display area;
and storing the detected rotation angle as the specified angle, and storing the detected rotation times as the specified times.
6. The method according to claim 5, wherein the detecting the rotation angle and the rotation number of the first display area and the second display area comprises:
detecting a first relative angle of the first display area and the second display area at an initial position and a second relative angle of the first display area and the second display area after rotation is completed, and determining a difference value between the first relative angle and the second relative angle as the rotation angle;
and taking the detected times of finishing the designated angle of the first display area and the second display area as the rotation times.
7. The method of claim 5, wherein displaying the encrypted interface comprises:
responding to a password setting request of a user;
and displaying the encryption interface, wherein the encryption interface comprises a password setting option list, and the password setting option list comprises options for setting passwords through rotating parameters.
8. The method according to claim 5, wherein storing the detected rotation angle as the specified angle and the detected number of rotations as the specified number of times comprises:
acquiring biological characteristic identification information of a user;
and binding and storing the biological feature identification information with the acquired specified angle and the specified times.
9. The method according to claim 5, wherein in the process of detecting the rotation angles of the first display area and the second display area, the current rotation angle value is displayed.
10. An unlocking device applied to a foldable electronic device, the foldable electronic device having a first display area and a second display area, the first display area and the second display area being foldable or unfoldable relative to each other, the unlocking device comprising:
the detection device is used for respectively detecting the rotation angles and the rotation times of the first display area and the second display area when the folding electronic equipment is in a screen locking state; and
the display area unlocking device is used for detecting that the rotation angle accords with a specified angle within a preset time length, and the specified angle comprises a first specified angle used for representing a preset rotation angle of the first display area and a second specified angle used for representing a preset rotation angle of the second display area; when the rotation angle of the second display area is detected to be kept to be 0 within a preset time length and the rotation frequency of the first display area, which is the first specified angle, is the specified frequency, unlocking the second display area of the folding electronic equipment;
wherein the number of rotations of the first display region and the second display region is determined in the following manner:
counting is started when the first display area and the second display area start to rotate, after the first display area and the second display area finish rotating once, the dwell time of the first display area and the second display area keeping the current relative angle is detected, and when the dwell time is larger than or equal to the preset time length, the counting of the number of times of rotation is ended.
11. An electronic device, comprising: the display screen comprises a first display area and a second display area, and the first display area and the second display area can be selectively folded or unfolded relatively; the processor is electrically connected with the display screen; the memory is coupled with the processor; the memory stores instructions that, when executed by the processor, cause the processor to perform the method of any of claims 1-9.
12. The electronic device of claim 11, further comprising a hall sensor electrically connected to the processor and configured to detect a relative rotation angle of the first display area and the second display area.
13. A computer-readable storage medium, characterized in that a program code is stored in the computer-readable storage medium, which program code can be called by a processor to execute the method according to any of claims 1-9.
CN201910452845.7A 2019-05-28 2019-05-28 Unlocking method and device, electronic equipment and storage medium Expired - Fee Related CN110263509B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910452845.7A CN110263509B (en) 2019-05-28 2019-05-28 Unlocking method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910452845.7A CN110263509B (en) 2019-05-28 2019-05-28 Unlocking method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110263509A CN110263509A (en) 2019-09-20
CN110263509B true CN110263509B (en) 2022-10-11

Family

ID=67915767

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910452845.7A Expired - Fee Related CN110263509B (en) 2019-05-28 2019-05-28 Unlocking method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110263509B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111142760B (en) * 2019-12-27 2021-04-23 维沃移动通信有限公司 A password determination method and electronic device
CN113704714B (en) * 2020-05-20 2024-06-11 Oppo广东移动通信有限公司 Password verification method, device, terminal and storage medium
CN112257043A (en) * 2020-10-26 2021-01-22 维沃移动通信有限公司 Verification method and device and electronic equipment
US11579679B2 (en) 2021-05-12 2023-02-14 Microsoft Technology Licensing, Llc Determining opening/closing of computing device
CN114840057B (en) * 2022-05-19 2023-11-03 武汉华星光电半导体显示技术有限公司 Folding screen and mobile terminal
US12130689B2 (en) 2023-01-20 2024-10-29 Microsoft Technology Licensing, Llc Touch detection of computing device position

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007091436A1 (en) * 2006-02-08 2007-08-16 Nec Corporation Mobile terminal, control method for mobile terminal, control program for mobile terminal, and recording medium
CN104272219A (en) * 2012-04-08 2015-01-07 三星电子株式会社 Deformable display device and method for controlling a deformable display device
CN104798011A (en) * 2012-10-04 2015-07-22 三星电子株式会社 Flexible display apparatus and control method thereof
CN107908350A (en) * 2017-12-28 2018-04-13 努比亚技术有限公司 A kind of unlocking method, terminal and computer-readable recording medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007091436A1 (en) * 2006-02-08 2007-08-16 Nec Corporation Mobile terminal, control method for mobile terminal, control program for mobile terminal, and recording medium
CN104272219A (en) * 2012-04-08 2015-01-07 三星电子株式会社 Deformable display device and method for controlling a deformable display device
CN104798011A (en) * 2012-10-04 2015-07-22 三星电子株式会社 Flexible display apparatus and control method thereof
CN107908350A (en) * 2017-12-28 2018-04-13 努比亚技术有限公司 A kind of unlocking method, terminal and computer-readable recording medium

Also Published As

Publication number Publication date
CN110263509A (en) 2019-09-20

Similar Documents

Publication Publication Date Title
CN110263509B (en) Unlocking method and device, electronic equipment and storage medium
CN108804884B (en) Identity authentication method, identity authentication device and computer storage medium
TWI471809B (en) Electronic device including finger sensor having orientation based authentication and related methods
EP4206983B1 (en) Fingerprint identification method and electronic device
US20150154394A1 (en) Gesture controlled login
CN110248025B (en) Identity recognition method, device and storage medium for multi-fingerprint and palm print information
CN110222789A (en) Image-recognizing method and storage medium
CN108345779B (en) Unlocking control method and related product
CN105279402B (en) A kind of unlocking method and mobile terminal based on placement angle
CN105956484B (en) Safe interaction method and system of intelligent terminal
CN107832595B (en) A locking method and related equipment
CN104778416B (en) A kind of information concealing method and terminal
CN104484858B (en) Character image processing method and processing device
CN111652624B (en) Ticket purchase processing method, ticket checking processing method, device, equipment and storage medium
CN103729622B (en) A kind of finger vein three-dimensional point cloud acquisition methods, device and a kind of terminal
US20210049392A1 (en) Authentication method for an electronic device
CN104079710A (en) Novel totally closed card reader integrated mobile phone
JP2013232816A (en) Portable terminal
WO2017161824A1 (en) Method and device for controlling terminal
CN112567380A (en) Method for multi-finger registration for a user
US20170091522A1 (en) Electronic device generating finger images at a progressively slower capture rate and related methods
JP2006259925A (en) Subject authentication apparatus, cellular phone, subject authentication method, and subject authentication program
CN107402787A (en) Iris recognition pattern open method and Related product
JP2019503545A (en) Method and fingerprint sensing system for analyzing a user's biometrics
CN107808081B (en) Reminding method and related equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20221011

CF01 Termination of patent right due to non-payment of annual fee