How To Create An Image Captcha Generator In Python Tutorial

Поділитися
Вставка
  • Опубліковано 17 гру 2024

КОМЕНТАРІ • 18

  • @ConstantlyDamaged
    @ConstantlyDamaged Рік тому +6

    Uh, did UA-cam eat my comment?
    Oh well. What I was saying is that only providing visual captchas is a bad idea. I use ffmpeg and a TTS to create an mp4 file that has the captcha in it and a voice reading the word aloud. Been doing a great job in my Discord server to keep the bots out.
    Blocking access to visually impaired users may even be illegal, depending on your area.

    • @forgotabhi
      @forgotabhi Рік тому

      very cool! can you tell me more about it?

    • @ConstantlyDamaged
      @ConstantlyDamaged Рік тому

      @@forgotabhi Not much to say, really. I used gtts and a huge list of animal names (I limited the list to animals that it can pronounce, and saved them all to mp3 files.
      Then I use a captcha program to generate images for them, ffmpeg to combine the two into a ~3 second mp4, then I upload that to Discord.
      The user is asked to type the name of the animal and, if they get it wrong three times or take too long, it resets and gives them a new word.

    • @Suto_Ko
      @Suto_Ko Рік тому

      yeah, relying solely on visual captchas can be exclusionary. Your approach of using TTS to create an mp4 file with a spoken captcha is a creative solution that helps include visually impaired users. It's important to ensure accessibility for all users. Well done.

    • @WhiteZHood
      @WhiteZHood 3 місяці тому

      I agree that usual visual captcha can block access to visually impaired users, but there are also many users, who can't listen to audio. I'd suggest that image should be paired with audio telling what's on image, thus providing accessibility to more various people.

  • @ButchCassidyAndSundanceKid
    @ButchCassidyAndSundanceKid Рік тому +3

    All the peripheral python 3rd party packages never cease to amaze me.

  • @krzysiekkrzysiek9059
    @krzysiekkrzysiek9059 Рік тому

    Great tutorial 👌

  • @Md.AlmasAli
    @Md.AlmasAli Рік тому

    Nice one!

  • @radoeka
    @radoeka Рік тому +1

    How about the other way around. Decide the generated captcha. Ihis may require AI to warn the decode the various letters...

    • @Devappl187
      @Devappl187 11 місяців тому +2

      im guessing you can generate thousands or tens of thousands of images and their original prompts, then give that to an image recognition AI and get some kinda good result

  • @henryantwi8222
    @henryantwi8222 Рік тому

    Thank you very much Federico

  • @omaral-halabiah2851
    @omaral-halabiah2851 Рік тому

    Thanks for your efforts:
    I obtain this Exception : "cannot open resource" when execute write function, Can you help me to solve it?

    • @Heavy_Lvy
      @Heavy_Lvy Рік тому +1

      I got the same error, i fixed it by not using the font argument

  • @devabdul
    @devabdul Рік тому

    How i can verify Captcha?
    For example user enter respective text, that text match with Captcha or not?

    • @ConstantlyDamaged
      @ConstantlyDamaged Рік тому +1

      Typically, you'd store something to identify the user's session (usually a cookie value you've sent them) along with the word required into a local database (SQLite, for example, or as I prefer PostgreSQL), then check them afterwards.

    • @Suto_Ko
      @Suto_Ko Рік тому

      You can verify a captcha by comparing the user-entered text with the generated captcha text. If they match, the captcha is verified. If they don't match, the captcha is not verified. It's a simple text comparison process.

  • @Pradeep_prasad
    @Pradeep_prasad 7 місяців тому

    So how to match captcha make video