Giter VIP home page Giter VIP logo

ktscripts's Introduction

This GitHub account is managed by Tungsten Automation Sales Enablement.

Visit also our Tungsten RPA repository.

ktscripts's People

Contributors

calvinadam avatar markemarkemark avatar tungstenrpa avatar tungstentransformation avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ktscripts's Issues

TextLayout Zone Registration.vb issue in SL_CalculatePageShift FOR Loop

Hi,

after thorough testing of the code I found two issues in the following for loop:
image

  • IF part won't work in any case if processed document have more pages than sample document
  • ELSE part messes up alternatives for pages as it adds fixed confidence of 1
    Proposed solution:
    image
    For I=0 To pXDoc.Pages.Count - 1 If ZonesExist(I) And I <= AZLSampleDoc.Pages.Count - 1 Then Pages_Compare(AZLSampleDoc.Pages(I),pXDoc.Pages(I),pLocator.Alternatives,pXDoc.CDoc.Pages(I).XRes,pXDoc.CDoc.Pages(I).YRes) Else pLocator.Alternatives.Create().Confidence=1.0-((pLocator.Alternatives.Count-1)*0.000001) pLocator.Alternatives.Create().Confidence=1.0-((pLocator.Alternatives.Count-1)*0.000001) End If Next

Cheers, Jan Vodrazka

how to use ZonalOCRinScript.vb?

Hi,
It is really useful script for me.

but I need more explain how to this code.
could please you share small sample project about ZonalOCRinScript.vb?

Text Layout Script has the duplicate functions

Keen to get this code to work as currently working on some AZL and this code looks fantastic.
There are duplicate funtions in the Text Layout.vb script.

When i remove the duplicate functions i can get the Script locator to work but not when i process
it failing in this section of code with fox exception error.
image
cheer stephen fox

KTScripts /Text Layout.vb Pages_Compare sub issue on multipage forms

https://github.com/KofaxTransformation/KTScripts/blob/7e904265932d6582f7abc91c419b74b00015e85d/Text%20Layout.vb#L38

Hello, this does not work properly on multipage forms. I believe there must be multiplication by 2, otherwise it removes incorrect alternative in the SL_CalculatePageShift locator and everything gets messed up. At least if I add *2 in my script then it starts working properly. So my while loop looks like this after the correction and it seems working fine now:
While Results.Count>page1.Words(0).PageIndex*2

Regards,
Jan

Issue when page count do not match with sample document

Hello,

Our client has found a problem. They erronously scanned less pages, than the document normally contains. This results in multiple runtime errors, for example when trying to move zones on the page that does not exist.

The examples of my fixes:

Private Sub SL_CalculatePageShift_LocateAlternatives(ByVal pXDoc As CASCADELib.CscXDocument, ByVal pLocator As CASCADELib.CscXDocField)
...
         'ZonesExist(AZLDef.Zones(Z).PageNr)=True
         If AZLDef.Zones(Z).PageNr <= pXDoc.Pages.Count-1 Then 'TLA
            ZonesExist(AZLDef.Zones(Z).PageNr)=True
         End If 'TLA


Public Sub Zones_Shift(AZLZones As CscAdvZoneLocZones, Shifts As CscXDocFieldAlternatives, Rep As CscXDocRepresentation)
...
      If (AZLZones(Z).PageNr <= Rep.Pages.Count - 1) Then 'TLA
         Set XDocZone=Zone_Shift(AZLZones(Z),Shifts,Rep)
         Rep.Zones.Append(XDocZone)
      End If 'TLA

If I find more issues with this script because of the incorrect number of scanned pages, I'll try to update.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.