Python recognition puzzle verification code

An EYIDUN verification code that needs to be identified is as follows:

insert image description here
The recognition process is also very simple, just use the ready-made jigsaw library. This article records the experience of using it (in fact, I don’t have much experience, it’s easy to use out of the box):

First, download the gaps puzzle library

Install requirements:

$ pip install -r requirements.txt
$ sudo apt-get install python-tk

Install project in editable mode:

$ pip install -e .

Create a picture with a puzzle size of 60:

create_puzzle images/starry.jpg --size=60 --de

Guess you like

Origin blog.csdn.net/qq_36551453/article/details/131499029