|
How to write a .Robo file for performing Perspective correction Mohit from India [2 posts] |
17 year
|
I need to write an automated .robo script to perform perpective correction for a few images. So far, I am able to load and display the files, and looking out for code to perform perspective correction.
|
|
|
Anonymous |
17 year
|
Mohit,
Perhaps you need to work with the Affine module at
http://www.roborealm.com/help/Affine.php
If you continue to have questions please post a couple images that you are working with since that helps us to understand what you need.
STeven.
|
|
|
Mohit from India [2 posts] |
17 year
|
Yes. I need to perform Perspective Transformation on a bunch of images(as a batch process). I tried to do it manually using Perspective correction module under Transforms module, which worked for single image.
The input image is : [image1]
The output image is: [image2]
I need to automate the process by writing a .robo file (with tagged syntax) so as to perform the correction on all the images.
So far I have written the .robo file to load an image. The code is :
<head><version>1.7.2.18</version></head>
<Load_Image>
<filename>abc1.bmp</filename>
</Load_Image>
I want to add the code for Perpective Correction after this.
|
|
|
Mohit from India [2 posts] |
17 year
|
Yes. I need to perform Perspective Transformation on a bunch of images(as a batch process). I tried to do it manually using Perspective correction module under Transforms module, which worked for single image.
The input image is :
The output image is:
I need to automate the process by writing a .robo file (with tagged syntax) so as to perform the correction on all the images.
So far I have written the .robo file to load an image. The code is :
|
|
|
Anonymous |
17 year
|
Mohit,
Attached is one way you can do that by reading images with the Read_Images module and save them using the Write_Images module. You would process them by pressing the "Start" button on the Write_Images module and then the reload button on the Read_Images module. This would process each image and save them in a numbered format. To get the Read_Images to work you will need to change the path and base name of the file to read. In our example our filename is DSC00699.jpg and increases to DSC007004.jpg in a numeric format. (Thus your images need to be named incrementally).
You would replace the negative module with whatever you need ...
STeven.
program.robo
|
|