borevitzlab / Gigavision

A modular system for acquiring images from cameras on a schedule
MIT License
2 stars 1 forks source link

Cannot set focus to Axis camera #13

Open chuong opened 9 years ago

chuong commented 9 years ago

Axis camera seemingly does not support reading and setting focus value (unlike Acti camera): This command http://192.168.1.114/axis-cgi/com/ptz.cgi?query=position returns something like: pan=88.9977 tilt=-2.9978 zoom=8000 autofocus=off autoiris=on Zoom can be set using this command http://192.168.1.114/axis-cgi/com/ptz.cgi?zoom=8000, but trying to set focus using this command http://192.168.1.114/axis-cgi/com/ptz.cgi?focus=100 returns error: Error: focus: unsupported

Although VAPIX® version 3 document seems to indicate focus can be set:

focus=<int> | 1 ... 9999 | Absolute: Move Focus n steps.
``
The document however does not provide any command that can read focus value (not focus mode).
xanpaco commented 9 years ago

try with "rfocus" (http://192.168.1.114/axis-cgi/com/ptz.cgi?rfocus=100) and check the value range (in my case the Min=3750 and Max=9999)

chuong commented 9 years ago

That command runs without error but how I can read current focus value? My focus min and max are also the same as that.

xanpaco commented 9 years ago

There is no documentation about it, I tried it without luck (same thing with the iris value).

Note: Maybe accessing via ssh to "/var" directory you can find a readable file with this value, but ssh can only be enabled in cameras with firmwares above 5.50.

In my case I have only one discontinued Q6034 (newest fw ver. 5.41.1.2) so this is not an option for me.

TimeScience commented 8 years ago

Hi Juan,

I just saw your comment... yes, I believe the answer we got from AXIS support was that the newer cameras support this but not the older ones.

ryanda2 commented 5 years ago

Try this... Auto Focus http://IPADDRESS/axis-cgi/opticssetup.cgi?autofocus=perform

Reset Focus http://IPADDRESS/axis-cgi/opticssetup.cgi?action=resetfocus