Generating a 3D CAPTCHA [pic]

后端 未结 4 1396
误落风尘
误落风尘 2020-12-28 09:05

I would like to write a Python script that would generate a 3D CAPTCHA like this one: \"teabag

Which

4条回答
  •  我在风中等你
    2020-12-28 09:54

    I'm not sure I would bother with a full 3D library for what you have above. Just generate a matrix of 3D points, generate the text with something like PIL, scan over it to find which points on the grid are raised, pick a random camera angle and then project the points into a 2D image and draw them with PIL to the final image.

    That being said... you may be able to use VPython if you don't want to do the 3D math yourself.

提交回复
热议问题