コミュニティ

Can't recognize text when on top of a line

I'm doing application using VB.NET and whenever it process this kind of image it cannot get the correct value.

Is there any way to detect these text?

It will be great help.

Thanks.

この記事は役に立ちましたか?

0人中0人がこの記事が役に立ったと言っています

コメント

1件のコメント

  • Avatar
    Daria Zvereva

    Hello!

    The quality of the image is very low so the quality of recognition might be not very good. Please check the article in the Developer`s Help: Guided Tour → Advanced Techniques → Best Practices → Image Recommendations.

    If you need to extract all text from this image you may add the text block of the image size and recognize it. Please, see the following code snippet in C++:

    // Load Engine
    frDocument->AddImageFile( imageFilePath, 0, 0 );
    //Analyzing
    frDocument->Analyze( 0 ) );
    //Add text block
    CSafePtr<IFRPages> frPages;     
    frDocument->get_Pages( &frPages );
    CSafePtr<IFRPage> frPage;
    frPages->Item( 0, &frPage );
    CSafePtr<ILayout> layout;
    frPage->get_Layout ( &layout );
    CSafePtr<ILayoutBlocks> blocks;
    layout->get_Blocks( &blocks ); 
    blocks->DeleteAll(); 
    CSafePtr<IRegion> region;
    FREngine->CreateRegion( &region );
    region->AddRect( 0, 0, pictureWidth, pictureHeight );
    CSafePtr<IBlock> block;
    blocks->AddNew(BT_Text, region, 0, &block);
    //Recognition
    frDocument->Recognize();
    //Export

    You may get pictureWidth and pictureHeight from the properties of Image object. Please check the article in the Developer`s Help: API Reference → Image-Related Objects → Image.

    Note that in case of the image with low quality Engine may recognize some extra text.

    Hope the information will be useful.

    0

サインインしてコメントを残してください。