Re: [Sikuli-driver] [Question #656054]: 2 dimensional virtual slider

2017-08-17 Thread tyag
Question #656054 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/656054

tyag posted a new comment:
I guess the first of the two proposals may work provided we don't look
for the marker image except initially to determine its coordinates.

Add a step to Store the current calculated position of marker after
every press of arrow. So at any time system has the current position of
the marker.

End loop when current position of marker coincides (within limits) with
crosshairs coordinates.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #656054]: 2 dimensional virtual slider

2017-08-17 Thread tyag
Question #656054 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/656054

Status: Answered => Open

tyag is still having a problem:
Thanks for the detailed response.

However once the marker touches or overlaps the crosshair/s it will not
match the image of the marker stored initially... so how will the
iterations continue at this point.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #656054]: 2 dimensional virtual slider

2017-08-16 Thread tyag
Question #656054 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/656054

Status: Needs information => Open

tyag gave more information on the question:
To clarify: You have to click the buttons with the arrows to move the
target, not the keyboard keys up / down / left / right ?

-Yes

How much does the target marker move if you press the up / down / left /
right buttons (in terms of fractions of the crosshair box)?

-There are two options (large steps and small steps that can be toggled
with another button) and it always moves it by a fixed amount for each
click of any of the arrow buttons. The movement distance is consistent
and by the same value each time.

Is the amount of movement dependent on the duration of pressing these
arrow buttons, or do long and short button presses move the same amount?

-yes.. if u keep the button pressed it moves continuously until u
release.

Once you have brought the marker to the center vertically and then focus
on horizontal alignment, will it stay centered vertically, or will the
movement in the second direction disturb (a bit) the other direction,
such that you have to go back to alignment of the other direction again?

-each movement is independent and does not disturb the other

Is there a limit how far off the center the final position is allowed,
or has it to be 0 in any case?

- final position should be zero

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #656054]: 2 dimensional virtual slider

2017-08-16 Thread tyag
Question #656054 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/656054

Status: Needs information => Open

tyag gave more information on the question:
Link to crosshair pic..

https://ibb.co/nvUy9v

The marker is just a black circle (filled in black color)will try to
send a link to that too later.

The crosshair will be in the same position on the screen always
(although technically it is the camera which has the crosshair that
actually moves to the targeted marker when you click the arrow icons)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #656054]: 2 dimensional virtual slider

2017-08-16 Thread tyag
Question #656054 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/656054

tyag posted a new comment:
Link to crosshair pic..

https://ibb.co/nvUy9v

The marker is just a black circle (filled in black color)will try to
send a link to that too later.

The crosshair will be in the same position on the screen always
(although technically it is the camera which has the crosshair that
actually moves to the targeted marker when you click the arrow icons)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #656054]: 2 dimensional virtual slider

2017-08-16 Thread tyag
Question #656054 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/656054

Status: Answered => Open

tyag is still having a problem:
Thanks ... I did consider the above steps but ran into the same issue
you have mentioned...what if the initial marker position was touching
one or both crosshairs...the marker would not be recognized as it
wouldn't be distinct from the crosshair.

And if we did take into account the above, I am not sure how much time
it would take to complete move, check, move again iterations.

I am new to sikuliwas wondering if this is a feasible approach:

0. Find out by actual testing beforehand how many pixels a single push of each 
of the arrows moves the crosshair by.
1. If there is a way to find the coordinates of the 'center-point' of each of 
the reference images (crosshair and the marker) find the delta x and delta y 
(pixels) vector needed to move the marker to the crosshair(only one crosshair 
exists)
2. Multiply the result of step 0 with the delta x and delta y vectors to 
determine how many button pushes (and of which button - arrow) are needed to 
move the crosshair to coincide with the Centre point of the marker.

If Feasible can someone help me with the code for step 1 above..

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #656054]: 2 dimensional virtual slider

2017-08-15 Thread tyag
New question #656054 on Sikuli:
https://answers.launchpad.net/sikuli/+question/656054

I am trying to automate calibration of the position of a rectangular printed 
circuit board. I have two markers on the board and a calibrating camera (with 
cross hairs) that automatically positions itself very close to each of these 
markers in turn.

A software projects the camera output to screen and provides buttons that allow 
the fine movement of the camera in 2 dimensions (up/down/left/right) with 
respective arrow icons.

The plan is to use sikuli to automate the calibration process ..i.e. Make 
sikuli 
1...recognize that the 'marker' is not at the Centre of the crosshairs
2...recognize if it is to the left or right of the vertical crosshair and use 
the left/right arrows to bring it to vertical '0'
3...recognize if it is above or below the horizontal crosshair  and use the 
up/down arrows to bring it to horizontal '0'
4...hit the save/set button

I have reviewed your example of how you can move the slider to adjust volume, 
but this is in 1 dimension. I was wondering if there is a way to achieve the 
above more complex activity in sikuli..

Would be awesome if we could do this...and it may just be the first of its kind 
of use of sikuli in a real brick-and-mortar manufacturing environment .

I can send pictures of the actual software, but don't see an option for 
attachments.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp