Re: Read info from webcam video [message #181885 is a reply to message #181881] |
Thu, 20 June 2013 23:40 |
Jerry Stuckle
Messages: 2598 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 6/20/2013 7:08 PM, Norman Peelman wrote:
> 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...
>
It depends on the camera. Some do, some don't (more of the professional
ones like Axis do - consumer grade often do not). But then you also
need to know the command interface to the camera (which may or may not
be public).
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
|
|
|