Commit baee1504 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

+ environmental conditions presets

parent 20a1eb16
...@@ -169,7 +169,7 @@ ...@@ -169,7 +169,7 @@
<!--Maximum autoexposure--> <!--Maximum autoexposure-->
<tr> <tr>
<td><div class="fixed_height" >AutoExp max, <span style="font-size:0.7em">ms</span></div></td> <td><div class="fixed_height" >AutoExp max, <span style="font-size:0.7em">ms</span></div></td>
<td><div class="fixed_height" ><input type="text" id="input_autoexp_max" style="width:80px;" value="1" class="settings_pars"></div></td> <td><div class="fixed_height" ><input type="text" id="input_autoexp_max" style="width:80px;" value="2" class="settings_pars"></div></td>
<td align="center"><input type="checkbox" id="chk_autoexp_max" class="apply_checkboxes"></td> <td align="center"><input type="checkbox" id="chk_autoexp_max" class="apply_checkboxes"></td>
</tr> </tr>
<!--Autoexposure level--> <!--Autoexposure level-->
...@@ -202,8 +202,17 @@ ...@@ -202,8 +202,17 @@
</tr> </tr>
</table> </table>
<br/> <br/>
<div>
<div>Environment conditions:</div>
<div id="env_radio">
<input type="radio" id="env_radio1" name="env_radio" onclick="set_environment('sunny')" checked="checked" /><label for="env_radio1">sunny</label>
<input type="radio" id="env_radio2" name="env_radio" onclick="set_environment('cloudy')" /><label for="env_radio2">cloudy</label>
<!--<input type="radio" id="env_radio3" name="env_radio" onclick="set_environment('fluorescent')" /><label for="env_radio3">fluorescent</label>-->
</div>
</div>
<br/>
<div> <div>
<div>AutoExp window</div> <div>AutoExp window:</div>
<div id="ae_radio"> <div id="ae_radio">
<input type="radio" id="ae_radio1" name="ae_radio" onclick="set_ae_window('all')" checked="checked" /><label for="ae_radio1">all</label> <input type="radio" id="ae_radio1" name="ae_radio" onclick="set_ae_window('all')" checked="checked" /><label for="ae_radio1">all</label>
<input type="radio" id="ae_radio2" name="ae_radio" onclick="set_ae_window('center top')" /><label for="ae_radio2">center top</label> <input type="radio" id="ae_radio2" name="ae_radio" onclick="set_ae_window('center top')" /><label for="ae_radio2">center top</label>
......
...@@ -32,7 +32,7 @@ input{ ...@@ -32,7 +32,7 @@ input{
#settings { #settings {
width:850; width:850;
height:687; height:747;
background:rgba(180,180,180,0.95); background:rgba(180,180,180,0.95);
/*color: white;*/ /*color: white;*/
position:absolute; position:absolute;
...@@ -150,7 +150,7 @@ input{ ...@@ -150,7 +150,7 @@ input{
.tabs_contents{ .tabs_contents{
padding:10px; padding:10px;
width:840px; width:840px;
height:650px; height:710px;
background:rgba(230,230,230,0.95); background:rgba(230,230,230,0.95);
position:absolute; position:absolute;
top:32px; top:32px;
...@@ -209,7 +209,7 @@ input{ ...@@ -209,7 +209,7 @@ input{
-moz-border-radius: 9px; -moz-border-radius: 9px;
} }
#radio, #ae_radio { #radio, #ae_radio, #env_radio {
padding: 5px; padding: 5px;
font-size: 10px; font-size: 10px;
} }
......
...@@ -89,8 +89,8 @@ function tab1_init(mode){ ...@@ -89,8 +89,8 @@ function tab1_init(mode){
// TAB 2: begin // TAB 2: begin
function white_balance_sliders_init(){ function white_balance_sliders_init(){
$( "#env_radio" ).buttonset();
$( "#ae_radio" ).buttonset(); $( "#ae_radio" ).buttonset();
$( "#radio" ).buttonset(); $( "#radio" ).buttonset();
$( "#red" ).slider({ $( "#red" ).slider({
...@@ -168,6 +168,26 @@ function set_default_gains(light) { ...@@ -168,6 +168,26 @@ function set_default_gains(light) {
//set_gains(); //set_gains();
} }
function set_environment(mode){
if (mode=="sunny"){
$("#ae_radio1").click();
$("#radio1").click();
$("#input_autoexp_lvl").val(220);
$("#input_autoexp_fracpix").val(98);
}else if(mode=="cloudy"){
$("#ae_radio3").click();
$("#radio2").click();
$("#input_autoexp_lvl").val(180);
$("#input_autoexp_fracpix").val(90);
}
set_autoexp_level(false);
set_autoexp_fracpix(false);
}
function set_ae_window(mode){ function set_ae_window(mode){
if (mode=="all"){ if (mode=="all"){
set_parameter(master_ip,'HISTWND_RLEFT' ,65535,false); set_parameter(master_ip,'HISTWND_RLEFT' ,65535,false);
......
...@@ -8,8 +8,22 @@ function rename_image($path,$file,$index){ ...@@ -8,8 +8,22 @@ function rename_image($path,$file,$index){
$exif_data = exif_read_data("$path/$file"); $exif_data = exif_read_data("$path/$file");
//converting GMT a local time GMT+7 //converting GMT a local time GMT+7
$DateTimeOriginal_local=@strtotime($exif_data['DateTimeOriginal']);/*-25200;*/ $DateTimeOriginal_local=@strtotime($exif_data['DateTimeOriginal']);/*-25200;*/
$new_file_name = $DateTimeOriginal_local."_".$exif_data['SubSecTimeOriginal']."_$index.".$ext;
rename("$path/$file","$path/$new_file_name"); $tmp = explode("_",$exif_data['Model']);
if (count($tmp)==2){
$model = intval(trim($tmp[1]));
$chn = intval($exif_data['PageNumber'])+1;
if ($model==1001) {
$k=$chn;
}else if ($model==1002) {
$k=$chn+4;
}else if ($model==1003) {
$k=$chn+6;
}
$new_file_name = $DateTimeOriginal_local."_".$exif_data['SubSecTimeOriginal']."_$k.".$ext;
rename("$path/$file","$path/$new_file_name");
}
} }
?> ?>
\ No newline at end of file
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
<input_quality>98</input_quality> <input_quality>98</input_quality>
<input_trigger_period>200</input_trigger_period> <input_trigger_period>200</input_trigger_period>
<input_hdrvexpos>0x36000</input_hdrvexpos> <input_hdrvexpos>0x36000</input_hdrvexpos>
<input_autoexp_max>5</input_autoexp_max> <input_autoexp_max>2</input_autoexp_max>
<input_autoexp_lvl>200</input_autoexp_lvl> <input_autoexp_lvl>220</input_autoexp_lvl>
<input_autoexp_fracpix>90</input_autoexp_fracpix> <input_autoexp_fracpix>98</input_autoexp_fracpix>
<input_autoexp_frames_ahead>1</input_autoexp_frames_ahead> <input_autoexp_frames_ahead>1</input_autoexp_frames_ahead>
</Document> </Document>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<Document> <Document>
<master_ip>161</master_ip> <master_ip>163</master_ip>
<rec_mode>camogm</rec_mode> <rec_mode>camogm</rec_mode>
<footage_path>/data/footage</footage_path> <footage_path>/data/footage</footage_path>
<footage_subfolder>test</footage_subfolder> <footage_subfolder>test</footage_subfolder>
...@@ -10,11 +10,11 @@ ...@@ -10,11 +10,11 @@
<gpsimu_records_per_file>10000000</gpsimu_records_per_file> <gpsimu_records_per_file>10000000</gpsimu_records_per_file>
<box_force_jp4>checked</box_force_jp4> <box_force_jp4>checked</box_force_jp4>
<input_quality>98</input_quality> <input_quality>98</input_quality>
<input_trigger_period>1000</input_trigger_period> <input_trigger_period>200</input_trigger_period>
<input_skip_frames>0x1ff</input_skip_frames> <input_skip_frames>0x1ff</input_skip_frames>
<input_hdrvexpos>0x36000</input_hdrvexpos> <input_hdrvexpos>0x36000</input_hdrvexpos>
<input_autoexp_max>10</input_autoexp_max> <input_autoexp_max>2</input_autoexp_max>
<input_autoexp_lvl>200</input_autoexp_lvl> <input_autoexp_lvl>220</input_autoexp_lvl>
<input_autoexp_fracpix>90.0</input_autoexp_fracpix> <input_autoexp_fracpix>98.0</input_autoexp_fracpix>
<input_autoexp_frames_ahead>1</input_autoexp_frames_ahead> <input_autoexp_frames_ahead>1</input_autoexp_frames_ahead>
</Document> </Document>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment