how to send coordinate to other program
Question
hello,
sry for my english
im writing a simple program controling 2 stepper motors via lpt. how can i send coordinates from motion to my own program?
Please put your console output, config file text, text from logs etc
between the two VERBATIM tags and not outside to ensure that you get
the text shown with line breaks.
Environment
Motion version: |
3.2.6 |
ffmpeg version: |
|
Libraries: |
ffmpeg, mysql, postgresql |
Server OS: |
|
--
LeoLaprdo - 26 Apr 2006
Answer
I'm not sure what do you need exactly ... but i guess that you want that motion sends you coordinates when motion is detected.
For that you need to use on_motion_detection event .
Here there's all the options :
http://www.lavrsen.dk/twiki/bin/view/Motion/ConversionSpecifiers
Mainly i think you will be interested in :
%K - X coordinate in pixels of the center point of motion. Origin is upper left corner.
%L - Y coordinate in pixels of the center point of motion. Origin is upper left corner and number is positive moving downwards (I may change this soon).
--
AngelCarpintero - 22 Nov 2006