# Extration texte dans un pdf ou image python

**URL:** <https://www.growthhacking.fr/t/extration-texte-dans-un-pdf-ou-image-python/43851>\
**Category:** Acquisition\
**Created:** [Janvier 5, 2026, 11:13 UTC](https://www.growthhacking.fr/t/extration-texte-dans-un-pdf-ou-image-python/43851 "2026-01-05T23:13:07Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Khadim\_Sylla](https://www.growthhacking.fr/letter_avatar_proxy/v4/letter/k/ccd318/32.png) [@Khadim\_Sylla](https://www.growthhacking.fr/u/Khadim_Sylla)\
**Post date:** [Janvier 5, 2026, 11:13 UTC](https://www.growthhacking.fr/t/extration-texte-dans-un-pdf-ou-image-python/43851/1 "2026-01-05T23:13:07Z")

</div>

Bonjour les cracks,

Je cherche à developper un script python qui permet d’extraire du texte dans un pdf ou image.

Coté pdf j’y arrive. Mais coté image un peu compliqué. Surtout quand c’est une image convertie en pdf ou un scan.

Quelqu’un aurait un script python ou piste pour aider ?

---

<div class="post-metadata">

**Author:** ![ListAndFuse](https://www.growthhacking.fr/user_avatar/www.growthhacking.fr/listandfuse/32/40184_2.png) [@ListAndFuse](https://www.growthhacking.fr/u/ListAndFuse)\
**Post date:** [Janvier 6, 2026, 3:13 UTC](https://www.growthhacking.fr/t/extration-texte-dans-un-pdf-ou-image-python/43851/2 "2026-01-06T03:13:19Z")

</div>

PDF et photos, je le fais avec la dernière version Images de ChatGpt.

---

<div class="post-metadata">

**Author:** ![Khadim\_Sylla](https://www.growthhacking.fr/letter_avatar_proxy/v4/letter/k/ccd318/32.png) [@Khadim\_Sylla](https://www.growthhacking.fr/u/Khadim_Sylla)\
**Post date:** [Janvier 6, 2026, 9:37 UTC](https://www.growthhacking.fr/t/extration-texte-dans-un-pdf-ou-image-python/43851/3 "2026-01-06T09:37:34Z")

</div>

Pas de script python ?

---

<div class="post-metadata">

**Author:** ![made\_in\_alsace](https://www.growthhacking.fr/letter_avatar_proxy/v4/letter/m/5daacb/32.png) [@made\_in\_alsace](https://www.growthhacking.fr/u/made_in_alsace)\
**Post date:** [Janvier 7, 2026, 9:13 UTC](https://www.growthhacking.fr/t/extration-texte-dans-un-pdf-ou-image-python/43851/4 "2026-01-07T09:13:28Z")

</div>

l’API OCR de mistral est géniale pour ça.

---

<div class="post-metadata">

**Author:** ![joris.hexi](https://www.growthhacking.fr/letter_avatar_proxy/v4/letter/j/a587f6/32.png) [@joris.hexi](https://www.growthhacking.fr/u/joris.hexi)\
**Post date:** [Janvier 7, 2026, 9:58 UTC](https://www.growthhacking.fr/t/extration-texte-dans-un-pdf-ou-image-python/43851/5 "2026-01-07T09:58:38Z")

</div>

Salut, j’ai déjà converti le texte des images en python en utilisant [GitHub - tesseract-ocr/tesseract: Tesseract Open Source OCR Engine (main repository)](https://github.com/tesseract-ocr/tesseract)

Malheureusement j’ai plus le script mais tu peux demander à chatgpt de te le faire, et au moins c’est gratos

Si tu veux pas te casser la tête, l’API Mistral fait le taff

---

<div class="post-metadata">

**Author:** ![conquering\_lion](https://www.growthhacking.fr/letter_avatar_proxy/v4/letter/c/e19b73/32.png) [@conquering\_lion](https://www.growthhacking.fr/u/conquering_lion)\
**Post date:** [Janvier 7, 2026, 5:30 UTC](https://www.growthhacking.fr/t/extration-texte-dans-un-pdf-ou-image-python/43851/6 "2026-01-07T17:30:34Z")

</div>

hello !

en tapant “python OCR tuto pdf image“ j’ai trouvé ca

[https://www.datacamp.com/fr/tutorial/optical-character-recognition-ocr-in-python-with-pytesseract](https://www.datacamp.com/fr/tutorial/optical-character-recognition-ocr-in-python-with-pytesseract)

du snippet à gogo, tout pour ce que tu cherches (image / pdf)

a + dans l’bus 😉

---

<div class="post-metadata">

**Author:** ![tom\_randeau](https://www.growthhacking.fr/user_avatar/www.growthhacking.fr/tom_randeau/32/40316_2.png) [@tom\_randeau](https://www.growthhacking.fr/u/tom_randeau)\
**Post date:** [Janvier 8, 2026, 9:09 UTC](https://www.growthhacking.fr/t/extration-texte-dans-un-pdf-ou-image-python/43851/7 "2026-01-08T09:09:24Z")

</div>

hello! J’utilise google antigravity pour ce genre de tâches, il crée ses propres scripts python et tu as juste à communiquer avec en langage naturel, c’est génial

---

<div class="post-metadata">

**Author:** ![Khadim\_Sylla](https://www.growthhacking.fr/letter_avatar_proxy/v4/letter/k/ccd318/32.png) [@Khadim\_Sylla](https://www.growthhacking.fr/u/Khadim_Sylla)\
**Post date:** [Janvier 8, 2026, 11:32 UTC](https://www.growthhacking.fr/t/extration-texte-dans-un-pdf-ou-image-python/43851/8 "2026-01-08T11:32:33Z")

</div>

Ce que j’utilise depuis le depuis mais trop de mal interpretation de certains caracteres comme s et 5, 6 et g, etc. un peu difficile de corriger cela.

---

<div class="post-metadata">

**Author:** ![Khadim\_Sylla](https://www.growthhacking.fr/letter_avatar_proxy/v4/letter/k/ccd318/32.png) [@Khadim\_Sylla](https://www.growthhacking.fr/u/Khadim_Sylla)\
**Post date:** [Janvier 8, 2026, 11:34 UTC](https://www.growthhacking.fr/t/extration-texte-dans-un-pdf-ou-image-python/43851/9 "2026-01-08T11:34:13Z")

</div>

Ce que j’utilise depuis le debut mais trop de mal interpretation de certains caracteres comme s et 5, 6 et g, etc. un peu difficile de corriger cela.

Pour info c’est pour detecté correctement le mrz d’un passeport.

---

<div class="post-metadata">

**Author:** ![Khadim\_Sylla](https://www.growthhacking.fr/letter_avatar_proxy/v4/letter/k/ccd318/32.png) [@Khadim\_Sylla](https://www.growthhacking.fr/u/Khadim_Sylla)\
**Post date:** [Janvier 8, 2026, 11:35 UTC](https://www.growthhacking.fr/t/extration-texte-dans-un-pdf-ou-image-python/43851/10 "2026-01-08T11:35:19Z")

</div>

Idem aussi Ce que j’utilise depuis le debut mais trop de mal interpretation de certains caracteres comme s et 5, 6 et g, etc. un peu difficile de corriger cela.

Pour info c’est pour detecté correctement le mrz d’un passeport.

---

<div class="post-metadata">

**Author:** ![ListAndFuse](https://www.growthhacking.fr/user_avatar/www.growthhacking.fr/listandfuse/32/40184_2.png) [@ListAndFuse](https://www.growthhacking.fr/u/ListAndFuse)\
**Post date:** [Janvier 15, 2026, 4:16 UTC](https://www.growthhacking.fr/t/extration-texte-dans-un-pdf-ou-image-python/43851/11 "2026-01-15T04:16:28Z")

</div>

Pas besoin de rentrer de scripts dans une IA 🙂 , juste un prompt.
