Тёмный

VBA Tesseract OCR: Extract Texts from the image using Excel VBA 

廖彥穎
Подписаться 126
Просмотров 14 тыс.
50% 1

Опубликовано:

 

22 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 33   
@Leovicars
@Leovicars 9 месяцев назад
Hi - thanks for the video, please could you (re)post the vba snippets as text? The github link above doesn't seem to exist (at least for me) and can't find the snippets on the facebook like above either. I don't see anything in the description above.
@prescottfinn6675
@prescottfinn6675 2 года назад
Thanks, Mike! I couldn't get UB Mannheim's 64-bit Tesseract OCR installer to work on my Win11/Dell Inspiron 15, but the 32-bit installer worked perfectly. Also, when setting the value for the strCommand variable, I had to use the VBA escape character to put quotes before and after strImagePath (""" instead of "). Like this: strCommand = "cmd.exe /c tesseract """ & strImagePath & """ stdout -l eng"
@TheMrMandrake
@TheMrMandrake Год назад
Thank you sooo much, that was the fix for me as well!
@elviegapuz9009
@elviegapuz9009 3 года назад
not working. install setup, add path in environment variables control panel, call exe via wscript shell. no error, but no text returned. did i miss something
@potmmy
@potmmy 4 года назад
I can't use the VBA code eventhough I followed all steps in the videos. Are there any specific requirements
@MaryemChannel
@MaryemChannel 3 года назад
I have me too a lot of issues executing the code To resolve that Make sure the tesseract.exe is executed as administrator you can set that in the file properties ... Then the path to the image should start and end with a quote "
@daytondeclan3567
@daytondeclan3567 3 года назад
you probably dont care but does any of you know a method to log back into an instagram account..? I stupidly forgot the password. I would love any assistance you can give me.
@ephraimdominic4535
@ephraimdominic4535 3 года назад
@Dayton Declan instablaster :)
@daytondeclan3567
@daytondeclan3567 3 года назад
@Ephraim Dominic Thanks for your reply. I found the site on google and im waiting for the hacking stuff now. Looks like it's gonna take quite some time so I will get back to you later when my account password hopefully is recovered.
@daytondeclan3567
@daytondeclan3567 3 года назад
@Ephraim Dominic it worked and I finally got access to my account again. I am so happy:D Thanks so much you saved my ass!
@고성열-r7w
@고성열-r7w 3 года назад
thank you. i want to chage picture that is in the cell is it possibe? a1=picture-->b2(text)
@flavio160989
@flavio160989 2 года назад
Hi... thanks.. from brazilian
@ericg8282
@ericg8282 Год назад
Could you Upload the Sample again? The Link in the description is dead.
@shaddwatson1833
@shaddwatson1833 2 года назад
When I run the program I get a command window pop up that says, "[process exited with code 1]". Any help on this would be great!?
@shaddwatson1833
@shaddwatson1833 2 года назад
Update: This was due to me referencing the wrong tesseract folder. Once I set the path to the tesseract folder from my c:/Programs Files/Tesseract-Ocr it worked with the addition to a separate fix code from [GetImageFullPath = strFile] to [GetImageFullPath = Chr(34) & strFile & Chr(34)] . Hope this helps.
@tmaxil
@tmaxil 2 года назад
do you know how to make this work with HEBREW?>
@alfredkuczynski7649
@alfredkuczynski7649 3 года назад
its working thanks
@MaryemChannel
@MaryemChannel 3 года назад
Did you get the result copied automaticly in a cell on the excel file ?
@alfredkuczynski7649
@alfredkuczynski7649 3 года назад
@@MaryemChannel Yes . Link to my project drive.google.com/drive/folders/17tivGwJj731mUo541y62n75Su-gU9FBn?usp=sharing
@MaryemChannel
@MaryemChannel 3 года назад
@@alfredkuczynski7649 thank you for your quick response
@shettyprashant8802
@shettyprashant8802 2 года назад
how to read scan pdf with VBA?
@gsa1440
@gsa1440 Год назад
In my 64-bit win 10, neither one nor the other, which is 32-bit, did not work... It does not generate anything and does not give any type of error... I did the test by copying a text and pasting it in paint, saving it as a jpg it's nothing!!
@Something.Something
@Something.Something 10 месяцев назад
Probably you need the 32 bit tesseract. Check my comment (newest).
@MaryemChannel
@MaryemChannel 3 года назад
Thanks it worked for me after some modifications
@thunderobot9568
@thunderobot9568 3 года назад
Hi I faced the similar problem and tried to run Tesseract as admin but it was not working. Could you help to explain what do you mean by ‘path to image should start and end with quote’?
@seanhuang3307
@seanhuang3307 2 года назад
帥哥,您忘了勾選中文語言包(在安裝過程中) 這樣沒辦法辨識中文
@samirlaidi4067
@samirlaidi4067 4 года назад
Hello, thanks for the video. Can you provide a link with the sample VBA code ?
@廖彥穎-w2g
@廖彥穎-w2g 4 года назад
It is in the description.
@prescottfinn6675
@prescottfinn6675 2 года назад
If anyone needs it: Option Explicit Sub Tesseract_OCR() Dim strCommand, strImagePath, strOcrResult As String Dim ws As Object Set ws = VBA.CreateObject("wscript.shell") strImagePath = GetImageFullPath() If Not IsEmpty(strImagePath) Then strCommand = "cmd.exe /c tesseract """ & strImagePath & """ stdout -l eng" strOcrResult = ws.Exec(strCommand).StdOut.ReadAll Range("A1").Value = strOcrResult MsgBox (strOcrResult) End If End Sub Function GetImageFullPath() As String Dim fd As Office.FileDialog Dim strFile As String Set fd = Application.FileDialog(msoFileDialogFilePicker) With fd .Filters.Clear .Filters.Add "Images", "*.png, *.jpg" .Title = "Choose an Image" .AllowMultiSelect = False If .Show = True Then strFile = .SelectedItems(1) GetImageFullPath = strFile End If End With End Function
@metornado6418
@metornado6418 2 года назад
Thant u a lot hard work can i Chang lang to ARABIC
@林獻堂-v1t
@林獻堂-v1t 4 года назад
HI 彥穎高手 EXCEL 2007 好像不行,對嗎? 求指教,謝謝!
Далее
Extract text from images with Tesseract OCR on Windows
18:06
The Ultimate Guide to Copying Data using Excel VBA
31:05
What’s your height?🩷🙀💚
00:59
Просмотров 4,6 млн
aespa 에스파 'Whiplash' MV
03:11
Просмотров 22 млн
VBA Expert: Reading Scanned PDF's
13:18
Просмотров 32 тыс.
PDF to Excel Converter in Excel VBA
8:18
Просмотров 113 тыс.
How to Extract Specific Text from a PDF to Excel
8:54
PDF to Word Converter Macro in Excel VBA
13:51
Просмотров 20 тыс.