CN108959900A - A method of generating sliding identifying code picture - Google Patents
A method of generating sliding identifying code picture Download PDFInfo
- Publication number
- CN108959900A CN108959900A CN201810752052.2A CN201810752052A CN108959900A CN 108959900 A CN108959900 A CN 108959900A CN 201810752052 A CN201810752052 A CN 201810752052A CN 108959900 A CN108959900 A CN 108959900A
- Authority
- CN
- China
- Prior art keywords
- picture
- sliding
- width
- background
- profile diagram
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
- G06F21/36—User authentication by graphic or iconic representation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/12—Edge-based segmentation
Abstract
The invention discloses a kind of method for generating sliding identifying code picture, this method realizes two width pictures of pair of sliding picture validation code by forming contour mould and isolating sliding picture two parts from background picture according to contour mould;The two width pictures: a width is the sliding picture cut according to profile, and a width is the background picture for obscuring outline portion.Compared to the prior art a kind of method of generation sliding identifying code picture of the invention, can produce the identifying code sliding picture of complex outline, to increase the difficulty cracked;Realization of the invention is fairly simple, taking cost into account both economical;The shape that sliding picture can regularly be replaced, to enhance the difficulty that picture cracks;To ensure that the safety of WEB system.
Description
Technical field
The present invention relates to picture validation code field, specifically a kind of method for generating sliding identifying code picture.
Background technique
Crawler or other auto logging softwares log on to system to current WEB system in order to prevent, are generally used verifying
The mode of code is used to distinguish artificial login or software logs in;There are many kinds of identifying code modes, the sliding of existing interactive mode
Identifying code is largely that the mouse motion track of user is first recorded with js by method, then continuous to collect different positions
Track is set, encounters identical position later, is just replayed with track array.Wherein picture sliding type is more friendly to user
It is good, while can also increase the difficulty cracked to a certain extent;With the development of artificial intelligence technology, picture breaking techniques are also more next
Stronger, this just requires the picture validation code of generation higher and higher.
Summary of the invention
Technical assignment of the invention is to provide a kind of method for generating sliding identifying code picture.
Technical assignment of the invention is realized in the following manner:
A method of sliding identifying code picture being generated, this method is by forming contour mould and according to contour mould from Background
Piece isolates sliding picture two parts, realizes two width pictures of pair of sliding picture validation code;The two width pictures: a width is
The sliding picture cut according to profile, a width are the background pictures for obscuring outline portion.
The contour mould is that there are two types of the profile diagram that the color of significant difference is formed, the corresponding profiles for a secondary tool
Figure prepares a secondary background picture.
The contour mould passes through manual drawing or Program Generating.
The profile diagram and background picture are loaded into the memory picture that system forms RGB mode.
From a random position for the background picture as base coordinate, then by being compared with profile diagram,
Form the picture that a width is separated according to profile diagram part from background picture.
The pixel of the profile diagram is divided into two types: one is background parts, another kind is outline portion.
The rgb value of the two kinds of pixel is obviously distinguished.
Each pixel of the scanning profile diagram, extracts the pixel coordinate value of profile diagram, then with this coordinate value from
Sliding picture is extracted in background picture.
The picture that the slave background picture is separated carries out Fuzzy Processing.
Compared to the prior art a kind of method of generation sliding identifying code picture of the invention, can produce complex outline
Identifying code slides picture, to increase the difficulty cracked;Realization of the invention is fairly simple, taking cost into account compare through
Ji;The shape that sliding picture can regularly be replaced, to enhance the difficulty that picture cracks;To ensure that WEB system
Safety.
Specific embodiment
Embodiment 1:
A method of sliding identifying code picture being generated, this method is by forming contour mould and according to contour mould from Background
Piece isolates sliding picture two parts, realizes two width pictures of pair of sliding picture validation code;The two width pictures: a width is
The sliding picture cut according to profile, a width are the background pictures for obscuring outline portion.
The contour mould is the tool of a secondary manual drawing there are two types of the profile diagram that the color of significant difference is formed, it is corresponding described in
Profile diagram prepare a secondary background picture;The profile diagram and background picture are loaded into the memory that system forms RGB mode
Picture;From a random position for the background picture as base coordinate, then by being compared with profile diagram, formed
The picture that one width is separated according to profile diagram part from background picture;The pixel of the profile diagram is divided into two types: one
Kind is background parts, and another kind is outline portion;The rgb value of the two kinds of pixel is obviously distinguished;Described in scanning
Each pixel of profile diagram, extracts the pixel coordinate value of profile diagram, and cunning is then extracted from background picture with this coordinate value
Motion picture cartoon;The picture that the slave background picture is separated carries out Fuzzy Processing.
Embodiment 2:
A method of sliding identifying code picture being generated, this method is by forming contour mould and according to contour mould from Background
Piece isolates sliding picture two parts, realizes two width pictures of pair of sliding picture validation code;The contour mould is program
It generates, what is ultimately generated is that the profile diagram that is formed there are two types of the color of significant difference of a secondary tool (drawn with black by such as white background
One circle of stroke, definition black circle are profile);Have this profile diagram, then prepare a secondary background picture can be carried out as
Lower processing: profile diagram and background picture are loaded into the memory picture that system forms RGB mode;From random one of background picture
Position is as base coordinate, then by being compared with profile diagram, to form a width according to outline portion from background separation
Picture out;For example profile diagram is the picture of 100*100 pixel, background picture will select length and width pixel to be all larger than equal to 100
Picture, the pixel of profile diagram is divided into two types: one is background parts, another kind is outline portion;Two kinds of picture
The rgb value of element can be distinguished obviously;By each pixel of scanning profile figure, to extract the pixel coordinate value of profile, so
Sliding picture is extracted from background picture with this coordinate value afterwards;The part of background separation carries out Fuzzy Processing;Thus obtain
Two width pictures of pair of sliding picture validation code: a width is the sliding picture cut according to profile, a width is to obscure profile
Partial background picture.
The technical personnel in the technical field can readily realize the present invention with the above specific embodiments,.But it answers
Work as understanding, the present invention is not limited to above-mentioned several specific embodiments.On the basis of the disclosed embodiments, the technology
The technical staff in field can arbitrarily combine different technical features, to realize different technical solutions.
Claims (9)
1. a kind of method for generating sliding identifying code picture, which is characterized in that this method is by forming contour mould and according to wheel
Wide template isolates sliding picture two parts from background picture, realizes two width pictures of pair of sliding picture validation code;Described
Two width pictures: a width is the sliding picture cut according to profile, and a width is the background picture for obscuring outline portion.
2. the method according to claim 1, wherein the contour mould is that there are two types of significant differences for a secondary tool
The profile diagram that is formed of color, the profile diagram prepares a secondary background picture.
3. method according to claim 1 or 2, which is characterized in that the contour mould passes through manual drawing or journey
Sequence generates.
4. according to the method described in claim 2, it is characterized in that, the profile diagram and background picture are loaded into system shape
At the memory picture of RGB mode.
5. according to the method described in claim 4, it is characterized in that, from a random position for the background picture as base
Plinth coordinate forms the figure that a width is separated according to profile diagram part from background picture then by being compared with profile diagram
Piece.
6. according to the method described in claim 5, it is characterized in that, the pixel of the profile diagram is divided into two types: a kind of
It is background parts, another kind is outline portion.
7. according to the method described in claim 6, it is characterized in that, the rgb value of the two kinds of pixel is obviously distinguished.
8. according to the method described in claim 6, it is characterized in that, each pixel of profile diagram described in scanning, extracts wheel
Then the pixel coordinate value of wide figure extracts sliding picture with this coordinate value from background picture.
9. according to the method described in claim 5, it is characterized in that, the picture separated from background picture carries out mould
Paste processing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810752052.2A CN108959900A (en) | 2018-07-10 | 2018-07-10 | A method of generating sliding identifying code picture |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810752052.2A CN108959900A (en) | 2018-07-10 | 2018-07-10 | A method of generating sliding identifying code picture |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108959900A true CN108959900A (en) | 2018-12-07 |
Family
ID=64482617
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810752052.2A Pending CN108959900A (en) | 2018-07-10 | 2018-07-10 | A method of generating sliding identifying code picture |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108959900A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110717955A (en) * | 2019-09-29 | 2020-01-21 | 武汉极意网络科技有限公司 | Method, device and equipment for updating gallery and storage medium |
CN111563941A (en) * | 2020-05-08 | 2020-08-21 | 拉扎斯网络科技(上海)有限公司 | Picture verification code generation method, verification method, device and related equipment |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102890761A (en) * | 2011-08-24 | 2013-01-23 | 北京文海思创科技有限公司 | Method for verifying through graphical verification code |
CN103139204A (en) * | 2012-12-19 | 2013-06-05 | 姚爱军 | Network identifying code method and system |
CN104462930A (en) * | 2014-11-18 | 2015-03-25 | 百度在线网络技术(北京)有限公司 | Verification code generating method and device |
US9015674B2 (en) * | 2012-09-28 | 2015-04-21 | Microsoft Technology Licensing, Llc | Identifying execution paths that satisfy reachability queries |
CN105323065A (en) * | 2014-07-21 | 2016-02-10 | 腾讯科技(深圳)有限公司 | Safety verification method and device |
CN107454049A (en) * | 2016-06-01 | 2017-12-08 | 腾讯科技(深圳)有限公司 | Safe verification method and relevant apparatus |
CN107483208A (en) * | 2016-06-08 | 2017-12-15 | 中国移动通信有限公司研究院 | Generation, verification method and the device of identifying code picture |
CN107491686A (en) * | 2017-07-06 | 2017-12-19 | 微梦创科网络科技(中国)有限公司 | A kind of encryption and decryption method and device of sliding trace background picture |
CN108011868A (en) * | 2017-11-09 | 2018-05-08 | 武汉极意网络科技有限公司 | One kind slides verification method and mobile terminal |
-
2018
- 2018-07-10 CN CN201810752052.2A patent/CN108959900A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102890761A (en) * | 2011-08-24 | 2013-01-23 | 北京文海思创科技有限公司 | Method for verifying through graphical verification code |
US9015674B2 (en) * | 2012-09-28 | 2015-04-21 | Microsoft Technology Licensing, Llc | Identifying execution paths that satisfy reachability queries |
CN103139204A (en) * | 2012-12-19 | 2013-06-05 | 姚爱军 | Network identifying code method and system |
CN105323065A (en) * | 2014-07-21 | 2016-02-10 | 腾讯科技(深圳)有限公司 | Safety verification method and device |
CN104462930A (en) * | 2014-11-18 | 2015-03-25 | 百度在线网络技术(北京)有限公司 | Verification code generating method and device |
CN107454049A (en) * | 2016-06-01 | 2017-12-08 | 腾讯科技(深圳)有限公司 | Safe verification method and relevant apparatus |
CN107483208A (en) * | 2016-06-08 | 2017-12-15 | 中国移动通信有限公司研究院 | Generation, verification method and the device of identifying code picture |
CN107491686A (en) * | 2017-07-06 | 2017-12-19 | 微梦创科网络科技(中国)有限公司 | A kind of encryption and decryption method and device of sliding trace background picture |
CN108011868A (en) * | 2017-11-09 | 2018-05-08 | 武汉极意网络科技有限公司 | One kind slides verification method and mobile terminal |
Non-Patent Citations (3)
Title |
---|
ECHX: "一步步实现滑动验证码(拼图验证码),Java图片处理关键代码", 《HTTPS://WWW.CNBLOGS.COM/YAOHONV/P/SWIPECAPTCHA.HTML》 * |
GORKHNATH BHURE 等: "A Survey on Properties and Different Features of Digital Image WaterMarking", 《INTERNATIONAL JOURNAL OF SCIENTIFIC RESEARCH & ENGINEERING TRENDS》 * |
张守强: "QR码的数字水印算法和水印图片验证码的研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110717955A (en) * | 2019-09-29 | 2020-01-21 | 武汉极意网络科技有限公司 | Method, device and equipment for updating gallery and storage medium |
CN110717955B (en) * | 2019-09-29 | 2024-04-02 | 武汉极意网络科技有限公司 | Gallery updating method, device, equipment and storage medium |
CN111563941A (en) * | 2020-05-08 | 2020-08-21 | 拉扎斯网络科技(上海)有限公司 | Picture verification code generation method, verification method, device and related equipment |
CN111563941B (en) * | 2020-05-08 | 2023-12-22 | 拉扎斯网络科技(上海)有限公司 | Picture verification code generation method, verification method, device and related equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101375607B (en) | Inter-mode region-of-interest video object segmentation | |
CN101375312B (en) | Multi-mode region-of-interest video object segmentation | |
CN101853528B (en) | Hand-held three-dimensional surface information extraction method and extractor thereof | |
CN101673412B (en) | Light template matching method of structured light three-dimensional vision system | |
EP1832867A1 (en) | Defect inspection apparatus and defect inspection method | |
CN102750555B (en) | Expression identification device applied to instant messaging tool | |
CN100367757C (en) | Image recognition method and image recognition apparatus | |
US20020048395A1 (en) | Image conversion and encoding techniques | |
CN101375608A (en) | Intra-mode region-of-interest video object segmentation | |
CN108959900A (en) | A method of generating sliding identifying code picture | |
CN104217443B (en) | Electric transmission and transformation equipment infrared fault image segmentation method based on HSV (Hue, Saturation, Value) space | |
CN104217425A (en) | Superpixel-based electric transmission and transformation equipment infrared fault image segmentation method | |
CN106355592B (en) | Educational toy set, circuit element thereof and wire identification method | |
CN107977645B (en) | Method and device for generating video news poster graph | |
CN109752855A (en) | A kind of method of hot spot emitter and detection geometry hot spot | |
CN103247049A (en) | SMT (Surface Mounting Technology) welding spot image segmentation method | |
CN106251348A (en) | A kind of self adaptation multi thread towards depth camera merges background subtraction method | |
CN104103069A (en) | Image processing apparatus, image processing method and program | |
CN105321166A (en) | Annular weld joint edge extraction method based on GAP predictor and self-adaptive genetic algorithm | |
CN103903284A (en) | Multi-circle detecting method based on least square method | |
CN105451094A (en) | Subtitle color adjusting method and device | |
KR101125061B1 (en) | A Method For Transforming 2D Video To 3D Video By Using LDI Method | |
CN109741315A (en) | A kind of non-reference picture assessment method for encoding quality based on deeply study | |
WO2018151043A1 (en) | Image processing method and computer program | |
CN107945190A (en) | Bianry image high-speed communication region computational methods |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181207 |