This is the Charles Weld .Net wrapper code. The first thing Convert() does
is call this method. Leptonica's picCreate() returns a null pointer
apparently.
public static Pix Create(int width, int height, int depth)
{
if (!AllowedDepths.Contains(depth))
throw new ArgumentException("Depth must be 1, 2, 4, 8, 16,
or 32 bits.", "depth");
if (width <= 0) throw new ArgumentException("Width must be
greater than zero", "width");
if (height <= 0) throw new ArgumentException("Height must be
greater than zero", "height");
var handle = Interop.LeptonicaApi.Native.pixCreate(width, height
, depth);
if (handle == IntPtr.Zero) throw new
InvalidOperationException("Failed
to create pix, this normally occurs because the requested image size is too
large, please check Standard Error Output.");
return Create(handle);
}
--
You received this message because you are subscribed to the Google Groups
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tesseract-ocr/07eef4a7-f0e0-4e62-b66a-7e0fe7b1aead%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.