node-red-node-rdk-camera
Version:
搭配RDK硬件使用摄像头的Node-RED节点(Node-RED node for using camera on a RDK hardware)
370 lines • 8.31 kB
JSON
[
{
"id": "9bc820cc16f1140a",
"type": "tab",
"label": "TakePhotoAndVideoStreamWithOneUSBCam",
"disabled": false,
"info": "",
"env": []
},
{
"id": "8388f9ede5c23c57",
"type": "comment",
"z": "9bc820cc16f1140a",
"name": "名称:拍照与视频流交替使用USB摄像头 版本:v0.0.1",
"info": "",
"x": 240,
"y": 40,
"wires": []
},
{
"id": "ee24e0015862534d",
"type": "inject",
"z": "9bc820cc16f1140a",
"name": "开启拍照关闭视频流",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 150,
"y": 180,
"wires": [
[
"80bac41507186414",
"e95b42938fb7967e"
]
]
},
{
"id": "4de8a06aa2567d7b",
"type": "inject",
"z": "9bc820cc16f1140a",
"name": "开启视频流关闭拍照",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 150,
"y": 260,
"wires": [
[
"504b7d0b52e0469a",
"5be9f29b55cdc309"
]
]
},
{
"id": "a74bc077413086fe",
"type": "rdk-camera takephoto",
"z": "9bc820cc16f1140a",
"cameratype": "1",
"filemode": "2",
"filename": "",
"filedefpath": "1",
"filepath": "",
"fileformat": "jpeg",
"resolution": "2",
"rotation": "0",
"fliph": "0",
"flipv": "0",
"brightness": "50",
"contrast": "0",
"sharpness": "0",
"quality": "80",
"imageeffect": "none",
"exposuremode": "auto",
"iso": "0",
"agcwait": "1.0",
"led": "0",
"awb": "auto",
"name": "",
"x": 530,
"y": 180,
"wires": [
[
"d8282dc5cc5bf2db"
]
]
},
{
"id": "de5f2aa0fe4aa0f1",
"type": "rdk-camera imagestream",
"z": "9bc820cc16f1140a",
"cameratype": "1",
"fps": "4",
"resolution": "2",
"defport": "1",
"port": "10888",
"name": "",
"x": 530,
"y": 260,
"wires": [
[
"632b362bb2438e83"
]
]
},
{
"id": "86d452e4d6c2d1aa",
"type": "change",
"z": "9bc820cc16f1140a",
"name": "开启",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "start",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 310,
"y": 120,
"wires": [
[
"a74bc077413086fe"
]
]
},
{
"id": "e95b42938fb7967e",
"type": "change",
"z": "9bc820cc16f1140a",
"name": "关闭",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "stop",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 330,
"y": 180,
"wires": [
[
"de5f2aa0fe4aa0f1"
]
]
},
{
"id": "80bac41507186414",
"type": "delay",
"z": "9bc820cc16f1140a",
"name": "",
"pauseType": "delay",
"timeout": "2",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 160,
"y": 120,
"wires": [
[
"86d452e4d6c2d1aa"
]
]
},
{
"id": "4d7219b98ae7faab",
"type": "change",
"z": "9bc820cc16f1140a",
"name": "开启",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "start",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 310,
"y": 320,
"wires": [
[
"de5f2aa0fe4aa0f1"
]
]
},
{
"id": "504b7d0b52e0469a",
"type": "delay",
"z": "9bc820cc16f1140a",
"name": "",
"pauseType": "delay",
"timeout": "2",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 160,
"y": 320,
"wires": [
[
"4d7219b98ae7faab"
]
]
},
{
"id": "5be9f29b55cdc309",
"type": "change",
"z": "9bc820cc16f1140a",
"name": "关闭",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "stop",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 330,
"y": 260,
"wires": [
[
"a74bc077413086fe"
]
]
},
{
"id": "d84a140da7ef5fa5",
"type": "inject",
"z": "9bc820cc16f1140a",
"name": "拍照快门",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 540,
"y": 100,
"wires": [
[
"a74bc077413086fe"
]
]
},
{
"id": "d8282dc5cc5bf2db",
"type": "jimp-image",
"z": "9bc820cc16f1140a",
"name": "",
"data": "payload",
"dataType": "msg",
"ret": "img",
"parameter1": "",
"parameter1Type": "msg",
"parameter2": "",
"parameter2Type": "msg",
"parameter3": "",
"parameter3Type": "msg",
"parameter4": "",
"parameter4Type": "msg",
"parameter5": "",
"parameter5Type": "msg",
"parameter6": "",
"parameter6Type": "msg",
"parameter7": "",
"parameter7Type": "msg",
"parameter8": "",
"parameter8Type": "msg",
"sendProperty": "payload",
"sendPropertyType": "msg",
"parameterCount": 0,
"jimpFunction": "none",
"selectedJimpFunction": {},
"x": 710,
"y": 180,
"wires": [
[
"632b362bb2438e83"
]
]
},
{
"id": "632b362bb2438e83",
"type": "image viewer",
"z": "9bc820cc16f1140a",
"name": "",
"width": "480",
"data": "payload",
"dataType": "msg",
"active": true,
"x": 510,
"y": 320,
"wires": [
[]
]
}
]