Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build and link against Tesseract for OpenCV text module #12

Open
xtrntr opened this issue Oct 5, 2016 · 5 comments
Open

Build and link against Tesseract for OpenCV text module #12

xtrntr opened this issue Oct 5, 2016 · 5 comments

Comments

@xtrntr
Copy link

xtrntr commented Oct 5, 2016

Help on module cv2.text in cv2:

NAME
cv2.text

FUNCTIONS
OCRBeamSearchDecoder_create(...)
OCRBeamSearchDecoder_create(classifier, vocabulary, transition_probabilities_table, emission_probabilities_table[, mode[, beam_size]]) -> retval

OCRHMMDecoder_create(...)
    OCRHMMDecoder_create(classifier, vocabulary, transition_probabilities_table, emission_probabilities_table[, mode]) -> retval

OCRTesseract_create(...)
    OCRTesseract_create([, datapath[, language[, char_whitelist[, oem[, psmode]]]]]) -> retval

createOCRHMMTransitionsTable(...)
    createOCRHMMTransitionsTable(vocabulary, lexicon) -> retval

loadOCRBeamSearchClassifierCNN(...)
    loadOCRBeamSearchClassifierCNN(filename) -> retval

loadOCRHMMClassifierCNN(...)
    loadOCRHMMClassifierCNN(filename) -> retval

loadOCRHMMClassifierNM(...)
    loadOCRHMMClassifierNM(filename) -> retval

DATA
ERFILTER_NM_IHSGRAD = 1
ERFILTER_NM_IHSGrad = 1
ERFILTER_NM_RGBLGRAD = 0
ERFILTER_NM_RGBLGrad = 0
ERGROUPING_ORIENTATION_ANY = 1
ERGROUPING_ORIENTATION_HORIZ = 0
OCR_DECODER_VITERBI = 0
OCR_LEVEL_TEXTLINE = 1
OCR_LEVEL_WORD = 0

FILE
(built-in)

@patricksnape
Copy link
Contributor

Sorry, I have no idea what your question is, please be more specific.

@xtrntr
Copy link
Author

xtrntr commented Oct 6, 2016

@patricksnape
Copy link
Contributor

So this is a request to build opencv against tesseract? At the moment I have no bandwidth to do that but if you can make a conda package for teserract I would be happy to link against it!

@patricksnape patricksnape changed the title conda-opencv3 text module doesn't expose the full functionality Build and link against Tesseract for OpenCV text module Oct 6, 2016
@xtrntr
Copy link
Author

xtrntr commented Oct 7, 2016

Could you walk me through the steps to do that? I'm interested at taking a stab.

@patricksnape
Copy link
Contributor

Take a look at the conda-build documentation and the meta.yaml here. You can probably base the recipe off of the homebrew package as a good starting place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants