Re: Read info from webcam video [message #181852 is a reply to message #181850] |
Thu, 20 June 2013 13:14 |
Jerry Stuckle
Messages: 2598 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 6/20/2013 5:35 AM, dandi(dot)box(at)gmail(dot)com wrote:
> I've a video Wi-Fi Cam.
>
> In the room there is a small light that can be flashing.
>
> Is there a way for read image using PHP pages and know is this light is flashing or not?
>
> Thanks
>
As Peter said, not easily. If this is an IP camera, you could connect
to the camera and read the stream. Depending on the format of the
stream (i.e is it H.264?), you may have to decode it. Then using the gd
functions, isolate the area containing the light and determine the
brightness of the pixels. Repeat for multiple frames and compare the
results.
As I said - not easy. It would be much easier to hook into whatever is
triggering the flashing light and sense that.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
|
|
|