How can I check for stamp availability in PDF and verification it?
Hi @Iachimciuc,
You can use ImageExists or Element Exists activities to check if the stamp exists or notā¦
First, open the pdf, it will open the first page check the image exists, if not then send hot key page down, then again check for element⦠You can do it in a for loop
but if stamp different or rotate?
Use more if conditions⦠I mean, if you have 4 different variations for the same stamp, then use four different if conditions to check for all four within the loopā¦
That will check all the conditionsā¦
but if rotate, how verification if image more inability matches?
I mean , use ElementExists activity as many times as required and select all the different rotated images , so that it will check for all the available rotated images
The stamp on the each document is different.
Then you have to design different workflows for different documents
I verificate for start few documents and in each document stamp not recognize with the exception of document there I does screenshoot
I donāt understand what you mean by this. Can you share the workflow if possible?
Sorry, but I can not send the process itself, but I will try to explain in more detail:
- I must check each contract for the presence of two signatures and the presence of a seal(samp)
- then select the data I need from this pdf file
You know if uipath has an activity to check the image or you can call tensorflow or OpenCV vision?
Let me explain you in detailsā¦
Assume we have the stamp to be in 4 different formats⦠So declare 4 variables as stampExists1, stampExists2 and so onā¦
In the for each loop of the pdf you are reading, use four different If conditions to check whether the stamp exists, in the first condition, select the actual stamp⦠In the second select the rotated and third, the another format of the image⦠it goes on based on your requirementā¦
Finally coming to select the data, use the if condition as
stampExists1 = true or stampExists2 = true or and so on⦠remember we are using or condition which states that, whether first or second is true, it will let you go inside the if condition.
I hope you are missing some steps in this⦠try this and hope you understand⦠Sorry for bad explanation
I understood, I poorly explained. First of all, the seal is one, but it can be located in different places and also close the text, the enumeration of similar seals will not work because the variations where they are located and how to clearly and clearly see them are more tricky, while Iām starting to understand you more simply āifā it doesnāt help
Yeah, If it is located at different locations, then use dynamic selectors so that it can locate the image wherever it is located. So, whatever may be the location and size of the image, it will check
how do it?
I donāt work with html, only with pdf
Iāll save you the trouble. You canāt locate a stamp with FindImage, and neither with CV. Maybe in the future