Re: Read info from webcam video [message #181881 is a reply to message #181852] |
Thu, 20 June 2013 23:08 |
Norman Peelman
Messages: 126 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 06/20/2013 09:14 AM, Jerry Stuckle wrote:
> 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.
>
I kinda thought that most IP type cameras offered this type of
operation onboard? I know my AXIS does...
--
Norman
Registered Linux user #461062
-Have you been to www.php.net yet?-
|
|
|