Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Sunday, May 14, 2006 11:55:44 PM(UTC)

Amit  
Amit

Groups: Registered
Posts: 101


I am using visual basic 6 with leadtools 14

My program captures image from source.  The source is scanner and I am acquiring image using TWAIN.  Acquired image contain whitish background.  User donot want this background.  For that purpose, I am trimming (Cropping) the image to interested area.  I take input the film size from user for that.

My problem is that, the size of area of interest is not the same all the time.  The film size taken as input from user donot match with actual area of interest.  If I calculate the ratio with actual film with scanned area of interest, it also dosent match all the times.

Size of whole image(with background) also may change.  In this case, my programming crash.  I donot get desired result.

Is there any way to detect area of interest of image.  Or any other way that can trim only area of interest.

Attaching the sample image herewith.  Try it yourself.

Waiting for reply.

File Attachment(s):
SampleImage.JPG (784kb) downloaded 34 time(s).
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Wednesday, May 17, 2006 4:32:40 AM(UTC)

Bashar  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

I believe you posted a similar post.  There is a reply to it so you might want to check it out:
http://support.leadtools.../6000/ShowPost.aspx#6000

 
#3 Posted : Wednesday, May 17, 2006 8:15:03 PM(UTC)

Amit  
Amit

Groups: Registered
Posts: 101


Hi,

That post is about subtract background method.

My query in this post is to remove unwanted area from image (Crop it.)

I had attached you the image that is scanned film.  User is only interested in the film and not in the region around it.

So please reply.

Thanks

 
#4 Posted : Wednesday, May 24, 2006 5:36:04 AM(UTC)

Bashar  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

Attached is a variation of the sample Maen posted in that thread.  It removes the unwanted white area around the image.

File Attachment(s):
RemoveBackground.zip (3kb) downloaded 38 time(s).
 
#5 Posted : Wednesday, May 24, 2006 10:01:28 PM(UTC)

Amit  
Amit

Groups: Registered
Posts: 101


Thansk Bashar,

Your project is working

Thanks  Again.

 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.074 seconds.