CN109117844B - Password determination method and device - Google Patents

Password determination method and device Download PDF

Info

Publication number
CN109117844B
CN109117844B CN201810897011.2A CN201810897011A CN109117844B CN 109117844 B CN109117844 B CN 109117844B CN 201810897011 A CN201810897011 A CN 201810897011A CN 109117844 B CN109117844 B CN 109117844B
Authority
CN
China
Prior art keywords
grid
password
image
sequence
processing
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
CN201810897011.2A
Other languages
Chinese (zh)
Other versions
CN109117844A (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.)
Minzu University of China
Original Assignee
Minzu University of China
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 Minzu University of China filed Critical Minzu University of China
Priority to CN201810897011.2A priority Critical patent/CN109117844B/en
Publication of CN109117844A publication Critical patent/CN109117844A/en
Application granted granted Critical
Publication of CN109117844B publication Critical patent/CN109117844B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/14Image acquisition
    • G06V30/148Segmentation of character regions
    • G06V30/153Segmentation of character regions using recognition of characters or words
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/26Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
    • G06V10/267Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion by performing operations on regions, e.g. growing, shrinking or watersheds
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition

Abstract

The application provides a password determination method, which comprises the following steps: acquiring a password image and a grid image; processing the password image to obtain a password sequence in the password image; processing the grid images to obtain coordinate information of each grid; according to the coordinate information of each grid, carrying out identification processing on the grid image to obtain the content information of each grid; and if the obtained current password sequence is not empty and is the same as the previous password sequence, determining the palace lattice matched with the current password in the current password sequence according to the content information of each palace lattice until the palace lattice matched with each password in the current password sequence is determined.

Description

Password determination method and device
Technical Field
The present application relates to the field of image processing technologies, and in particular, to a password determination method and apparatus.
Background
Image processing (image processing) techniques that analyze an image with a computer to achieve a desired result. Also known as image processing. Image processing generally refers to digital image processing. Digital images are large two-dimensional arrays of elements called pixels and values called gray-scale values, which are captured by industrial cameras, video cameras, scanners, etc. With the rapid development of the internet of things, image interaction is also becoming more common, and the image interaction is different from ordinary data transmission, and the image interaction needs faster processing speed.
At present, when identifying an object in an image in a game, template matching is generally used for image identification in the prior art. However, the method of performing recognition using template matching is slow and has low accuracy. Often the correct results are not obtained.
Disclosure of Invention
In view of the above, an object of the present application is to provide a method and an apparatus for determining a password, which are used to solve the problem of low accuracy in identifying content in an image in the prior art.
In a first aspect, an embodiment of the present application provides a password determination method, where the method includes:
acquiring a password image and a grid image;
processing the password image to obtain a password sequence in the password image;
processing the grid images to obtain coordinate information of each grid;
according to the coordinate information of each grid, carrying out identification processing on the grid image to obtain the content information of each grid;
and if the obtained current password sequence is not empty and is the same as the previous password sequence, determining the palace lattice matched with the current password in the current password sequence according to the content information of each palace lattice until the palace lattice matched with each password in the current password sequence is determined.
Optionally, the processing the password image to obtain a password sequence in the password image includes:
carrying out format conversion on the password image;
adjusting the color tone of the password image after format conversion;
carrying out segmentation processing on the password image with the adjusted color tone;
and extracting the password from the password image after the segmentation processing to obtain a password sequence.
Optionally, the processing the grid image to obtain coordinate information of each grid includes:
carrying out brightness processing on the grid image;
carrying out corrosion treatment on the grid image after brightness treatment;
and extracting coordinate information corresponding to each grid from the grid image after the corrosion treatment.
Optionally, the identifying, according to the coordinate information of each grid, the grid image to obtain the content information of each grid includes:
extracting an image corresponding to each grid from the grid image according to the coordinate information of each grid;
and inputting the image corresponding to each grid into a preset image recognition model to obtain the content information of each grid.
Optionally, the method further comprises:
and if the obtained current password sequence is not empty and is different from the previous password sequence, executing the step of processing the grid image to obtain the coordinate information of each grid.
Optionally, the method further comprises:
if the obtained current password sequence is empty, extracting an image corresponding to each grid from the grid image according to the coordinate information of each grid;
aiming at the image corresponding to each lattice, extracting the feature set of the image corresponding to the lattice, calculating the number of similar features in the feature set of the lattice and the feature sets of other lattices, and counting the sum of the number of the similar features of the lattice and other lattices;
and determining the grid with the minimum sum value as the password.
In a second aspect, an embodiment of the present application provides a password determination apparatus, including:
the acquisition module is used for acquiring a password image and a grid image;
the first processing module is used for processing the password image to obtain a password sequence in the password image;
the second processing module is used for processing the grid images to obtain coordinate information of each grid;
the third processing module is used for identifying the grid images according to the coordinate information of each grid to obtain the content information of each grid;
and the fourth processing module is used for determining the lattice matched with the current password in the current password sequence according to the content information of each lattice if the obtained current password sequence is not empty and is the same as the previous password sequence until the lattice matched with each password in the current password sequence is determined.
Optionally, the first processing module is specifically configured to:
carrying out format conversion on the password image;
carrying out segmentation processing on the password image after format conversion;
and extracting the password from the password image after the segmentation processing to obtain a password sequence.
In a third aspect, an embodiment of the present application provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor implements the steps of the above method when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, wherein the computer program is executed by a processor to perform the steps of the above method.
According to the password determining method provided by the embodiment of the application, after the password sequence and the content information of the lattices are identified, whether the password sequence is empty or not is judged, if the obtained current password sequence is not empty and is the same as the previous password sequence, the lattices matched with the current passwords in the current password sequence are determined according to the content information of each lattice until the lattices matched with the passwords in the current password sequence are determined. Therefore, after the password image and the grid image are obtained, the password image and the grid image are identified, after the coordinate information of the grid is obtained, the grid image is processed, the content information of the grid is obtained, the identification speed of the password sequence and the content information is improved, and the identification precision is also improved.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic flowchart of a password determination method according to an embodiment of the present disclosure;
FIG. 2 is a diagram of a cipher sequence provided in an embodiment of the present application;
fig. 3 is a schematic diagram of a grid image provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of a password determination apparatus according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a computer device 500 according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
An embodiment of the present application provides a password determination method, as shown in fig. 1, the method includes:
s101, acquiring a password image and a grid image;
here, the password image and the grid image may be in a JPG format, a BMP format, or the like, and the password image and the grid image may be acquired by a shooting device, which may be, but is not limited to, a camera, a computing device having an image capturing function, a mobile terminal having an image capturing function, or the like; the password image and the grid image can be in the same image or different images, the password image has a password sequence, the password sequence can be a number sequence, an alphabet sequence and a special character sequence, preferably a number sequence, each grid in the grid image has numbers, letters, special characters of the image and the like, and preferably each grid has numbers.
S102, processing the password image to obtain a password sequence in the password image;
when the password image is processed to obtain the password sequence in the password image, the method comprises the following steps:
carrying out format conversion on the password image;
adjusting the color tone of the password image after format conversion;
carrying out segmentation processing on the password image with the adjusted color tone;
and extracting the password from the password image after the segmentation processing to obtain a password sequence.
Here, the format conversion technique, the division processing technique, and the password extraction technique have been described in detail in the related art, and will not be described more extensively herein.
In a specific implementation, a password image of the BGR mode is converted into an image of the HSV mode, wherein each pixel point in the BGR mode image corresponds to an RGB color, and the image of the HSV mode includes hue, brightness, hue, and the like. The password image for adjusting the color bars is generally a binary image, the binary image is generally a black-and-white image, the pixel value of the pixel point of the white partial image is generally 1, the pixel value of the pixel point of the black partial image is generally 0, and the password image after adjusting the color bars is segmented, wherein the segmentation steps are as follows.
Aiming at each row of pixel points in the password image after the color tone is adjusted, judging whether the pixel points with the pixel values being set values (such as 1) exist in the row of pixel points, and if the pixel points with the color phase values being set values do not exist in the row of pixel points, judging that the row of pixel points do not belong to the password part; if a pixel point with a hue value of a set value exists in the next adjacent row of pixel points, the next adjacent row of pixel points of the row of pixel points belongs to the password part, and the row of pixel points is used as a first boundary line; if the row of pixel points has pixel points with the hue values being the set values, the row of pixel points belongs to the password part, if the adjacent next row of pixel points of the row of pixel points does not have pixel points with the hue values being the set values, the adjacent next row of pixel points of the row of pixel points does not belong to the password part, the row of pixel points is used as a second boundary line, and the part between the adjacent first boundary line and the second boundary line belongs to the password part. The set value is generally preset, and because the brightness of each grid part in the password image after the color tone is adjusted is high, other parts are black, and due to factors, the hue value of the grid part is set to be 1, and the hue values of the other parts are 0.
Aiming at each row of pixel points in the password image after the color tone is adjusted, judging whether pixel points with the hue value as a set value exist in the row of pixel points, and if the pixel points do not exist the pixel points with the hue value as the set value, judging that the pixel points in the row do not belong to the password part; if the adjacent next line of pixel points of the line of pixel points has pixel points with the hue values being set values, the adjacent next line of pixel points of the line of pixel points belong to the password part, and the line of pixel points is taken as a third demarcation line; if the line of pixel points has pixel points with the hue values being the set values, the line of pixel points belongs to the password part, if the adjacent next line of pixel points of the line of pixel points does not have pixel points with the hue values being the set values, the adjacent next line of pixel points of the line of pixel points does not belong to the password part, the line of pixel points is taken as a fourth boundary line, the part between the adjacent third boundary line and the fourth boundary line belongs to the password part, and the password position can be defined by a partition frame formed by the first boundary line, the second boundary line, the third boundary line and the fourth boundary line. The set value is generally preset, and is generally 1.
In practical applications, the segmented password image may refer to fig. 2, and the password may be extracted from each segmented frame by a preset machine learning method such as a support vector machine model, which is described in detail in the prior art and will not be described too much here.
S103, processing the grid image to obtain coordinate information of each grid;
the method for processing the grid image to obtain the coordinate information of each grid comprises the following steps:
carrying out brightness processing on the grid image;
carrying out corrosion treatment on the grid image after brightness treatment;
and extracting coordinate information corresponding to each grid from the grid image after the corrosion treatment.
In a specific implementation, the brightness of the grid image is adjusted, and after the brightness is adjusted, the grid image after the brightness is adjusted is subjected to erosion processing, so that the grid region is white, the part of the grid region is black, and each grid region is generally a quadrangle, such as a rectangle, a square and the like, and is preferably a rectangle.
Since there may be other rectangles in the obtained grid image except for the nine grids, before extracting the coordinate information of the white area, the area of each rectangular area in the grid image may be detected, and only the coordinate information of the rectangular area whose area is greater than the set area threshold is extracted. The extracted coordinate information is generally two-dimensional coordinates, each rectangular region generally corresponds to four pieces of coordinate information, and the four pieces of coordinate information are coordinate information of four corners of a rectangle respectively.
When rectangular local areas with similar grid areas exist in the grid image, the coordinate information of the rectangular area is also extracted, but the distance between the rectangular area with the similar area and the grid is far away, so after the coordinate information is obtained, the distance between the rectangular area and the adjacent rectangular area is calculated according to the coordinate information corresponding to each rectangular area, if the distances between the rectangular area and the adjacent rectangular area are within the set distance range, the rectangular area is determined to be the grid, if the distance between the rectangular area and the adjacent rectangular area exceeds the set distance range, the rectangular area is determined not to be the grid, the coordinate information corresponding to the rectangular area is deleted, and finally, the coordinate information corresponding to nine grids is obtained. Therefore, the coordinate information of each grid can be obtained as much as possible, the accuracy of obtaining the coordinate information of each grid is improved, and the influence of other similar rectangles on the extraction of the coordinate information of the grids is reduced.
S104, identifying the grid image according to the coordinate information of each grid to obtain the content information of each grid;
according to the coordinate information of each grid, the grid image is identified to obtain the content information of each grid, and the method comprises the following steps:
extracting an image corresponding to each grid from the grid image according to the coordinate information of each grid;
and inputting the image corresponding to each grid into a preset image recognition model to obtain the content information of each grid.
Here, the image recognition model is generally a support vector machine model trained in advance, which is not limited in the present application; the content information can be numbers, special symbols, letters and the like in the grid.
In a specific implementation, after obtaining the coordinate information of the nine grids, an image corresponding to each grid may be obtained from the grid image, and the image corresponding to each grid is input into the support vector machine model that has been trained in advance, so as to obtain the content information, such as a number, of each grid.
And S105, if the obtained current password sequence is not empty and is the same as the previous password sequence, determining the palace lattice matched with the current password in the current password sequence according to the content information of each palace lattice until the palace lattice matched with each password in the current password sequence is determined.
Here, a lattice that matches the current password in the current password sequence is determined, that is, it is determined whether the current password in the current password sequence is consistent with the content of the lattice.
In practical application, two situations may exist, namely, the password sequence is a number, and the content of the corresponding nine-square grid is also a number, and the password sequence is empty, and the content of one square grid in the nine-square grid is different from the content of other square grids.
In the first situation, after the password sequence is acquired for the first time, whether the password sequence is empty is judged, if the password sequence is not empty, the lattice matched with the first password in the password sequence is determined according to the content information of each lattice, the determined lattice is aimed and hit, if the hit lattice is the same as the first password of the password sequence, the next acquired password is still the last password sequence, and if the hit lattice is different from the first password of the password sequence, the next acquired password is updated.
After the password sequence is acquired for the second time, whether the currently acquired password sequence is the same as the last password sequence or not is judged, if yes, the lattice matched with the second-bit password in the password sequence is determined according to the content information of each lattice, and if the lattice matched with the current password (namely the second password) in the current password sequence is determined, the lattice is aimed and hit until the lattice matched with each password in the current password sequence is determined. The determination method of the password after the second password is the same as that of the second password, and the description is not repeated.
And judging whether the current obtained password sequence is the same as the last password sequence or not, if the obtained current password sequence is not empty and is different from the previous password sequence, indicating that the last determined lattice is different from the password in the password sequence, executing the step of processing the lattice image to obtain the coordinate information of each lattice.
In practical application, for the first case, when the acquired password is changed by only one bit compared with the last time, the password image is taken again and recognized as a recognition error. When the obtained password and the password obtained last time are changed by a plurality of bits, which may be caused by the last striking error or the device receiving a signal but not reacting within a specified time, the grid is struck again according to the sequence of the newly obtained password no matter whether the number in the grid is changed or not. When the obtained password sequence is unchanged compared with the password sequence obtained last time and the numbers in the grids are not changed, the recognition speed is high, the device does not act after receiving the last recognition result, so that the image recorded by the camera is not changed, or the device reacts due to shooting deviation or other conditions and the grids are not affected to change. Since it is impossible to determine whether the device has reacted, the image continues to be read and recognized, and no data is transmitted. When repeated numbers appear in the grids, the recognition may be wrong due to the fact that the handwritten numbers are too similar, or the images are captured again for recognition at the moment when the handwritten numbers are not clear during grid switching. When the password is not changed and the numbers in the grids are changed, the previous striking is considered to be successful, the panel is switched to the next password, the position of the next password in the grids is searched through the recorded striking times, and the target grid serial number is output to the equipment.
For the second situation, if the obtained current password sequence is empty, extracting an image corresponding to each grid from the grid image according to the coordinate information of each grid; aiming at the image corresponding to each lattice, extracting the feature set of the image corresponding to the lattice, calculating the number of similar features in the feature set of the lattice and the feature sets of other lattices, and calculating the sum of the number of the similar features of the lattice and other lattices; and determining the grid with the minimum sum value as the password.
In specific implementation, after the image of each grid is extracted, the image of each grid is input into an image recognition model which is trained in advance aiming at the domestic image corresponding to each grid, the feature set of the image corresponding to the grid is obtained, the feature set of the grid and the feature sets of other grids are compared, the number of similar features of the grid and other grids is respectively obtained, and the sum of the number of the similar features of the grid and other grids is calculated. And determining the grid with the minimum sum value as a different grid.
For example, referring to fig. 3, the image content in the grid 2 is a human image, the image content of other grids is an automobile image, then the calculated number of similar features of the grid 2 and other grids will be less, and the number of similar features of other grids will be more, and finally, the sum of the calculated number of similar features of the grid 2 and other grids will be very low, so that it is determined that the grid 2 is a different grid, that is, a password grid.
An embodiment of the present application provides a password determination apparatus, as shown in fig. 4, the apparatus includes:
an obtaining module 41, configured to obtain a password image and a grid image;
the first processing module 42 is configured to process the password image to obtain a password sequence in the password image;
the second processing module 43 is configured to process the grid image to obtain coordinate information of each grid;
the third processing module 44 is configured to perform recognition processing on the grid image according to the coordinate information of each grid, so as to obtain content information of each grid;
and a fourth processing module 45, configured to determine, according to the content information of each lattice, a lattice that matches the current password in the current password sequence until the lattice that matches each password in the current password sequence is determined, if the obtained current password sequence is not empty and is the same as the previous password sequence.
Optionally, the first processing module 42 is specifically configured to:
carrying out format conversion on the password image;
adjusting the color tone of the password image after format conversion;
carrying out segmentation processing on the password image with the adjusted color tone;
and extracting the password from the password image after the segmentation processing to obtain a password sequence.
Optionally, the second processing module 43 is specifically configured to:
carrying out brightness processing on the grid image;
carrying out corrosion treatment on the grid image after brightness treatment;
and extracting coordinate information corresponding to each grid from the grid image after the corrosion treatment.
Optionally, the third processing module 44 is specifically configured to:
extracting an image corresponding to each grid from the grid image according to the coordinate information of each grid;
and inputting the image corresponding to each grid into a preset image recognition model to obtain the content information of each grid.
Optionally, the fourth processing module 45 is further configured to:
and if the obtained current password sequence is not empty and is different from the previous password sequence, executing the step of processing the grid image to obtain the coordinate information of each grid.
Optionally, the fourth processing module 45 is further configured to:
if the obtained current password sequence is empty, extracting an image corresponding to each grid from the grid image according to the coordinate information of each grid;
aiming at the image corresponding to each lattice, extracting the feature set of the image corresponding to the lattice, calculating the number of similar features in the feature set of the lattice and the feature sets of other lattices, and counting the sum of the number of the similar features of the lattice and other lattices;
and determining the grid with the minimum sum value as the password.
Corresponding to the password determination method in fig. 1, an embodiment of the present application further provides a computer device 500, as shown in fig. 5, the device includes a memory 501, a processor 502, and a computer program stored on the memory 501 and executable on the processor 502, wherein the processor 502 implements the password determination method when executing the computer program.
Specifically, the memory 501 and the processor 502 may be general memories and general processors, which are not specifically limited herein, and when the processor 502 runs a computer program stored in the memory 501, the above-described password determination method may be executed, so as to solve the problem of low accuracy in identifying a password in an image in the prior art. Therefore, after the password image and the grid image are obtained, the password image and the grid image are identified, after the coordinate information of the grid is obtained, the grid image is processed, the content information of the grid is obtained, the identification speed of the password sequence and the content information is improved, and the identification precision is also improved.
Corresponding to the password determination method in fig. 1, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to perform the steps of the password determination method.
Specifically, the storage medium can be a general storage medium, such as a mobile disk, a hard disk, and the like, and when a computer program on the storage medium is executed, the above password determination method can be executed, so as to solve the problem of low password accuracy in image recognition in the prior art. Therefore, after the password image and the grid image are obtained, the password image and the grid image are identified, after the coordinate information of the grid is obtained, the grid image is processed, the content information of the grid is obtained, the identification speed of the password sequence and the content information is improved, and the identification precision is also improved.
In the embodiments provided in the present application, it should be understood that the disclosed system and method may be implemented in other ways. The above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and there may be other divisions in actual implementation, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of systems or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus once an item is defined in one figure, it need not be further defined and explained in subsequent figures, and moreover, the terms "first", "second", "third", etc. are used merely to distinguish one description from another and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the present disclosure, which should be construed in light of the above teachings. Are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (7)

1. A method for password determination, the method comprising:
acquiring a password image and a grid image;
processing the password image to obtain a password sequence in the password image;
processing the grid images to obtain coordinate information of each grid;
according to the coordinate information of each grid, carrying out identification processing on the grid image to obtain the content information of each grid;
if the obtained current password sequence is not empty and is the same as the previous password sequence, determining the palace lattice matched with the current password in the current password sequence according to the content information of each palace lattice until the palace lattice matched with each password in the current password sequence is determined;
the processing the password image to obtain the password sequence in the password image includes: carrying out format conversion on the password image; adjusting the color tone of the password image after format conversion; carrying out segmentation processing on the password image with the adjusted color tone; extracting a password from the segmented password image to obtain a password sequence;
the processing the grid image to obtain the coordinate information of each grid comprises the following steps: carrying out brightness processing on the grid image; carrying out corrosion treatment on the grid image after brightness treatment; and extracting coordinate information corresponding to each grid from the grid image after the corrosion treatment.
2. The method of claim 1, wherein the identifying the image of the grid according to the coordinate information of each grid to obtain the content information of each grid comprises:
extracting an image corresponding to each grid from the grid image according to the coordinate information of each grid;
and inputting the image corresponding to each grid into a preset image recognition model to obtain the content information of each grid.
3. The method of claim 1, further comprising:
and if the obtained current password sequence is not empty and is different from the previous password sequence, executing the step of processing the grid image to obtain the coordinate information of each grid.
4. The method of claim 1, further comprising:
if the obtained current password sequence is empty, extracting an image corresponding to each grid from the grid image according to the coordinate information of each grid;
aiming at the image corresponding to each lattice, extracting the feature set of the image corresponding to the lattice, calculating the number of similar features in the feature set of the lattice and the feature sets of other lattices, and counting the sum of the number of the similar features of the lattice and other lattices;
and determining the grid with the minimum sum value as the password.
5. A password determination apparatus, characterized in that the apparatus comprises:
the acquisition module is used for acquiring a password image and a grid image;
the first processing module is used for processing the password image to obtain a password sequence in the password image;
the second processing module is used for processing the grid images to obtain coordinate information of each grid;
the third processing module is used for identifying the grid images according to the coordinate information of each grid to obtain the content information of each grid;
the fourth processing module is used for determining the lattices matched with the current passwords in the current password sequence according to the content information of each lattice if the obtained current password sequence is not empty and is the same as the previous password sequence until the lattices matched with the passwords in the current password sequence are determined;
the first processing module is specifically configured to: carrying out format conversion on the password image; carrying out segmentation processing on the password image after format conversion; extracting a password from the segmented password image to obtain a password sequence;
the second processing module is specifically configured to: carrying out brightness processing on the grid image; carrying out corrosion treatment on the grid image after brightness treatment; and extracting coordinate information corresponding to each grid from the grid image after the corrosion treatment.
6. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method of any of the preceding claims 1-4 when executing the computer program.
7. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, is adapted to carry out the steps of the method of any one of the preceding claims 1 to 4.
CN201810897011.2A 2018-08-08 2018-08-08 Password determination method and device Active CN109117844B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810897011.2A CN109117844B (en) 2018-08-08 2018-08-08 Password determination method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810897011.2A CN109117844B (en) 2018-08-08 2018-08-08 Password determination method and device

Publications (2)

Publication Number Publication Date
CN109117844A CN109117844A (en) 2019-01-01
CN109117844B true CN109117844B (en) 2020-08-18

Family

ID=64853099

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810897011.2A Active CN109117844B (en) 2018-08-08 2018-08-08 Password determination method and device

Country Status (1)

Country Link
CN (1) CN109117844B (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8384514B2 (en) * 2009-08-07 2013-02-26 At&T Intellectual Property I, L.P. Enhanced biometric authentication
CN103646199B (en) * 2013-12-26 2016-06-15 中国电子科技集团公司第三研究所 A kind of based on the auth method of nine grids password and facial image
CN108133156A (en) * 2018-01-12 2018-06-08 于君 A kind of cipher-code input method and equipment

Also Published As

Publication number Publication date
CN109117844A (en) 2019-01-01

Similar Documents

Publication Publication Date Title
CN110046529B (en) Two-dimensional code identification method, device and equipment
JP5298831B2 (en) Image processing apparatus and program
KR101747216B1 (en) Apparatus and method for extracting target, and the recording media storing the program for performing the said method
CN110647882A (en) Image correction method, device, equipment and storage medium
US8538191B2 (en) Image correction apparatus and method for eliminating lighting component
CN110807110B (en) Image searching method and device combining local and global features and electronic equipment
CN110210480B (en) Character recognition method and device, electronic equipment and computer readable storage medium
US11900664B2 (en) Reading system, reading device, reading method, and storage medium
CN111461070B (en) Text recognition method, device, electronic equipment and storage medium
CN111598076B (en) Method and device for detecting and processing date in label image
CN111259680B (en) Two-dimensional code image binarization processing method and device
CN110210467B (en) Formula positioning method of text image, image processing device and storage medium
CN110533020B (en) Character information identification method and device and storage medium
CN106886796B (en) Icon position identification method and device and terminal equipment
CN115410191B (en) Text image recognition method, device, equipment and storage medium
CN109117844B (en) Password determination method and device
CN111862239A (en) Area-array camera image overlapping area calibration method, device, equipment and storage medium
CN116976372A (en) Picture identification method, device, equipment and medium based on square reference code
CN113840135A (en) Color cast detection method, device, equipment and storage medium
CN111670458B (en) Reading system
CN111476800A (en) Character region detection method and device based on morphological operation
CN112183563A (en) Image recognition model generation method, storage medium and application server
JP2019021085A (en) Image processing program, image processing method, and image processing device
CN110674863B (en) Hamming code identification method and device and electronic equipment
CN112036287A (en) Blind watermark identification method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant