Could you share the poppler file that you downloaded on a google drive please, because the link you provide in the description is broken
@Anarky35
Жыл бұрын
Great thanks a lot, very helful
@DhanasekaranEsfita
2 ай бұрын
Hi Sir, I'm working with scanned PDFs (bank statements). The PDF quality is low, so I can't extract the text accurately. Are there any other ways to extract the text accurately?
@Python2020
2 ай бұрын
Use Azure OCR
@pradeepreddychejarla3753
9 ай бұрын
Hi. Thank you for this video.Follwoed the exact steps. For images, the code is working and output is coming as expected but for scanned pdfs, the output is generated with random alphabets and missing out a lot of text. Why is that so? what is the solution for this issue ?
@Python2020
9 ай бұрын
Quality matters
@hanifadhithan
Жыл бұрын
Is there a possible method to extract without using the tesseract model but using py libraries only
@Python2020
Жыл бұрын
There is a video on my KZitem channel but it won't work for scanned pdf Or image pdf.. Only on text pdf.... kzitem.info/news/bejne/mJxmqJdomqaWpIY
@hanifadhithan
Жыл бұрын
@@Python2020 thanks for the reply...but do you know is that possible to do with only libraries
@manishtripathi1778
2 жыл бұрын
Thanks for the video, i required some help in cropping the header and then extracting the text from the file, can you suggest how i can do that, my pdf files are a mix of scanned pdf and text pdf files
@Python2020
2 жыл бұрын
When you will read scanned pdf with pypdf2 it should throw error inside catch you can can write code for reading scanned pdf... My way
@reetanimesh4903
2 жыл бұрын
Good Detailed Explanation
@beatsbyharman7882
10 ай бұрын
Hi , if i have a pdf of 10 pages and i want to extract the data for only 7th page , how can i specify that ? Where do i need to do changes ? Thanks ! Waiting for the reply
@Python2020
10 ай бұрын
Spilt pdf save splits in different folder..give name ending with index and use name ending with required index .. You still hv your original file
@beatsbyharman7882
10 ай бұрын
@@Python2020 in my pdf i have 10 pages and i want to extract ony 7th page . How can i do that?
@khaledibrahim1065
8 ай бұрын
First of all, thank you for this excellent explanation, if I want to extract scanned PDF file contains complicated table to csv file, do you have any suggestions?
@Python2020
8 ай бұрын
You have to use regex and then map va values to field for a line... Then appen new line... Direct from image to csv might not be possible using these libraries
@robertcenusa8636
2 жыл бұрын
12:35 my txt files are empty (in case of scanned PDF, or even text PDF). For Images is working.
@Python2020
2 жыл бұрын
Check file writing mode
@user-hl9wt9qs3t
6 ай бұрын
sir... thnks a lot for the info... can u provide me python script for extracting company details like companyname,adress and all from multiple images which are in pdf format... i went through lots of reasearch but didnt get. help me out
@Python2020
6 ай бұрын
Would be complex, se there is one OCR video on this channel that might help
@user-hl9wt9qs3t
6 ай бұрын
thnk you soo much sir@@Python2020
@user-fy6gi2vx8g
Жыл бұрын
I am also getting blank .txt files for PDFs. The code is working for images. Would you mind giving a more detailed suggestion for what I should do? Thanks so much!
@Python2020
Жыл бұрын
Try to print before writing the text file... See if dara is coming in variable or not
@user-fy6gi2vx8g
Жыл бұрын
@@Python2020 Thank you so much for your prompt reply! I printed the variable, and it shows up blank for all the PDF files. In one of the PDF files, I put in an image I produced by typing something in Word and then turning it into an image using Snipping Tool, so I don't think image quality is causing the problem.
@user-fy6gi2vx8g
Жыл бұрын
@@Python2020 Nevermind. I discovered that I accidentally put in "5" as the page number instead of "500". I changed it to 500 and now it is working! I find this very interesting, though, because most of my PDFs are 5 pages long or shorter. Thanks so much for your help!
@arunkumar-nb7be
2 жыл бұрын
Is there any way I can install libraries with pip.install ocrmypdf, in my company laptop I can't run .exe files, but I can run library thro python..
@Python2020
Жыл бұрын
There is CMD way you have download the library file
but where you trained images in Teseract OCR tools
@Python2020
Жыл бұрын
We don't have to train OCR engine.. I think You are refering to train ML models to identify right lables
@Android_19
2 жыл бұрын
how to do image pre processing if the image quality is not good .
@Python2020
2 жыл бұрын
use opencv enhanse resolution, or few paid services are also there like Google Vision, Textract,Flexicapture
@satyaprasadmohanty9093
2 жыл бұрын
how can i store all the text of different pages extracted from pdf into a single text page?
@Python2020
2 жыл бұрын
Use a single variable if pages are up to 10,20, once code goes out of the loop there you write the file
@satyaprasadmohanty9093
2 жыл бұрын
@@Python2020 thanks for your response will you tell me exactly where i need to change the code resume_pdfs=glob.glob(r"/content/drive/MyDrive/New folder (2)") for pdf_path in resume_pdfs: pages=convert_from_path(pdf_path,500) for pageNum, imgBlob in enumerate(pages): text=pytesseract.image_to_string(imgBlob,lang='eng') with open(f'{pdf_path[:-4]}_page_{pageNum}.txt','w') as the_file: the_file.write(text)
@dedisupardi2815
Жыл бұрын
Cool 👍
@Python2020
Жыл бұрын
Thank you
@sushmahs7840
2 жыл бұрын
How to apply this method in anaconda for text extraction
@Python2020
2 жыл бұрын
Code will remain same in any environment
@abdullahfahad6388
9 ай бұрын
Sir, will it work with pycharm community edition?
@Python2020
9 ай бұрын
Yes... Pycharm is just code editor.. I have also used community version
Пікірлер: 48