Well, I run and get result from Tesseract via another program which needs
it ^.^
I'm not such a good programmer myself but I tried doing this, well - still
trying, my problem place is getting size of clioboard for pixReadMem
(probaby not only it - cuz even when I hardcode the size(not sure if that's
the right one cuz I took it off image fine not image itself) it still
fails, says unsupported type (maybe cuz of size, not sure yet))
if (OpenClipboard(NULL))
{
dstTmp = (unsigned char*)GetClipboardData(CF_BITMAP);
if ((pixs = pixReadMemBmp(dstTmp, 18498)) == NULL)
{
fprintf(stderr, _("Unsupported image type.\n"));
exit(3);
}
CloseClipboard();
}
A solution for getting size would be using gdi32.lib and then getobject()
to get size as (width * height * 24) + 54, would that be the correct size
then?
On Friday, May 10, 2013 9:04:24 PM UTC+4, sventech wrote:
>
> That would be more practical for a GUI front end program, rather than
> Tesseract itself.
> --Sven
>
>
> On Fri, May 10, 2013 at 8:31 AM, Owyn Tyler <[email protected]<javascript:>
> > wrote:
>
>> Would be nice not to have to store input in a file just for tesseract but
>> get image directly from clipboard as input for tesseract, were there any
>> patches for this?
>>
>> --
>> --
>> You received this message because you are subscribed to the Google
>> Groups "tesseract-ocr" group.
>> To post to this group, send email to [email protected]<javascript:>
>> To unsubscribe from this group, send email to
>> [email protected] <javascript:>
>> For more options, visit this group at
>> http://groups.google.com/group/tesseract-ocr?hl=en
>>
>> ---
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>
>
> --
> ``All that is gold does not glitter,
> not all those who wander are lost;
> the old that is strong does not wither,
> deep roots are not reached by the frost.
> From the ashes a fire shall be woken,
> a light from the shadows shall spring;
> renewed shall be blade that was broken,
> the crownless again shall be king.”
>
--
--
You received this message because you are subscribed to the Google
Groups "tesseract-ocr" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tesseract-ocr?hl=en
---
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].
For more options, visit https://groups.google.com/groups/opt_out.