AiPacino / tesseract-ocr

Automatically exported from code.google.com/p/tesseract-ocr
Other
2 stars 0 forks source link

SetCvImage is defined in SWiG, but not in base_api.h #1148

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The SWiG implementation (for Python) calls SetCVImage, but the only Tesseract 
header that seems to be included is base_api.h:

SWIGINTERN PyObject *_wrap_SetCvImage(PyObject *SWIGUNUSEDPARM(self), PyObject 
*args) {
  PyObject *resultobj = 0;
  PyObject *arg1 = (PyObject *) 0 ;
  tesseract::TessBaseAPI *arg2 = (tesseract::TessBaseAPI *) 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;

  if (!PyArg_ParseTuple(args,(char *)"OO:SetCvImage",&obj0,&obj1)) SWIG_fail;
  arg1 = obj0;
  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_tesseract__TessBaseAPI, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SetCvImage" "', argument " "2"" of type '" "tesseract::TessBaseAPI *""'"); 
  }
  arg2 = reinterpret_cast< tesseract::TessBaseAPI * >(argp2);
  SetCvImage(arg1,arg2);
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}

However, base_api.h (or any other component of Tesseract) doesn't seem to 
implement SetCvImage:

tesseract-ocr-3.02.02$ grep -i -R SetCvImage .
tesseract-ocr-3.02.02$ 

Where is it defined? What am I missing? 

Original issue reported on code.google.com by myselfasunder@gmail.com on 1 May 2014 at 4:32

GoogleCodeExporter commented 9 years ago
There is no swig implementation in THIS (tesseract-ocr) project.

Original comment by zde...@gmail.com on 1 May 2014 at 9:11

GoogleCodeExporter commented 9 years ago
That's not the point of the issue. The same guy manages both projects, and
the SWiG says that there's a SetCvImage call in Tesseract. Is there?

Dustin

Original comment by myselfasunder@gmail.com on 1 May 2014 at 12:00

GoogleCodeExporter commented 9 years ago
For asking questions use tesseract forum[1]. This issues tracker is dedicated 
to track tesseract bugs.
[1] https://code.google.com/p/tesseract-ocr/wiki/FAQ#Rules_and_advices

Original comment by zde...@gmail.com on 1 May 2014 at 8:22

GoogleCodeExporter commented 9 years ago
I couldn't find one. I had tried.

Dustin

Original comment by myselfasunder@gmail.com on 1 May 2014 at 8:47

GoogleCodeExporter commented 9 years ago
It is stated project page: http://groups.google.com/group/tesseract-ocr/ ;-)

Original comment by zde...@gmail.com on 3 May 2014 at 11:28