Adding variable text into picture
Question
I would like to add text into a picture from a file so that the text could change. For example: a temperature reading from a temp probe, a binary reading such as "Gate Open".
Ideally this could be read from a file on the PC as specified in the conf file.
Can this be done or is someone intersted in doing this?
Environment
Motion version: |
3.1.17 |
Libraries: |
curl, xmlrpc, ffmpeg, mysql, postgresql |
Server OS: |
Redhat9 |
--
GarethThomas - 20 Dec 2004
Answer
This is very easy to implement using a small script that send the needed xmlrpc command to change the text.
I use this when someone rotates my cameras. While the camera is rotating the text_left is change from "CAMERA 1" to "CAMERA 1 ROTATING" and then back when the rotating is over.
If you need to do it over time start the script via a cron job.
This is not a feature I would integrate into Motion. The remote control interface is made exactly for this type of job. We are currently changing from XMLRPC to HTTP but this feature will also be fully supported in 3.2 (http interface will enter in 3.2.1 probably 1-2 months from now as development allows.
--
KennethLavrsen - 20 Dec 2004