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 : Thursday, January 15, 2015 7:35:54 AM(UTC)
Faris Shahin

Groups: Registered, Tech Support
Posts: 26


The attached project uses OCR to automatically align an image that's rotated, shifted or both, based on an aligned reference image. You can see the program in action by following these 3 steps:
1- Build and run the project and either load 2 images that contain some similar words at similar locations or use the 2 default test images.
2- Select 3 words using 3 different zones in the reference (left-side) image. Each zone must contain one and only one word.
3- Click the (Process) button, which will display the rotation and shift values then apply them to the right-side image.

For a similar project that relies on the user to select 3 similar points in the 2 images instead of using OCR, see this forum thread:
http://support.leadtools.com/CS/forums/41654/ShowPost.aspx
You can load a new image (Image to be aligned) and click (Process) as many times as you want to examine different images without the need to re-select the regions from the reference image. In order to get good results, you need to take these points into consideration:
1- The 3 words in the reference image should be readable using OCR.
2- The image to align can be rotated and shifted within reasonable limits. If the 2 images are substantially different, correct alignment cannot be expected to happen.
3- You can load a new image for alignment and process it using the current zones selected in the current reference image without resetting.
4- Both images should be of similar width and height.
5- Make sure that the words you are using as a reference are also clear in the image to be aligned.
6- Try to choose a word that isn't repeated in the area surrounding it.
7- Depending on the image to be aligned, you might be in need to modify the calculations of the zones to get better results.
8- Include any dots, apostrophes, question marks or any other characters that follow the word. For example, in the word ( buildings' ), you should include the last apostrophe when you choose the reference.

Try the program as is at first and notice the zones drawn in the image to be recognized. If the zones in the image to be recognized require changing their sizes, you can do that in code. Look for them in the "btnProcess_Click" event, which is the last coded event in the project.

File Attachment(s):
CS_Automated_Shift_And_Rotation_LT18.zip (259kb) downloaded 209 time(s).
Faris Shahin
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 

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 : Thursday, January 15, 2015 7:38:56 AM(UTC)
Faris Shahin

Groups: Registered, Tech Support
Posts: 26


I have also made a v19 version of the project found in the attached file.
File Attachment(s):
CS_Automated_Shift_And_Rotation_LT19.zip (260kb) downloaded 181 time(s).
Faris Shahin
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 
#3 Posted : Monday, December 3, 2018 9:30:37 AM(UTC)

Hussam  
Hussam

Groups: Registered, Tech Support
Posts: 14


I updated this project to use v20 references and VS2017:
File Attachment(s):
CS_Automated_Shift_And_Rotation_LT20.zip (260kb) downloaded 102 time(s).
Hussam Barouqa
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 
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.071 seconds.