Getting the Value from Image and storing in variable

Asked by Bharadwaj

Dear RaiMan,

Is there any Function or Code or Link that helps me to get the value from the image and stored in to the Variable for later utilization or comparission?

Its little Urgent

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

what do have until now?

snippet?
screenshot?

Revision history for this message
Bharadwaj (bharadwaj-yarramalli) said :
#2

i am having screenshot

Revision history for this message
Bharadwaj (bharadwaj-yarramalli) said :
#3

i am having screenshot

Revision history for this message
Bharadwaj (bharadwaj-yarramalli) said :
#4

for example:-

I have a window where i have the Item ID, Item Rev, etc are parameters and parallel to them "Assign" button will be there , if i click Assign button , the application will generate a continous Series Number automatically . so i want to tht auto generated number from the window and store it in to the variable.

Hope this will gives u abetter idea

Revision history for this message
RaiMan (raimund-hocke) said :
#5

the usual approach is to find a visual next to the text, then span a region containing the text, which in turn can be used with Region.text():

ref = find(someReferenceImage)
textRegion = Region(ref.x + ??, ref.y + ??, width, height)
serialNumber = textRegion.text()

Can you help with this problem?

Provide an answer of your own, or ask Bharadwaj for more information if necessary.

To post a message you must log in.