Created
October 27, 2022 05:05
-
-
Save i40sys/a5c2da30ecb826c3faf0c5003b46c3f2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"id":"19ade742bc711664","type":"tab","label":"GCP Vision","disabled":false,"info":""},{"id":"eacb72256f44156c","type":"inject","z":"19ade742bc711664","name":"manual test","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":150,"y":120,"wires":[["a551c355c64013a1"]]},{"id":"a551c355c64013a1","type":"exec","z":"19ade742bc711664","command":"sudo docker run --rm jrottenberg/ffmpeg -y -rtsp_transport tcp -i 'rtsp://admin:ges2ges.@10.2.8.95/h264/ch1/sub/av_stream' -filter:v \"crop=704:536:0:20\" -vframes 1 -f image2pipe -vcodec png -","addpay":"","append":"","useSpawn":"false","timer":"60","oldrc":false,"name":"ffmpeg","x":650,"y":300,"wires":[["3ee69db9.089ae2","2d14dd1f.1b0a22"],["2a2a43a2.4777ec"],["b33f7107.87afa"]]},{"id":"3ee69db9.089ae2","type":"file","z":"19ade742bc711664","name":"debug: image.png","filename":"/data/image.png","appendNewline":true,"createDir":false,"overwriteFile":"true","encoding":"none","x":910,"y":280,"wires":[[]]},{"id":"2a2a43a2.4777ec","type":"debug","z":"19ade742bc711664","name":"ffmeg error","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":890,"y":340,"wires":[]},{"id":"2d14dd1f.1b0a22","type":"google-cloud-vision","z":"19ade742bc711664","account":"","keyFilename":"","faceDetection":false,"landmarkDetection":false,"logoDetection":false,"labelDetection":false,"textDetection":true,"documentTextDetection":false,"safeSearchDetection":false,"imageProperties":false,"cropHints":false,"webDetection":false,"productSearch":false,"objectLocalization":false,"name":"OCR","x":850,"y":80,"wires":[["7b7f9813.6b6b28","ab643ce2.503ee"]]},{"id":"7b7f9813.6b6b28","type":"debug","z":"19ade742bc711664","name":"debug ocr","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1120,"y":80,"wires":[]},{"id":"ab643ce2.503ee","type":"function","z":"19ade742bc711664","name":"","func":"if ('textAnnotations' in msg.payload) {\n if (msg.payload.textAnnotations.length > 0) {\n return { payload: msg.payload.textAnnotations[0].description };\n }\n}\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":900,"y":160,"wires":[["64a2e306.daa40c","db6b2394.a398a"]]},{"id":"2815d499.e4ad9c","type":"inject","z":"19ade742bc711664","name":"start","props":[{"p":"payload"}],"repeat":"","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"","payloadType":"str","x":130,"y":60,"wires":[["be8d9370.de5a4"]]},{"id":"be8d9370.de5a4","type":"change","z":"19ade742bc711664","name":"config","rules":[{"t":"set","p":"debug","pt":"global","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":310,"y":60,"wires":[[]]},{"id":"64a2e306.daa40c","type":"debug","z":"19ade742bc711664","name":"OCR output","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":1130,"y":160,"wires":[]},{"id":"3e42f21b.42a31e","type":"mqtt in","z":"19ade742bc711664","name":"display/button","topic":"display/button","qos":"2","datatype":"auto","broker":"d32bbf31.d1fa5","nl":false,"rap":true,"rh":0,"x":130,"y":300,"wires":[["6adb8e8f.7d5ab","246a2d29.de4ad2"]]},{"id":"26cd96f7.46aeda","type":"switch","z":"19ade742bc711664","name":"Button A?","property":"payload.button","propertyType":"msg","rules":[{"t":"eq","v":"A","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":480,"y":300,"wires":[["a551c355c64013a1"]]},{"id":"db6b2394.a398a","type":"mqtt out","z":"19ade742bc711664","name":"display/text","topic":"display/text","qos":"0","retain":"true","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"d32bbf31.d1fa5","x":1130,"y":240,"wires":[]},{"id":"6adb8e8f.7d5ab","type":"debug","z":"19ade742bc711664","name":"MQTT RX msgs","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":160,"y":400,"wires":[]},{"id":"246a2d29.de4ad2","type":"json","z":"19ade742bc711664","name":"","property":"payload","action":"","pretty":false,"x":330,"y":300,"wires":[["26cd96f7.46aeda"]]},{"id":"b33f7107.87afa","type":"debug","z":"19ade742bc711664","name":"ffmeg output code","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"msg","x":910,"y":400,"wires":[]},{"id":"d32bbf31.d1fa5","type":"mqtt-broker","name":"local MQTT broker","broker":"localhost","port":"1883","clientid":"","usetls":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"sessionExpiry":""}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment