Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
eyesis4pi-393-gui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
eyesis4pi-393-gui
Commits
baee1504
Commit
baee1504
authored
Dec 30, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+ environmental conditions presets
parent
20a1eb16
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
59 additions
and
16 deletions
+59
-16
index.html
index.html
+11
-2
index.css
js/index.css
+3
-3
tabs.js
js/tabs.js
+21
-1
rename.php
rename.php
+16
-2
settings.xml
settings.xml
+3
-3
settings_default.xml
settings_default.xml
+5
-5
No files found.
index.html
View file @
baee1504
...
@@ -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-->
...
@@ -203,7 +203,16 @@
...
@@ -203,7 +203,16 @@
</table>
</table>
<br/>
<br/>
<div>
<div>
<div>
AutoExp window
</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>
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>
...
...
js/index.css
View file @
baee1504
...
@@ -32,7 +32,7 @@ input{
...
@@ -32,7 +32,7 @@ input{
#settings
{
#settings
{
width
:
850
;
width
:
850
;
height
:
68
7
;
height
:
74
7
;
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
:
65
0px
;
height
:
71
0px
;
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
;
}
}
...
...
js/tabs.js
View file @
baee1504
...
@@ -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
);
...
...
rename.php
View file @
baee1504
...
@@ -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
;
$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
"
);
rename
(
"
$path
/
$file
"
,
"
$path
/
$new_file_name
"
);
}
}
}
?>
?>
\ No newline at end of file
settings.xml
View file @
baee1504
...
@@ -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>
2
0
0
</input_autoexp_lvl>
<input_autoexp_lvl>
2
2
0
</input_autoexp_lvl>
<input_autoexp_fracpix>
9
0
</input_autoexp_fracpix>
<input_autoexp_fracpix>
9
8
</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
settings_default.xml
View file @
baee1504
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<Document>
<Document>
<master_ip>
16
1
</master_ip>
<master_ip>
16
3
</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>
10
00
</input_trigger_period>
<input_trigger_period>
2
00
</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>
2
0
0
</input_autoexp_lvl>
<input_autoexp_lvl>
2
2
0
</input_autoexp_lvl>
<input_autoexp_fracpix>
9
0
.0
</input_autoexp_fracpix>
<input_autoexp_fracpix>
9
8
.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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment