CN108139856B - Signature authentication method, terminal, stylus and system - Google Patents
Signature authentication method, terminal, stylus and system Download PDFInfo
- Publication number
- CN108139856B CN108139856B CN201680028530.4A CN201680028530A CN108139856B CN 108139856 B CN108139856 B CN 108139856B CN 201680028530 A CN201680028530 A CN 201680028530A CN 108139856 B CN108139856 B CN 108139856B
- Authority
- CN
- China
- Prior art keywords
- signature
- stylus
- data
- feature point
- information
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Collating Specific Patterns (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
技术领域technical field
本发明涉及手写笔签名认证技术领域,尤其涉及一种签名认证方法、终端、手写笔及系统。The invention relates to the technical field of stylus signature authentication, in particular to a signature authentication method, a terminal, a stylus and a system.
背景技术Background technique
手写笔签名技术已成为网络系统虚拟环境中确认用户身份的重要技术。用户使用手写笔在终端的触摸面板输入手写签名进行认证,终端通过触摸面板及传感器检测手写签名的相关数据。终端将其检测的签名的相关数据和预存的签名模板数据对比匹配,以鉴别签名真伪,判断用户输入手写签名认证是否通过。其中,终端检测的签名的相关数据包括签名图像信息和手写笔对触摸面板的压力信息等信息The stylus signature technology has become an important technology to confirm the user's identity in the virtual environment of the network system. The user uses a stylus to input a handwritten signature on the touch panel of the terminal for authentication, and the terminal detects the relevant data of the handwritten signature through the touch panel and the sensor. The terminal compares and matches the relevant data of the detected signature with the pre-stored signature template data to identify the authenticity of the signature and determine whether the user-input handwritten signature has passed the authentication. Among them, the relevant data of the signature detected by the terminal includes information such as the signature image information and the pressure information of the stylus on the touch panel.
现有技术中,当尝试模仿用户的手写签名的攻击者得到用户的签名模板数据后,将其依次呈现给终端认证系统,伪造用户的手写签名,通过签名认证。攻击者伪造用户手写签名认证通过后,可非法获取用户的相关权限,进一步威胁用户的人身或财产安全。In the prior art, when an attacker who tries to imitate the user's handwritten signature obtains the user's signature template data, presents it to the terminal authentication system in turn, forges the user's handwritten signature, and passes the signature authentication. After passing the authentication by forging the user's handwritten signature, an attacker can illegally obtain the relevant permissions of the user, further threatening the personal or property safety of the user.
现有技术仅终端检测手写签名的相关数据做为签名模板,可模仿性高,故现有手写签名认证系统的安全性差。In the prior art, only the relevant data of the handwritten signature detected by the terminal is used as a signature template, which is highly imitative, so the security of the existing handwritten signature authentication system is poor.
发明内容SUMMARY OF THE INVENTION
本发明实施例涉及一种签名认证方法、终端、手写笔及系统,提高手写签名认证系统的安全性。The embodiments of the present invention relate to a signature authentication method, a terminal, a handwriting pen and a system, and improve the security of the handwritten signature authentication system.
第一方面,本发明实施例提供了一种签名认证方法,该方法包括:当用户通过手写笔在终端的触摸面板上进行签名时,终端检测第一签名数据,第一签名数据包括手写笔与触摸面板的接触点的坐标信息和接触点处手写笔对触摸面板的压力信息;以及,终端接收手写笔发送的第二签名数据,第二签名数据包括手写笔检测的当用户通过手写笔在触摸面板上进行签名时手写笔的运动轨迹信息及用户对手写笔的压力信息。将第一签名数据和第二签名数据与预存的签名模板数据匹配对比,得到匹配率。当匹配率不低于预设的匹配率阈值时,签名认证通过。In a first aspect, an embodiment of the present invention provides a signature authentication method. The method includes: when a user signs on a touch panel of a terminal with a stylus, the terminal detects first signature data, where the first signature data includes the stylus and the touch panel. The coordinate information of the contact point of the touch panel and the pressure information of the stylus on the touch panel at the contact point; and the terminal receives the second signature data sent by the stylus, and the second signature data includes the stylus detected when the user touches the touch panel with the stylus. The movement track information of the stylus and the pressure information of the user on the stylus when signing on the panel. Matching and comparing the first signature data and the second signature data with the pre-stored signature template data to obtain a matching rate. When the matching rate is not lower than the preset matching rate threshold, the signature authentication is passed.
本发明实施例在用户使用手写笔在终端的触摸面板输入手写签名的过程中,通过手写笔提取更多的用户签名特征数据,对比匹配,增加攻击者模仿用户签名信息的难度,提高了签名认证系统的安全性。In the embodiment of the present invention, when the user uses a stylus to input a handwritten signature on the touch panel of the terminal, the stylus is used to extract more user signature feature data, compare and match, increase the difficulty of an attacker imitating the user signature information, and improve the signature authentication. system security.
在一种可能的实施方式中,第一签名数据与第二签名数据的采样时间和采样频率保持同步。In a possible implementation, the sampling time and sampling frequency of the first signature data and the second signature data are kept synchronized.
本发明实施例提供的签名认证系统,使得攻击者在模仿用户笔迹的同时,还要模仿用户的手部动作,极大幅度提高了签名认证系统的安全性。The signature authentication system provided by the embodiment of the present invention enables the attacker to imitate the user's hand movements while imitating the user's handwriting, which greatly improves the security of the signature authentication system.
在一种可能的实施方式中,签名对应第一签名特征点和第二签名特征点,第一签名特征点包括接触点组成的集合中的至少一个点,第二签名特征点包括手写笔在触摸面板以外区域的运动轨迹中的点的集合中的至少一个点;从第一签名数据和第二签名数据中提取第一签名特征点和第二签名特征点对应的数据;将第一签名特征点和第二签名特征点对应的数据与签名模板数据中每个特征点的数据匹配对比,得到匹配率。In a possible implementation manner, the signature corresponds to a first signature feature point and a second signature feature point, the first signature feature point includes at least one point in a set consisting of contact points, and the second signature feature point includes At least one point in the set of points in the motion trajectory of the area outside the panel; extract the data corresponding to the first signature feature point and the second signature feature point from the first signature data and the second signature data; The data corresponding to the second signature feature point is matched and compared with the data of each feature point in the signature template data to obtain a matching rate.
在一种可能的实施方式中,第一签名特征点对应的数据包括:第一签名特征点对应的接触点的坐标信息、第一签名特征点对应的接触点处手写笔对触摸面板的压力信息以及在与第一签名特征点的采样时间相同时手写笔的位置信息和用户对手写笔的压力信息;其中,手写笔的位置信息通过手写笔的运动轨迹信息得到。In a possible implementation manner, the data corresponding to the first signature feature point includes: coordinate information of the contact point corresponding to the first signature feature point, pressure information of the stylus on the touch panel at the contact point corresponding to the first signature feature point and the position information of the stylus and the pressure information of the user on the stylus when the sampling time of the first signature feature point is the same; wherein, the position information of the stylus is obtained from the movement track information of the stylus.
其中,当检测手写笔运动轨迹的坐标系与检测接触点的坐标的坐标系变换统一后,触摸面板所在区域内手写笔笔端的位置坐标与接触点的位置坐标重合。Wherein, after the coordinate system for detecting the movement trajectory of the stylus pen and the coordinate system for detecting the coordinates of the contact point are transformed and unified, the position coordinates of the stylus pen end in the area where the touch panel is located coincide with the position coordinates of the contact point.
在一种可能的实施方式中,第二签名特征点对应的数据包括:第二签名特征点对应的手写笔的位置信息及用户对手写笔的压力信息。In a possible implementation manner, the data corresponding to the second signature feature point includes: position information of the stylus corresponding to the second signature feature point and pressure information of the user on the stylus.
在一种可能的实施方式中,第二签名数据还包括:手写笔检测的当用户通过手写笔在触摸面板上进行签名时手写笔的加速度、手写笔受到用户压力的受压面积信息和受压区域的形状信息、以及手写笔受压区域距手写笔笔端的距离信息。In a possible implementation manner, the second signature data further includes: acceleration of the stylus detected by the stylus when the user signs on the touch panel with the stylus, pressure area information of the stylus subjected to the user's pressure, and pressure The shape information of the area, and the distance information from the pressed area of the stylus to the end of the stylus.
在一种可能的实施方式中,第一签名特征点具体包括下述点中的一个或多个、第一个接触点、最后一个接触点、不连续的接触点或曲率变化大的接触点。In a possible implementation manner, the first signature feature point specifically includes one or more of the following points, the first contact point, the last contact point, a discontinuous contact point, or a contact point with a large curvature change.
具体地,不连续的接触点对应签名中,不同笔画的起始点。曲率变换大的点对应笔画中的弯折点。Specifically, the discontinuous contact points correspond to the starting points of different strokes in the signature. Points with large curvature transformations correspond to bending points in the stroke.
在一种可能的实施方式中,第二签名特征点具体包括下述点中的一个或多个:在触摸面板以外区域中每段不连续的手写笔的运动轨迹对应的曲线中曲率最大的点,或在触摸面板以外区域中每段不连续的手写笔的运动轨迹对应的曲线中距离触摸面板距离最远的点。In a possible implementation manner, the second signature feature point specifically includes one or more of the following points: the point with the largest curvature in the curve corresponding to the motion trajectory of each discontinuous stylus in the area outside the touch panel , or the point farthest from the touch panel in the curve corresponding to the movement trajectory of each discontinuous stylus in the area outside the touch panel.
其中,每段不连续的手写笔的运动轨迹对应的曲线中曲率最大的点,或每段不连续的手写笔的运动轨迹对应的曲线中距离触摸面板距离最远的点对应两个笔画之间手写笔提笔的最高点。Among them, the point with the largest curvature in the curve corresponding to the movement trajectory of each discontinuous stylus, or the point farthest from the touch panel in the curve corresponding to the movement trajectory of each discontinuous stylus corresponds to the point between the two strokes The highest point of the stylus.
在一种可能的实施方式中,从接触点中提取第一签名特征点;将手写笔笔端的运动轨迹在触摸面板所在第一平面进行投影,得到手写笔笔端的第一运动轨迹;将手写笔笔端的运动轨迹在与第一平面垂直的第二平面、第三平面进行投影,得到手写笔笔端的第二运动轨迹和第三运动轨迹,第二平面与第三平面垂直;从第一运动轨迹、第二运动轨迹和第三运动轨迹中的至少一个运动轨迹中提取第二签名特征点;从第一签名数据和第二签名数据中提取第一签名特征点和第二签名特征点对应的数据;将第一签名特征点和第二签名特征点对应的数据与签名模板数据中每个特征点的数据匹配对比,得到匹配率。In a possible implementation, the first signature feature point is extracted from the contact point; the movement trajectory of the pen end of the stylus is projected on the first plane where the touch panel is located to obtain the first movement trajectory of the pen end of the stylus pen; The motion trajectory of the pen end is projected on the second plane and the third plane perpendicular to the first plane to obtain the second motion trajectory and the third motion trajectory of the pen end of the stylus, and the second plane is perpendicular to the third plane; from the first motion trajectory Extract the second signature feature point from at least one motion track in the second motion track and the third motion track; extract the data corresponding to the first signature feature point and the second signature feature point from the first signature data and the second signature data ; Match and compare the data corresponding to the first signature feature point and the second signature feature point with the data of each feature point in the signature template data to obtain a matching rate.
在一种可能的实施方式中,根据终端所在的环境预设匹配率阈值。In a possible implementation manner, a matching rate threshold is preset according to the environment where the terminal is located.
本发明实施例还可根据终端所在环境,设定不同的匹配率阈值,可适应用户实际需求,具有很好的应用前景。The embodiment of the present invention can also set different matching rate thresholds according to the environment where the terminal is located, which can adapt to the actual needs of users and has a good application prospect.
第二方面,本发明实施例提供了一种签名认证方法,该方法包括:当用户通过手写笔在终端的触摸面板上进行签名时,手写笔检测第二签名数据,第二签名数据包括手写笔的运动轨迹信息及用户对手写笔的压力信息;手写笔将第二签名数据发送给终端,以使终端根据第二签名数据及终端检测的第一签名数据确定签名认证是否通过,第一签名数据包括手写笔与触摸面板的接触点的坐标信息和接触点处手写笔对触摸面板的压力信息。In a second aspect, an embodiment of the present invention provides a signature authentication method, the method includes: when a user signs on a touch panel of a terminal with a stylus, the stylus detects second signature data, and the second signature data includes the stylus The stylus sends the second signature data to the terminal, so that the terminal determines whether the signature authentication is passed according to the second signature data and the first signature data detected by the terminal, and the first signature data It includes the coordinate information of the contact point between the stylus and the touch panel and the pressure information of the stylus on the touch panel at the contact point.
在一种可能的实施方式中,第二签名数据还包括:手写笔检测的当用户通过手写笔在触摸面板上进行签名时手写笔的加速度、手写笔受到用户压力的受压面积信息和受压区域的形状信息、以及手写笔受压区域距手写笔笔端的距离信息。In a possible implementation manner, the second signature data further includes: acceleration of the stylus detected by the stylus when the user signs on the touch panel with the stylus, pressure area information of the stylus subjected to the user's pressure, and pressure The shape information of the area, and the distance information from the pressed area of the stylus to the end of the stylus.
具体地,第二签名特征数据反映用户的手部动作特征。不同用户输入手写签名时,手握手写笔的力度、形状、以及握笔区域距笔端的距离可能存在差别。Specifically, the second signature feature data reflects the hand motion feature of the user. When different users input handwritten signatures, there may be differences in the strength, shape, and distance between the holding area and the end of the pen.
在一种可能的实施方式中,第一签名数据与第二签名数据的采样时间和采样频率保持同步。In a possible implementation, the sampling time and sampling frequency of the first signature data and the second signature data are kept synchronized.
第三方面,本发明实施例提供了一种终端,该终端包括:触摸面板、显示面板、传感器、处理器、存储器、通信单元。In a third aspect, an embodiment of the present invention provides a terminal, where the terminal includes: a touch panel, a display panel, a sensor, a processor, a memory, and a communication unit.
触摸面板,用于接收用户通过手写笔输入的签名。显示面板,用于显示签名的图像。触摸面板,还用于检测手写笔与触摸面板的接触点的坐标信息。传感器,用于检测接触点处手写笔对触摸面板的压力信息;接触点的坐标信息和接触点处手写笔对触摸面板的压力信息组成第一签名数据。通信单元,用于与手写笔建立通信连接,接收手写笔发送的第二签名数据,第二签名数据包括手写笔检测的当用户通过手写笔在触摸面板上进行签名时手写笔的运动轨迹信息及用户对手写笔的压力信息。存储器,用于存储预设的匹配率阈值。处理器,用于将第一签名数据和第二签名数据与预存的签名模板数据匹配对比,得到匹配率;当匹配率不低于预设的匹配率阈值时,指示显示面板显示签名认证通过的提示信息。显示面板,还用于显示签名认证通过的提示信息。The touch panel is used to receive the signature entered by the user through the stylus. Display panel to display an image of the signature. The touch panel is also used to detect the coordinate information of the contact point between the stylus and the touch panel. The sensor is used to detect the pressure information of the stylus on the touch panel at the contact point; the coordinate information of the contact point and the pressure information of the stylus on the touch panel at the contact point constitute the first signature data. The communication unit is used to establish a communication connection with the stylus, and receive the second signature data sent by the stylus. The second signature data includes the movement track information of the stylus detected by the stylus when the user signs on the touch panel through the stylus, and User pressure information on the stylus. The memory is used to store the preset matching rate threshold. The processor is used to match and compare the first signature data and the second signature data with the pre-stored signature template data to obtain a matching rate; when the matching rate is not lower than the preset matching rate threshold, instruct the display panel to display the signature verification passed. prompt information. The display panel is also used to display the prompt information that the signature verification is passed.
在一种可能的实施方式中,处理器,还用于向手写笔发送对手写笔的采样时间和采样频率的控制信息,以控制第一签名数据与第二签名数据的采样时间和采样频率保持同步。In a possible implementation manner, the processor is further configured to send control information on the sampling time and sampling frequency of the stylus to the stylus, so as to control the sampling time and sampling frequency of the first signature data and the second signature data to maintain Synchronize.
在一种可能的实施方式中,签名对应第一签名特征点和第二签名特征点,第一签名特征点包括接触点组成的集合中的至少一个点,第二签名特征点包括手写笔在触摸面板以外区域的运动轨迹中的点的集合中的至少一个点;处理器,具体用于从第一签名数据和第二签名数据中提取第一签名特征点和第二签名特征点对应的数据;将第一签名特征点和第二签名特征点对应的数据与签名模板数据中每个特征点的数据匹配对比,得到匹配率。In a possible implementation manner, the signature corresponds to a first signature feature point and a second signature feature point, the first signature feature point includes at least one point in a set consisting of contact points, and the second signature feature point includes at least one point in the set of points in the motion trajectory of the area outside the panel; the processor is specifically configured to extract data corresponding to the first signature feature point and the second signature feature point from the first signature data and the second signature data; The data corresponding to the first signature feature point and the second signature feature point are matched and compared with the data of each feature point in the signature template data to obtain a matching rate.
在一种可能的实施方式中,处理器,具体用于从接触点中提取第一签名特征点;将手写笔笔端的运动轨迹在触摸面板所在第一平面进行投影,得到手写笔笔端的第一运动轨迹;将手写笔笔端的运动轨迹在与第一平面垂直的第二平面、第三平面进行投影,得到手写笔笔端的第二运动轨迹和第三运动轨迹,第二平面与第三平面垂直;从第一运动轨迹、第二运动轨迹和第三运动轨迹中的至少一个运动轨迹中提取第二签名特征点;从第一签名数据和第二签名数据中提取第一签名特征点和第二签名特征点对应的数据;将第一签名特征点和第二签名特征点对应的数据与签名模板数据中每个特征点的数据匹配对比,得到匹配率。In a possible implementation, the processor is specifically configured to extract the first signature feature point from the contact point; project the motion trajectory of the pen end of the stylus on the first plane where the touch panel is located to obtain the first signature of the pen end of the stylus. Movement trajectory; the movement trajectory of the stylus pen end is projected on the second plane and the third plane perpendicular to the first plane to obtain the second movement trajectory and the third movement trajectory of the stylus pen end, and the second plane is perpendicular to the third plane. ; Extract the second signature feature point from at least one of the first motion track, the second motion track and the third motion track; Extract the first signature feature point and the second signature data from the first signature data and the second signature data The data corresponding to the signature feature point; the data corresponding to the first signature feature point and the second signature feature point are matched and compared with the data of each feature point in the signature template data to obtain the matching rate.
在一种可能的实施方式中,处理器,还用于根据通信单元连接的网络确定终端所在的环境,根据终端所在的环境预设匹配率阈值。In a possible implementation manner, the processor is further configured to determine the environment where the terminal is located according to the network to which the communication unit is connected, and preset a matching rate threshold according to the environment where the terminal is located.
第四方面,本发明实施例提供了一种手写笔,该手写笔包括:传感器单元、处理器、通信单元。In a fourth aspect, an embodiment of the present invention provides a stylus pen, where the stylus pen includes: a sensor unit, a processor, and a communication unit.
传感器单元,用于当用户通过手写笔在终端的触摸面板上进行签名时,检测手写笔的运动轨迹信息及用户对手写笔的压力信息。The sensor unit is used for detecting the movement track information of the stylus pen and the pressure information of the user on the stylus pen when the user signs on the touch panel of the terminal with the stylus pen.
处理器,用于将手写笔的运动轨迹信息及用户对手写笔的压力信息转换成终端能够处理的第二签名数据,并指示通信单元发送给终端。The processor is configured to convert the movement track information of the stylus and the pressure information of the user on the stylus into second signature data that can be processed by the terminal, and instruct the communication unit to send the data to the terminal.
通信单元,用于与终端建立通信连接,并将第二签名数据发送给终端。The communication unit is configured to establish a communication connection with the terminal and send the second signature data to the terminal.
在一种可能的实施方式中,传感器单元,还用于当用户通过手写笔在终端的触摸面板上进行签名时,检测手写笔的加速度、手写笔受到用户压力的受压面积信息和受压区域的形状信息、以及手写笔受压区域距手写笔笔端的距离信息。In a possible implementation manner, the sensor unit is further configured to detect the acceleration of the stylus, the pressure area information and the pressure area of the stylus when the stylus is pressed by the user when the user signs on the touch panel of the terminal The shape information of the stylus, and the distance information of the pressed area of the stylus from the end of the stylus.
在一种可能的实施方式中,其特征在于,通信单元,还用于接收终端发送的对传感器单元的采样时间和采样频率的控制信息,以控制第一签名数据与第二签名数据的采样时间和采样频率保持同步。In a possible implementation manner, the communication unit is further configured to receive control information on the sampling time and sampling frequency of the sensor unit sent by the terminal, so as to control the sampling time of the first signature data and the second signature data synchronized with the sampling frequency.
第五方面,本发明实施例提供了一种签名认证系统,包括上述第三方面提供的终端和上述第四方面提供的手写笔。In a fifth aspect, an embodiment of the present invention provides a signature authentication system, including the terminal provided in the foregoing third aspect and the stylus provided in the foregoing fourth aspect.
本发明实施例提供的签名认证方法、终端、手写笔及系统,终端和手写笔同时检测签名的相关数据,将签名的相关数据与预存的签名模板数据对比匹配,并根据匹配率确定签名认证是否通过。本发明实施例在用户使用手写笔在终端的触摸面板输入手写签名的过程中,通过手写笔提取更多的用户签名特征数据,对比匹配,使得攻击者在模仿用户笔迹的同时,还要模仿用户的手部动作,增加攻击者模仿用户签名信息的难度,极大幅度提高了签名认证系统的安全性。In the signature authentication method, terminal, stylus, and system provided by the embodiments of the present invention, the terminal and the stylus simultaneously detect the relevant data of the signature, compare and match the relevant data of the signature with the pre-stored signature template data, and determine whether the signature is authenticated according to the matching rate. pass. In this embodiment of the present invention, when a user uses a stylus to input a handwritten signature on the touch panel of a terminal, the stylus is used to extract more user signature feature data and compare and match, so that the attacker can imitate the user's handwriting while imitating the user's handwriting. It increases the difficulty for attackers to imitate the user's signature information, and greatly improves the security of the signature authentication system.
附图说明Description of drawings
图1为本发明实施例提供的签名认证系统架构示意图;1 is a schematic diagram of the architecture of a signature authentication system provided by an embodiment of the present invention;
图2为本发明实施提供的终端架构示意图;2 is a schematic diagram of a terminal architecture provided by the implementation of the present invention;
图3为本发明实施例提供的手写笔架构示意;FIG. 3 is a schematic diagram of a stylus structure provided by an embodiment of the present invention;
图4为本发明实施例提供的签名认证系统的坐标系及签名示意图;4 is a schematic diagram of a coordinate system and a signature of a signature authentication system provided by an embodiment of the present invention;
图5为本发明实施例提供的签名认证系统方法信令交互图。FIG. 5 is a signaling interaction diagram of a method for a signature authentication system provided by an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the present invention. examples, but not all examples. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
本发明实施例提及的“攻击者”指的是尝试模仿用户输入的手写签名的特征,及模仿用户输入手写签名过程中,用户的手部动作等的相关特征,以通过终端的认证的其他用户。本发明实施例提及的“其他用户”指的是相对输入手写签名A的用户A而言的,“其他用户”不同于输入手写签名A的用户A。其中,每个用户与该用户的手写签名的相关数据一一对应。A指代任意用户。The “attacker” mentioned in the embodiment of the present invention refers to an attempt to imitate the characteristics of the handwritten signature input by the user, and imitate the relevant characteristics of the user’s hand movements in the process of imitating the user’s handwriting signature input, so as to pass the authentication of the terminal. user. The "other users" mentioned in the embodiments of the present invention refer to the user A who inputs the handwritten signature A, and the "other users" is different from the user A who inputs the handwritten signature A. Wherein, each user has a one-to-one correspondence with the relevant data of the user's handwritten signature. A refers to any user.
本发明实施例提及的“接触点”指的是手写笔与触摸面板的接触点。可以理解的是,手写笔与触摸面板的接触点组成手写签名图像。The "contact point" mentioned in the embodiments of the present invention refers to the contact point between the stylus pen and the touch panel. It can be understood that the contact points of the stylus and the touch panel constitute a handwritten signature image.
本发明实施例提及的手写笔的“运动轨迹”指的是手写笔上某一点在空间不同位置上对应的点组成的曲线。例如,手写笔笔端在空间划过的不同点组成的曲线为手写笔笔端的运动轨迹。The "movement trajectory" of the stylus mentioned in the embodiment of the present invention refers to a curve composed of points corresponding to a certain point on the stylus at different positions in space. For example, the curve formed by the different points drawn by the stylus end in space is the motion trajectory of the stylus pen end.
本发明实施例提及的用户的“握笔姿势”指的是用户握笔时,手写笔受到压力的受压面积和/或受压形状。本发明实施例提及的用户的“握笔力度”指的是用户握笔时,对手写笔的压力信息。需要说明的是,不同用户可能对应不同握笔姿势和握笔力度等特征信息。The "pen-holding posture" of the user mentioned in the embodiments of the present invention refers to the pressure-bearing area and/or the pressure-bearing shape of the stylus when the user holds the pen. The "pen-holding strength" of the user mentioned in the embodiment of the present invention refers to the pressure information on the stylus when the user holds the pen. It should be noted that different users may correspond to different feature information such as pen-holding postures and pen-holding strengths.
本发明实施例提及的“曲率”指的曲线在某一点的弯曲程度的数值。曲率越大,表示曲线的弯曲程度越大。“曲率变化较大的点”指的是曲率弯折变换较明显的点。例如对签名中的具体字而言,笔画“竖钩(乚)”存在两个曲率变化较大的点。笔画“横线-”不存在曲率变化较大的点。The "curvature" mentioned in the embodiments of the present invention refers to a numerical value of the degree of curvature of a curve at a certain point. The greater the curvature, the greater the curvature of the curve. "Points with larger curvature changes" refer to points where curvature bending changes are more pronounced. For example, for a specific word in the signature, there are two points with large curvature changes in the stroke "hook (湚)". The stroke "horizontal line-" does not have a point with a large curvature change.
本发明实施例提及的“匹配率”指的是数据与数据对比后的匹配度。The "matching rate" mentioned in the embodiment of the present invention refers to the matching degree after the data is compared with the data.
本发明实施例提及的“匹配率阈值”指的是在用户输入手写签名进行认证时,终端可预先设定的一个匹配率门限(匹配率阈值)。用户输入手写签名进行认证时,当手写签名的相关数据与签名模板数据的匹配率不低于该匹配率阈值时,终端可确定该用户的手写签名认证通过。例如,匹配率阈值为70%,终端计算的用户的手写签名的相关数据与签名模板数据的匹配率为75%时,由于75%>70%,则终端确定用户的手写签名认证通过。The "matching rate threshold" mentioned in the embodiment of the present invention refers to a matching rate threshold (matching rate threshold) that can be preset by the terminal when the user inputs a handwritten signature for authentication. When the user inputs a handwritten signature for authentication, when the matching rate between the relevant data of the handwritten signature and the signature template data is not lower than the matching rate threshold, the terminal may determine that the user's handwritten signature has passed the authentication. For example, if the matching rate threshold is 70%, and the matching rate between the relevant data of the user's handwritten signature calculated by the terminal and the signature template data is 75%, since 75%>70%, the terminal determines that the user's handwritten signature has passed the authentication.
本发明实施例提及的“预设”指的是预先设定。“预设匹配率阈值”指的是在用户输入手写签名进行认证之前,预先设定一个匹配率阈值,以判断认证是否通过。The "preset" mentioned in the embodiment of the present invention refers to a preset setting. The "preset matching rate threshold" refers to setting a matching rate threshold in advance before the user enters a handwritten signature for authentication, so as to determine whether the authentication is passed.
本发明实施例提及的“第一签名数据”指的是终端检测的签名的相关数据,例如签名的图像信息、手写笔对终端的触摸面板的压力信息等。The "first signature data" mentioned in the embodiment of the present invention refers to data related to the signature detected by the terminal, such as image information of the signature, pressure information of the stylus on the touch panel of the terminal, and the like.
本发明实施例提及的“第二签名数据”指的是手写笔检测的签名的相关数据,例如用户通过手写笔输入手写签名过程中,用户对手写笔的压力信息和手写笔的运动轨迹信息等。The "second signature data" mentioned in the embodiment of the present invention refers to the data related to the signature detected by the stylus, for example, during the process of the user inputting the handwritten signature through the stylus, the pressure information of the user on the stylus and the movement track information of the stylus Wait.
本发明实施例提及的“时间关系”指的是“第一签名数据”和“第二签名数据”的检测时间关系。例如,当触摸面板和手写笔的采样时间和采样频率保持同步时,相同采样时间对应的第一签名数据和第二签名数据是对应的。The "time relationship" mentioned in the embodiment of the present invention refers to the detection time relationship between the "first signature data" and the "second signature data". For example, when the sampling time and sampling frequency of the touch panel and the stylus are kept synchronized, the first signature data and the second signature data corresponding to the same sampling time are corresponding.
本发明实施例提及的“空间关系”指的是“第一签名数据”和“第二签名数据”对应的点的空间位置关系。可以理解的是,当手写笔笔端与触摸面板接触时,在同一个坐标系中,手写笔笔端所在的位置与接触点所在的位置相同。The "spatial relationship" mentioned in the embodiment of the present invention refers to the spatial position relationship of the points corresponding to the "first signature data" and the "second signature data". It can be understood that when the pen end of the stylus is in contact with the touch panel, in the same coordinate system, the position of the pen end of the stylus is the same as the position of the contact point.
本发明实施例提及的“特征点”指的是用户手写签名图像中,有代表性的点。以用户的手写签名为其中文姓名为例,用户的姓氏和名字均是由笔画组成的。不同的笔画可能是不连续的。每个用户写字的习惯和写字大小不同。但签名中每个“字”的笔画是固定不变。因此,可以选取用户手写签名的各个笔画的起始点,做为用户手写签名的特征点。其中,各个笔画的起始点体现为触摸面板检测的不连续的接触点。The "feature points" mentioned in the embodiments of the present invention refer to representative points in the image of the user's handwritten signature. Taking the user's handwritten signature as his Chinese name as an example, the user's surname and first name are composed of strokes. Different strokes may be discontinuous. Each user's writing habits and writing size are different. However, the strokes of each "word" in the signature are fixed. Therefore, the starting point of each stroke of the user's handwritten signature can be selected as the feature point of the user's handwritten signature. Wherein, the starting points of each stroke are embodied as discontinuous contact points detected by the touch panel.
进一步,本发明实施例提及的“签名特征点”指的是从第一签名数据对应的特征点和第二签名数据对应的特征点中提取出的部分具有代表性的特征点。其中,手写笔与触摸面板接触的点为第一特征点,手写笔在触摸面板以外区域的点为第二特征点。例如,“签名特征点”包括手写笔与触摸面板的第一个接触点、最后一个接触点、不连续的接触点、曲率变化较大的接触点等接触点中的一个或多个。“签名特征点”还包括两个不连续的接触点对应的手写笔运动轨迹中手写笔距离触摸面板最远的点。Further, the "signature feature points" mentioned in the embodiments of the present invention refer to some representative feature points extracted from the feature points corresponding to the first signature data and the feature points corresponding to the second signature data. The point where the stylus is in contact with the touch panel is the first feature point, and the point where the stylus is outside the touch panel is the second feature point. For example, the "signature feature point" includes one or more of the first contact point, the last contact point, the discontinuous contact point, and the contact point with large curvature change between the stylus and the touch panel. The "signature feature point" also includes the point where the stylus is farthest from the touch panel in the stylus movement trajectory corresponding to the two discontinuous contact points.
本领域技术人员可以理解的是,手写笔每次提笔期间,手写笔距离触摸面板最远的距离,一定程度上可以反映不同用户的书写习惯。例如,用户输入手写签名过程中,输入不连续的笔画时需要抬起手写笔离开触摸面板运动,其中,书写两个笔画之间,不同用户带动的手写笔离开触摸面板的最远点的距离是不同的。Those skilled in the art can understand that, each time the stylus is lifted, the farthest distance between the stylus and the touch panel can reflect the writing habits of different users to a certain extent. For example, in the process of inputting a handwritten signature, the user needs to lift the stylus to move away from the touch panel when inputting discontinuous strokes. The distance between the two strokes, the farthest point of the stylus driven by different users from the touch panel is different.
本发明实施例提及的“安全等级”指的是签名认证系统所在环境的安全情况。例如,在家里或者车内等环境,进行签名认证,对用户而言相对比较安全。在一个更具体的例子中,用户需要在其个人电脑的触摸面板输入手写签名,以开启使用权限。当用户手持个人电脑在家里或者其车内时,相比其他公共地方,家里或者其车内环境不容易被攻击者侵占,故安全等级相对较高。具体地,可通过“第一”、“第二”、“第三”等区分签名认证系统所在不同环境的安全等级。其中,“第一”可设为最高安全等级,依次降低等级。如家里或车内为“第一安全等级等级”,办公室为“第二安全等级”,户外为“第三安全等级”。The "security level" mentioned in the embodiment of the present invention refers to the security situation of the environment where the signature authentication system is located. For example, it is relatively safe for users to perform signature authentication in environments such as home or in a car. In a more specific example, the user needs to enter a handwritten signature on the touch panel of his personal computer to enable usage rights. When a user holds a personal computer at home or in his car, compared with other public places, the environment in the home or in the car is not easily invaded by attackers, so the security level is relatively high. Specifically, the security levels of different environments where the signature authentication system is located can be distinguished by "first", "second", "third", etc. Among them, "first" can be set as the highest security level, and the level is decreased in turn. For example, the home or car is the "first security level", the office is the "second security level", and the outdoor is the "third security level".
进一步地,在相对较安全的环境中,攻击者侵占的可能性低,则可设置相对较低的匹配率阈值,以更好的适应用户的需求。具体地,可根据不同的安全等级,预设不同的匹配率阈值。如第一安全等级时,匹配率阈值预设为60%。第二安全等级时,匹配率阈值预设为70%。第三安全等级时,匹配率阈值预设为80%。可以理解的是,具体安全等级的划分方式和匹配率阈值的设定,可根据需要做调整,在此不做赘述。Further, in a relatively secure environment, where the possibility of intrusion by an attacker is low, a relatively low matching rate threshold can be set to better meet the needs of users. Specifically, different matching rate thresholds can be preset according to different security levels. For example, in the first security level, the matching rate threshold is preset to 60%. At the second security level, the matching rate threshold is preset to 70%. At the third security level, the matching rate threshold is preset to 80%. It can be understood that, the specific security level division method and the setting of the matching rate threshold can be adjusted as needed, which will not be repeated here.
此外,在本申请的描述中,除非另有说明,“第一”、“第二”、“第三”等仅用于区分不同的数据、签名特征点或者安全等级,不应理解为是对数据、签名特征点或者安全等级的具体限定。In addition, in the description of this application, unless otherwise stated, "first", "second", "third", etc. are only used to distinguish different data, signature feature points or security levels, and should not be construed as A specific definition of data, signature feature points, or security level.
图1为本发明实施例提供的签名认证系统架构示意图。如图1所示,包括:终端100和手写笔200。其中,终端100包括触摸面板。用户使用手写笔200在终端100的触摸面板输入手写签名,终端100检测签名图像信息及手写笔200对终端100的压力信息等手写签名的相关数据;同时,手写笔200检测手写笔200的运动轨迹信息及用户对手写笔200 的压力信息等手写签名的相关数据,并发送给终端100。终端100将上述终端100和手写笔200检测用户输入的手写签名的相关数据与签名模板数据的匹配率,当匹配率不低于预设的匹配率阈值时,终端100确认用户输入的手写签名认证通过。FIG. 1 is a schematic diagram of the architecture of a signature authentication system provided by an embodiment of the present invention. As shown in FIG. 1 , it includes a terminal 100 and a
在一个示例中,用户输入的手写签名认证通过后,终端100可能会允许用户继续访问终端100相应功能的相关权限。In one example, after the handwritten signature input by the user is authenticated, the terminal 100 may allow the user to continue to access the relevant authority of the corresponding function of the terminal 100 .
如上,用户输入的手写签名的相关数据可包括:终端100检测的签名的图像信息、手写笔200与触摸面板的接触点的压力信息。以及手写笔200检测的用户输入手写签名过程中用户对书写笔200的压力信息和手写笔200的运动轨迹信息。As above, the relevant data of the handwritten signature input by the user may include: image information of the signature detected by the terminal 100, and pressure information of the contact point between the
其中,为简化说明,将终端100检测手写签名的相关数据归类为第一签名数据。将手写笔200检测手写签名的相关数据归类为第二签名数据。手写笔200通过通信链路300 将其检测的第二签名数据发送给终端100。Wherein, to simplify the description, the data related to the handwritten signature detected by the terminal 100 is classified as the first signature data. Data related to the handwritten signature detected by the
本发明实施例提供的签名认证系统,用户使用手写笔输入手写签名时,终端检测第一签名数据,同时,手写笔检测第二签名数据并发送给终端。终端根据第一签名数据和第二签名数据以及预存的签名模板数据,判断用户输入的手写签名是否认证通过。In the signature authentication system provided by the embodiment of the present invention, when a user uses a stylus to input a handwritten signature, the terminal detects the first signature data, and at the same time, the stylus detects the second signature data and sends it to the terminal. The terminal determines whether the handwritten signature input by the user has passed the authentication according to the first signature data, the second signature data and the pre-stored signature template data.
可以理解的是,用户在进行签名认证前,用户预输入手写签名做为对比匹配的模板。签名模板数据为用户预输入手写签名时,终端100和手写笔200检测的手写签名的相关数据。终端100将签名模板数据保存在存储器中,在用户输入手写签名进行认证过程中,调用存储器中存储的签名模板数据。It can be understood that, before the user performs signature verification, the user pre-inputs a handwritten signature as a template for comparison and matching. The signature template data is data related to the handwritten signature detected by the terminal 100 and the
具体地,终端100将终端100和手写笔200检测的手写签名的相关数据与签名模板数据对比匹配时,终端100的处理器可对手写签名的相关数据进行特征点数据提取,以方便比对。可以理解的是,签名模板数据同样对应相关签名特征点的数据。Specifically, when the terminal 100 compares and matches the relevant data of the handwritten signature detected by the terminal 100 and the
可以理解的是,用户每次输入手写签名的速度可能会不同。如用户上一次输入手写签名用时1S,下一次输入手写签名可能会用时0.8S。但每个用户的手写签名存在其可对比属性,例如用户的不同次签名对应的签名图像相似。故通过特征点的数据,对手写签名进行比对。Understandably, the speed at which a user enters a handwritten signature may vary each time. For example, it took 1S for the user to input the handwritten signature last time, and it may take 0.8S to input the handwritten signature next time. However, each user's handwritten signature has its comparable properties, for example, the signature images corresponding to different sub-signatures of the user are similar. Therefore, the handwritten signatures are compared through the data of the feature points.
在一个示例中,终端100的处理器可提取第一个接触点、最后一个接触点、不连续的接触点、曲率变化较大的接触点等做为第一签名特征点。提取该签名特征点对应的接触点坐标、手写笔对触摸面板的压力、手写笔的坐标、用户对手写笔的压力等数据做为第一签名特征点的数据。此外,终端100的处理器还可将手写笔在触摸面板以外区域时所在的点也做为签名特征点。例如,终端100提取在两个不连续接触点对应的采样时间间隔内手写笔距离触摸面板距离最远的点做为第二签名特征点。提取该签名特征点对应的手写笔的坐标、用户对手写笔的压力等数据做为第二签名特征点的数据。In one example, the processor of the terminal 100 may extract the first contact point, the last contact point, the discontinuous contact point, the contact point with large curvature change, etc. as the first signature feature point. Data such as the contact point coordinates corresponding to the signature feature point, the pressure of the stylus on the touch panel, the coordinates of the stylus, and the pressure of the user on the stylus are extracted as the data of the first signature feature point. In addition, the processor of the terminal 100 may also use the point where the stylus is located outside the touch panel as the signature feature point. For example, the terminal 100 extracts the point at which the stylus is the farthest from the touch panel within the sampling time interval corresponding to the two discontinuous contact points as the second signature feature point. The coordinates of the stylus corresponding to the signature feature point, the user's pressure on the stylus and other data are extracted as the data of the second signature feature point.
用户通过书写笔200在终端100的触摸面板输入手写签名,终端100通过显示面板显示签名图像。另外,当终端100确定用户输入的手写签名认证通过时,指示显示面板显示认证通过的提示信息。The user inputs a handwritten signature on the touch panel of the terminal 100 through the writing
如图1所示,手写笔200与终端100可通过通信链路300实现信息交互。其中,这里的通信链路300可以为WiFi网络、USB接口、蓝牙连接或红外连接等中的一种或多种。As shown in FIG. 1 , the
需要说明的是,手写笔200与终端100的信息交互。包括:手写笔200通过通信链路300向终端100发送其检测的手写签名的相关数据,和/或终端100通过通信链路300 向手写笔200发送对手写笔200的采样时间和采样频率的控制信息。It should be noted that the information exchange between the
具体地,触摸面板可检测手写笔200与触摸面板的接触点的坐标信息。可通过在触摸面板上集成压力传感器,检测接触点处手写笔200对触摸面板的压力信息。Specifically, the touch panel can detect the coordinate information of the contact point between the
具体地,手写笔200可通过集成加速度传感器、磁场强度传感器及角速度传感器等检测手写笔200的运动轨迹信息。手写笔200可通过压力传感器检测用户对手写笔200的压力信息。Specifically, the
可以理解的是,预设的匹配率阈值可根据实际需要做调整。其中,可以根据安全等级设定匹配率阈值。也可以直接设定匹配率阈值。在一个可能的示例中,终端100可通过检测其连接的网络,确定终端100所的在环境。进一步确定对应的安全等级和匹配率阈值。It can be understood that the preset matching rate threshold can be adjusted according to actual needs. The matching rate threshold may be set according to the security level. The matching rate threshold can also be set directly. In a possible example, the terminal 100 may determine the environment where the terminal 100 is located by detecting the network to which the terminal 100 is connected. Further determine the corresponding security level and matching rate threshold.
可以理解的是,手写笔检测的用户对手写笔的压力信息反映用户的握笔力度。用户输入的手写签名的相关数据还可包括:手写笔200检测的手写笔受到用户压力的受压面积和/或受压形状信息。其中,手写笔受到用户压力的受压面积和/或受压形状反映用户握笔 (手写笔)的姿势。例如,用户g1习惯采用大拇指和食指握笔,通过预先保存用户g1使用大拇指和食指握笔时对手写笔的压力信息、以及手写笔的受压面积和/或受压形状,以在用户g1再次输入手写签名进行认证时,对比与预存的用户g1的握笔力度和握笔姿势是否匹配。It can be understood that the pressure information of the user on the stylus detected by the stylus reflects the strength of the user's holding the pen. The relevant data of the handwritten signature input by the user may further include: pressure area and/or pressure shape information of the stylus detected by the
具体地,用户的握笔姿势可参照上述用户握笔力度的检测方式,通过压力传感器或者结合使用触摸传感器得到。Specifically, the user's pen-holding posture may be obtained through a pressure sensor or a combined use of a touch sensor with reference to the above-mentioned detection method of the user's pen-holding strength.
可以理解的是,用户输入的手写签名的相关数据还可包括:手写笔200检测的手写笔运动的加速度。例如,手写笔笔端的加速度。It can be understood that the relevant data of the handwritten signature input by the user may further include: the acceleration of the movement of the stylus detected by the
具体地,手写笔笔端的加速度可通过上述加速度传感器得到。也可通过手写笔的运动轨迹计算得到。Specifically, the acceleration of the pen end of the stylus can be obtained by the above acceleration sensor. It can also be calculated from the motion trajectory of the stylus.
可以理解的是,用户输入的手写签名的相关数据还可包括:手写笔200受压区域距手写笔笔端的距离信息。其中,手写笔受压区域距手写笔笔端的距离反映不同用户的握笔习惯。例如,有的用户喜欢握笔的中部,进行书写。有的用户喜欢握笔的上端,进行书写等。It can be understood that the relevant data of the handwritten signature input by the user may further include: distance information between the pressed area of the
在本发明实施例的其他实施方式中,可由其他用户向终端100输入其所在环境的安全等级或匹配率阈值。在一个具体的应用场景中,例如,用户C在银行办理相关业务时,需要输入手写签名进行身份认证,此时其他用户为银行工作人员D,银行工作人员D可根据实际需要,向终端100输入用户C的进行手写签名认证时的匹配率阈值。In other implementation manners of this embodiment of the present invention, other users may input the security level or matching rate threshold of the environment in which the terminal 100 is located. In a specific application scenario, for example, when user C handles related business in a bank, he needs to input a handwritten signature for identity authentication. At this time, other users are bank staff D, and bank staff D can input the input to the terminal 100 according to actual needs. The matching rate threshold of user C when performing handwritten signature authentication.
在本发明的其他实施方式中,手写笔200可以集成在终端100上,例如终端100设置插槽,手写笔200可插入终端100,用户进行签名时,拔出手写笔100并使用。为简化说明,本发明实施例仅以手写笔200与终端100分开为例进行说明。In other embodiments of the present invention, the
在本发明的其他实施方式中,终端100可以为带触摸屏的智能手机、带触摸屏的终端。另外,触摸屏/触摸面板可以与终端拆分开,触摸屏单独一体,此时,触摸屏也可以称做手写板。该签名认证系统将包括触摸屏(手写板)、终端和手写笔。其中,触摸屏用于接收用户的手写签名并检测签名图像的信息,触摸屏上集成压力传感器以检测手写笔的压力信息。触摸屏记录手写签名的相关数据,并发送给终端。本发明实施例仅以触摸屏和终端集成一体为例进行说明。In other embodiments of the present invention, the terminal 100 may be a smart phone with a touch screen or a terminal with a touch screen. In addition, the touch screen/touch panel can be separated from the terminal, and the touch screen can be integrated separately. In this case, the touch screen can also be called a handwriting pad. The signature authentication system will include a touch screen (handwriting pad), a terminal and a stylus. Among them, the touch screen is used to receive the user's handwritten signature and detect the information of the signature image, and a pressure sensor is integrated on the touch screen to detect the pressure information of the stylus. The touch screen records the relevant data of the handwritten signature and sends it to the terminal. The embodiments of the present invention are only described by taking the integration of the touch screen and the terminal as an example.
本发明实施例检测的签名数据包括终端检测的签名的图像信息和手写笔对终端的压力信息,以及手写笔检测的用户使用手写笔输入签名时手写笔的运动轨迹信息和用户对手写笔的压力信息。本发明实施例提供的签名认证系统,在用户使用手写笔签名的过程中,同时通过手写笔提取更多的用户签名特征数据,对比匹配,使得攻击者在模仿用户笔迹的同时,还要模仿用户的手部动作,增加攻击者模仿签名数据的难度,极大幅度提高了签名认证系统的安全性。The signature data detected by the embodiment of the present invention includes image information of the signature detected by the terminal and pressure information of the stylus on the terminal, as well as the movement track information of the stylus detected by the stylus when the user uses the stylus to input the signature, and the pressure of the user on the stylus. information. In the signature authentication system provided by the embodiment of the present invention, in the process of the user signing with a stylus, more feature data of the user's signature is extracted through the stylus at the same time, and compared and matched, so that the attacker can imitate the user's handwriting while imitating the user's handwriting. It increases the difficulty for attackers to imitate the signature data, and greatly improves the security of the signature authentication system.
相应地,本发明实施例还提供一种终端,用于实现前述实施例中提供的系统。如图2 所示,所述终端包括:显示屏110、传感器120、I/O子系统130、处理器140、存储器150、通信单元160以及电源170等部件。下面结合图2对终端100的各个构成部件进行具体的介绍:Correspondingly, an embodiment of the present invention further provides a terminal for implementing the system provided in the foregoing embodiments. As shown in FIG. 2 , the terminal includes: a
显示屏110,用于接受用户输入手写签名,还用于显示用户输入的手写签名图像或显示用户输入的手写签名认证结果的提示信息以及终端100的各种菜单。具体的显示屏110可包括触摸面板111和显示面板112。The
触摸面板111,也称为触摸屏、触敏屏等,可收集用户在其上或附近的接触或者非接触操作。例如,用户使用手写笔(触笔)等任何适合的物体在触摸面板111上或在触摸面板111附近的操作。可选的,触摸面板111可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测手写笔的触摸方位、姿势,并检测触摸操作带来的信号,将信号传送给触摸控制器。触摸控制器从触摸检测装置上接收触摸信息,并将它转换成处理器140 能够处理的信息。另外,触摸控制器能接收处理器140发来的命令并加以执行。The touch panel 111, also referred to as a touch screen, a touch sensitive screen, etc., may collect contact or non-contact operations by a user on or near it. For example, the user operates on or near the touch panel 111 using any suitable object such as a stylus (stylus). Optionally, the touch panel 111 may include two parts, a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation and posture of the stylus, detects the signal brought by the touch operation, and transmits the signal to the touch controller. The touch controller receives touch information from the touch detection device and converts it into information that the
在一个示例中,触摸控制器将触摸检测装置检测的手写笔与触摸面板111接触点的触摸方位转换成接触点的坐标信息,并将接触点的坐标信息发送给处理器140。In one example, the touch controller converts the touch orientation of the contact point of the stylus and the touch panel 111 detected by the touch detection device into coordinate information of the contact point, and sends the coordinate information of the contact point to the
进一步的,触摸面板111可覆盖显示面板112,用户可以根据显示面板112显示的内容,在显示面板112上覆盖的触摸面板111上或者附近进行操作,触摸面板111检测到在其上或附近的操作后,通过I/O子系统130传送给处理器140以确定用户输入,随后处理器140根据用户的输入通过I/O子系统130在显示面板112上提供相应的视觉输出。虽然在图2中,触摸面板111与显示面板112是作为两个独立的部件来实现终端100的输入和输入功能,但是在某些实施例中,可以将触摸面板111与显示面板112集成而实现终端100的输入和输出功能。Further, the touch panel 111 can cover the display panel 112, and the user can operate on or near the touch panel 111 covered on the display panel 112 according to the content displayed on the display panel 112, and the touch panel 111 detects the operation on or near it Then, it is transmitted to the
I/O子系统130,用来控制输入输出的外部设备,可以包括显示控制器131、传感器控制器132、其他输入设备控制器133。其中,显示控制器131从显示屏110接收信号,和/或向显示屏110发送信号。显示屏110检测到用户输入的手写签名信息后,显示控制器131将检测到的用户输入的手写签名信息转换为与显示在显示屏110上的用户界面对象的交互。例如,显示控制器131将用户输入的手写签名信息转换为显示在显示面板112的手写签名图像,实现人机交互。传感器控制器132可以从一个或者多个传感器120接收信号,和/或者向一个或者多个传感器120发送信号。The I/
终端100还可包括至少一种传感器120,比如压力传感器121以及其他传感器122。具体地,压力传感器121,用于检测终端100受到的压力信息。进一步地,可将压力传感器121集成在显示屏110中,检测手写笔对触摸面板111的压力信息,并通过传感器控制器132发送给处理器140。具体地,将压力传感器121设置在触摸面板111和显示面板112之间,或将压力传感器121覆盖在触摸面板111之上,使压力传感器121检测手写笔对触摸面板111的压力信息。The terminal 100 may also include at least one
其中,触摸面板111检测的接触点的坐标信息,以及压力传感器121检测的手写笔对触摸面板111的压力信息,可统一为终端100检测的第一签名数据。The coordinate information of the contact point detected by the touch panel 111 and the pressure information of the stylus on the touch panel 111 detected by the
处理器140是终端100的控制中心,利用各种接口和线路连接整个终端的各个部分,通过运行或执行存储在存储器150内的软件程序和/或模块,以及调用存储在存储器150内的数据,执行终端100的各种功能和处理数据,从而对终端100进行整体监控。可选的,处理器140可包括一个或多个处理单元。优选的,处理器140可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器140中。The
在一个示例中,用户输入手写签名过程中,显示控制器131和传感器控制器132将检测的第一签名数据发送给应用处理器。同时,手写笔200检测第二签名数据并发送给终端100。调制解调处理器接收的手写笔200发送的第二签名数据,并发送给应用处理器。应用处理器通过运行存储器150内的软件程序及调用存储器150中的签名模板数据,根据手写签名的第一签名数据和第二签名数据判断用户输入的手写签名认证是否通过。应用处理器将第一签名数据和第二签名数据与签名模板数据匹配对比,得到相应的匹配率。当匹配率不低于预设的匹配率阈值时,应用处理器确定签名认证通过,指示显示屏110显示签名认证通过的提示信息。In one example, during the user inputting a handwritten signature, the
通信单元160,用于实现终端100与外界网络或者设备的信息交互。可包括无线通信模块和/或通信接口。其中,无线通信模块可用于收发信息过程中,信号的接收和发送,例如,射频电路或者WiFi模块。通信接口可用于与外界设备直接连接,实现终端100与外部设备交互信息。例如,USB接口。此外,通信单元160还可包括红外模块、蓝牙模块等可实现终端100与外界网络或者设备的信息交互的部件,在此不做具体限定。The
终端100还包括给各个部件供电的电源170(比如电池),优选的,电源170可以通过电源管理系统与处理器140逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗等功能。The terminal 100 also includes a power supply 170 (such as a battery) for supplying power to various components. Preferably, the
终端100还可包括其他输入设备180,其他输入设备180与I/O子系统130的其他输入设备控制器133相连接,在其他设备输入控制器133的控制下与处理器140进行信息交互。在此不做赘述。The terminal 100 may further include
在一个具体的示例中,用户使用手写笔200在终端100的显示屏110输入手写签名时,触摸面板111的触摸检测装置检测手写笔200与触摸面板111的接触点的方位信号,触摸面板111的触摸控制器将上述接触点的方位信号转换成坐标信息,并通过显示控制器131发送给处理器140。压力传感器121检测上述接触点处手写笔200对触摸面板111的压力信息,并通过传感器控制器132发送给处理器140。可以理解的是,可将上述接触点的坐标信息和接触点的压力信息记为第一签名数据。另外,显示屏110检测到用户输入的手写签名后,显示控制器131将检测到的用户输入的手写签名转换为可显示在显示屏110上的签名图像,以便用户查看。In a specific example, when the user uses the
终端100通过通信单元160接收手写笔200检测的第二签名数据。其中,第二签名数据包括:用户通过手写笔200输入上述手写签名时,手写笔200检测的手写笔的运动轨迹信息、手写笔笔端的加速度、手写笔受到用户压力的受压面积和/或受压形状信息和用户对手写笔200的压力信息等相关信息。处理器140将第一签名数据和第二签名数据与预存在存储器 150中的签名模板数据进行对比匹配,计算匹配率。处理器140将上述计算得到的匹配率与预存在存储器150中的匹配率阈值比较,当上述计算得到的匹配率阈值不低于预存的匹配率阈值时,处理器140确定上述用户的手写签名认证通过。处理器140指示显示面板112显示用户手写签名认证通过的提示信息。The terminal 100 receives the second signature data detected by the
具体地,终端100处理器140可通过第一签名数据和第二签名数据提取签名特征点的数据。将提取出的签名特征点的数据与签名模板中对应的该签名特征点的数据匹配对比,计算匹配率。其中,签名特征点包括第一签名特征点和第二签名特征点。签名特征点的数据包括第一签名特征点的数据和第二签名特征点的数据。具体签名特征点及其数据的提取方法,可参见图4中的详细介绍。Specifically, the
需要说明的是,该用户使用手写笔200输入上述手写签名之前,可以由该该用户或者其他用户向处理器140发送指示该用户的身份信息的指令,处理器140可根据指示用户的身份信息的指令从存储器150中调用该用户的签名模板数据。It should be noted that, before the user uses the
具体地,指示该用户的身份信息的指令可以为该用户的身份证号、该用户的工号等信息。其中,存储器150中预存多个用户的签名模板数据,每个用户的签名模板数据携带该用户的身份信息。处理器140收到指示该用户的身份信息的指令后,根据用户的身份信息在存储器150中查询该用户的签名模板数据。其中,每个用户的签名模板数据携带该用户的身份信息。Specifically, the instruction indicating the user's identity information may be information such as the user's ID number, the user's job number, and the like. Among them, the signature template data of a plurality of users are pre-stored in the
可以理解的是,考虑用户每次输入的手写签名的固有差异,每个用户的签名模板数据可包括多个。即在用户预输入手写签名时,用户可多次输入手写签名(模板),终端100和手写笔200检测每次的手写签名(模板)的数据,并一一保存。在用户输入手写签名进行认证的阶段,处理器140将终端100和手写笔200检测的认证阶段的签名数据与该用户的多个签名模板数据一一对比匹配,选取其中最大的匹配率为最终的对比匹配率,根据预设的匹配率阈值,判断用户签名认证是否通过。It can be understood that, considering the inherent difference of the handwritten signatures input by the user each time, the signature template data of each user may include multiple pieces. That is, when the user pre-inputs a handwritten signature, the user can input the handwritten signature (template) multiple times, and the terminal 100 and the
可以理解的是,签名模板数据也包括终端100检测的第一签名(模板)数据和手写笔 200检测的第二签名(模板)数据。此外,签名模板数据可包括提取完的对应的签名特征点的数据。具体签名特征点及其数据的提取方法,可参见图4中的详细介绍。It can be understood that the signature template data also includes the first signature (template) data detected by the terminal 100 and the second signature (template) data detected by the
相应地,本发明实施例还提供一种手写笔,用于实现前述实施例中提供的系统。如图3所示,所述手写笔包括:传感器单元210、通信单元220、处理器230、存储器240、电源250等部件。下面结合图3对手写笔200的各个构成部件进行具体的介绍:Correspondingly, an embodiment of the present invention also provides a stylus pen, which is used to implement the system provided in the foregoing embodiments. As shown in FIG. 3 , the stylus includes: a
传感器单元210,用于检测用户使用手写笔200在终端100的触摸面板111输入手写签名的过程中的相关签名数据。具体地,传感器单元210可以包括加速度传感器 211、磁场强度传感器212、角速度传感器213、压力传感器214以及其他传感器215。The
在一种可能的实施方式中,加速度传感器211可用于检测手写笔200笔端的加速度、磁场强度传感器212可用于检测手写笔200的磁场强度、角速度传感器213可用于检测手写笔200的角速度。进一步地,可根据手写笔200的加速度、角速度和磁场强度的变化信息,得到手写笔200的运动轨迹信息。压力传感器214可用于检测用户对手写笔200的压力信息。In a possible implementation, the
需要说明的是,其他传感器215可包括以陀螺仪、重力传感器、WiFi定位传感器或红外定位传感器等传感器。其中,上述用于检测手写笔200的运动轨迹信息的加速度传感器211、磁场强度传感器212、角速度传感器213可由其他传感器215中的一个或多个代替。本发明实施例并不具体限定检测手写笔200运动轨迹数据所用到的传感器。可以理解的是,用于检测手写笔运动轨迹的传感器或者仪器,均应属于本发明实施例的保护范围。It should be noted that
传感器单元210还可通过相关传感器检测手写笔受到用户压力的受压面积信息和受压形状信息,以及所述手写笔受压区域距手写笔笔端的距离信息等。这里的相关传感器可以包括触摸传感器。上述信息也可做为第二签名数据中的一种或多种,以反映不同用户的握笔习惯。通过上述特征信息的对比,增加攻击者的模仿难度。The
通信单元220,用于与前述通信单元160连接,实现手写笔200与终端100的信息交互。其中,通信单元220也可包括对通信单元160相对应的通信模块和/或通信接口。例如,通信单元160包括WiFi模块1,通信单元220包括相应的WiFi模块2,终端100和手写笔200通过WiFi模块1和WiFi模块2建立通信连接。The
处理器230,用于运行或执行存储在存储器240内的软件程序和/或模块,执行将传感器单元210检测的相关签名数据换成终端100能够处理的信息。例如,处理器230将加速度传感器211、磁场强度传感器212、角速度传感器213检测手写笔200的加速度信息、磁场强度信息和角速度信息转换为终端100能够处理的手写笔的运动轨迹信息,并发送给终端 100。The
此外,处理器230还用于通过控制信息控制传感器单元210的采样时间和采样频率。可以理解的是,上述控制信息也可由终端100发出,以控制手写笔200的采样时间和采样频率与终端100触摸面板和传感器保持同步。In addition, the
存储器240,用于存储相关软件和/或模块,例如执行将传感器单元210检测的相关签名数据换成处理器140能够处理的信息的软件和/或模块。还用于存储传感器单元 210检测的数据,待采样结束后,发送给处理器230,以使处理器230将传感器单元210 检测的数据转换成终端可以处理的第二签名数据。The
手写笔200还包括给各个部件供电的电源250。The
在一个具体的示例中,用户使用手写笔200在终端100的触摸面板111输入手写签名时,手写笔200通过加速度传感器211、磁场强度传感器212、角速度传感器213检测手写笔200 的加速度、磁场强度、磁场强度等信息。通过压力传感器214用户对手写笔200的压力信息。In a specific example, when the user uses the
手写笔200通过处理器230将手写笔200的加速度、磁场强度、磁场强度等信息转换为手写笔200的运动轨迹信息。手写笔200的运动轨迹信息和用户对手写笔200的压力信息为第二签名数据。手写笔200还通过处理器230将同一时刻的手写笔200的运动轨迹信息、手写笔200的加速度、手写笔200受到用户压力的受压面积和/或受压形状信息和用户对手写笔200的压力信息提取,打包成一个携带对应时刻信息的数据包,通过通信单元220发送给终端100。The
需要说明的是,手写笔200通过通信单元220接收终端100发送的采样时间和采样频率的控制信息,保证第一签名数据与第二签名数据的时时对应性。例如,手写笔200与终端的触摸面板111的第一个接触点的采样时间为0ms,终端100通过发送控制信息使得手写笔 200此时的采样时间也为0ms,控制手写笔200和终端100的采样频率均为0.2ms/次。可以理解的是,在终端100和手写笔200的采样时间和采样频率同步的情况下,对于攻击者而言,模仿用户笔迹和模仿用户手持手写笔对触摸面板的压力的同时,又要模仿用户的手部动作和用户对手写笔的压力等信息,是非常困难的。It should be noted that the
因此,通过应用上述签名认证系统、终端及手写笔,增加了签名模板数据,控制手写笔和终端的采样时间和采样频率同步,在用户使用手写笔签名的过程中,通过手写笔提取更多的用户签名特征数据,对比匹配,使得攻击者在模仿用户笔迹的同时,还要模仿用户的手部动作,增加攻击者模仿签名数据的难度,极大幅度提高了签名认证系统的安全性。Therefore, by applying the above signature authentication system, terminal and stylus, the signature template data is added, and the sampling time and sampling frequency of the stylus and the terminal are controlled to be synchronized. The user signature feature data is compared and matched, so that the attacker can imitate the user's handwriting while imitating the user's handwriting, which increases the difficulty for the attacker to imitate the signature data, and greatly improves the security of the signature authentication system.
相应地,本发明实施例提供的签名认证系统的坐标系及签名示意,可参见图4。Correspondingly, reference may be made to FIG. 4 for a schematic diagram of a coordinate system and a signature of the signature authentication system provided by the embodiment of the present invention.
如图4所示,用户手握手写笔在触摸面板输入手写签名。手写笔与触摸面板接触的位置可称为接触点。触摸面板检测接触点的方位,并通过与触摸面板集成一体的显示面板显示该接触点。例如,显示面板原先显示为白色,检测到接触点后,将该接触点显示为黑色。As shown in FIG. 4 , the user inputs a handwritten signature on the touch panel with a stylus by hand. The location where the stylus comes into contact with the touch panel can be referred to as the point of contact. The touch panel detects the orientation of the touch point and displays the touch point through a display panel integrated with the touch panel. For example, the display panel was originally displayed in white, but after detecting a touch point, the touch point is displayed in black.
用户带动手写笔在触摸面板运动,手写笔与触摸面板的所有接触点组成用户的签名图像。如图4中“小王”为用户的手写签名图像。The user drives the stylus to move on the touch panel, and all the contact points between the stylus and the touch panel form the user's signature image. In Figure 4, "Xiao Wang" is an image of the user's handwritten signature.
其中,用户手持手写笔落笔时,与触摸面板有接触点,如图4所示的接触点。在书写不同笔画或者不同字之间,用户会提起手写笔,在触摸面板以外区域将手写笔从上一个接触点移动到下一个与之不连续的接触点。从用户手持手写笔提笔时,手写笔会在触摸面板以外区域划过一段运动轨迹,如图4所示。Wherein, when the user holds the stylus pen and writes the pen, there is a contact point with the touch panel, such as the contact point shown in FIG. 4 . Between writing different strokes or different characters, the user lifts the stylus and moves the stylus from the previous contact point to the next discontinuous contact point in the area outside the touch panel. When the user holds the stylus and lifts the stylus, the stylus will draw a movement track in the area outside the touch panel, as shown in FIG. 4 .
因此,可以将手写笔落笔点(接触点)设定为第一签名特征点,手写笔提笔对应的点 (接触点以外的点)设定为第二签名特征点。Therefore, the pen-down point (contact point) of the stylus can be set as the first signature feature point, and the point corresponding to the stylus-up (point other than the contact point) can be set as the second signature feature point.
在用户输入手写签名的过程中,触摸面板将检测的接触点的触摸方位转换成接触点的坐标信息。触摸面板集成有压力传感器,用于检测接触点处受到的手写笔的压力信息。同时,手写笔集成相关传感器以检测手写笔的运动轨迹信息和用户对手写笔的压力信息。如手写笔通过加速度传感器、磁场强度传感器、角速度传感器得到手写笔的运动轨迹信息,通过压力传感器检测用户对手写笔的压力信息。During the process of the user inputting the handwritten signature, the touch panel converts the detected touch orientation of the contact point into coordinate information of the contact point. The touch panel integrates a pressure sensor for detecting the pressure information of the stylus at the contact point. At the same time, the stylus integrates relevant sensors to detect the movement track information of the stylus and the pressure information of the user on the stylus. For example, the stylus obtains the motion trajectory information of the stylus through the acceleration sensor, the magnetic field strength sensor, and the angular velocity sensor, and detects the pressure information of the user on the stylus through the pressure sensor.
因此,可将触摸面板以及其上集成的压力传感器检测的接触点的坐标信息和手写笔对触摸面板的压力信息设为第一签名数据,将手写笔通过相关传感器检测的手写笔的运动轨迹信息和用户对手写笔的压力信息设为第二签名数据。Therefore, the coordinate information of the contact point detected by the touch panel and the pressure sensor integrated thereon and the pressure information of the stylus on the touch panel can be set as the first signature data, and the movement track information of the stylus detected by the stylus through the relevant sensor can be used as the first signature data. and the user's pressure information on the stylus as the second signature data.
故,第一签名特征点对应的数据可包括:接触点的坐标信息、接触点处手写笔对触摸面板的压力信息、手写笔笔端的坐标信息及用户对手写笔的压力信息。可以理解的是,若在同一坐标系中,则接触点的坐标信息和手写笔笔端的坐标信息是相同的,可以取其一即可。第二签名特征点对应的数据可包括:手写笔笔端的坐标信息及用户对手写笔的压力信息。具体地,当手写笔提笔时,触摸面板及其上集成的压力传感器检测不到接触点的相关信息。即假设时间T1至时间T2的时间段内,手写笔提笔,则该时间段内无检测的第一签名数据。Therefore, the data corresponding to the first signature feature point may include coordinate information of the contact point, pressure information of the stylus on the touch panel at the contact point, coordinate information of the pen end of the stylus, and pressure information of the user on the stylus. It can be understood that, if they are in the same coordinate system, the coordinate information of the contact point and the coordinate information of the pen end of the stylus are the same, and one can be selected. The data corresponding to the second signature feature point may include: coordinate information of the pen end of the stylus and pressure information of the user on the stylus. Specifically, when the stylus is lifted, the touch panel and the pressure sensor integrated thereon cannot detect the relevant information of the contact point. That is, assuming that the stylus is lifted during the time period from time T1 to time T2, there is no detected first signature data in this time period.
在一个可能的示例中,触摸面板的坐标系如图4中o1x1y1z1所示,o1x1y1z1坐标系的x轴、 y轴在触摸面板所在平面,z轴与触摸面板所在平面垂直。手写笔的坐标系如图4中示,In a possible example, the coordinate system of the touch panel is shown as o 1 x 1 y 1 z 1 in FIG. 4 , the x-axis and y-axis of the o 1 x 1 y 1 z 1 coordinate system are in the plane where the touch panel is located, z The axis is perpendicular to the plane of the touch panel. The coordinate system of the stylus is shown in Figure 4,
o2x2y2z2坐标系的z轴为手写笔所在直线,x轴、y轴在与手写笔垂直的平面。o The z-axis of the 2 x 2 y 2 z 2 coordinate system is the straight line where the stylus is located, and the x-axis and y-axis are in a plane perpendicular to the stylus.
需要说明的是,触摸面板检测接触点时,在o1x1y1z1坐标系中记录坐标信息。但考虑用户每次输入签名位置相对原点可能会存在差别。因此,终端的处理器可以将接收的接触点的坐标信息进行预处理,将坐标系o1x1y1z1中的数据变换到新的坐标系中,新的坐标系需要对用户每次输入的手写签名图像都具有参考性。例如,新的坐标系可以用户手写签名的中心为原点,签名的两个中分线为x轴和y轴。签名的“中分线”指的是签名图像两个对称线。具体地,可以通过对o1x1y1z1坐标系中对相同x坐标的接触点求y坐标平均值,得到该x坐标下的平均点,根据接触点中所有相同x坐标下的平均点求得签名图像的一条中分线。另一条中分线经过签名中心点并与一条中分线垂直。It should be noted that when the touch panel detects a contact point, the coordinate information is recorded in the o 1 x 1 y 1 z 1 coordinate system. But consider that the relative origin of the user's input signature position may be different each time. Therefore, the processor of the terminal can preprocess the received coordinate information of the contact point, and transform the data in the coordinate system o 1 x 1 y 1 z 1 into a new coordinate system. The input handwritten signature images are all for reference. For example, the new coordinate system may be the center of the user's handwritten signature as the origin, and the two midlines of the signature as the x-axis and the y-axis. The "middle line" of the signature refers to the two lines of symmetry of the signature image. Specifically, the average point of the x-coordinate can be obtained by calculating the average value of the y-coordinate of the contact points with the same x-coordinate in the o 1 x 1 y 1 z 1 coordinate system. Click to find a midpoint of the signature image. The other halfway line passes through the signature center point and is perpendicular to one halfway line.
可以理解的是,用户每次输入的签名图像,相对图像的中心点和中分线而言,存在固定性,具有可对比性。因此,同样对签名模板中的数据,进行如上述新坐标系对应的变换处理。It can be understood that the signature image input by the user each time is fixed and comparable with respect to the center point and the midpoint line of the image. Therefore, the data in the signature template is also subjected to transformation processing corresponding to the new coordinate system as described above.
触摸面板在坐标系o1x1y1z1中检测接触点的坐标。可以理解的是,触摸面板内,接触点的z轴坐标均为0。故可以使用(a1,b1,0)表示接触点的坐标。手写笔在坐标系o2x2y2z2中检测手写笔的运动轨迹,手写笔的运动轨迹可通过手写笔笔端的运动轨迹表示。其中,手写笔笔端的坐标可以为(a2,b2,c)。The touch panel detects the coordinates of the contact point in the coordinate system o 1 x 1 y 1 z 1 . It can be understood that, in the touch panel, the z-axis coordinates of the contact points are all 0. Therefore, (a1, b1, 0) can be used to represent the coordinates of the contact point. The stylus detects the movement trajectory of the stylus in the coordinate system o 2 x 2 y 2 z 2 , and the movement trajectory of the stylus can be represented by the movement trajectory of the pen end of the stylus. The coordinates of the pen end of the stylus may be (a2, b2, c).
需要说明的是,手写笔落笔时,手写笔笔端与触摸面板有接触点时,若在同一个坐标系中,接触点处的坐标应当和手写笔笔端坐标相同。在实际检测时,同一个接触点或其对应的手写笔笔端在o1x1y1z1和o2x2y2z2两个坐标系中的坐标可能不同。It should be noted that when the stylus pen is down, when the stylus pen end has a contact point with the touch panel, if they are in the same coordinate system, the coordinates of the contact point should be the same as the coordinates of the stylus pen end. During actual detection, the coordinates of the same contact point or its corresponding stylus pen end in the two coordinate systems o 1 x 1 y 1 z 1 and o 2 x 2 y 2 z 2 may be different.
可通过坐标变换将o2x2y2z2坐标系中的坐标信息转换到坐标系o1x1y1z1中,具体地,坐标变换可使用同一个接触点或其对应的手写笔笔端在两个坐标系中的坐标关系等信息,分析两个坐标系的位置关系,对其中的一个坐标系进行坐标变换。The coordinate information in the o 2 x 2 y 2 z 2 coordinate system can be transformed into the coordinate system o 1 x 1 y 1 z 1 through coordinate transformation. Specifically, the coordinate transformation can use the same contact point or its corresponding stylus. Analyze the positional relationship between the two coordinate systems, and perform coordinate transformation on one of the coordinate systems.
更进一步,签名特征点中的数据可包括多个,以接触点为S1为例,例如S1可为手写笔与触摸面板的第一个接触点。S1处对应的签名特征数据E包括:接触点的坐标(a1,b1,0)、手写笔对触摸面板的压力P1、手写笔的坐标(a2,b2,c)、用户对手写笔的压力P2。相应的,签名特征点S1对应在签名模板书包括的签名特征数据e为:接触点的坐标(m1,n1,0)、手写笔对触摸面板的压力D1、手写笔的坐标(m2,n2,q)、用户对手写笔的压力D2。Further, the data in the signature feature points may include multiple pieces, and the contact point is S1 as an example, for example, S1 may be the first contact point between the stylus and the touch panel. The signature feature data E corresponding to S1 includes: the coordinates of the contact point (a1, b1, 0), the pressure P1 of the stylus on the touch panel, the coordinates of the stylus (a2, b2, c), and the pressure P2 of the user on the stylus . Correspondingly, the signature feature point S1 corresponds to the signature feature data e included in the signature template book: the coordinates of the contact point (m1, n1, 0), the pressure D1 of the stylus on the touch panel, the coordinates of the stylus (m2, n2, q), the pressure D2 of the user on the stylus.
则数据E与数据e的匹配率包括(a1,b1,0)与(m1,n1,0)、P1与D1、(a2,b2,c)与(m2,n2,q)、P2与D2的四组数据匹配率的平均值或加权平均值。其中,两个点的坐标的匹配率可通过两个坐标距原点距离的数值的匹配率求得,也可以通过对相应坐标数值求匹配率再进行加权求平均得到。Then the matching rate of data E and data e includes (a1,b1,0) and (m1,n1,0), P1 and D1, (a2,b2,c) and (m2,n2,q), P2 and D2 The average or weighted average of the matching rates of the four sets of data. The matching ratio of the coordinates of the two points can be obtained by the matching ratio of the distances between the two coordinates from the origin, or it can be obtained by calculating the matching ratio of the corresponding coordinate values and then weighted and averaged.
此外,签名特征点的数据可不止包括一个,则所有签名特征点与签名模板数据的匹配率可通过每个特征点对应数据的匹配率,再对所有签名特征点对应的匹配率求平均或者加权平均得到。其中,加权数值可根据实际需要设定。In addition, the data of signature feature points may include more than one, then the matching rate of all signature feature points and signature template data can be calculated by the matching rate of data corresponding to each feature point, and then the matching rate corresponding to all signature feature points can be averaged or weighted average to get. Among them, the weighted value can be set according to actual needs.
另外,可将手写笔采集得到的手写笔笔端的运动轨迹和触摸面板采集得到的接触点的坐标,进行统一的坐标系变换,并对变换后的手写笔笔端的运动轨迹做投影。提取投影后的运动轨迹的特征点的数据,作为签名特征点的数据。具体可参见下面的描述:In addition, the movement trajectory of the stylus pen end collected by the stylus and the coordinates of the contact point collected by the touch panel can be transformed into a unified coordinate system, and the transformed movement trajectory of the stylus pen end can be projected. The data of the feature points of the projected motion trajectory are extracted as the data of the signature feature points. For details, please refer to the following description:
在一个示例中,在将手写笔的坐标系o2x2y2z2转换为触摸面板的坐标系o1x1y1z1后,可将手写笔笔端在坐标系o2x2y2z2中的运动轨迹数据相应转换成在在坐标系o1x1y1z1中的运动轨迹数据。设在o1x1y1z1坐标系中,触摸面板所在xy平面为第一平面,设签名图像中接触点组成的曲线为手写笔笔端在第一平面的第一运动轨迹。将转换后的手写笔笔端的(三维)运动轨迹在触摸面板所在平面投影,除去投影后与第一运动轨迹重合的部分,得到手写笔笔端在第一平面的第二运动轨迹。In one example, after the coordinate system o 2 x 2 y 2 z 2 of the stylus is transformed into the coordinate system o 1 x 1 y 1 z 1 of the touch panel, the end of the stylus can be placed in the coordinate system o 2 x 2 y The motion path data in 2 z 2 are correspondingly converted into motion path data in the coordinate system o 1 x 1 y 1 z 1 . In the o 1 x 1 y 1 z 1 coordinate system, the xy plane where the touch panel is located is the first plane, and the curve formed by the contact points in the signature image is the first motion trajectory of the stylus pen end on the first plane. Project the converted (three-dimensional) motion trajectory of the stylus pen end on the plane where the touch panel is located, remove the part that overlaps with the first motion trajectory after projection, and obtain the second motion trajectory of the stylus pen end on the first plane.
则,上述第一签名特征点为从手写笔第一运动轨迹中提取的特征点。此时,第一签名特征点的坐标信息可采用第一平面中的二维坐标表示。可以理解的是,如果将手写笔的运动轨迹在第一平面进行投影,则可从手写笔的第二运动轨迹中提取新的第二签名特征点。例如,新的第二签名特征点可以为第二运动轨迹对应的每段不连续的曲线中曲率变化较大的点。故,新的第二签名特征点对应的数据为该点在第一平面的二维坐标以及该点对应的用户对手写笔的压力信息、手写笔笔端的加速度和手写笔受到用户压力的受压面积和受压形状等数据。Then, the above-mentioned first signature feature point is a feature point extracted from the first motion trajectory of the stylus. At this time, the coordinate information of the first signature feature point may be represented by two-dimensional coordinates in the first plane. It can be understood that, if the movement trajectory of the stylus is projected on the first plane, a new second signature feature point can be extracted from the second movement trajectory of the stylus. For example, the new second signature feature point may be a point with a large curvature change in each discontinuous curve corresponding to the second motion trajectory. Therefore, the data corresponding to the new second signature feature point are the two-dimensional coordinates of the point on the first plane and the pressure information of the user on the stylus corresponding to the point, the acceleration of the stylus pen end, and the pressure of the stylus by the user's pressure. Area and compression shape data.
可以理解的是,将两个坐标系统一后,第一签名特征点的坐标将与新的第二签名特征点的坐标重合。It can be understood that after combining the two coordinate systems, the coordinates of the first signature feature point will coincide with the coordinates of the new second signature feature point.
在另一个示例中,在将手写笔的坐标系o2x2y2z2转换为触摸面板的坐标系o1x1y1z1后,可将手写笔笔端在坐标系o2x2y2z2中的运动轨迹数据相应转换成在在坐标系o1x1y1z1中的运动轨迹数据。设在o1x1y1z1坐标系中,触摸面板所在xy平面为第一平面,设签名图像中接触点组成的曲线为手写笔笔端在第一平面的第一运动轨迹。设与第一平面垂直的两个平面为第二平面和第三平面。其中,第二平面和第三平面相互垂直,第二平面和第三平面与第一平面共原点且共一个坐标轴。将转换后的手写笔笔端的(三维)运动轨迹在第一平面、第二平面和第三平面分别投影,除去投影后与第一运动轨迹重合的部分,得到手写笔笔端在三个平面的第二运动轨迹。In another example, after the coordinate system o 2 x 2 y 2 z 2 of the stylus is transformed into the coordinate system o 1 x 1 y 1 z 1 of the touch panel, the pen end of the stylus can be placed in the coordinate system o 2 x 2 The motion path data in y 2 z 2 are correspondingly converted into motion path data in the coordinate system o 1 x 1 y 1 z 1 . In the o 1 x 1 y 1 z 1 coordinate system, the xy plane where the touch panel is located is the first plane, and the curve formed by the contact points in the signature image is the first motion trajectory of the stylus pen end on the first plane. Let the two planes perpendicular to the first plane be the second plane and the third plane. Wherein, the second plane and the third plane are perpendicular to each other, and the second plane and the third plane and the first plane share an origin and a coordinate axis. Project the (three-dimensional) motion trajectory of the converted stylus pen end on the first plane, the second plane, and the third plane respectively, remove the part that overlaps with the first motion trajectory after the projection, and obtain the third plane of the stylus pen end in the three planes. Two motion trajectories.
则,上述第一签名特征点为从手写笔第一运动轨迹中提取的特征点。此时,第一签名特征点的坐标信息可采用第一平面中的二维坐标表示。如,第一签名特征点对应的数据包括:该接触点在第一平面的坐标(m1,n1)、手写笔对触摸面板的压力D1、用户对手写笔的压力D2。还可包括手写笔笔端的加速度d1、手写笔的受压面积S1、手写笔受压区域距手写笔笔端的距离T1等数据。Then, the above-mentioned first signature feature point is a feature point extracted from the first motion trajectory of the stylus. At this time, the coordinate information of the first signature feature point may be represented by two-dimensional coordinates in the first plane. For example, the data corresponding to the first signature feature point includes: the coordinates (m1, n1) of the contact point on the first plane, the pressure D1 of the stylus on the touch panel, and the pressure D2 of the user on the stylus. It may also include data such as the acceleration d1 of the pen end of the stylus, the pressure area S1 of the stylus, and the distance T1 of the pressure area of the stylus from the end of the stylus.
可以理解的是,如果将手写笔的运动轨迹在三个平面进行投影,则可从手写笔的第二运动轨迹中提取新的第二签名特征点。例如,新的第二签名特征点可以为第二运动轨迹对应的每段不连续的曲线中曲率变化较大的点。故,新的第二签名特征点对应的数据为该点在第一平面的二维坐标、在第二平面的二维坐标或在第三平面的二维坐标以及该点对应的用户对手写笔的压力信息、手写笔笔端的加速度和手写笔受到用户压力的受压面积和受压形状等数据。It can be understood that, if the movement trajectory of the stylus is projected on three planes, a new second signature feature point can be extracted from the second movement trajectory of the stylus. For example, the new second signature feature point may be a point with a large curvature change in each discontinuous curve corresponding to the second motion trajectory. Therefore, the data corresponding to the new second signature feature point are the two-dimensional coordinates of the point on the first plane, the two-dimensional coordinates on the second plane, or the two-dimensional coordinates on the third plane, and the corresponding user's stylus of the point. The pressure information of the stylus, the acceleration of the pen end of the stylus, and the pressure area and pressure shape of the stylus under the pressure of the user.
如,新的第二签名特征点对应的数据包括:该特征点在第一平面的坐标(m2,n2)或该特征点在第二平面的坐标(m3,q1)或该特征点在第二平面的坐标(n3,q2)、手写笔对触摸面板的压力D2、用户对手写笔的压力D4。还可包括手写笔笔端的加速度d2、手写笔的受压面积S2、手写笔受压区域距手写笔笔端的距离T2等数据。其中,可将不同平面中的投影点的特征数据分别提取对比。For example, the data corresponding to the new second signature feature point includes: the coordinates of the feature point on the first plane (m2, n2) or the coordinates of the feature point on the second plane (m3, q1) or the feature point on the second plane. The coordinates of the plane (n3, q2), the pressure D2 of the stylus on the touch panel, and the pressure D4 of the user on the stylus. It may also include data such as the acceleration d2 of the pen end of the stylus, the pressure area S2 of the stylus, and the distance T2 of the pressure area of the stylus from the end of the stylus. The feature data of projection points in different planes can be extracted and compared respectively.
具体地,如采用坐标系统一变换、对手写笔运动轨迹投影的签名认证对比方案,则在预存签名模板数据时,同样对检测的用户预输入的签名模板数据进行相应变换,并提起相应的签名特征点及签名特征数据保存为签名模板数据。Specifically, if the signature authentication comparison scheme of coordinate system transformation and projection of the motion trajectory of the stylus is adopted, when the signature template data is pre-stored, the detected signature template data pre-input by the user is also transformed correspondingly, and the corresponding signature is raised. The feature points and signature feature data are saved as signature template data.
本发明实施例还可对手写笔和终端的触摸面板的两个坐标系进行变换,并将手写笔的运动轨迹在触摸面板所在的平面上进行投影,避免了在原先两个坐标系中,可能会对应的同一特征点在两个坐标系中的坐标数据匹配对比的情况。本发明实施例还将手写笔的运动轨迹在与触摸面板所在平面垂直的两个平面上进行投影,将三维坐标对比简化成二维坐标对比的方式,简化了对签名数据对比匹配的复杂度。需要说明的是,图4仅为签名认证系统的更直观的一种示意形式,并不用作对本发明实施例方案的任何限定。In the embodiment of the present invention, the two coordinate systems of the stylus pen and the touch panel of the terminal can also be transformed, and the movement trajectory of the stylus pen is projected on the plane where the touch panel is located, so as to avoid the possible It will be the case that the coordinate data of the same feature point in the two coordinate systems are matched and compared. The embodiment of the present invention also projects the movement trajectory of the stylus on two planes perpendicular to the plane where the touch panel is located, simplifies the comparison of three-dimensional coordinates into two-dimensional coordinate comparison, and simplifies the complexity of comparing and matching signature data. It should be noted that FIG. 4 is only a more intuitive schematic form of the signature authentication system, and is not used as any limitation to the solution of the embodiment of the present invention.
下面结合图5,详细说明本发明实施例提供的签名认证方法,图5为本发明实施例提供的一种签名认证方法信令交互图,在本发明实施例中实施主体为终端。如图5所示,该实施例具体包括以下步骤:The following describes the signature authentication method provided by the embodiment of the present invention in detail with reference to FIG. 5 . FIG. 5 is a signaling interaction diagram of a signature authentication method provided by the embodiment of the present invention. In the embodiment of the present invention, the implementation subject is a terminal. As shown in Figure 5, this embodiment specifically includes the following steps:
步骤S101,终端的触摸面板检测到用户通过手写笔输入的手写签名。Step S101, the touch panel of the terminal detects the handwritten signature input by the user through the stylus.
步骤S102,终端向手写笔发送控制信息,以控制手写笔的采样时间与采样频率与终端保持同步。Step S102, the terminal sends control information to the stylus, so as to control the sampling time and sampling frequency of the stylus to keep synchronization with the terminal.
终端通过通信单元1向手写笔发送控制信息。The terminal sends control information to the stylus through the communication unit 1 .
终端和手写笔的采样时间与采样频率与终端保持同步,以使得攻击者在模仿用户笔迹的同时,还要模仿用户的手部动作,增加攻击者模仿签名数据的难度,极大幅度提高了签名认证系统的安全性。The sampling time and sampling frequency of the terminal and the stylus are synchronized with the terminal, so that the attacker can imitate the user's hand movements while imitating the user's handwriting, which increases the difficulty for the attacker to imitate the signature data and greatly improves the signature. Authentication system security.
需要说明的是,这里的用户笔迹指的是用户签名的图像信息,具体地,笔迹可指签名图像中每个点的坐标信息。另外,笔迹还可包括签名图像中的每个点处手写笔对触摸面板的压力信息。其中,签名图像中的每个点对应手写笔与触摸面板的一个接触点。It should be noted that the user's handwriting here refers to the image information of the user's signature, and specifically, the handwriting may refer to the coordinate information of each point in the signature image. In addition, the handwriting may also include pressure information of the stylus against the touch panel at each point in the signature image. Wherein, each point in the signature image corresponds to a point of contact between the stylus and the touch panel.
需要说明的是,这里的用户手部动作指的是用户使用手写笔输入签名过程中,用户带动手写笔运动时的运动轨迹信息。另外,手部动作还可包括用户对手写笔的压力信息、手写笔受到用户压力的受压面积和受压区域形状信息、以及受压区域距离手写笔笔端的距离信息等。It should be noted that the user's hand motion here refers to the movement track information when the user drives the stylus to move during the process of the user using the stylus to input the signature. In addition, the hand motion may also include information on the user's pressure on the stylus, the pressure area of the stylus under pressure from the user, the shape information of the pressure area, and the distance information between the pressure area and the end of the stylus.
可以理解的是,用户的笔迹及用户的手部动作,均代表用户的输入签名过程中的特征信息,根据上述列举的特征信息,确定用户输入签名的认证结果,可以提高签名认证系统的安全性和可靠性。It can be understood that the user's handwriting and the user's hand movements represent the feature information in the user's signature input process. According to the feature information listed above, determining the authentication result of the user's input signature can improve the security of the signature authentication system. and reliability.
步骤S103a,触摸面板采集手写笔与触摸面板的接触点的坐标信息,压力传感器采集接触点处手写笔对触摸面板的压力信息。Step S103a, the touch panel collects the coordinate information of the contact point between the stylus and the touch panel, and the pressure sensor collects the pressure information of the stylus on the touch panel at the contact point.
其中,手写笔与触摸面板的接触点组成签名图像。Among them, the contact point between the stylus and the touch panel constitutes a signature image.
步骤S103b,手写笔的传感器单元采集手写笔的运动轨迹信息和用户对手写笔的压力信息。Step S103b, the sensor unit of the stylus collects the movement track information of the stylus and the pressure information of the user on the stylus.
其中,可通过加速度传感器、磁场强度传感器、角速度传感器检测手写笔的加速度、磁场强度、磁场强度等信息。通过压力传感器用户对手写笔的压力信息。Among them, the acceleration, magnetic field strength, magnetic field strength and other information of the stylus can be detected by an acceleration sensor, a magnetic field strength sensor, and an angular velocity sensor. The pressure information of the user on the stylus through the pressure sensor.
进一步,还可听过其他传感器检测手写笔受到用户压力的受压面积和受压区域形状信息、以及受压区域距离手写笔笔端的距离信息。这里的其他传感器也可包括压力传感器等。Further, other sensors can also be heard to detect the pressure area of the stylus under pressure from the user, the shape information of the pressure area, and the distance information of the pressure area from the pen end of the stylus. Other sensors here may also include pressure sensors and the like.
步骤S104a,终端的处理器将步骤S103a采集的数据转换成第一签名数据。In step S104a, the processor of the terminal converts the data collected in step S103a into first signature data.
终端的处理器将触摸面板和压力传感器检测的数据按采集时间一一对应,即一个采集时间下对应一个接触点坐标信息和该接触点处手写笔对触摸面板的压力信息。The processor of the terminal corresponds the data detected by the touch panel and the pressure sensor one by one according to the collection time, that is, one collection time corresponds to the coordinate information of a contact point and the pressure information of the stylus on the touch panel at the contact point.
步骤S104b,手写笔的处理器将步骤S103b采集的数据转换成第二签名数据。In step S104b, the processor of the stylus converts the data collected in step S103b into second signature data.
手写笔的处理器将手写笔的加速度、磁场强度、磁场强度等信息转换为手写笔的运动轨迹信息。The processor of the stylus converts information such as acceleration, magnetic field strength, and magnetic field strength of the stylus into motion track information of the stylus.
手写笔的处理器将手写笔的运动轨迹信息和用户对手写笔的压力信息按采集时间一一对应,即一个采集时间下对应一个手写笔的坐标信息和该采集时间处用户对手写笔的压力信息。The processor of the stylus associates the movement track information of the stylus with the pressure information of the user on the stylus according to the collection time, that is, the coordinate information corresponding to a stylus at one collection time and the pressure of the user on the stylus at the collection time. information.
此外,在步骤S103b采集的数据还包括其他信息的情况下,相应增加上述每个采集时间下对应的数据。In addition, in the case that the data collected in step S103b also includes other information, the data corresponding to each collection time mentioned above is correspondingly increased.
步骤S105,手写笔将第二签名数据发送给终端。Step S105, the stylus sends the second signature data to the terminal.
手写笔通过通信单元2将第二签名数据发送给终端。The stylus sends the second signature data to the terminal through the communication unit 2 .
步骤S106,终端的处理器根据第一签名数据和第二签名数据得到第一签名特征点的数据和第二签名特征点的数据。Step S106, the processor of the terminal obtains the data of the first signature feature point and the data of the second signature feature point according to the first signature data and the second signature data.
其中,签名对应第一签名特征点和第二签名特征点。第一签名特征点包括接触点组成的集合中的至少一个点,第二签名特征点包括手写笔在触摸面板以外区域的运动轨迹中的点的集合中的至少一个点。The signature corresponds to the first signature feature point and the second signature feature point. The first signature feature point includes at least one point in the set of contact points, and the second signature feature point includes at least one point in the set of points in the movement trajectory of the stylus in the area outside the touch panel.
第一签名特征点对应的数据包括:第一签名特征点对应的接触点的坐标信息、第一签名特征点对应的接触点处手写笔对触摸面板的压力信息以及在与第一签名特征点的采样时间相同时手写笔的位置信息和用户对手写笔的压力信息;其中,手写笔的位置信息通过手写笔的轨迹信息得到。The data corresponding to the first signature feature point includes: the coordinate information of the contact point corresponding to the first signature feature point, the pressure information of the stylus on the touch panel at the contact point corresponding to the first signature feature point, and the pressure information at the contact point corresponding to the first signature feature point. When the sampling time is the same, the position information of the stylus and the pressure information of the user on the stylus are obtained; wherein, the position information of the stylus is obtained from the track information of the stylus.
第二签名特征点对应的数据包括:第二签名特征点对应的手写笔的位置信息及用户对手写笔的压力信息。The data corresponding to the second signature feature point includes: the position information of the stylus corresponding to the second signature feature point and the pressure information of the user on the stylus.
此外,在步骤S103b采集的数据还包括其他信息的情况下,第二签名特征点对应的数据还包括:手写笔检测的当用户通过手写笔在触摸面板上进行签名时手写笔受到用户压力的受压面积信息和受压区域的形状信息,以及手写笔受压区域距手写笔笔端的距离信息。In addition, in the case where the data collected in step S103b also includes other information, the data corresponding to the second signature feature point further includes: when the user signs on the touch panel with the stylus detected by the stylus, the stylus is affected by the user's pressure. The pressure area information and the shape information of the pressure area, and the distance information from the pressure area of the stylus to the end of the stylus.
具体地,第一签名特征点具体包括:第一个接触点、最后一个接触点、不连续的接触点或曲率变化大的接触点中的一个或多个点。Specifically, the first signature feature point specifically includes: one or more points among the first contact point, the last contact point, a discontinuous contact point, or a contact point with a large curvature change.
具体地,第二签名特征点具体包括下述点中的一个或多个:在触摸面板以外区域中每段不连续的手写笔的运动轨迹对应的曲线中曲率最大的点,或在触摸面板以外区域中每段不连续的手写笔的运动轨迹对应的曲线中距离触摸面板距离最远的点。Specifically, the second signature feature point specifically includes one or more of the following points: the point with the largest curvature in the curve corresponding to the motion trajectory of each discontinuous stylus in the area outside the touch panel, or the point outside the touch panel The point farthest from the touch panel in the curve corresponding to the motion trajectory of each discontinuous stylus in the area.
此外,还可对手写笔笔端的运动轨迹和触摸面板采集得到的接触点的坐标,进行统一的坐标系变换,并对变换后的手写笔笔端的运动轨迹做投影。提取投影后的运动轨迹的特征点及签名特征点的数据,作为新的签名特征点的数据。具体可参见图4中的描述,在此不做赘述。In addition, a unified coordinate system transformation can be performed on the movement track of the stylus pen end and the coordinates of the contact point collected by the touch panel, and the transformed movement track of the stylus pen end can be projected. The feature points of the projected motion trajectory and the data of the signature feature points are extracted as the data of the new signature feature points. For details, reference may be made to the description in FIG. 4 , which will not be repeated here.
步骤S107,终端的处理器将第一签名特征点的数据和第二签名特征点的数据与预存的签名模板数据对比,得到匹配率。Step S107, the processor of the terminal compares the data of the first signature feature point and the data of the second signature feature point with the pre-stored signature template data to obtain a matching rate.
需要说明的是,签名模板数据为用户输入手写签名进行认证之前,预输入手写签名时,终端和手写笔检测的预输入的手写签名的相关数据。终端将签名模板数据保存在存储器中,在用户输入手写签名进行认证过程中,调用存储器中存储的签名模板数据。It should be noted that the signature template data is data related to the pre-input handwritten signature detected by the terminal and the stylus when the handwritten signature is pre-input before the user inputs the hand-written signature for authentication. The terminal stores the signature template data in the memory, and calls the signature template data stored in the memory during the authentication process of the user's input of a handwritten signature.
其中,预输入手写签名指的是用户进行签名认证前,保存一些模板数据,做为签名认证时,对比的依据。The pre-input handwritten signature refers to saving some template data before the user performs signature authentication, as a basis for comparison during signature authentication.
步骤S108,终端的处理器将上述匹配率与预存的匹配率阈值对比,当上述匹配率不低于预存的匹配率阈值时,指示显示面板显示用户输入手写签名认证通过的提示信息。Step S108, the processor of the terminal compares the matching rate with a pre-stored matching ratio threshold, and when the matching ratio is not lower than the pre-stored matching ratio threshold, instructs the display panel to display a prompt message that the user enters the handwritten signature authentication.
其中,匹配率阈值可以由终端预设,在用户输入签名认证时直接从存储器中调用。The matching rate threshold can be preset by the terminal and directly called from the memory when the user inputs the signature for authentication.
另外,匹配率阈值还可根据终端实际处在的环境,做调整。此时,终端可通过其通信单元1连接的网络判断其所在的环境。根据其所在的环境,确定终端所在环境的安全等级,并从存储器中调用该安全等级下的匹配率阈值。其中,在终端的存储器中,存储有不同网络对应的环境的列表、存储有不同环境对应的安全等级的列表、以及存储有不同安全等级对应的匹配率阈值的列表。进一步,可直接存储不同网络或环境对应的匹配率阈值的列表。用户可直接通过网络或环境调用其对应的匹配率阈值。In addition, the matching rate threshold can also be adjusted according to the actual environment of the terminal. At this time, the terminal can judge the environment in which it is located through the network to which its communication unit 1 is connected. According to the environment where the terminal is located, the security level of the environment where the terminal is located is determined, and the matching rate threshold under the security level is called from the memory. Wherein, in the memory of the terminal, a list of environments corresponding to different networks, a list of security levels corresponding to different environments, and a list of matching rate thresholds corresponding to different security levels are stored. Further, a list of matching rate thresholds corresponding to different networks or environments can be directly stored. Users can directly call their corresponding matching rate thresholds through the network or environment.
本发明实施例提供的签名认证方法、终端、手写笔及系统,终端和手写笔同时检测签名的相关数据,将签名的相关数据与预存的签名模板数据对比匹配,并根据匹配率确定签名认证是否通过。In the signature authentication method, terminal, stylus, and system provided by the embodiments of the present invention, the terminal and the stylus simultaneously detect the relevant data of the signature, compare and match the relevant data of the signature with the pre-stored signature template data, and determine whether the signature is authenticated according to the matching rate. pass.
本发明实施例在用户使用手写笔在终端的触摸面板输入手写签名的过程中,通过手写笔提取更多的用户签名特征数据,对比匹配,使得攻击者在模仿用户笔迹的同时,还要模仿用户的手部动作,增加攻击者模仿用户签名信息的难度,极大幅度提高了签名认证系统的安全性。In this embodiment of the present invention, when a user uses a stylus to input a handwritten signature on the touch panel of a terminal, the stylus is used to extract more user signature feature data and compare and match, so that the attacker can imitate the user's handwriting while imitating the user's handwriting. It increases the difficulty for attackers to imitate the user's signature information, and greatly improves the security of the signature authentication system.
本发明实施例还可根据终端所在环境,设定不同的匹配率阈值,具有很好的应用前景。同时,采用本发明实施例提出,用户可提前预存多个签名模板,可以降低人为因素导致的认证失败率,使得用户输入签名具有更高的灵活性。The embodiment of the present invention can also set different matching rate thresholds according to the environment where the terminal is located, which has a good application prospect. At the same time, the embodiment of the present invention proposes that the user can pre-store multiple signature templates in advance, which can reduce the authentication failure rate caused by human factors, and enable the user to input a signature with higher flexibility.
本发明实施例还可对手写笔和终端的触摸面板的两个坐标系进行变换,并将手写笔的运动轨迹在触摸面板所在的平面上进行投影,避免了在原先两个坐标系中,可能会对应的同一特征点在两个坐标系中的坐标数据匹配对比的情况。本发明实施例还将手写笔的运动轨迹在与触摸面板所在平面垂直的两个平面上进行投影,将三维坐标对比简化成二维坐标对比的方式,简化了对签名数据对比匹配的复杂度。In the embodiment of the present invention, the two coordinate systems of the stylus pen and the touch panel of the terminal can also be transformed, and the movement trajectory of the stylus pen is projected on the plane where the touch panel is located, so as to avoid the possible It will be the case that the coordinate data of the same feature point in the two coordinate systems are matched and compared. The embodiment of the present invention also projects the movement trajectory of the stylus on two planes perpendicular to the plane where the touch panel is located, simplifies the comparison of three-dimensional coordinates into two-dimensional coordinate comparison, and simplifies the complexity of comparing and matching signature data.
专业人员应该还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Professionals should be further aware that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. Interchangeability, the above description has generally described the components and steps of each example in terms of function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present invention.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令处理器完成,所述的程序可以存储于计算机可读存储介质中,所述存储介质是非短暂性(英文:non-transitory)介质,例如随机存取存储器,只读存储器,快闪存储器,硬盘,固态硬盘,磁带(英文:magnetic tape),软盘(英文:floppy disk),光盘(英文:optical disc)及其任意组合。Those of ordinary skill in the art can understand that all or part of the steps in the method of implementing the above embodiments can be completed by instructing the processor through a program, and the program can be stored in a computer-readable storage medium, and the storage medium is non-transitory ( English: non-transitory) media, such as random access memory, read only memory, flash memory, hard disk, solid state disk, magnetic tape (English: magnetic tape), floppy disk (English: floppy disk), optical disc (English: optical disc) and any combination thereof.
以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。The above description is only a preferred embodiment of the present invention, but the protection scope of the present invention is not limited to this. Substitutions should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.
Claims (20)
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2016/097645 WO2018040009A1 (en) | 2016-08-31 | 2016-08-31 | Method, terminal, handwriting stylus, and system for signature verification |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108139856A CN108139856A (en) | 2018-06-08 |
CN108139856B true CN108139856B (en) | 2020-07-07 |
Family
ID=61299779
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201680028530.4A Active CN108139856B (en) | 2016-08-31 | 2016-08-31 | Signature authentication method, terminal, stylus and system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108139856B (en) |
WO (1) | WO2018040009A1 (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109145776A (en) * | 2018-08-01 | 2019-01-04 | 上海市数字证书认证中心有限公司 | Identity identifying method, device and identification terminal |
CN111026285B (en) * | 2018-10-10 | 2021-08-31 | 华为技术有限公司 | Method and electronic device for adjusting pressure threshold |
CN110942042B (en) * | 2019-12-02 | 2022-11-08 | 深圳棒棒帮科技有限公司 | Three-dimensional handwritten signature authentication method, system, storage medium and equipment |
CN111125781B (en) * | 2019-12-24 | 2020-12-01 | 腾讯科技(深圳)有限公司 | File signature method and device and file signature verification method and device |
CN111555889A (en) * | 2020-04-27 | 2020-08-18 | 深圳壹账通智能科技有限公司 | Electronic signature verification method and device, computer equipment and storage medium |
CN111881428A (en) * | 2020-07-20 | 2020-11-03 | 珠海格力电器股份有限公司 | Identity authentication method and device, electronic equipment and storage medium |
CN112699840B (en) * | 2021-01-13 | 2024-10-22 | 深圳市锦上科技有限公司 | Writing process evaluation and feedback method, system and computer storage medium thereof |
CN113220144B (en) * | 2021-03-15 | 2022-06-07 | 荣耀终端有限公司 | Stylus |
CN113468987B (en) * | 2021-06-17 | 2023-04-18 | 重庆傲雄在线信息技术有限公司 | Electronic handwriting authentication method, system, electronic equipment and storage medium |
CN114037998A (en) * | 2022-01-11 | 2022-02-11 | 北京顶象技术有限公司 | Method and device for improving account security by analyzing handwriting by using model |
CN116781839B (en) * | 2023-08-24 | 2023-10-31 | 北京点聚信息技术有限公司 | Fingerprint encryption method based on handwriting and seal data |
CN119596163A (en) * | 2025-02-08 | 2025-03-11 | 山东科技大学 | A fuel cell fault diagnosis method, device and medium based on voltage signal |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1227373A (en) * | 1998-02-23 | 1999-09-01 | 三菱电机株式会社 | Handwriting verification device |
CN101872259A (en) * | 2010-06-03 | 2010-10-27 | 中国人民解放军第二炮兵工程学院 | Natural interaction pen capable of automatically inputting written contents and handwriting detection method |
CN103235957A (en) * | 2013-04-18 | 2013-08-07 | 武汉汉德瑞庭科技有限公司 | Palm lateral surface information-based online handwriting authentication method and system |
CN103677601A (en) * | 2012-09-10 | 2014-03-26 | 联想(北京)有限公司 | Information processing device and information processing method |
WO2014169835A1 (en) * | 2013-04-18 | 2014-10-23 | 武汉汉德瑞庭科技有限公司 | Online handwriting authentication method and system based on finger information |
-
2016
- 2016-08-31 CN CN201680028530.4A patent/CN108139856B/en active Active
- 2016-08-31 WO PCT/CN2016/097645 patent/WO2018040009A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1227373A (en) * | 1998-02-23 | 1999-09-01 | 三菱电机株式会社 | Handwriting verification device |
CN101872259A (en) * | 2010-06-03 | 2010-10-27 | 中国人民解放军第二炮兵工程学院 | Natural interaction pen capable of automatically inputting written contents and handwriting detection method |
CN103677601A (en) * | 2012-09-10 | 2014-03-26 | 联想(北京)有限公司 | Information processing device and information processing method |
CN103235957A (en) * | 2013-04-18 | 2013-08-07 | 武汉汉德瑞庭科技有限公司 | Palm lateral surface information-based online handwriting authentication method and system |
WO2014169835A1 (en) * | 2013-04-18 | 2014-10-23 | 武汉汉德瑞庭科技有限公司 | Online handwriting authentication method and system based on finger information |
Also Published As
Publication number | Publication date |
---|---|
WO2018040009A1 (en) | 2018-03-08 |
CN108139856A (en) | 2018-06-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108139856B (en) | Signature authentication method, terminal, stylus and system | |
US9805242B2 (en) | Electronic device with touch sensor and driving method therefor | |
KR102206054B1 (en) | Method for processing fingerprint and electronic device thereof | |
KR102041984B1 (en) | Mobile apparatus having function of face recognition with additional component | |
KR102080183B1 (en) | Electronic device and method for unlocking in the electronic device | |
KR102177150B1 (en) | Apparatus and method for recognizing a fingerprint | |
US9823762B2 (en) | Method and apparatus for controlling electronic device using touch input | |
US20160210453A1 (en) | Electronic device and inputted signature processing method of electronic device | |
KR20200009916A (en) | Electronic device and method for controlling the same | |
US20230021413A1 (en) | Voice Payment Method and Electronic Device | |
KR101648446B1 (en) | Electronic conference system, method for controlling the electronic conference system, and digital pen | |
CN107450828A (en) | Utilize the method for fingerprint activated function and the electronic equipment of support this method | |
CN108701178A (en) | Authentication method and the electronic equipment for using authentication method | |
KR102117261B1 (en) | Range detection and bio-certification method, machine-readable storage medium and terminal | |
EP2897038B1 (en) | Method for processing input and electronic device thereof | |
US20170243054A1 (en) | Mobile terminal and control method thereof | |
CN108549802A (en) | An unlocking method, device and mobile terminal based on face recognition | |
WO2019218843A1 (en) | Key configuration method and device, and mobile terminal and storage medium | |
CN110730298A (en) | Display control method and electronic equipment | |
CN107092350A (en) | A kind of remote computer based system and method | |
US11068690B2 (en) | Detection device, information processing device, and information processing method | |
CN107451450A (en) | Biometric discrimination method and Related product | |
CN107707738A (en) | A kind of face identification method and mobile terminal | |
CN108898000A (en) | A kind of method and terminal solving lock screen | |
CN103207678A (en) | Electronic equipment and unblocking method thereof |
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 |