Is there an include or script would do OCR for a certain font?
Or would I have to make bitmaps of each character?
Thanks in advance.
Is there an include or script would do OCR for a certain font?
Or would I have to make bitmaps of each character?
Thanks in advance.
TheBitmap := CreateBitmapMaskFromText('OCR', TheFontHere)
The fonts are found in SCAR >> Font >>
Thanks for the replies, I think I know how to use the font now.
Thanks!
whered the edit button go?
so my question is,
do i need to specify what size the font is, or bold or italic?
(suppose i wanted myriad pro bold size 28.5)
SCAR Code:program FontTest;
const
fontname = 'Tahoma';
size = 16;
bold = false;
italic = false;
underline = false;
strikethrough = false;
var
font, bitmap, sizex, sizey: integer;
begin
//Load the font into memory
font := LoadCharsFromFont2(fontname, size, bold, italic, underline, strikethrough);
//Generate a bitmap mask from the previously loaded font
bitmap := CreateBitmapMaskFromText('Hello', font);
//Display the font in the debug window
GetBitmapSize(bitmap, sizex, sizey);
DisplayDebugImgWindow(sizex, sizey);
CopyCanvas(GetBitmapCanvas(bitmap), GetDebugCanvas, 0, 0, sizex, sizey, 0, 0, sizex, sizey);
end.
Interested in C# and Electrical Engineering? This might interest you.
Thanks for the example script, but how would I go upon using scar to search for the font on a webpage , and return what it typed in plain text on the debug window?
suppose the page had Hello World in time new roman, but it was an image. How would i go about using SCAR to identify what the text says and show it in the debug window?
There are currently 1 users browsing this thread. (0 members and 1 guests)