UNPKG

@viun/node-red-contrib-overview

Version:

Collection of nodes to control the Overview's smart AI cameras

66 lines 2.64 kB
[ { "id": "f6f2187d.f17ca8", "type": "tab", "label": "Check Confidence Classification", "disabled": false, "info": "" }, { "id": "1c5860e568b566eb", "type": "check confidence classification", "z": "f6f2187d.f17ca8", "name": "", "passThreshold": 0.9, "failThreshold": 0.8, "x": 490, "y": 460, "wires": [ [ "b10ac1b31ed40977" ] ] }, { "id": "2564bfa6190ed1ac", "type": "inject", "z": "f6f2187d.f17ca8", "name": "Mock Inspection Result", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "{\"inspection_id\":13,\"alignment\":{\"success\":true,\"center_location_x\":345,\"center_location_y\":769,\"confidence\":0.9839531779289246,\"matched_angle\":0.8395060896873474},\"roi\":{\"rois\":[{\"id\":266,\"name\":\"switch 1\",\"center_x_global\":703,\"center_y_global\":101,\"angle_global\":0.8395060896873474},{\"id\":267,\"name\":\"cover 1\",\"center_x_global\":750,\"center_y_global\":275,\"angle_global\":0.8395060896873474},{\"id\":268,\"name\":\"adaptor 1\",\"center_x_global\":454,\"center_y_global\":913,\"angle_global\":0.8395060896873474}]},\"classification\":{\"predictions\":[{\"roi_id\":266,\"roi_name\":\"switch 1\",\"center_x_global\":703,\"center_y_global\":101,\"confidence\":0.520914116122739,\"predicted_class\":\"fail_switch\"},{\"roi_id\":267,\"roi_name\":\"cover 1\",\"center_x_global\":750,\"center_y_global\":275,\"confidence\":0.4729948922168061,\"predicted_class\":\"pass_cover\"},{\"roi_id\":268,\"roi_name\":\"adaptor 1\",\"center_x_global\":454,\"center_y_global\":913,\"confidence\":0.9807887058865323,\"predicted_class\":\"pass_adaptor\"}]},\"segmentation\":{\"blobs\":[],\"classes\":[],\"confidence_score_threshold\":null}}", "payloadType": "json", "x": 180, "y": 460, "wires": [ [ "1c5860e568b566eb" ] ] }, { "id": "b10ac1b31ed40977", "type": "debug", "z": "f6f2187d.f17ca8", "name": "Debug \"Check Confidence Classification\"", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 860, "y": 460, "wires": [] } ]