Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

horitonztal lines remove
Started by davidhan at 06-30-2008 7:34. Topic has 10 replies.

Print Search « Previous Thread Next Thread »
  06-30-2008, 7:34
davidhan is not online. Last active: 7/8/2008 5:37:24 AM davidhan

Top 500 Posts
Joined on 06-26-2008
Posts 9
horitonztal lines remove

Attachment: Images.zip
Reply Quote

Hi i am trying to remove a horitonztal lines and found some that the LineRemoveCommand.Wall is having some strange behaviour.

I have attached the settings

Overfilter Settings

command.Type = LineRemoveCommandType.Horizontal;
command.Flags = LineRemoveCommandFlags.UseGap;
command.GapLength = 0;
command.MaximumLineWidth = 6;
command.MinimumLineLength = 60;
command.MaximumWallPercent = 99;
command.Wall = 7;

 

Normal Settings

command.Type = LineRemoveCommandType.Horizontal;
command.Flags = LineRemoveCommandFlags.UseGap;
command.GapLength = 0;
command.MaximumLineWidth = 6;
command.MinimumLineLength = 60;
command.MaximumWallPercent = 30;
command.Wall = 7;

Regards

David

 

 


   Report 
  06-30-2008, 9:35
Adam Boulad is not online. Last active: 7/23/2008 4:14:05 PM Adam Boulad



Top 10 Posts
Joined on 09-16-2007
Posts 406
Re: horitonztal lines remove
Reply Quote
David,
The LineRemoveCommand Class removes horizontal and vertical lines in 1-bit black and white image.
The images that you sent me are not 1-bit black and white images.

Adam Boulad
LEADTOOLS Technical Support

   Report 
  07-03-2008, 3:25
davidhan is not online. Last active: 7/8/2008 5:37:24 AM davidhan

Top 500 Posts
Joined on 06-26-2008
Posts 9
Re: horitonztal lines remove

Attachment: Images.zip
Reply Quote

 Adam Boulad wrote:
David,
The LineRemoveCommand Class removes horizontal and vertical lines in 1-bit black and white image.
The images that you sent me are not 1-bit black and white images.

Hi Adam Boulad,

Sorry i have re-attached the images with 1-bit black and white settings
Here is the image filtering settings for the images inside the zip file.

For img_after_OverFilter.TIF :
command.MinimumLineLength = 65;              
command.MaximumLineWidth = 6;
command.MaximumWallPercent = 99;
command.Wall = 7;

For img_after_Normal.TIF :
command.MinimumLineLength = 65;              
command.MaximumLineWidth = 6;
command.MaximumWallPercent = 99;
command.Wall = 5;

I do notice that the MaximumWallPercent  would affect the line removal, and would like to know if the Wall  height is related to the MaximumLineWidth ? any suggestion for the wall height settings?

Regards

David


   Report 
  07-03-2008, 6:23
Adam Boulad is not online. Last active: 7/23/2008 4:14:05 PM Adam Boulad



Top 10 Posts
Joined on 09-16-2007
Posts 406
Re: horitonztal lines remove
Reply Quote
David,
The wall height is not directly related to the line width, but should be larger than the line width. If you specify a value of 5 for the wall, the maximum line width should be less than 5, because the wall must be larger than the line.

If you want to get a description of all the settings in one help topic, see the API help file topic for the LINEREMOVE structure. Here's a link to the online version:
http://www.leadtools.com/Help/LEADTOOLS/v15/Main/API/Dlldtyp/LINEREMOVE.htm


Adam Boulad
LEADTOOLS Technical Support

   Report 
  07-03-2008, 6:58
davidhan is not online. Last active: 7/8/2008 5:37:24 AM davidhan

Top 500 Posts
Joined on 06-26-2008
Posts 9
Re: horitonztal lines remove
Reply Quote

Hi Adam Boulad,

I did read the API help file and thats why for the wall height i put +1 from the MaxLineWidth.
However from the image i sent to you , althought it still over filtering the "XXXXXX" word. Please advice.

 

Regards,
David 

 


   Report 
  07-06-2008, 9:16
Adam Boulad is not online. Last active: 7/23/2008 4:14:05 PM Adam Boulad



Top 10 Posts
Joined on 09-16-2007
Posts 406
Re: horitonztal lines remove
Reply Quote
David,
I tried the following settings and the function removed the horizontal lines without the XXXXX word:
Minimum length = 80
Maximum width = 3
Wall Height = 3
Max wall percent = 13
Please try these settings.
Adam Boulad
LEADTOOLS Technical Support

   Report 
  07-08-2008, 2:39
davidhan is not online. Last active: 7/8/2008 5:37:24 AM davidhan

Top 500 Posts
Joined on 06-26-2008
Posts 9
Re: horitonztal lines remove
Reply Quote

Thanks Adam B,

But from my earlier post my settings can removed the  horizontal lines without the "XXXXX" word already.
See Below:
Minimum length = 65;              
Maximum width = 6;
Wall Height  = 5;
Max wall percent = 99;

 I just don't understand that with increase of Wall Height to "7" , it will start to over filter the "XXXXX" word.

Regards,
David


   Report 
  07-08-2008, 10:42
Adam Boulad is not online. Last active: 7/23/2008 4:14:05 PM Adam Boulad



Top 10 Posts
Joined on 09-16-2007
Posts 406
Re: horitonztal lines remove
Reply Quote
David,
So far, I don't have the exact conditions that trigger the problem at your side. Please re-attach the image that is actually given to to our toolkit for line removal (the 1-bit black and white image), and I will examine the case here using the values you sent. If I find a problem I can't solve, I will report it to our engineers.
Adam Boulad
LEADTOOLS Technical Support

   Report 
  07-09-2008, 6:10
davidhan is not online. Last active: 7/8/2008 5:37:24 AM davidhan

Top 500 Posts
Joined on 06-26-2008
Posts 9
Re: horitonztal lines remove

Attachment: over filter img.zip
Reply Quote

Hi Adam Boulad,

I have re-attached the problem image and save it as  (the 1-bit black and white image).
Let me clarify the questions we have:
1. We need to know the reason why when we have the following setting,  the "XXXXXX" pattern is regarded as horizontal line and the result is overfiltered.

Minimum length = 65;              
Maximum width = 6;
Wall Height  = 7;
Max wall percent = 99;

2. How does the application measure the wall height in case it is a slanting line come across the line going to remove (like this case)?

3. Is that in all occasion that the wall height should be equal or larger than line width? As you have provied an configuration sample in this case that the wall height is equal to the line width.

Please revert in your earliest convenience.

Regards
David


   Report 
  07-09-2008, 11:40
Adam Boulad is not online. Last active: 7/23/2008 4:14:05 PM Adam Boulad



Top 10 Posts
Joined on 09-16-2007
Posts 406
Re: horitonztal lines remove
Reply Quote
David,
I have reported this issue (The removal of XXXX) to our engineers under incident number 7118AMN, Please keep this number for future inquiry regarding this incident.
I will update this forum post with changes regarding this incident.

Adam Boulad
LEADTOOLS Technical Support

   Report 
  07-30-2008, 10:13
Adam Boulad is not online. Last active: 7/23/2008 4:14:05 PM Adam Boulad



Top 10 Posts
Joined on 09-16-2007
Posts 406
Re: horitonztal lines remove
Reply Quote
David,
Our engineers have marked this incident as 'Not a Bug' because the parameters are not appropriate. They have also provided us with the following notes:
- The image is small and clipped from a larger image, this should be considered when filling the variables. For example, if you want to remove lines from a region, you must consider the original image dimensions and don’t consider region dimensions as your reference.
- Minimum length should be more than 65. 65 is too small value especially in this image, because the letters are large relatively and we don’t want to remove lines form letters.
- The Max wall percent of 99% is a drastic percentage here.
- Also if you know that the lines always be framing the image you could use border remove function and it will work manifestly.
- This is a very rare case (small image with large letters, joined Xs).
Note: the default values in the main Demo work properly with this image.
Adam Boulad
LEADTOOLS Technical Support

   Report 
Post
LEAD Support Fo... » Developer » Image Processin... » horitonztal lines remove

Powered by Community Server, by Telligent Systems