CN107046561B - Service processing method and device based on palm print data - Google Patents

Service processing method and device based on palm print data Download PDF

Info

Publication number
CN107046561B
CN107046561B CN201611248757.8A CN201611248757A CN107046561B CN 107046561 B CN107046561 B CN 107046561B CN 201611248757 A CN201611248757 A CN 201611248757A CN 107046561 B CN107046561 B CN 107046561B
Authority
CN
China
Prior art keywords
palm
image
palm print
data
mobile terminal
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
Application number
CN201611248757.8A
Other languages
Chinese (zh)
Other versions
CN107046561A (en
Inventor
孙鹏
李建方
刘琦玉
兰天
冯姗姗
王佳裕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201611248757.8A priority Critical patent/CN107046561B/en
Publication of CN107046561A publication Critical patent/CN107046561A/en
Application granted granted Critical
Publication of CN107046561B publication Critical patent/CN107046561B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/30Noise filtering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/50Extraction of image or video features by performing operations within image blocks; by using histograms, e.g. histogram of oriented gradients [HoG]; by summing image-intensity values; Projection analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/12Fingerprints or palmprints

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Collating Specific Patterns (AREA)
  • Facsimiles In General (AREA)

Abstract

The embodiment of the invention provides a service processing method and a device based on palm print data, wherein the method comprises the following steps: when a service request sent by a mobile terminal is received, acquiring palm image data from an image bed according to the service request; identifying palm print data from the palm image data to generate a palm print image; inquiring service information corresponding to the palm print data; and returning the palm print image and/or the service information to the mobile terminal by taking the image bed as a carrier of the palm print image. The communication between the service platform and the mobile terminal can be realized by using simple information such as addresses and the like, and image data does not need to be directly transmitted, so that the volume of the transmitted data is effectively reduced, and the transmission efficiency and the development efficiency are improved.

Description

Service processing method and device based on palm print data
Technical Field
The present invention relates to the technical field of computer processing, and in particular, to a palm print data-based service processing method and a palm print data-based service processing apparatus.
Background
With the rapid development of computer technology, biometric technology has been widely developed in government, finance, military and other aspects as a new identity recognition technology.
The characteristics of main lines, wrinkles, fine textures, ridge endings, bifurcation points and the like of the palm print data can be used for biological identification, and the acquisition of the palm print data is non-invasive, so that the palm print data is easy to accept by a user and has low requirements on an acquisition terminal.
In some cases, in order to reduce resource consumption of the terminal, the terminal transmits the acquired image data to the server, and the server identifies the palm print data.
Because image data needs to be transmitted, the volume of data transmitted between the terminal and the server is large, and the transmission efficiency is low.
Disclosure of Invention
In view of the above problems, the present invention is proposed to provide a palm print data based service processing method and a corresponding palm print data based service processing apparatus that overcome or at least partially solve the above problems.
According to an aspect of the present invention, a service processing method based on palm print data is provided, including:
when a service request sent by a mobile terminal is received, acquiring palm image data from an image bed according to the service request;
identifying palm print data from the palm image data to generate a palm print image;
inquiring service information corresponding to the palm print data;
and returning the palm print image and/or the service information to the mobile terminal by taking the image bed as a carrier of the palm print image.
Optionally, the step of acquiring palm image data from the bed according to the service request includes:
extracting a first address of the palm image data in the image bed from the service request;
and accessing the first address, and downloading palm image data uploaded to the map bed by the mobile terminal from the map bed.
Optionally, the step of acquiring palm image data from the bed according to the service request includes:
carrying out format check on request parameters in the service request;
when the format of the request parameter is correct, palm image data uploaded to the map bed by the mobile terminal is downloaded from the map bed;
and when the format of the request parameter is wrong, carrying out error exception processing.
Optionally, the step of acquiring palm image data from the bed according to the service request includes:
inquiring the access frequency of the mobile terminal;
judging whether the access frequency exceeds a preset frequency threshold;
if yes, rejecting the service request and performing error exception handling;
and if not, downloading palm image data uploaded to the map bed from the map bed by the mobile terminal.
Optionally, the step of querying the access frequency of the mobile terminal includes:
recording a terminal identification of the mobile terminal aiming at each access of the mobile terminal;
setting an expiration time for the terminal identification;
and counting the number of the terminal identifications as access frequency.
Optionally, the palm print data includes one or more pieces of main line data;
the step of inquiring the service information corresponding to the palm print data comprises the following steps:
determining the level corresponding to the main line data;
and extracting the service information corresponding to the level.
Optionally, the step of determining the level corresponding to the dominant line data includes:
calculating a score of the dominant line data;
inquiring a score area where the score is located;
and determining that the score belongs to the level corresponding to the score area.
Optionally, the palm print data includes one or more pieces of main line data;
the step of returning the palm print image and/or the service information to the mobile terminal by taking the map bed as a carrier of the palm print image comprises the following steps:
uploading the palm print image to the image bed to obtain a second address;
inquiring the score of the mainline data;
encapsulating at least one of the score, the business information, and the second address into a script object;
and returning the script object to the mobile terminal.
According to another aspect of the present invention, there is provided a service processing apparatus based on palmprint data, including:
the palm image data acquisition module is suitable for acquiring palm image data from the image bed according to a service request when the service request sent by the mobile terminal is received;
the palm print data identification module is suitable for identifying palm print data from the palm image data to generate a palm print image;
the service information query module is suitable for querying the service information corresponding to the palm print data;
and the palm print information returning module is suitable for taking the image bed as a carrier of the palm print image and returning the palm print image and/or the service information to the mobile terminal.
Optionally, the palm image data acquisition module is further adapted to:
extracting a first address of the palm image data in the image bed from the service request;
and accessing the first address, and downloading palm image data uploaded to the map bed by the mobile terminal from the map bed.
Optionally, the palm image data acquisition module is further adapted to:
carrying out format check on request parameters in the service request;
when the format of the request parameter is correct, palm image data uploaded to the map bed by the mobile terminal is downloaded from the map bed;
and when the format of the request parameter is wrong, carrying out error exception processing.
Optionally, the palm image data acquisition module is further adapted to:
inquiring the access frequency of the mobile terminal;
judging whether the access frequency exceeds a preset frequency threshold;
if yes, rejecting the service request and performing error exception handling;
and if not, downloading palm image data uploaded to the map bed from the map bed by the mobile terminal.
Optionally, the palm image data acquisition module is further adapted to:
recording a terminal identification of the mobile terminal aiming at each access of the mobile terminal;
setting an expiration time for the terminal identification;
and counting the number of the terminal identifications as access frequency.
Optionally, the palm print data includes one or more pieces of main line data;
the service information query module is further adapted to:
determining the level corresponding to the main line data;
and extracting the service information corresponding to the level.
Optionally, the service information query module is further adapted to:
calculating a score of the dominant line data;
inquiring a score area where the score is located;
and determining that the score belongs to the level corresponding to the score area.
Optionally, the palm print data includes one or more pieces of main line data;
the palm print information returning module is further adapted to:
uploading the palm print image to the image bed to obtain a second address;
inquiring the score of the mainline data;
encapsulating at least one of the score, the business information, and the second address into a script object;
and returning the script object to the mobile terminal.
In the embodiment of the invention, the service platform transmits palm image data with the mobile terminal through the graphics bed, identifies palm print data and generates a palm print image on the service platform, transmits the palm print image with the mobile terminal through the graphics bed, and can use simple information such as addresses and the like for communication between the service platform and the mobile terminal without directly transmitting the image data, thereby effectively reducing the volume of the transmitted data and improving the transmission efficiency and the development efficiency.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart illustrating steps of a palm print data-based business processing method according to an embodiment of the present invention;
FIGS. 2A-2B are diagrams illustrating exemplary processes for handling palm print data according to an embodiment of the present invention;
3A-3B illustrate exemplary diagrams of a gray scale process according to one embodiment of the invention;
4A-4B illustrate exemplary diagrams of a median filtering process according to one embodiment of the invention;
FIG. 5 is a diagram illustrating an example of an adjustment of a detection threshold according to one embodiment of the invention;
FIG. 6 illustrates an exemplary diagram of a palm print template for a dominant line in accordance with one embodiment of the present invention;
FIG. 7 illustrates an exemplary diagram of a palm print image in accordance with one embodiment of the present invention;
fig. 8 is a block diagram illustrating a palm print data based service processing apparatus according to an embodiment of the present invention; and
fig. 9 is a block diagram of a palm print data identification module according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Referring to fig. 1, a flowchart illustrating steps of a palm print data-based service processing method according to an embodiment of the present invention is shown, which may specifically include the following steps:
step 101, when a service request sent by a mobile terminal is received, acquiring palm image data from a map bed according to the service request.
In a specific implementation, the embodiment of the present invention may be applied to a service platform, which may be an independent server or a server cluster in nature, such as a distributed system.
The service platform may provide an API (Application Programming Interface), and the mobile terminal may package a service request according to a specification of the API Interface and send the service request to the service platform, so as to call the service to provide the palmprint service.
In the embodiment of the present invention, the mobile terminal may invoke the camera to acquire palm image data and upload the palm image data to the map bed, where as shown in fig. 2A, the palm image data is image data recorded with a palm.
The graph bed is a cloud platform of a third party independent of a service platform and a mobile terminal, can provide cloud services for users, and after the users apply for corresponding accounts, the users allocate corresponding cloud servers, such as virtual machines, and establish a database in the cloud servers.
The mobile terminal may upload the palm image data to the cloud server through an interface provided by the graphics bed, and the cloud server may store the palm image data and allocate a first address, for example, a Uniform Resource Locator (URL).
It should be noted that, before uploading the palm image data, the mobile terminal may compress the palm image data to reduce the amount of data to be transmitted.
After the chart stores the palm image data, the first address of the palm image data is returned to the mobile terminal.
The mobile terminal can package the first address according to the specification of the API interface, package the service request and send the service request to the service platform so as to call the service to provide the palm print service.
Of course, in addition to the palm image data at the first address of the map bed, the mobile terminal may further encapsulate other information into the service request, for example, a Uid (user unique identifier), a user nickname, a user password, and the like, which is not limited in this embodiment of the present invention.
After receiving a service request sent by the mobile terminal, the service platform responds to the service request and acquires palm image data uploaded by the mobile terminal from the image bed.
In a specific implementation, the service platform may extract a first address of the palm image data in the map bed from the service request, access the first address, and download the palm image data uploaded to the map bed by the mobile terminal from the map bed.
In one embodiment of the present invention, step 101 may comprise the following sub-steps:
and a substep 1011, performing format check on the request parameter in the service request.
And a substep 1012, downloading the palm image data uploaded to the map bed by the mobile terminal from the map bed when the format of the request parameter is correct.
And a substep 1013 of performing error exception processing when the format of the request parameter is incorrect.
In the embodiment of the present invention, the service platform may perform format check on request parameters (such as Uid, URL, etc.) in the service request of the mobile terminal, for example, whether the request parameters are null, whether the URL is legal, whether the URL is URL check of palm image data, and the like.
If the request parameters are correct, palm image data uploaded to the map bed by the mobile terminal can be continuously downloaded from the map bed.
If the request parameter is wrong, error exception handling can be performed, for example, wrong information is returned to the mobile terminal, and the like, so that abnormal situations of the program can be reduced, and normal operation of the system can be guaranteed.
In another embodiment of the present invention, step 101 may comprise the following sub-steps:
sub-step 1014, inquiring the access frequency of said mobile terminal.
Substep 1015, determining whether the access frequency exceeds a preset frequency threshold; if so, then sub-step 1016 is performed, and if not, then sub-step 1017 is performed.
Substep 1016, rejecting the service request and performing error exception handling.
And a substep 1017 of downloading the palm image data uploaded to the map bed by the mobile terminal from the map bed.
In the embodiment of the invention, in order to prevent the API interface from being maliciously scanned to a certain extent, certain frequency limitation can be carried out on the service request of the mobile terminal.
Therefore, the access frequency of the service request of the mobile terminal can be counted.
In one example, a terminal identifier of the mobile terminal, such as an IP (Internet Protocol) address, Uid, and the like of the mobile terminal, may be recorded for each access of the mobile terminal based on a Redis data storage service of a memory.
And setting expiration time for the terminal identifier, wherein the national enterprise time can be written in a configuration file for dynamic loading, and if the expiration time is exceeded, the terminal identifier is invalid.
And counting the number of the terminal identifications as access frequency.
If the access frequency of the same mobile terminal exceeds the frequency threshold, which indicates that the mobile terminal has too frequent access, the service request can be rejected to reject providing service to the mobile terminal, and error exception handling is performed, for example, information that the access is too frequent is returned to the mobile terminal, and the like, so that abnormal situations of programs can be reduced, and normal operation of the system can be ensured.
If the access frequency of the same mobile terminal does not exceed the frequency threshold, which indicates that the mobile terminal has infrequent access, the service request can be accepted, palm image data uploaded to the map bed by the mobile terminal is continuously downloaded from the map bed, and the service is provided for the mobile terminal.
Step 102, identifying palm print data from the palm image data to generate a palm print image.
In the contact between a person and the outside, the epidermis gradually thickens, and the palm of the person has many lines, called as palm lines, which can be divided into main lines (principal lines), fold lines (wrinkle) and papilla lines (ridge).
The main lines include life lines, smart lines and emotional lines, and the ways of holding things are different, so the main lines of different people are different.
The crease lines are permanent folds of the skin of the palm portion due to muscle movements.
Mastoid threads are formed by permanent thickening of the epidermis, mainly inside the palm of the hand.
In the embodiment of the present invention, the palm print data may be recognized from the palm image data, and the palm print data may be rendered in the palm image data to generate the palm and palm print image.
For example, as shown in fig. 2B, a main line such as a life line, an intelligent line, and an emotional line is drawn in the palm image data to generate a palm print image.
In practical application, the palm image data with high resolution can be identified by utilizing the nipple wrinkles and the minutiae, and the characteristic extraction stage generally comprises the processes of directional field estimation, image enhancement, binarization, thinning, minutiae extraction and the like.
On the basis, some rules can be given by using statistical information and structural information to remove pseudo minutiae, matching between point sets is adopted during matching, and information such as positions, directions and types of the minutiae in each pair of minutiae is generally considered during matching.
In addition, the latent palm print identification method can provide a method for identifying palm print data by taking a minutiae code as a local feature, firstly performing local matching and then performing global matching according to the characteristic of matching between partial palm prints and all palm prints.
For palm print image data with low resolution, palm print recognition can be realized by utilizing the main line and fold information.
Palm print recognition methods can be classified into four categories, structure-based methods, statistical-based methods, subspace-based methods, and code-based methods, according to the representation of the features in the palm print and the matching method.
In one embodiment of the present invention, step 102 may include the following sub-steps:
and a substep 1021, preprocessing the palm image data.
Wherein the pre-treatment comprises one or more of:
(1) gray scale processing
The Canny operator is adopted for edge detection, so that the gray-scale map is used, and the speed of subsequent image processing operation can be increased by using the gray-scale map.
Therefore, the palm image data of RGB colors can be processed into a gray scale image by calling the cvtColo function of the opencv library, and the like.
For example, gradation processing is performed on palm image data as shown in fig. 3A, resulting in a gradation map as shown in fig. 3B.
(2) Median filtering process
Since the unprocessed palm image data has more fine lines and miscellaneous lines, which are regarded as noise in the main line extraction and can bring greater interference to the main line extraction, the fine lines and miscellaneous lines can be filtered by using median filtering.
For example, the gradation map (palm image data) shown in fig. 4A is subjected to median filtering processing, resulting in image data shown in fig. 4B.
Of course, the foregoing preprocessing is only an example, and when the embodiment of the present invention is implemented, other preprocessing may be set according to practical situations, for example, normalization, illumination supplementation, and the like, which is not limited in this embodiment of the present invention. In addition, besides the above pretreatment, those skilled in the art may also use other pretreatment according to actual needs, and the embodiment of the present invention is not limited thereto.
A substep 1022 of extracting contour data from the palm image data.
In a specific implementation, the contour data can be extracted from the palm image data, and more obvious palm print data can be identified.
In one embodiment of the present invention, sub-step 1022 may include the following sub-steps:
a substep 10221, performing edge detection on the palm print image data to obtain edge image data;
in the specific implementation, the edge detection can be performed on the palm print image data, the point with obvious brightness change in the palm print image data is identified, the edge image data is obtained, and the data scale of the palm print image data is obviously reduced under the condition of keeping the original image attribute.
In one embodiment of the present invention, the sub-step 10221 may include the following sub-steps:
and a substep 102211 of performing edge detection on the palm print image data based on the detection threshold to obtain edge image data.
In the embodiment of the invention, Canny operator can be adopted for edge detection, the Canny operator is a multi-stage edge detection algorithm, and three strict edge detection standards are provided:
(a) good signal-to-noise ratio
(b) High positioning accuracy
(c) Single edge response
According to the three criteria, the Canny operator deduces an approximate realization of the optimal edge detection operator, namely that the boundary point is positioned at the maximum value point of the gradient amplitude of the image after being smoothed by the Gaussian function, and the method comprises the following steps:
(1) and performing low-pass smoothing filtering on the palm print image data according to rows and columns by using a one-dimensional Gaussian function.
(2) And calculating gradient values and gradient directions of all points in the smoothed palm print image data, and recording the gradient values and the gradient directions in a gradient amplitude map and a gradient directional diagram.
(3) And carrying out non-maximum suppression on the gradient amplitude value, and determining candidate edge points.
In the gradient magnitude map, if the gradient value of a certain point is not the maximum compared with the gradient values of two adjacent pixels in the gradient direction of the store, the point is regarded as a non-edge point to be deleted, and candidate edge points obtained after suppression are recorded in the map edge.
(4) Setting two thresholds of global height and global height, and selecting edge points.
In the histogram distribution of the gradient amplitude map, the number of pixel points is accumulated in the gradient amplitude increasing direction, when the accumulated number reaches a certain proportion (for example, 80%) of the total number, the corresponding gradient value is used as a high threshold, and a certain proportion (for example, 50% and 40%) of the high threshold is used as a low threshold.
Among the candidate edge points in the graph edge, points with gradient values larger than a high threshold value are reserved as edges, points with gradient values smaller than a low threshold value are deleted, points with gradient values between two threshold values and adjacent to the edge points are reserved as edge points, and otherwise, the points are deleted. And then judging whether edge pixels larger than a high threshold exist in the eight directions of the reserved point, if so, considering the edge pixels as edge points, otherwise, judging the edge pixels as edge points.
In the embodiment of the present invention, the detection threshold may be used as a threshold such as a high threshold, and is used to select the edge point.
The substep 10222 is to extract contour data with a number of pixels meeting a preset contour condition from the edge image data.
In practical application, a certain outline condition may be preset, and if the number of the pixel points of the edge image data meets the condition, the edge image data may be used as the outline data.
In one embodiment of the present invention, sub-step 10222 may include the following sub-steps:
a substep 102221, obtaining a pixel number threshold value by taking a specified proportion (for example, 3%) from the total number of pixels of the palm image data;
a substep 102222 of extracting contour data from the edge image data;
substep 102223, removing the contour data with the number of pixels less than a preset number threshold (e.g. 20);
a substep 102224 of determining whether the number of pixels of the contour data is less than the threshold value of the number of pixels; if yes, go to substep 102225, if no, go to substep 102226;
a substep 102225 of determining that the number of pixels of the contour data meets a preset contour condition;
substep 102226, adjusting the detection threshold, returns to performing substep 102211.
In the embodiment of the invention, if the number of the pixel points of the contour data is less than a certain proportion of the total number of the pixel points, the contour data is determined to accord with the contour condition.
Otherwise, as shown in fig. 5, the detection threshold may be adjusted, the detection threshold is increased, and if the value is increased by one, the edge detection and the contour extraction are performed again to obtain an appropriate detection threshold, so that the contour of the main line is more completely retained and the contour of the miscellaneous fringes is removed at the same time.
And a substep 1023 of matching the profile data with a preset palm print template to identify palm print data.
In the contact between a person and the outside, the epidermis gradually thickens, and the palm of the person has many lines, called as palm lines, which can be divided into main lines (principal lines), fold lines (wrinkle) and papilla lines (ridge).
The main lines include life lines, smart lines and emotional lines, and the ways of holding things are different, so the main lines of different people are different.
The crease lines are permanent folds of the skin of the palm portion due to muscle movements.
Mastoid threads are formed by permanent thickening of the epidermis, mainly inside the palm of the hand.
In the embodiment of the present invention, a palm print template, that is, a template for extracting the characteristics of the middle palm print, may be configured in advance for one or more palm prints, and the palm print template is matched with the contour data to extract the required palm print data.
In one embodiment of the present invention, the sub-step 1023 may include the following sub-steps:
a substep 10231 of extracting a main line template of the palm main line;
a substep 10232, adopting the main line template and the contour data for matching, and identifying main line data;
in a particular implementation, the palm mainline includes one or more of:
lifeline, wisdom line, emotion line.
Correspondingly, the main line template for the lifeline, the smart line and the emotional line is shown in fig. 6.
By matching these main line templates with the profile data, it is possible to identify main line data such as lifelines, smart lines, emotional lines, and the like from the profile data.
If the main line data is identified, the contour data belonging to the same palm main line can be merged.
And a substep 1024 of drawing palm print data in the palm image data to generate a palm print image.
For example, as shown in fig. 7, a main line such as a life line, an intelligent line, and an emotional line is drawn in palm image data to generate a palm print image.
Of course, the above identification manner of the palm print data is only an example, and when implementing the embodiment of the present invention, other identification manners of the palm print data may be set according to actual situations, which is not limited in the embodiment of the present invention. In addition, besides the identification method of the palm print data, a person skilled in the art may also adopt other identification methods of the palm print data according to actual needs, and the embodiment of the present invention is not limited to this.
And 103, inquiring service information corresponding to the palm print data.
By applying the embodiment of the invention, the corresponding service information can be set for the palm print data in advance according to the service requirement, and after the palm print data is identified from the palm image data, the relevant service information can be extracted.
Different business information, i.e. data objects with business domain characteristics, can be available for different business domains.
For example, for the field of biometric identification, the service information may be information for verifying palm print data; for the medical field, the business information may be health, for the entertainment field, the business information may be hand-related information, and so on.
The service information, although carrying different service characteristics, is still data in nature, e.g., text, image data, audio data, video data, etc.
In one embodiment of the present invention, step 103 may comprise the following sub-steps:
and step 1031, determining a level corresponding to the main line data.
Step 1032, extracting the service information corresponding to the level.
In the embodiment of the invention, the palm print data comprises one or more pieces of main line data, each main line can be divided into a plurality of levels according to a product strategy in advance and an empirical value of a statistical result, a score area is set for each level, and a mapping relation between the levels and the score areas is established.
In addition, for each level of each main line, service information, and further, brief description information and detailed information may be set.
In a specific implementation, the score of the main line data may be calculated according to a certain scoring rule (such as length, width, whether to break, and the like), and the score region where the score is located is queried, so that according to the mapping relationship, it is determined that the score belongs to the level corresponding to the score region.
And for each main line, extracting the service information corresponding to the level of the main line, wherein the brief description information of each main line can be combined into overall overview information.
And step 104, taking the map bed as a carrier of the palm print image, and returning the palm print image and/or the service information to the mobile terminal.
In a specific implementation, the service platform may return the identified palm print image and the related service information to the mobile terminal through the graphics bed, and perform corresponding display or other processing.
In one embodiment of the present invention, step 104 may include the following sub-steps:
substep 1041, uploading the palm print image to the image bed, obtaining a second address;
substep 1042, inquiring the score of the main line data;
substep 1043 of encapsulating at least one of said score, said business information, and said second address into a script object;
and a substep 1044 of returning the script object to the mobile terminal.
In the embodiment of the invention, the service platform can upload the palm print image to the map bed.
It should be noted that, before the palm image data is uploaded, the service platform may compress the palm image data to reduce the amount of data to be transmitted.
After the graphics bed stores the palm print image, a second address, such as a URL, is assigned and returned to the service platform.
The service platform encodes the score of each piece of main line data, corresponding service information and a second address through JSON (JavaScript Object Notation) and the like to generate a script Object, and returns the script Object to the mobile terminal, and the mobile terminal can load the script Object to perform corresponding display or other processing.
The mobile terminal may access the second address, download the palm print image from the graphics bed, and load the business information (e.g., overview information).
After a user clicks a certain piece of mainline data, the score of the mainline data can be displayed in the form of a data bar or the like, and service information (e.g., detailed information) is loaded.
In the embodiment of the invention, the service platform transmits palm image data with the mobile terminal through the graphics bed, identifies palm print data and generates a palm print image on the service platform, transmits the palm print image with the mobile terminal through the graphics bed, and can use simple information such as addresses and the like for communication between the service platform and the mobile terminal without directly transmitting the image data, thereby effectively reducing the volume of the transmitted data and improving the transmission efficiency and the development efficiency.
In addition, the embodiment of the invention abstracts the key nodes of the services such as the limitation of access frequency, error exception processing, level division of main line data, combination of business information and the like, controls through configuration and has flexibility.
For simplicity of explanation, the method embodiments are described as a series of acts or combinations, but those skilled in the art will appreciate that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently with other steps in accordance with the embodiments of the invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 8, a block diagram of a structure of a service processing apparatus based on palm print data according to an embodiment of the present invention is shown, which may specifically include the following modules:
the palm image data acquisition module 801 is adapted to acquire palm image data from an image bed according to a service request sent by a mobile terminal when the service request is received;
a palm print data identification module 802, adapted to identify palm print data from the palm image data to generate a palm print image;
a service information query module 803 adapted to query service information corresponding to the palmprint data;
a palm print information returning module 804, adapted to return the palm print image and/or the service information to the mobile terminal by using the map bed as a carrier of the palm print image.
In an embodiment of the present invention, the palm image data acquisition module 801 is further adapted to:
extracting a first address of the palm image data in the image bed from the service request;
and accessing the first address, and downloading palm image data uploaded to the map bed by the mobile terminal from the map bed.
In an embodiment of the present invention, the palm image data acquisition module 801 is further adapted to:
carrying out format check on request parameters in the service request;
when the format of the request parameter is correct, palm image data uploaded to the map bed by the mobile terminal is downloaded from the map bed;
and when the format of the request parameter is wrong, carrying out error exception processing.
In an embodiment of the present invention, the palm image data acquisition module 801 is further adapted to:
inquiring the access frequency of the mobile terminal;
judging whether the access frequency exceeds a preset frequency threshold;
if yes, rejecting the service request and performing error exception handling;
and if not, downloading palm image data uploaded to the map bed from the map bed by the mobile terminal.
In an embodiment of the present invention, the palm image data acquisition module 801 is further adapted to:
recording a terminal identification of the mobile terminal aiming at each access of the mobile terminal;
setting an expiration time for the terminal identification;
and counting the number of the terminal identifications as access frequency.
In one embodiment of the present invention, the palm print data includes one or more pieces of main line data;
the service information query module 803 is further adapted to:
determining the level corresponding to the main line data;
and extracting the service information corresponding to the level.
In an embodiment of the present invention, the service information query module 803 is further adapted to:
calculating a score of the dominant line data;
inquiring a score area where the score is located;
and determining that the score belongs to the level corresponding to the score area.
In one embodiment of the present invention, the palm print data includes one or more pieces of main line data;
the palmprint information returning module 804 is further adapted to:
uploading the palm print image to the image bed to obtain a second address;
inquiring the score of the mainline data;
encapsulating at least one of the score, the business information, and the second address into a script object;
and returning the script object to the mobile terminal.
Referring to fig. 9, a block diagram of a palm print data identification module according to an embodiment of the present invention is shown, which may specifically include the following modules:
a contour data extracting module 901 adapted to extract contour data from the palm image data;
a palm print template matching module 902, adapted to match the contour data with a preset palm print template to identify palm print data;
and the palm print image generation module 903 is adapted to draw the palm print data in the palm image data to generate a palm print image.
In one embodiment of the present invention, the following modules may be further included:
the preprocessing module is suitable for preprocessing the palm image data;
wherein the pre-treatment comprises one or more of:
gray level processing and median filtering processing.
In an embodiment of the present invention, the contour data extraction module 901 is further adapted to:
performing edge detection on the palm print image data to obtain edge image data;
and extracting contour data of which the number of pixel points is preset to meet a preset contour condition from the edge image data.
In an embodiment of the present invention, the contour data extraction module 901 is further adapted to:
and carrying out edge detection on the palm print image data based on a detection threshold value to obtain edge image data.
In an embodiment of the present invention, the contour data extraction module 901 is further adapted to:
acquiring a specified proportion from the total number of pixel points of the palm image data to obtain a pixel point quantity threshold;
extracting contour data from the edge image data;
judging whether the number of the pixels of the contour data is less than the threshold value of the number of the pixels;
if yes, determining that the number of the pixel points of the contour data meets a preset contour condition;
if not, adjusting the detection threshold value, and returning to execute the step of performing edge detection on the palm print image data based on the detection threshold value to obtain edge image data.
In an embodiment of the present invention, the contour data extraction module 901 is further adapted to:
and removing the contour data of which the number of the pixel points is less than a preset number threshold.
In one embodiment of the present invention, the palm print template matching module 902 is further adapted to:
extracting a main line template of the palm main line;
matching the main line template with the contour data to identify main line data;
wherein the palm dominant line includes one or more of:
lifeline, wisdom line, emotion line.
In one embodiment of the present invention, the palm print template matching module 902 is further adapted to:
and merging the contour data belonging to the same palm main line.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It will be appreciated by those skilled in the art that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in a palm print data based transaction processing apparatus device according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.

Claims (16)

1. A service processing method based on palm print data comprises the following steps:
when a service request sent by a mobile terminal is received, acquiring palm image data from an image bed according to the service request;
identifying palm print data from the palm image data to generate a palm print image;
inquiring service information corresponding to the palm print data;
the image bed is used as a carrier of the palm print image, and the palm print image and/or the service information are returned to the mobile terminal;
the taking the image bed as a carrier of the palm print image and returning the palm print image and/or the service information to the mobile terminal comprises:
and sending the palm print image and the service information to the image bed, so that the mobile terminal can obtain the palm print image and the service information through the image bed.
2. The method of claim 1, wherein the step of obtaining palm image data from a bed in accordance with the service request comprises:
extracting a first address of the palm image data in the image bed from the service request;
and accessing the first address, and downloading palm image data uploaded to the map bed by the mobile terminal from the map bed.
3. The method of any of claims 1-2, wherein the step of obtaining palm image data from a bed in accordance with the service request comprises:
carrying out format check on request parameters in the service request;
when the format of the request parameter is correct, palm image data uploaded to the map bed by the mobile terminal is downloaded from the map bed;
and when the format of the request parameter is wrong, carrying out error exception processing.
4. The method of any of claims 1-2, wherein the step of obtaining palm image data from a bed in accordance with the service request comprises:
inquiring the access frequency of the mobile terminal;
judging whether the access frequency exceeds a preset frequency threshold;
if yes, rejecting the service request and performing error exception handling;
and if not, downloading palm image data uploaded to the map bed from the map bed by the mobile terminal.
5. The method of claim 4, wherein the step of querying the access frequency of the mobile terminal comprises:
recording a terminal identification of the mobile terminal aiming at each access of the mobile terminal;
setting an expiration time for the terminal identification;
and counting the number of the terminal identifications as access frequency.
6. The method of any one of claims 1-2, wherein the palm print data comprises one or more pieces of mainline data;
the step of inquiring the service information corresponding to the palm print data comprises the following steps:
determining the level corresponding to the main line data;
and extracting the service information corresponding to the level.
7. The method of claim 6, wherein the determining the level to which the dominant line data corresponds comprises:
calculating a score of the dominant line data;
inquiring a score area where the score is located;
and determining that the score belongs to the level corresponding to the score area.
8. The method of any one of claims 1-2, wherein the palm print data comprises one or more pieces of mainline data;
the step of returning the palm print image and/or the service information to the mobile terminal by taking the map bed as a carrier of the palm print image comprises the following steps:
uploading the palm print image to the image bed to obtain a second address;
inquiring the score of the mainline data;
encapsulating at least one of the score, the business information, and the second address into a script object;
and returning the script object to the mobile terminal.
9. A service processing device based on palm print data comprises:
the palm image data acquisition module is suitable for acquiring palm image data from the image bed according to a service request when the service request sent by the mobile terminal is received;
the palm print data identification module is suitable for identifying palm print data from the palm image data to generate a palm print image;
the service information query module is suitable for querying the service information corresponding to the palm print data;
the palm print information returning module is suitable for taking the image bed as a carrier of the palm print image and returning the palm print image and/or the service information to the mobile terminal;
the palm print information returning module is specifically adapted to send the palm print image and the service information to the image bed, so that the mobile terminal can obtain the palm print image and the service information through the image bed.
10. The apparatus of claim 9, wherein the palm image data acquisition module is further adapted to:
extracting a first address of the palm image data in the image bed from the service request;
and accessing the first address, and downloading palm image data uploaded to the map bed by the mobile terminal from the map bed.
11. The apparatus of any of claims 9-10, wherein the palm image data acquisition module is further adapted to:
carrying out format check on request parameters in the service request;
when the format of the request parameter is correct, palm image data uploaded to the map bed by the mobile terminal is downloaded from the map bed;
and when the format of the request parameter is wrong, carrying out error exception processing.
12. The apparatus of any of claims 9-10, wherein the palm image data acquisition module is further adapted to:
inquiring the access frequency of the mobile terminal;
judging whether the access frequency exceeds a preset frequency threshold;
if yes, rejecting the service request and performing error exception handling;
and if not, downloading palm image data uploaded to the map bed from the map bed by the mobile terminal.
13. The apparatus of claim 12, wherein the palm image data acquisition module is further adapted to:
recording a terminal identification of the mobile terminal aiming at each access of the mobile terminal;
setting an expiration time for the terminal identification;
and counting the number of the terminal identifications as access frequency.
14. The apparatus of any one of claims 9-10, wherein the palm print data comprises one or more pieces of mainline data;
the service information query module is further adapted to:
determining the level corresponding to the main line data;
and extracting the service information corresponding to the level.
15. The apparatus of claim 14, wherein the service information query module is further adapted to:
calculating a score of the dominant line data;
inquiring a score area where the score is located;
and determining that the score belongs to the level corresponding to the score area.
16. The apparatus of any one of claims 9-10, wherein the palm print data comprises one or more pieces of mainline data;
the palm print information returning module is further adapted to:
uploading the palm print image to the image bed to obtain a second address;
inquiring the score of the mainline data;
encapsulating at least one of the score, the business information, and the second address into a script object;
and returning the script object to the mobile terminal.
CN201611248757.8A 2016-12-29 2016-12-29 Service processing method and device based on palm print data Active CN107046561B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611248757.8A CN107046561B (en) 2016-12-29 2016-12-29 Service processing method and device based on palm print data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611248757.8A CN107046561B (en) 2016-12-29 2016-12-29 Service processing method and device based on palm print data

Publications (2)

Publication Number Publication Date
CN107046561A CN107046561A (en) 2017-08-15
CN107046561B true CN107046561B (en) 2020-02-14

Family

ID=59543360

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611248757.8A Active CN107046561B (en) 2016-12-29 2016-12-29 Service processing method and device based on palm print data

Country Status (1)

Country Link
CN (1) CN107046561B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110879956A (en) * 2019-07-12 2020-03-13 熵加网络科技(北京)有限公司 Method for extracting palm print features

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103198304B (en) * 2013-04-19 2017-03-08 吉林大学 A kind of palmmprint extracts recognition methods
CN103870812A (en) * 2014-03-13 2014-06-18 上海云享科技有限公司 Method and system for acquiring palmprint image
CN104268542B (en) * 2014-09-19 2017-05-03 清华大学深圳研究生院 Palm print collecting device and method for generating whole-palm print image
CN105160194B (en) * 2015-09-21 2017-10-31 大丰云润科技有限公司 Biological information processing equipment
CN106127547A (en) * 2016-06-20 2016-11-16 上海斐讯数据通信技术有限公司 A kind of vehicle management system and vehicles management method

Also Published As

Publication number Publication date
CN107046561A (en) 2017-08-15

Similar Documents

Publication Publication Date Title
AU2016319775B2 (en) Image and feature quality, image enhancement and feature extraction for ocular-vascular and facial recognition, and fusing ocular-vascular with facial and/or sub-facial information for biometric systems
CN106649829B (en) Service processing method and device based on palm print data
CN106570489A (en) Living body determination method and apparatus, and identity authentication method and device
CN105608409A (en) Method and device for fingerprint identification
CN106203326B (en) A kind of image processing method, device and mobile terminal
KR20140061966A (en) Biometric information correction apparatus, biometric information correction method and a computer-readable recording medium for biometric information correction
CN108427874A (en) Identity identifying method, server and computer readable storage medium
CN109064504B (en) Image processing method, apparatus and computer storage medium
CN111507324B (en) Card frame recognition method, device, equipment and computer storage medium
CN107256543B (en) Image processing method, image processing device, electronic equipment and storage medium
CN113705426B (en) Face verification method, device, server and readable storage medium
CN110751500B (en) Processing method and device for sharing pictures, computer equipment and storage medium
WO2017161636A1 (en) Fingerprint-based terminal payment method and device
CN110969046B (en) Face recognition method, face recognition device and computer-readable storage medium
Bhowmik et al. Fingerprint Image Enhancement And It‟ s Feature Extraction For Recognition
CN111008935A (en) Face image enhancement method, device, system and storage medium
CN113723309A (en) Identity recognition method, identity recognition device, equipment and storage medium
CN113065553A (en) Data processing method and device, three-dimensional scanning system and electronic device
CN111178221A (en) Identity recognition method and device
WO2018121552A1 (en) Palmprint data based service processing method, apparatus and program, and medium
CN106682627B (en) Palm print data identification method and device
CN107046561B (en) Service processing method and device based on palm print data
CN111241951B (en) Iris image processing method and device
CN107229857A (en) The generation method and device of a kind of identifying code
CN106846351B (en) Image processing method and client

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