Difference between revisions of "PHP Examples"
(8 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | This page list several | + | This page list several PHP examples demonstrating Elphel camera capabilities. |
All this examples are accessible on the camera's web server in the root directory, http://192.168.0.9/ if you have not changed the default address. | All this examples are accessible on the camera's web server in the root directory, http://192.168.0.9/ if you have not changed the default address. | ||
+ | |||
+ | If you would like to modify those scripts or create your own, you can find some advices on [[PHP_in_Elphel_cameras#How_to_use_PHP_in_the_camera|how to use PHP in the camera]] page. | ||
+ | |||
+ | We recommend the use of [[KDevelop]] if you are not a VI/Emacs guru. | ||
=Set sensor parameters and get an image= | =Set sensor parameters and get an image= | ||
+ | ==[[Parsedit.php]]== | ||
+ | [[parsedit.php]] is designed to provide access to the camera acquisition related parameters through the web browser. It is easy to create customized parameter view/edit form with specially configured URL. | ||
+ | |||
==Configure the sensor and get a JPEG/JP4 image== | ==Configure the sensor and get a JPEG/JP4 image== | ||
[http://elphel.cvs.sourceforge.net/elphel/elphel353-7.1/packages/web/353/php_top/camera_demo.php?view=markup camera_demo.php] - This script is an example of how to reset / set sensor parameters and access download an image from the camera, this script can be accessed by a browser or automated with wget / curl running on the camera or on a remote PC. | [http://elphel.cvs.sourceforge.net/elphel/elphel353-7.1/packages/web/353/php_top/camera_demo.php?view=markup camera_demo.php] - This script is an example of how to reset / set sensor parameters and access download an image from the camera, this script can be accessed by a browser or automated with wget / curl running on the camera or on a remote PC. | ||
− | ==Get RAW image== | + | ==Get full sensor size snapshot while streaming a ROI== |
+ | [http://elphel.cvs.sourceforge.net/viewvc/elphel/elphel353-8.0/packages/web/353/php_top/snapfull.php?view=markup snapfull.php] - This script get a full sensor size snapshot while the camera is streaming a ROI. | ||
+ | |||
+ | ==Adjust white balance== | ||
+ | [http://elphel.cvs.sourceforge.net/elphel/elphel353-7.1/packages/web/353/php_top/whitebalance.php?view=markup whitebalance.php] - Demo script to automatically adjust white balance. | ||
+ | |||
+ | ==Get [[RawImage| RAW image]]== | ||
[http://elphel.cvs.sourceforge.net/elphel/elphel353-7.1/packages/web/353/php_top/raw.php?view=markup raw.php] - Run the compressor, acquire single frame and download an image.raw file. | [http://elphel.cvs.sourceforge.net/elphel/elphel353-7.1/packages/web/353/php_top/raw.php?view=markup raw.php] - Run the compressor, acquire single frame and download an image.raw file. | ||
Line 13: | Line 26: | ||
==KML demo== | ==KML demo== | ||
[http://elphel.cvs.sourceforge.net/elphel/elphel353-7.1/packages/web/353/php_top/kml.php?view=markup kml.php] - Example of KML live generation on the geotagged model of NC353L. Open this URL in Google Earth and you will see your position updated. | [http://elphel.cvs.sourceforge.net/elphel/elphel353-7.1/packages/web/353/php_top/kml.php?view=markup kml.php] - Example of KML live generation on the geotagged model of NC353L. Open this URL in Google Earth and you will see your position updated. | ||
+ | |||
+ | =Utilites= | ||
+ | ==Shell== | ||
+ | [[Phpshell|PHP Shell]]: [http://192.168.0.9/phpshell.php http://192.168.0.9/phpshell.php] | ||
+ | |||
+ | ==Focus helper== | ||
+ | [[Focus helper|Focus helper]]: [http://192.168.0.9/focus.php http://192.168.0.9/focus.php] | ||
+ | |||
+ | Controls page: [http://192.168.0.9/focus.html http://192.168.0.9/focus.html] | ||
+ | |||
+ | By setting the table of weights the higher/lower frequencies (edges) can be filtered. | ||
+ | |||
+ | [[Category:353]] |
Latest revision as of 16:32, 30 May 2016
This page list several PHP examples demonstrating Elphel camera capabilities.
All this examples are accessible on the camera's web server in the root directory, http://192.168.0.9/ if you have not changed the default address.
If you would like to modify those scripts or create your own, you can find some advices on how to use PHP in the camera page.
We recommend the use of KDevelop if you are not a VI/Emacs guru.
Contents
Set sensor parameters and get an image
Parsedit.php
parsedit.php is designed to provide access to the camera acquisition related parameters through the web browser. It is easy to create customized parameter view/edit form with specially configured URL.
Configure the sensor and get a JPEG/JP4 image
camera_demo.php - This script is an example of how to reset / set sensor parameters and access download an image from the camera, this script can be accessed by a browser or automated with wget / curl running on the camera or on a remote PC.
Get full sensor size snapshot while streaming a ROI
snapfull.php - This script get a full sensor size snapshot while the camera is streaming a ROI.
Adjust white balance
whitebalance.php - Demo script to automatically adjust white balance.
Get RAW image
raw.php - Run the compressor, acquire single frame and download an image.raw file.
GEO tagging
KML demo
kml.php - Example of KML live generation on the geotagged model of NC353L. Open this URL in Google Earth and you will see your position updated.
Utilites
Shell
PHP Shell: http://192.168.0.9/phpshell.php
Focus helper
Focus helper: http://192.168.0.9/focus.php
Controls page: http://192.168.0.9/focus.html
By setting the table of weights the higher/lower frequencies (edges) can be filtered.