capture

Trying to capture display output for real-time analysis with OpenCV; I need help with interfacing with the OS for input

Hi, I want to apply operations from the OpenCV computer vision library, in real time, to video captured from my computer display. The idea in this particular case is to detect interesting features during gameplay in a popular game and provide the user with an enhanced experience; but I could think of several other scenarios where one wo...

How do I capture the result of an echo() into a variable in PHP?

I'm using a PHP library that echoes a result rather than returns it. Is there an easy way to capture the output from echo/print and store it in a variable? (Other text has already been output, and output buffering is not being used.) ...