otiai10 / gosseract

Go package for OCR (Optical Character Recognition), by using Tesseract C++ library
https://pkg.go.dev/github.com/otiai10/gosseract
MIT License
2.74k stars 290 forks source link

undefined: gosseract.NewClient #283

Closed leadinglydevelopment closed 1 year ago

leadinglydevelopment commented 1 year ago

This text is generated based on ISSUE_TEMPLATE.md. The issue reporter must read and remove this block before submitting.

Summary

EnterNameHere7 commented 1 year ago

same

BacelarVitor commented 1 year ago

@leadinglydevelopment @EnterNameHere7 which go version are you guys using?

awaisqarni91 commented 1 year ago

Having same issue.

TheKaese commented 1 year ago

Same issue here. Cannot compile and just says "undefined: gosseract.NewClient". I'm using go get -t github.com/otiai10/gosseract/v2 per the readme.

marcelovcpereira commented 1 year ago

Same here

zikkuratti commented 1 year ago

+1

liuweidada commented 1 year ago

+1,Me too,go-version 1.19

zikkuratti commented 1 year ago

i think problem is go make some bridge to C tesseract library, but our system haven't api headers needed to open client - need to install tesseract libraries

exbucks commented 1 year ago

@zikkuratti any idea how to install tesseract libraries on windows? I followed the documents, but no luck.

otiai10 commented 1 year ago

Hi guys, thank you for raising the issue. Though we don't have much information about the condition to reproduce and couldn't provide an exact solution, please refer to this folder as examples to setup this software on several common platforms.

https://github.com/otiai10/gosseract/tree/main/test/runtimes

Hope it helps

liuweidada commented 1 year ago

我认为问题是要与 C tesseract 库建立一些桥梁,但我们的系统没有打开客户端所需的 api 标头 - 需要安装 tesseract 库

I did this and testseract is runnable, but still reporting an error

zikkuratti commented 1 year ago

@zikkuratti any idea how to install tesseract libraries on windows? I followed the documents, but no luck.

i think tesseract docs be helpfull forget about go on this time, i try fix it soon now im make some python stuff here

otiai10 commented 1 year ago

Hi all,

This issue doesn't provide enough information for a deeper investigation or effective communicate on the thread. Please provide more information as per the ISSUE_TEMPLATE. If not, I will close this issue in next 3 days.

Thank you.

xinaxiny commented 1 year ago

这个问题依旧没办法解决吗

joshua86z commented 11 months ago

import "C" is reason

apt install gcc apt install g++