1、操作遥控器按钮,psdk进程通过socket发送命令给相机进程 来控制高光谱采集系统;

2、通过FFmpeg采集摄像头视频流并编码为h264,利用psdk推流到遥控器;
This commit is contained in:
tangchao0503
2022-06-22 16:48:50 +08:00
commit 109e0a8f2b
89 changed files with 17079 additions and 0 deletions

View File

@ -0,0 +1,119 @@
{
"version": {
"major" : 1,
"minor" : 0
},
"main_interface": {
"floating_window": {
"is_enable": true
},
"widget_list": [
{
"widget_index": 0,
"widget_type": "button",
"widget_name": "按钮_1",
"icon_file_set": {
"icon_file_name_selected" : "icon_button1.png",
"icon_file_name_unselected" : "icon_button1.png"
}
},
{
"widget_index": 1,
"widget_type": "button",
"widget_name": "按钮_2",
"icon_file_set": {
"icon_file_name_selected" : "icon_button2.png",
"icon_file_name_unselected" : "icon_button2.png"
}
},
{
"widget_index": 2,
"widget_type": "list",
"widget_name": "列表_3",
"list_item": [
{
"item_name": "系统关闭",
"icon_file_set": {
"icon_file_name_selected": "icon_list_item1.png",
"icon_file_name_unselected": "icon_list_item1.png"
}
},
{
"item_name": "系统启动",
"icon_file_set": {
"icon_file_name_selected" : "icon_list_item2.png",
"icon_file_name_unselected" : "icon_list_item2.png"
}
}
]
},
{
"widget_index": 3,
"widget_type": "switch",
"widget_name": "开关_4",
"icon_file_set": {
"icon_file_name_selected": "icon_switch_select.png",
"icon_file_name_unselected": "icon_switch_unselect.png"
}
},
{
"widget_index": 4,
"widget_type": "scale",
"widget_name": "范围条_5",
"icon_file_set": {
"icon_file_name_selected": "icon_scale.png",
"icon_file_name_unselected": "icon_scale.png"
}
}
]
},
"config_interface": {
"text_input_box": {
"widget_name": "请输入命令",
"placeholder_text": "请输入消息",
"is_enable": true
},
"widget_list": [
{
"widget_index": 5,
"widget_type": "button",
"widget_name": "自动曝光"
},
{
"widget_index": 6,
"widget_type": "scale",
"widget_name": "帧率"
},
{
"widget_index": 7,
"widget_type": "int_input_box",
"widget_name": "整形值输入框_8",
"int_input_box_hint": "unit:s"
},
{
"widget_index": 8,
"widget_type": "switch",
"widget_name": "开始采集"
},
{
"widget_index": 9,
"widget_type": "list",
"widget_name": "列表_10",
"list_item": [
{
"item_name": "等待指令"
},
{
"item_name": "拷贝数据"
},
{
"item_name": "重启电脑"
},
{
"item_name": "关机"
}
]
}
]
}
}

View File

@ -0,0 +1,119 @@
{
"version": {
"major" : 1,
"minor" : 0
},
"main_interface": {
"floating_window": {
"is_enable": true
},
"widget_list": [
{
"widget_index": 0,
"widget_type": "button",
"widget_name": "Button_1",
"icon_file_set": {
"icon_file_name_selected" : "icon_button1.png",
"icon_file_name_unselected" : "icon_button1.png"
}
},
{
"widget_index": 1,
"widget_type": "button",
"widget_name": "Button_2",
"icon_file_set": {
"icon_file_name_selected" : "icon_button2.png",
"icon_file_name_unselected" : "icon_button2.png"
}
},
{
"widget_index": 2,
"widget_type": "list",
"widget_name": "List_3",
"list_item": [
{
"item_name": "Item_1",
"icon_file_set": {
"icon_file_name_selected": "icon_list_item1.png",
"icon_file_name_unselected": "icon_list_item1.png"
}
},
{
"item_name": "Item_2",
"icon_file_set": {
"icon_file_name_selected" : "icon_list_item2.png",
"icon_file_name_unselected" : "icon_list_item2.png"
}
}
]
},
{
"widget_index": 3,
"widget_type": "switch",
"widget_name": "Switch_4",
"icon_file_set": {
"icon_file_name_selected": "icon_switch_select.png",
"icon_file_name_unselected": "icon_switch_unselect.png"
}
},
{
"widget_index": 4,
"widget_type": "scale",
"widget_name": "Scale_5",
"icon_file_set": {
"icon_file_name_selected": "icon_scale.png",
"icon_file_name_unselected": "icon_scale.png"
}
}
]
},
"config_interface": {
"text_input_box": {
"widget_name": "TextInputBox",
"placeholder_text": "Please input message",
"is_enable": true
},
"widget_list": [
{
"widget_index": 5,
"widget_type": "button",
"widget_name": "Button_6"
},
{
"widget_index": 6,
"widget_type": "scale",
"widget_name": "Scale_7"
},
{
"widget_index": 7,
"widget_type": "int_input_box",
"widget_name": "IntegerInputBox_8",
"int_input_box_hint": "unit:s"
},
{
"widget_index": 8,
"widget_type": "switch",
"widget_name": "Switch_9"
},
{
"widget_index": 9,
"widget_type": "list",
"widget_name": "List_10",
"list_item": [
{
"item_name": "Item 1"
},
{
"item_name": "Item 2"
},
{
"item_name": "Item 3"
},
{
"item_name": "Item 4"
}
]
}
]
}
}