imagingSettings.esp
36.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="../../css/frame.css" rel="stylesheet" />
<link href="../../scripts/easyui/themes/default/easyui.css" rel="stylesheet" />
<link href="../../scripts/easyui/themes/icon.css" rel="stylesheet" />
<link href="../../css/imaging.css" rel="stylesheet" />
<style type="text/css">
.tdTitle {
width: 130px;
}
#imagingSettingsForm {
height: 100%;
width: 100%;
}
.settingsContainer {
display: none;
}
#btnSave {
visibility: hidden;
}
</style>
</head>
<body>
<div class="easyui-layout" style="height: 510px;width:100%;">
<div data-options="region:'east',border:false" style="width:382px;padding:8px 8px 0 4px;">
<form id="imagingSettingsForm">
<div class="easyui-accordion" id="settingItems" data-options="fit:true,animate:false,selected:0,onSelect:selectSettingHandler">
<div title="曝光设置">
<table class="settingsContainer functionSelector">
<tr>
<td class="tdTitle">曝光模式</td>
<td class="tdContent">
<select id="exposureMode" name="64" class="settingParameter">
<option value="0">自动</option>
<option value="1">手动</option>
</select>
</td>
</tr>
</table>
<table class="setting_exposure_auto settingsContainer">
<tr>
<td class="tdTitle">最大曝光时间</td>
<td class="tdContent">
<input id="65" name="65" class="settingParameter" type="text" />
</td>
</tr>
<tr>
<td class="tdTitle">最大增益</td>
<td class="tdContent">
<input id="66" name="66" class="settingParameter" type="text" />
</td>
</tr>
<tr>
<td class="tdTitle">最优车牌亮度</td>
<td class="tdContent">
<input id="69" name="69" class="settingParameter" type="text" />
</td>
</tr>
<tr>
<td class="tdTitle">最优环境亮度</td>
<td class="tdContent">
<input id="70" name="70" class="settingParameter" type="text" />
</td>
</tr>
<tr>
<td class="tdTitle">车牌权重</td>
<td class="tdContent">
<input id="68" name="68" class="settingParameter" type="text" />
</td>
</tr>
<!-- <tr class="hiddenInKakouMode"> -->
<!-- <td class="tdTitle">触发帧最大曝光时间</td> -->
<!-- <td class="tdContent"> -->
<!-- <input id="16070" name="16070" class="settingParameter" type="text" /> -->
<!-- </td> -->
<!-- </tr> -->
<!-- <tr class="hiddenInKakouMode"> -->
<!-- <td class="tdTitle">触发帧最大增益</td> -->
<!-- <td class="tdContent"> -->
<!-- <input id="16071" name="16071" class="settingParameter" type="text" /> -->
<!-- </td> -->
<!-- </tr> -->
</table>
<table class="setting_exposure_manual settingsContainer">
<tr>
<td class="tdTitle">手动曝光时间</td>
<td class="tdContent">
<input id="71" name="71" class="settingParameter" type="text" />
</td>
</tr>
<tr>
<td class="tdTitle">手动增益</td>
<td class="tdContent">
<input id="72" name="72" class="settingParameter" type="text" />
</td>
</tr>
<!--<tr>
<td class="tdTitle">手动Gamma</td>
<td class="tdContent">
<input id="73" name="73" class="settingParameter" type="text" />
</td>
</tr>-->
<tr>
<td class="tdTitle">手动触发曝光时间</td>
<td class="tdContent">
<input id="16073" name="16073" class="settingParameter" type="text" />
</td>
</tr>
<tr>
<td class="tdTitle">手动触发增益</td>
<td class="tdContent">
<input id="16074" name="16074" class="settingParameter" type="text" />
</td>
</tr>
</table>
</div>
<div title="图像调节">
<table class="settingsContainer imageSettings imgSetting">
<tr>
<td class="leftCell">锐度</td>
<td class="leftTitle">0</td>
<td class="centerCell">
<input id="s_16060" name="16060" class="easyui-slider imgSettings" value="75" data-options="min:0,max:100,step:1,onChange:showChangedValue"
/>
</td>
<td class="rightTitle">100</td>
<td class="rightCell">
<input id="16060" class="txtImgSetting" value="75" type="text" />
</td>
</tr>
<tr>
<td class="leftCell">色度</td>
<td class="leftTitle">0</td>
<td class="centerCell">
<input id="s_61" name="61" class="easyui-slider imgSettings" value="50" data-options="min:0,max:100,step:1,onChange:showChangedValue"
/>
</td>
<td class="rightTitle">100</td>
<td class="rightCell">
<input id="61" class="txtImgSetting" value="50" type="text" />
</td>
</tr>
<tr>
<td class="leftCell">对比度</td>
<td class="leftTitle">0</td>
<td class="centerCell">
<input id="s_62" name="62" class="easyui-slider imgSettings" value="50" data-options="min:0,max:100,step:1,onChange:showChangedValue"
/>
</td>
<td class="rightTitle">100</td>
<td class="rightCell">
<input id="62" class="txtImgSetting" value="50" type="text" />
</td>
</tr>
<tr>
<td class="leftCell">饱和度</td>
<td class="leftTitle">0</td>
<td class="centerCell">
<input id="s_63" name="63" class="easyui-slider imgSettings" value="50" data-options="min:0,max:100,step:1,onChange:showChangedValue"
/>
</td>
<td class="rightTitle">100</td>
<td class="rightCell">
<input id="63" class="txtImgSetting" value="50" type="text" />
</td>
</tr>
</table>
</div>
<div title="图像压缩">
<table class="settingsContainer imgSetting">
<tr>
<td class="leftCell">
<label class="needRebootHint" title="修改后需重启生效">JPEG压缩比</label>
</td>
<td class="leftTitle">1</td>
<td class="centerCell">
<input id="s_16061" name="16061" class="easyui-slider imgSettings needReboot" value="60" data-options="min:1,max:80,step:1,onChange:showChangedValue"
/>
</td>
<td class="rightTitle">80</td>
<td class="rightCell">
<input id="16061" class="txtImgSetting needReboot" value="60" type="text" />
</td>
</tr>
</table>
</div>
<!-- <div title="降噪设置">
<table class="settingsContainer">
<tr>
<td class="tdTitle"><label class="disabled" for="74">降噪模式</label></td>
<td class="tdContent">
<input id="74" name="74" class="settingParameter" disabled="disabled" type="text" />
</td>
</tr>
<tr>
<td class="tdTitle"><label class="disabled" for="75">降噪等级</label></td>
<td class="tdContent">
<input id="75" name="75" class="settingParameter" disabled="disabled" type="text" />
</td>
</tr>
</table>
</div>-->
<div title="白平衡设置">
<table class="settingsContainer">
<tr>
<td class="tdTitle">触发白平衡模式</td>
<td class="tdContent">
<select id="whiteBalance" name="76" class="settingParameter">
<option value="0">自动</option>
<!--<option value="1">手动</option>-->
<option value="1">白天自动夜间手动</option>
<!--<option value="3">白天手动夜间自动</option>-->
</select>
</td>
</tr>
</table>
<table class="setting_whiteBalance_manual">
<tr>
<td class="tdTitle">白天白平衡系数R</td>
<td class="tdContent">
<input name="77" id="77" class="settingParameter" type="text" />
</td>
</tr>
<tr>
<td class="tdTitle">白天白平衡系数B</td>
<td class="tdContent">
<input name="78" id="78" class="settingParameter" type="text" />
</td>
</tr>
<tr>
<td class="tdTitle">夜间白平衡系数R</td>
<td class="tdContent">
<input name="79" id="79" class="settingParameter" type="text" />
</td>
</tr>
<tr>
<td class="tdTitle">夜间白平衡系数B</td>
<td class="tdContent">
<input name="80" id="80" class="settingParameter" type="text" />
</td>
</tr>
</table>
<table class="setting_whiteBalance_night">
<tr>
<td class="tdTitle">夜间白平衡系数R</td>
<td class="tdContent">
<input name="81" id="81" class="settingParameter" type="text" />
</td>
</tr>
<tr>
<td class="tdTitle">夜间白平衡系数G</td>
<td class="tdContent">
<input name="82" id="82" class="settingParameter" type="text" />
</td>
</tr>
<tr>
<td class="tdTitle">夜间白平衡系数B</td>
<td class="tdContent">
<input name="83" id="83" class="settingParameter" type="text" />
</td>
</tr>
</table>
</div>
<div title="频闪灯">
<table class="settingsContainer">
<tr>
<td class="tdTitle">
<label>频闪灯</label>
</td>
<td class="tdContent">
<select id="88" name="88" class="settingParameter ">
<option value="0">不启用</option>
<option value="1">一直启用</option>
<option value="2">按亮度启用</option>
<option value="3">按时间启用</option>
</select>
</td>
</tr>
<tr>
<td class="tdTitle">
<label>频闪灯脉宽</label>
</td>
<td class="tdContent">
<input id="89" name="89" class="settingParameter " type="text" />
</td>
</tr>
<tr>
<td class="tdTitle">
<label>频闪灯相位</label>
</td>
<td class="tdContent">
<input id="90" name="90" class="settingParameter " type="text" />
</td>
</tr>
<tr>
<td class="tdTitle">
<label>频闪灯极性</label>
</td>
<td class="tdContent">
<select id="91" name="91" class="settingParameter ">
<option value="0">高电平</option>
<option value="1">低电平</option>
</select>
</td>
</tr>
<tr class="strobe_lignt_value">
<td class="tdTitle">
<label>频闪灯亮度阈值</label>
</td>
<td class="tdContent">
<input id="92" name="92" class="settingParameter " type="text" />
</td>
</tr>
<tr class="strobe_light_time">
<td class="tdTitle">
<label>频闪灯开启时间</label>
</td>
<td class="tdContent">
<input id="93" name="93" class="settingParameter timePicker " type="text" onclick="WdatePicker({ dateFmt: 'HH:mm', maxDate: '#F{$dp.$D(\'94\')||\'23:59:59\'}' })"
/>
</td>
</tr>
<tr class="strobe_light_time">
<td class="tdTitle">
<label>频闪灯关闭时间</label>
</td>
<td class="tdContent">
<input id="94" name="94" class="settingParameter timePicker " type="text" onclick="WdatePicker({ dateFmt: 'HH:mm', minDate: '#F{$dp.$D(\'93\')||\'00:00:00\'}' })"
/>
</td>
</tr>
</table>
</div>
<div title="偏振镜">
<table class="settingsContainer">
<tr>
<td class="tdTitle">偏振镜</td>
<td class="tdContent">
<select id="101" name="101" class="settingParameter">
<option value="0">不启用</option>
<option value="1">一直启用</option>
<option value="2">按亮度启用</option>
<option value="3">按时间启用</option>
</select>
</td>
</tr>
<tr class="polarizer_shutter">
<td class="tdTitle">偏振镜开启阈值</td>
<td class="tdContent">
<input id="104" name="104" class="settingParameter" type="text" />
</td>
</tr>
<tr class="polarizer_time">
<td class="tdTitle">偏振镜开启时间</td>
<td class="tdContent">
<input id="105" name="105" class="settingParameter timePicker" type="text" onclick="WdatePicker({ dateFmt: 'HH:mm', maxDate: '#F{$dp.$D(\'106\')||\'23:59:59\'}' })"
/>
</td>
</tr>
<tr class="polarizer_time">
<td class="tdTitle">偏振镜关闭时间</td>
<td class="tdContent">
<input id="106" name="106" class="settingParameter timePicker" type="text" onclick="WdatePicker({ dateFmt: 'HH:mm', minDate: '#F{$dp.$D(\'105\')||\'00:00:00\'}' })"
/>
</td>
</tr>
</table>
</div>
<div title="闪光灯" id="itemFlashlight">
<table class="settingsContainer">
<tr>
<td class="tdTitle">控制模式</td>
<td class="tdContent">
<select class="settingElement" name="100101" id="100101">
<option value="0">气体闪光灯+频爆灯 2+2</option>
<option value="1">气体闪光灯+频爆灯 3+1</option>
<option value="2">气体闪光灯</option>
<!-- <option value="3">频爆闪光灯</option>-->
</select>
</td>
</tr>
<!--<tr>
<td class="tdTitle">闪光灯脉宽</td>
<td class="tdContent">
<input id="96" name="96" class="settingParameter" type="text" />
</td>
</tr>
<tr>
<td class="tdTitle">闪光灯极性</td>
<td class="tdContent">
<select id="97" name="97" class="settingParameter">
<option value="0">高电平</option>
<option value="1">低电平</option>
</select>
</td>
</tr>-->
<tr>
<td class="tdTitle">
<input type="checkbox" class="checkboxAlign" name="450" id="450" />白天开灯
</td>
<td class="tdContent">
<input type="checkbox" class="checkboxAlign" name="451" id="451" />夜间开灯
</td>
</tr>
</table>
</div>
</div>
<% inputSecurityToken(); %>
</form>
</div>
<div data-options="region:'center',border:false" style="overflow: hidden;">
<div id="ocxContainer" style="height:100%;width:100%"></div>
</div>
<div data-options="region:'south',border:false" style="height: 37px;padding:8px;">
<a class="settingBtn" id="btnSave">保存</a>
</div>
</div>
<script src="../../scripts/jquery-1.11.1.js"></script>
<script src="../../scripts/easyui/jquery.easyui.min.js"></script>
<script src="../../scripts/easyui/locale/easyui-lang-zh_CN.js"></script>
<script src="../../scripts/utilities.js"></script>
<script src="../../scripts/My97DatePicker/WdatePicker.js"></script>
<script src="../../scripts/jquery.validate.min.js"></script>
<script src="../../scripts/jquery.validate.extend.js"></script>
<script type="text/javascript">
var ocxController;
//参数加载适配器
var parameterAdaptor = new ParameterAdaptor();
var reloadCount = 0;
$.parser.onComplete = function () {
showPageComponent();
initOcxObj();
}
$().ready(function () {
/*************************************************************************************************************/
//曝光模式更改
$("#exposureMode").change(exposureModeChange);
//白平衡设置
$("#whiteBalance").change(whiteBalanceChange);
//频闪灯
$("#88").change(strobeLampChange);
//偏振镜
$("#101").change(polariscopeChange);
/*************************************************************************************************************/
//亮度设置的4个slider的值
$(".txtImgSetting").keyup(changeSliderValue);
//保存按钮方法
$("#btnSave").click(saveParametersToServer);
//加载参数
setTimeout(loadImagingSettings, 200);
//setTimeout(loadAttributeInfo, 200);
//TODO: IE8的疑似Bug,javascript:伪协议会导致解发onbeforeunload事件,在此页面中是slider的点击拖动
//IE11上没有发现该问题
//window.onbeforeunload = ocxController.uninit;
//验证
var r = {
65: {
range: [50, 30000]
},
66: {
range: [0, 36]
},
67: {
range: [0, 36]
},
68: {
range: [0.000000, 0.850000]
},
69: {
range: [0.000000, 140.000000]
},
70: {
range: [0.000000, 140.000000]
},
71: {
range: [10, 30000]
},
72: {
range: [0, 36]
},
73: {
range: [0, 1]
},
86: {
range: [0, 19999]
},
89: {
range: [1, 9999]
},
90: {
range: [1, 9999]
},
104: {
range: [0, 100]
}
};
r[74] = r[75] = r[77] = r[78] = r[79] = r[80] = r[84] = r[87]
= r[92] = r[96] = r[98] = { range: [0, 100], validMinusZero: true };
r[81] = r[82] = r[83] = { range: [1, 7] };
r[102] = r[103] = { range: [0, 160] };
r[16070] = r[16073] = { range: [0, 30000], validMinusZero: true };
r[16071] = r[16074] = { range: [0, 36], validMinusZero: true };
$("#imagingSettingsForm").validate({
rules: r
});
});
// 初始化Ocx组件
function initOcxObj() {
ocxController = new NvrOcxController(videoOcxObject);
setTimeout(function () {
try {
//获取当前url中ip
var ip = window.location.hostname;
ocxController.init('');
var videoUrl = "rtsp://" + ip + ":8557/h264";
var channel = 1;
ocxController.playVideo(videoUrl, 1, "", ip, 1);
} catch (err) {
//alert(err.name + " : " + err.message);
//$.messager.alert("提示",err.name + ":" + err.message,"info");
$.messager.show({
title: '提示',
msg: err.name + ":" + err.message,
timeout: 3000,
showType: 'slide'
});
}
}, 500);
try {
//设置Ocx工作模式
setOcxMode();
} catch (e) {
//$.messager.alert("提示","加载ocx出现问题,问题原因:"+e.message,"info");
$.messager.show({
title: '提示',
msg: "加载ocx出现问题,问题原因:" + e.message,
timeout: 3000,
showType: 'slide'
});
}
}
// 显示页面控件
function showPageComponent() {
$(".settingsContainer").show();
$("<object id='videoOcxObject' classid='clsid:6DB8BA69-B5F2-47CF-9F5D-A8019A758F83' style='height: 100%;width: 100%;'></object>")
.appendTo("#ocxContainer");
$("#btnSave").css("visibility", "visible");
}
//设置Ocx模式
function setOcxMode() {
//关闭时间及红绿灯信息
ocxController.setShowTime(0, 0, 0, 0, 0, 0);
ocxController.setRedLightState(-1, -1, -1);
//设置OCX的卡口模式
var mode = window.parent.appModel.getSetting("captureMode");
if (mode) {
updateUIByCaptureMode(mode);
} else {
// 获取相机运行模式
getCameraBusinessMode(function (mode) {
if (mode) {
window.parent.appModel.setSetting("captureMode", mode);
updateUIByCaptureMode(mode);
} else {
//如果获取相机状态不成功,最多试10次,间隔1秒
if (reloadCount < 10) {
setTimeout(setOcxMode, 1000);
}
}
});
}
}
function updateUIByCaptureMode(mode) {
if (mode == "2") {
ocxController.setKakouMode(true);
} else if (mode == "0") {
//电警模式
var settingsContainer = $("#settingItems");
settingsContainer.accordion("remove", "闪光灯");
settingsContainer.accordion("remove", "白平衡设置");
//隐藏
$(".hiddenInKakouMode").hide();
}
}
//获取每个参数的属性信息
function loadAttributeInfo() {
var RefererInfo = "imagingSettings";
parameterAdaptor.getAttribute(RefererInfo, function (data) {
for (var pId in data) {
if (document.getElementById(pId) != null)
document.getElementById(pId).setAttribute("title", data[pId]);
}
});
}
//加载成像设置信息
function loadImagingSettings() {
var refererInfo = "imagingSettings";
parameterAdaptor.getParameters(refererInfo, function (data) {
$("#imagingSettingsForm").form("load", data.feedback);
/*****************************************************************************************/
//曝光模式更改
exposureModeChange();
//白平衡设置
whiteBalanceChange();
//频闪灯
strobeLampChange();
//偏振镜
polariscopeChange();
/*****************************************************************************************/
});
}
//选择设置项
function selectSettingHandler(title, index) {
if (index == 1 || index == 2) {
$(".imgSetting").find(".txtImgSetting").trigger("keyup");
}
}
//显示已更改的值
function showChangedValue(newValue, oldValue) {
var id = $(this).attr("id").split("_")[1];
$("#" + id).val(newValue);
}
//当改变后面文本框的值后修改Slider的值
function changeSliderValue(event) {
var value = event.currentTarget.value;
if (!/^\d+$/.test(value)) {
$(event.currentTarget).val(value.substring(0, value.length - 1));
return false;
}
var isOutRange = false;
if (value < 0) {
value = 0;
isOutRange = true;
} else if (value > 100) {
value = 100;
isOutRange = true;
}
if (isOutRange) {
$(event.currentTarget).val(value);
}
var id = event.currentTarget.id;
$("#s_" + id).slider("setValue", value);
return true;
}
//提交参数到服务器保存
function saveParametersToServer() {
var formObj = $("#imagingSettingsForm");
if (!formObj.valid()) {
$.messager.show({
title: '提示',
msg: '参数验证有误,请修改后再提交!',
timeout: 3000,
showType: 'slide'
});
return;
}
parameterAdaptor.saveParameters(formObj);
}
/*****************************************************************************************/
//曝光模式更改
function exposureModeChange() {
var content = $("#exposureMode").find("option:selected").text();
if (content == "自动") {
$(".setting_exposure_auto").show();
$(".setting_exposure_manual").hide();
} else {
$(".setting_exposure_auto").hide();
$(".setting_exposure_manual").show();
}
}
//白平衡设置
function whiteBalanceChange() {
var selectValue = $("#whiteBalance").find("option:selected").val();
if (selectValue == "0") {
$(".setting_whiteBalance_manual").hide();
$(".setting_whiteBalance_day").hide();
$(".setting_whiteBalance_night").hide();
} else if (selectValue == "") {
$(".setting_whiteBalance_manual").show();
$(".setting_whiteBalance_day").hide();
$(".setting_whiteBalance_night").hide();
} else if (selectValue == "1") {
$(".setting_whiteBalance_manual").hide();
$(".setting_whiteBalance_day").hide();
$(".setting_whiteBalance_night").show();
} else {
$(".setting_whiteBalance_manual").hide();
$(".setting_whiteBalance_day").show();
$(".setting_whiteBalance_night").hide();
}
}
//频闪灯
function strobeLampChange() {
var selectedValue = $("#88").find("option:selected").val();
if (selectedValue == "2") {
$(".strobe_light_time").hide();
$(".strobe_lignt_value").show();
} else if (selectedValue == "3") {
$(".strobe_light_time").show();
$(".strobe_lignt_value").hide();
} else {
$(".strobe_light_time").hide();
$(".strobe_lignt_value").hide();
}
}
//偏振镜
function polariscopeChange() {
var selectedValue = $("#101").find("option:selected").val();
if (selectedValue == "2") {
$(".polarizer_shutter").show();
$(".polarizer_time").hide();
} else if (selectedValue == "3") {
$(".polarizer_shutter").hide();
$(".polarizer_time").show();
} else {
$(".polarizer_shutter").hide();
$(".polarizer_time").hide();
}
}
//下载图片
function getCapturePic() {
var url = "/do/trafficController/capturePicture?t=" + new Date().getTime();
//captureWin = window.open(url);
downloadByIframe(url);
}
function getFlashingCapturePic() {
var url = "/do/trafficController/captureTrgPicture?t=" + new Date().getTime();
downloadByIframe(url);
}
//显示Ocx
function showOcxObj() {
$("#videoOcxObject").show();
}
//隐藏Ocx
function hideOcxObj() {
$("#videoOcxObject").hide();
}
</script>
<script type="text/javascript" for="videoOcxObject" event="SnapShotEvent(param)">
getCapturePic();
</script>
<script type="text/javascript" for="videoOcxObject" event="FlashLightEvent(param)">
getFlashingCapturePic();
</script>
</body>
</html>