[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Video Overlay with PHP

Posted on 2009-02-24
4
Medium Priority
?
281 Views
Last Modified: 2012-05-06
I run a retail business and I am trying to deter theft by my employees.

I have a usb camera setup pointing towards each register.  The camera records and stores the video on the hard drive.

 My point of sale software is a php base software that was developed in house.  I would like to add a feature to my video where
when the employee scans an item, that item would show up on the video (as a video overlay) and the timed scanned would correspond with
the video. (Picture is attached for visual effect)

Does anyone have a clue where I would start?  Write the data to a port?  Not real sure where to go.

Any ideas would help

Thanks,

Jeremy



overlayimage.jpg
0
Comment
Question by:jmsloan
  • 2
3 Comments
 
LVL 6

Expert Comment

by:digital0iced0
ID: 23725747
Well, as you already know PHP itself can't handle this.  But, through PHP you can send commands to other programs.  So you could make a program in another language that receives command line input.  So in your php script you could do something like this:

<?php
//purchase processing code
exec('addoverlay.exe {$productname} {$price}');
?>

Good luck,

Alex
0
 
LVL 3

Author Comment

by:jmsloan
ID: 23726006
Perhaps I need to ask if there is an open source recording program that will except arguments and overlay them into the recording video?

Does this sound right?
0
 
LVL 6

Accepted Solution

by:
digital0iced0 earned 2000 total points
ID: 23729992
Yeah, that's what I'd do.  From the php side all you need to do is output the data.  You would need some overlay program to take it in as input, either through a text file, xml, command line arguments or something like that.  I'd say the most important thing would be finding the overlay program, from there it should not be too difficult in PHP to output the data in the correct format.  
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses
Course of the Month18 days, 14 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question