Motion - Support Question 2006x 04x 26x 082823

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
Topic revision: r4 - 22 Nov 2006, AngelCarpintero
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.