diff --git a/frontend/src/components/blocks/collection/opencv/Threshold.json b/frontend/src/components/blocks/collection/opencv/Threshold.json index a8059c28..ee320620 100644 --- a/frontend/src/components/blocks/collection/opencv/Threshold.json +++ b/frontend/src/components/blocks/collection/opencv/Threshold.json @@ -1 +1 @@ -{"editor":{"id":"ce7e3c6d-1bae-4cf4-8999-a45bf0adace3","locked":false,"offsetX":0,"offsetY":0,"zoom":100,"gridSize":0,"layers":[{"id":"86c5be4d-d630-4050-9840-65d60f7c4b2a","type":"diagram-links","isSvg":true,"transformed":true,"models":{"f3250bd7-ae1f-4e23-84da-43d46868b867":{"id":"f3250bd7-ae1f-4e23-84da-43d46868b867","type":"default","selected":false,"source":"0007-f9051ffe-5a67-4b9a-8153-348ef3473f30","sourcePort":"18b04478-4694-4669-a48f-32357715df40","target":"f806ef4a-e93e-4f4f-b734-1038ea866f2f","targetPort":"52f00a3c-e025-4ce2-93cd-cbd4e094953f","points":[{"id":"9b9d47dc-3f36-4798-8d0f-b29b4f28859f","type":"point","x":991,"y":144.5},{"id":"782d9386-b3a6-4375-8a6f-780080877b46","type":"point","x":987.5499877929688,"y":267}],"labels":[],"width":3,"color":"gray","curvyness":50,"selectedColor":"rgb(0,192,255)"},"da170d40-db28-4bdd-bc4b-bc7e7dabd8a6":{"id":"da170d40-db28-4bdd-bc4b-bc7e7dabd8a6","type":"default","selected":false,"source":"0006-b23e1306-c0d6-459f-8e46-5ac28f2e94f1","sourcePort":"0d68ae14-912e-4056-8922-5c5a0a2e53b9","target":"f806ef4a-e93e-4f4f-b734-1038ea866f2f","targetPort":"572d3bde-0f1e-4818-8ff2-bdd44afe0f3d","points":[{"id":"29b0519e-adb2-4705-84b1-9396f3a7610b","type":"point","x":707,"y":146.5},{"id":"cc88f771-dc1a-48b8-8307-58c0f95ab719","type":"point","x":695.5333251953125,"y":267}],"labels":[],"width":3,"color":"gray","curvyness":50,"selectedColor":"rgb(0,192,255)"},"bbee7a56-acd0-4444-aed2-5e253ee3d954":{"id":"bbee7a56-acd0-4444-aed2-5e253ee3d954","type":"default","selected":false,"source":"f806ef4a-e93e-4f4f-b734-1038ea866f2f","sourcePort":"821a3b6b-8e70-4c76-a64d-fbeb391a778c","target":"c6fa109d-9ae4-4d62-ad1c-04dd4990f982","targetPort":"3565492c-dd62-428d-86e4-03e7bd0c055a","points":[{"id":"21b4e1a2-6567-40a4-9b3c-0e18938b4235","type":"point","x":1236.1500244140625,"y":506.5},{"id":"3a9360e3-806d-43f0-848c-f0029bfc9592","type":"point","x":1343.5,"y":487.5}],"labels":[],"width":3,"color":"gray","curvyness":50,"selectedColor":"rgb(0,192,255)"},"01a916fa-71ef-4da4-bec7-ca1546f73517":{"id":"01a916fa-71ef-4da4-bec7-ca1546f73517","type":"default","selected":false,"source":"5417296c-007c-4a49-b5ce-c483cee7bfc1","sourcePort":"d17942e2-7e5e-4621-9bfd-d6e95ea83127","target":"f806ef4a-e93e-4f4f-b734-1038ea866f2f","targetPort":"7a2fd55f-43f0-491a-9869-bdad5d2878bd","points":[{"id":"16f092f4-4ca9-487b-b13a-6b40be1d33a1","type":"point","x":350.5,"y":588.5},{"id":"9ad5fe57-f20a-48d2-bfb4-f09801ad05f7","type":"point","x":446.5,"y":586.3333129882812}],"labels":[],"width":3,"color":"gray","curvyness":50,"selectedColor":"rgb(0,192,255)"},"b943922c-204d-4eb8-805e-c4da5aa37b81":{"id":"b943922c-204d-4eb8-805e-c4da5aa37b81","type":"default","selected":false,"source":"e74273e2-7627-4894-9e90-e222ace00f12","sourcePort":"db589ada-726e-438d-8dae-1e46c52d5bc0","target":"f806ef4a-e93e-4f4f-b734-1038ea866f2f","targetPort":"59603b38-95d6-4aa5-bf46-2da84fb27d42","points":[{"id":"bb986560-0efa-44b1-8b89-46873d1b6313","type":"point","x":347.5,"y":423.5},{"id":"0a96ba25-528c-4554-952f-307e094fbf4d","type":"point","x":446.5,"y":426.66668701171875}],"labels":[],"width":3,"color":"gray","curvyness":50,"selectedColor":"rgb(0,192,255)"}}},{"id":"9e9636d9-b481-4048-bcd7-7ded3aea0d76","type":"diagram-nodes","isSvg":false,"transformed":true,"models":{"6186d0d6-3c11-4de7-bc7c-ea8d2423a0a0":{"id":"6186d0d6-3c11-4de7-bc7c-ea8d2423a0a0","type":"block.package","selected":false,"x":1470,"y":98,"ports":[{"id":"2395d7d2-e214-4dd6-a617-77810f59833a","type":"port.input","x":1471,"y":113.66667175292969,"name":"5bc952ca-a4ed-4e11-a9b4-1a1e684cd957","alignment":"left","parentNode":"6186d0d6-3c11-4de7-bc7c-ea8d2423a0a0","links":[],"in":true,"label":"Img","hideLabel":false},{"id":"292b89ee-a5a7-43ed-9ea1-1a778803680f","type":"port.input","x":1471,"y":156.3333282470703,"name":"ade8fda5-a7fd-4560-8d6b-c5c7842c0407","alignment":"left","parentNode":"6186d0d6-3c11-4de7-bc7c-ea8d2423a0a0","links":[],"in":true,"label":"Enable","hideLabel":false},{"id":"52fdc42c-ec5b-45e3-9916-4e9fbaf982c0","type":"port.output","x":1586,"y":135,"name":"a9f98608-80b9-4b47-a11c-085c128e0f98","alignment":"right","parentNode":"6186d0d6-3c11-4de7-bc7c-ea8d2423a0a0","links":[],"in":false,"label":"Out","hideLabel":false}],"data":{},"model":{"id":"5055ce4d-38a6-4cc2-9164-0985030d3e1d","locked":true,"offsetX":0,"offsetY":-1,"zoom":100,"gridSize":0,"layers":[{"id":"eaf1b46e-1318-4e74-b80c-e0a7cbda9e2d","type":"diagram-links","isSvg":true,"transformed":true,"models":{"6b12f401-aa50-4340-b2bf-44bd925338d6":{"id":"6b12f401-aa50-4340-b2bf-44bd925338d6","type":"default","selected":false,"source":"5bc952ca-a4ed-4e11-a9b4-1a1e684cd957","sourcePort":"e2d62bbf-b52b-47f7-8aec-1b607ee7d709","target":"cc476ec1-8c9e-4599-834e-d4f3ac439fd9","targetPort":"96aee988-5192-4098-a989-f5f34b712be4","points":[{"id":"5d88f2da-03fb-4edf-9f7b-c6378506c271","type":"point","x":409.5,"y":464.5},{"id":"c38b14a9-adc7-4153-9a3d-229e36f1f7fc","type":"point","x":520.5,"y":409.66668701171875}],"labels":[],"width":3,"color":"gray","curvyness":50,"selectedColor":"rgb(0,192,255)"},"f1ff636d-7d7b-48d7-81e0-92f07c6d541c":{"id":"f1ff636d-7d7b-48d7-81e0-92f07c6d541c","type":"default","selected":false,"source":"ade8fda5-a7fd-4560-8d6b-c5c7842c0407","sourcePort":"a8fe7897-75dc-4ed8-998e-b17d2419fe4f","target":"cc476ec1-8c9e-4599-834e-d4f3ac439fd9","targetPort":"4930854f-7358-4c4f-aa6d-aa1cf4ff2ee6","points":[{"id":"0024d6f3-4c5c-44fa-bc29-53b6e207fdb6","type":"point","x":407.5,"y":655.5},{"id":"e23efe36-dd49-4d8a-b208-8b938e96f0ef","type":"point","x":520.5,"y":547.3333129882812}],"labels":[],"width":3,"color":"gray","curvyness":50,"selectedColor":"rgb(0,192,255)"},"7cb9137e-fb63-453e-8a04-145140e1fec5":{"id":"7cb9137e-fb63-453e-8a04-145140e1fec5","type":"default","selected":false,"source":"cc476ec1-8c9e-4599-834e-d4f3ac439fd9","sourcePort":"bf3a39d8-7941-4efc-a494-4e53206a3dcb","target":"a9f98608-80b9-4b47-a11c-085c128e0f98","targetPort":"99eac67c-189a-48df-a224-4730ce51c752","points":[{"id":"70d65301-685a-4f3c-be33-8a09d886050c","type":"point","x":1336.1500244140625,"y":478.5},{"id":"cecd51e9-449d-4154-937f-b12d86fc00d9","type":"point","x":1520.5,"y":591.5}],"labels":[],"width":3,"color":"gray","curvyness":50,"selectedColor":"rgb(0,192,255)"},"1e8895a2-a3cd-4e14-87ab-ac04f4b51048":{"id":"1e8895a2-a3cd-4e14-87ab-ac04f4b51048","type":"default","selected":false,"source":"0010-578a3e14-1ec5-4e36-8c1f-b1b4bfe31f47","sourcePort":"c6652de0-a07f-458d-a56e-eebda04b7c52","target":"cc476ec1-8c9e-4599-834e-d4f3ac439fd9","targetPort":"98865be3-469a-4819-ad45-86b777c00136","points":[{"id":"d9b27668-d1c8-485d-8623-30fdbf2463a5","type":"point","x":953,"y":160.5},{"id":"baed5231-8b87-4f07-b2f9-9e49acefa46c","type":"point","x":1147.699951171875,"y":272}],"labels":[],"width":3,"color":"gray","curvyness":50,"selectedColor":"rgb(0,192,255)"},"ae0a0707-369b-4331-a86c-48a311c79fee":{"id":"ae0a0707-369b-4331-a86c-48a311c79fee","type":"default","selected":false,"source":"0009-7a104a2d-943d-44a7-b045-f95d71bd1d8b","sourcePort":"a71deb26-d9f7-4c81-9288-cd11c6d019c1","target":"cc476ec1-8c9e-4599-834e-d4f3ac439fd9","targetPort":"23a3a4f9-d4ae-43fd-89f4-ddb852e41da6","points":[{"id":"8718b06a-dd47-49f2-a787-541320c4f467","type":"point","x":799,"y":164.5},{"id":"1c86046a-6bda-48e1-98b2-a3968686dc8c","type":"point","x":914.63330078125,"y":272}],"labels":[],"width":3,"color":"gray","curvyness":50,"selectedColor":"rgb(0,192,255)"},"788173db-21ac-46a6-a12c-c5c12587c811":{"id":"788173db-21ac-46a6-a12c-c5c12587c811","type":"default","selected":false,"source":"0008-ce9be833-1c61-4473-99ff-00b9513b0a7b","sourcePort":"3e153e4f-9a96-4103-8b90-4a5358b5276d","target":"cc476ec1-8c9e-4599-834e-d4f3ac439fd9","targetPort":"cfa3eb36-b0e0-45f2-8a13-fdb3d76c84c6","points":[{"id":"e90ec298-ade4-43a5-9aef-a7255a215dbf","type":"point","x":643,"y":162.5},{"id":"99733571-0a2b-4cfb-9eae-f00381511bae","type":"point","x":695.25,"y":272}],"labels":[],"width":3,"color":"gray","curvyness":50,"selectedColor":"rgb(0,192,255)"}}},{"id":"1760709c-369c-4e2b-bc51-e367731bd8c1","type":"diagram-nodes","isSvg":false,"transformed":true,"models":{"5bc952ca-a4ed-4e11-a9b4-1a1e684cd957":{"id":"5bc952ca-a4ed-4e11-a9b4-1a1e684cd957","type":"basic.input","selected":false,"x":316,"y":438,"ports":[{"id":"e2d62bbf-b52b-47f7-8aec-1b607ee7d709","type":"port.output","x":402,"y":457,"name":"input-out","alignment":"right","parentNode":"5bc952ca-a4ed-4e11-a9b4-1a1e684cd957","links":["6b12f401-aa50-4340-b2bf-44bd925338d6"],"in":false,"label":"Img","hideLabel":true}],"data":{"name":"Img"}},"ade8fda5-a7fd-4560-8d6b-c5c7842c0407":{"id":"ade8fda5-a7fd-4560-8d6b-c5c7842c0407","type":"basic.input","selected":false,"x":314,"y":629,"ports":[{"id":"a8fe7897-75dc-4ed8-998e-b17d2419fe4f","type":"port.output","x":400,"y":648,"name":"input-out","alignment":"right","parentNode":"ade8fda5-a7fd-4560-8d6b-c5c7842c0407","links":["f1ff636d-7d7b-48d7-81e0-92f07c6d541c"],"in":false,"label":"Enable","hideLabel":true}],"data":{"name":"Enable"}},"a9f98608-80b9-4b47-a11c-085c128e0f98":{"id":"a9f98608-80b9-4b47-a11c-085c128e0f98","type":"basic.output","selected":false,"x":1512,"y":565,"ports":[{"id":"99eac67c-189a-48df-a224-4730ce51c752","type":"port.input","x":1513,"y":584,"name":"output-in","alignment":"left","parentNode":"a9f98608-80b9-4b47-a11c-085c128e0f98","links":["7cb9137e-fb63-453e-8a04-145140e1fec5"],"in":true,"label":"output-in","hideLabel":true}],"data":{"name":"Out"}},"0008-ce9be833-1c61-4473-99ff-00b9513b0a7b":{"id":"0008-ce9be833-1c61-4473-99ff-00b9513b0a7b","type":"basic.constant","selected":false,"x":582,"y":47,"ports":[{"id":"3e153e4f-9a96-4103-8b90-4a5358b5276d","type":"port.output","x":635.5,"y":155,"name":"constant-out","alignment":"bottom","parentNode":"0008-ce9be833-1c61-4473-99ff-00b9513b0a7b","links":["788173db-21ac-46a6-a12c-c5c12587c811"],"in":false,"label":"Frequency","hideLabel":true}],"data":{"name":"Frequency","value":"30.0","local":true}},"0009-7a104a2d-943d-44a7-b045-f95d71bd1d8b":{"id":"0009-7a104a2d-943d-44a7-b045-f95d71bd1d8b","type":"basic.constant","selected":false,"x":738,"y":49,"ports":[{"id":"a71deb26-d9f7-4c81-9288-cd11c6d019c1","type":"port.output","x":791.5,"y":157,"name":"constant-out","alignment":"bottom","parentNode":"0009-7a104a2d-943d-44a7-b045-f95d71bd1d8b","links":["ae0a0707-369b-4331-a86c-48a311c79fee"],"in":false,"label":"Lower Threshold","hideLabel":true}],"data":{"name":"Lower Threshold","value":"127","local":true}},"0010-578a3e14-1ec5-4e36-8c1f-b1b4bfe31f47":{"id":"0010-578a3e14-1ec5-4e36-8c1f-b1b4bfe31f47","type":"basic.constant","selected":false,"x":892,"y":45,"ports":[{"id":"c6652de0-a07f-458d-a56e-eebda04b7c52","type":"port.output","x":945.5,"y":153,"name":"constant-out","alignment":"bottom","parentNode":"0010-578a3e14-1ec5-4e36-8c1f-b1b4bfe31f47","links":["1e8895a2-a3cd-4e14-87ab-ac04f4b51048"],"in":false,"label":"Upper Threshold","hideLabel":true}],"data":{"name":"Upper Threshold","value":"255","local":true}},"cc476ec1-8c9e-4599-834e-d4f3ac439fd9":{"id":"cc476ec1-8c9e-4599-834e-d4f3ac439fd9","type":"basic.code","selected":false,"x":512,"y":194,"ports":[{"id":"96aee988-5192-4098-a989-f5f34b712be4","type":"port.input","x":513,"y":402.16668701171875,"name":"Img","alignment":"left","parentNode":"cc476ec1-8c9e-4599-834e-d4f3ac439fd9","links":["6b12f401-aa50-4340-b2bf-44bd925338d6"],"in":true,"label":"Img","hideLabel":false},{"id":"4930854f-7358-4c4f-aa6d-aa1cf4ff2ee6","type":"port.input","x":513,"y":539.8333129882812,"name":"Enable","alignment":"left","parentNode":"cc476ec1-8c9e-4599-834e-d4f3ac439fd9","links":["f1ff636d-7d7b-48d7-81e0-92f07c6d541c"],"in":true,"label":"Enable","hideLabel":false},{"id":"bf3a39d8-7941-4efc-a494-4e53206a3dcb","type":"port.output","x":1328.6500244140625,"y":471,"name":"Out","alignment":"right","parentNode":"cc476ec1-8c9e-4599-834e-d4f3ac439fd9","links":["7cb9137e-fb63-453e-8a04-145140e1fec5"],"in":false,"label":"Out","hideLabel":false},{"id":"cfa3eb36-b0e0-45f2-8a13-fdb3d76c84c6","type":"port.parameter","x":687.75,"y":264.5,"name":"Frequency","alignment":"top","parentNode":"cc476ec1-8c9e-4599-834e-d4f3ac439fd9","links":["788173db-21ac-46a6-a12c-c5c12587c811"],"in":true,"label":"Frequency","hideLabel":false},{"id":"23a3a4f9-d4ae-43fd-89f4-ddb852e41da6","type":"port.parameter","x":907.13330078125,"y":264.5,"name":"Lower Threshold","alignment":"top","parentNode":"cc476ec1-8c9e-4599-834e-d4f3ac439fd9","links":["ae0a0707-369b-4331-a86c-48a311c79fee"],"in":true,"label":"Lower Threshold","hideLabel":false},{"id":"98865be3-469a-4819-ad45-86b777c00136","type":"port.parameter","x":1140.199951171875,"y":264.5,"name":"Upper Threshold","alignment":"top","parentNode":"cc476ec1-8c9e-4599-834e-d4f3ac439fd9","links":["1e8895a2-a3cd-4e14-87ab-ac04f4b51048"],"in":true,"label":"Upper Threshold","hideLabel":false}],"data":{"code":"import cv2\nimport numpy as np\n\ndef main(inputs, outputs, parameters, synchronise):\n\n lower = int(parameters.read_string(\"Lower Threshold\"))\n upper = int(parameters.read_string(\"Upper Threshold\"))\n \n auto_enable = False\n try:\n enable = inputs.read_number(\"Enable\")\n except Exception:\n auto_enable = True\n\n while(auto_enable or inputs.read_number('Enable')):\n frame = inputs.read_image(\"Img\")\n if frame is None:\n continue\n\n frame = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)\n (T, thresh) = cv2.threshold(frame, lower, upper, cv2.THRESH_BINARY)\n output = cv2.cvtColor(thresh, cv2.COLOR_GRAY2BGR)\n \n outputs.share_image('Out', output)\n\n synchronise()","frequency":"30","params":[{"name":"Frequency"},{"name":"Lower Threshold"},{"name":"Upper Threshold"}],"ports":{"in":[{"name":"Img"},{"name":"Enable"}],"out":[{"name":"Out"}]},"size":{"width":"0px","height":"0px"}}}}}]},"info":{"name":"Threshold","version":"2.0.0","description":"Thresholds an Image","author":"Toshan Luktuke, Muhammad Taha Suhail","image":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data":{"name":"Img"},"position":{"x":316,"y":438}},{"id":"ade8fda5-a7fd-4560-8d6b-c5c7842c0407","type":"basic.input","data":{"name":"Enable"},"position":{"x":314,"y":629}},{"id":"a9f98608-80b9-4b47-a11c-085c128e0f98","type":"basic.output","data":{"name":"Out"},"position":{"x":1512,"y":565}},{"id":"0008-ce9be833-1c61-4473-99ff-00b9513b0a7b","type":"basic.constant","data":{"name":"Frequency","value":"30.0","local":true},"position":{"x":582,"y":47}},{"id":"0009-7a104a2d-943d-44a7-b045-f95d71bd1d8b","type":"basic.constant","data":{"name":"Lower Threshold","value":"127","local":true},"position":{"x":738,"y":49}},{"id":"0010-578a3e14-1ec5-4e36-8c1f-b1b4bfe31f47","type":"basic.constant","data":{"name":"Upper Threshold","value":"255","local":true},"position":{"x":892,"y":45}},{"id":"cc476ec1-8c9e-4599-834e-d4f3ac439fd9","type":"basic.code","data":{"code":"import cv2\nimport numpy as np\n\ndef main(inputs, outputs, parameters, synchronise):\n\n lower = int(parameters.read_string(\"Lower Threshold\"))\n upper = int(parameters.read_string(\"Upper Threshold\"))\n \n auto_enable = False\n try:\n enable = inputs.read_number(\"Enable\")\n except Exception:\n auto_enable = True\n\n while(auto_enable or inputs.read_number('Enable')):\n frame = inputs.read_image(\"Img\")\n if frame is None:\n continue\n\n frame = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)\n (T, thresh) = cv2.threshold(frame, lower, upper, cv2.THRESH_BINARY)\n output = cv2.cvtColor(thresh, cv2.COLOR_GRAY2BGR)\n \n outputs.share_image('Out', output)\n\n synchronise()","frequency":"30","params":[{"name":"Frequency"},{"name":"Lower Threshold"},{"name":"Upper Threshold"}],"ports":{"in":[{"name":"Img"},{"name":"Enable"}],"out":[{"name":"Out"}]},"size":{"width":"0px","height":"0px"}},"position":{"x":512,"y":194}}],"wires":[{"source":{"block":"5bc952ca-a4ed-4e11-a9b4-1a1e684cd957","port":"input-out","name":"Img"},"target":{"block":"cc476ec1-8c9e-4599-834e-d4f3ac439fd9","port":"Img","name":"Img"}},{"source":{"block":"ade8fda5-a7fd-4560-8d6b-c5c7842c0407","port":"input-out","name":"Enable"},"target":{"block":"cc476ec1-8c9e-4599-834e-d4f3ac439fd9","port":"Enable","name":"Enable"}},{"source":{"block":"cc476ec1-8c9e-4599-834e-d4f3ac439fd9","port":"Out","name":"Out"},"target":{"block":"a9f98608-80b9-4b47-a11c-085c128e0f98","port":"output-in","name":"output-in"}},{"source":{"block":"0010-578a3e14-1ec5-4e36-8c1f-b1b4bfe31f47","port":"constant-out","name":"Upper Threshold"},"target":{"block":"cc476ec1-8c9e-4599-834e-d4f3ac439fd9","port":"Upper Threshold","name":"Upper Threshold"}},{"source":{"block":"0009-7a104a2d-943d-44a7-b045-f95d71bd1d8b","port":"constant-out","name":"Lower Threshold"},"target":{"block":"cc476ec1-8c9e-4599-834e-d4f3ac439fd9","port":"Lower Threshold","name":"Lower Threshold"}},{"source":{"block":"0008-ce9be833-1c61-4473-99ff-00b9513b0a7b","port":"constant-out","name":"Frequency"},"target":{"block":"cc476ec1-8c9e-4599-834e-d4f3ac439fd9","port":"Frequency","name":"Frequency"}}]}}},"e74273e2-7627-4894-9e90-e222ace00f12":{"id":"e74273e2-7627-4894-9e90-e222ace00f12","type":"basic.input","selected":false,"x":254,"y":397,"ports":[{"id":"db589ada-726e-438d-8dae-1e46c52d5bc0","type":"port.output","x":340,"y":416,"name":"input-out","alignment":"right","parentNode":"e74273e2-7627-4894-9e90-e222ace00f12","links":["b943922c-204d-4eb8-805e-c4da5aa37b81"],"in":false,"label":"Img","hideLabel":true}],"data":{"name":"Img"}},"5417296c-007c-4a49-b5ce-c483cee7bfc1":{"id":"5417296c-007c-4a49-b5ce-c483cee7bfc1","type":"basic.input","selected":false,"x":257,"y":562,"ports":[{"id":"d17942e2-7e5e-4621-9bfd-d6e95ea83127","type":"port.output","x":343,"y":581,"name":"input-out","alignment":"right","parentNode":"5417296c-007c-4a49-b5ce-c483cee7bfc1","links":["01a916fa-71ef-4da4-bec7-ca1546f73517"],"in":false,"label":"Enable","hideLabel":true}],"data":{"name":"Enable"}},"c6fa109d-9ae4-4d62-ad1c-04dd4990f982":{"id":"c6fa109d-9ae4-4d62-ad1c-04dd4990f982","type":"basic.output","selected":false,"x":1335,"y":461,"ports":[{"id":"3565492c-dd62-428d-86e4-03e7bd0c055a","type":"port.input","x":1336,"y":480,"name":"output-in","alignment":"left","parentNode":"c6fa109d-9ae4-4d62-ad1c-04dd4990f982","links":["bbee7a56-acd0-4444-aed2-5e253ee3d954"],"in":true,"label":"output-in","hideLabel":true}],"data":{"name":"Out"}},"0006-b23e1306-c0d6-459f-8e46-5ac28f2e94f1":{"id":"0006-b23e1306-c0d6-459f-8e46-5ac28f2e94f1","type":"basic.constant","selected":true,"x":645,"y":30,"ports":[{"id":"0d68ae14-912e-4056-8922-5c5a0a2e53b9","type":"port.output","x":699.5,"y":139,"name":"constant-out","alignment":"bottom","parentNode":"0006-b23e1306-c0d6-459f-8e46-5ac28f2e94f1","links":["da170d40-db28-4bdd-bc4b-bc7e7dabd8a6"],"in":false,"label":"Lower Threshold","hideLabel":true}],"data":{"name":"Lower Threshold","value":"127","local":true}},"0007-f9051ffe-5a67-4b9a-8153-348ef3473f30":{"id":"0007-f9051ffe-5a67-4b9a-8153-348ef3473f30","type":"basic.constant","selected":false,"x":930,"y":29,"ports":[{"id":"18b04478-4694-4669-a48f-32357715df40","type":"port.output","x":983.5,"y":137,"name":"constant-out","alignment":"bottom","parentNode":"0007-f9051ffe-5a67-4b9a-8153-348ef3473f30","links":["f3250bd7-ae1f-4e23-84da-43d46868b867"],"in":false,"label":"Upper Threshold","hideLabel":true}],"data":{"name":"Upper Threshold","value":"255","local":true}},"f806ef4a-e93e-4f4f-b734-1038ea866f2f":{"id":"f806ef4a-e93e-4f4f-b734-1038ea866f2f","type":"basic.code","selected":false,"x":438,"y":189,"ports":[{"id":"59603b38-95d6-4aa5-bf46-2da84fb27d42","type":"port.input","x":439,"y":419.16668701171875,"name":"Img","alignment":"left","parentNode":"f806ef4a-e93e-4f4f-b734-1038ea866f2f","links":["b943922c-204d-4eb8-805e-c4da5aa37b81"],"in":true,"label":"Img","hideLabel":false},{"id":"7a2fd55f-43f0-491a-9869-bdad5d2878bd","type":"port.input","x":439,"y":578.8333129882812,"name":"Enable","alignment":"left","parentNode":"f806ef4a-e93e-4f4f-b734-1038ea866f2f","links":["01a916fa-71ef-4da4-bec7-ca1546f73517"],"in":true,"label":"Enable","hideLabel":false},{"id":"821a3b6b-8e70-4c76-a64d-fbeb391a778c","type":"port.output","x":1228.6500244140625,"y":499,"name":"Out","alignment":"right","parentNode":"f806ef4a-e93e-4f4f-b734-1038ea866f2f","links":["bbee7a56-acd0-4444-aed2-5e253ee3d954"],"in":false,"label":"Out","hideLabel":false},{"id":"572d3bde-0f1e-4818-8ff2-bdd44afe0f3d","type":"port.parameter","x":688.0333251953125,"y":259.5,"name":"LowerThreshold","alignment":"top","parentNode":"f806ef4a-e93e-4f4f-b734-1038ea866f2f","links":["da170d40-db28-4bdd-bc4b-bc7e7dabd8a6"],"in":true,"label":"LowerThreshold","hideLabel":false},{"id":"52f00a3c-e025-4ce2-93cd-cbd4e094953f","type":"port.parameter","x":980.0499877929688,"y":259.5,"name":"UpperThreshold","alignment":"top","parentNode":"f806ef4a-e93e-4f4f-b734-1038ea866f2f","links":["f3250bd7-ae1f-4e23-84da-43d46868b867"],"in":true,"label":"UpperThreshold","hideLabel":false}],"data":{"code":"import cv2\nimport numpy as np\n\ndef main(inputs, outputs, parameters, synchronise):\n\n lower = int(parameters.read_string(\"LowerThreshold\"))\n upper = int(parameters.read_string(\"UpperThreshold\"))\n \n auto_enable = False\n try:\n enable = inputs.read_number(\"Enable\")\n except Exception:\n auto_enable = True\n\n while(auto_enable or inputs.read_number('Enable')):\n frame = inputs.read_image(\"Img\")\n if frame is None:\n continue\n\n frame = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)\n (T, thresh) = cv2.threshold(frame, lower, upper, cv2.THRESH_BINARY)\n output = cv2.cvtColor(thresh, cv2.COLOR_GRAY2BGR)\n \n outputs.share_image('Out', output)\n\n synchronise()","frequency":"30","params":[{"name":"LowerThreshold"},{"name":"UpperThreshold"}],"ports":{"in":[{"name":"Img"},{"name":"Enable"}],"out":[{"name":"Out"}]},"size":{"width":"675px","height":"19px"}}}}}]},"version":"3.0","package":{"name":"Threshold","version":"2.0.0","description":"Thresholds an Image","author":"Muhammad Taha Suhail, Toshan Luktuke","image":""},"design":{"board":"Python3-Noetic","graph":{"blocks":[{"id":"6186d0d6-3c11-4de7-bc7c-ea8d2423a0a0","type":"93u77gXhs16NOjMduXFQ5PRoGZD8vm6s6KTj0OQB","data":{},"position":{"x":1470,"y":98}},{"id":"e74273e2-7627-4894-9e90-e222ace00f12","type":"basic.input","data":{"name":"Img"},"position":{"x":254,"y":397}},{"id":"5417296c-007c-4a49-b5ce-c483cee7bfc1","type":"basic.input","data":{"name":"Enable"},"position":{"x":257,"y":562}},{"id":"c6fa109d-9ae4-4d62-ad1c-04dd4990f982","type":"basic.output","data":{"name":"Out"},"position":{"x":1335,"y":461}},{"id":"0006-b23e1306-c0d6-459f-8e46-5ac28f2e94f1","type":"basic.constant","data":{"name":"Lower Threshold","value":"127","local":true},"position":{"x":645,"y":30}},{"id":"0007-f9051ffe-5a67-4b9a-8153-348ef3473f30","type":"basic.constant","data":{"name":"Upper Threshold","value":"255","local":true},"position":{"x":930,"y":29}},{"id":"f806ef4a-e93e-4f4f-b734-1038ea866f2f","type":"basic.code","data":{"code":"import cv2\nimport numpy as np\n\ndef main(inputs, outputs, parameters, synchronise):\n\n lower = int(parameters.read_string(\"LowerThreshold\"))\n upper = int(parameters.read_string(\"UpperThreshold\"))\n \n auto_enable = False\n try:\n enable = inputs.read_number(\"Enable\")\n except Exception:\n auto_enable = True\n\n while(auto_enable or inputs.read_number('Enable')):\n frame = inputs.read_image(\"Img\")\n if frame is None:\n continue\n\n frame = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)\n (T, thresh) = cv2.threshold(frame, lower, upper, cv2.THRESH_BINARY)\n output = cv2.cvtColor(thresh, cv2.COLOR_GRAY2BGR)\n \n outputs.share_image('Out', output)\n\n synchronise()","frequency":"30","params":[{"name":"LowerThreshold"},{"name":"UpperThreshold"}],"ports":{"in":[{"name":"Img"},{"name":"Enable"}],"out":[{"name":"Out"}]},"size":{"width":"675px","height":"19px"}},"position":{"x":438,"y":189}}],"wires":[{"source":{"block":"0007-f9051ffe-5a67-4b9a-8153-348ef3473f30","port":"constant-out","name":"Upper Threshold"},"target":{"block":"f806ef4a-e93e-4f4f-b734-1038ea866f2f","port":"UpperThreshold","name":"UpperThreshold"}},{"source":{"block":"0006-b23e1306-c0d6-459f-8e46-5ac28f2e94f1","port":"constant-out","name":"Lower Threshold"},"target":{"block":"f806ef4a-e93e-4f4f-b734-1038ea866f2f","port":"LowerThreshold","name":"LowerThreshold"}},{"source":{"block":"f806ef4a-e93e-4f4f-b734-1038ea866f2f","port":"Out","name":"Out"},"target":{"block":"c6fa109d-9ae4-4d62-ad1c-04dd4990f982","port":"output-in","name":"output-in"}},{"source":{"block":"5417296c-007c-4a49-b5ce-c483cee7bfc1","port":"input-out","name":"Enable"},"target":{"block":"f806ef4a-e93e-4f4f-b734-1038ea866f2f","port":"Enable","name":"Enable"}},{"source":{"block":"e74273e2-7627-4894-9e90-e222ace00f12","port":"input-out","name":"Img"},"target":{"block":"f806ef4a-e93e-4f4f-b734-1038ea866f2f","port":"Img","name":"Img"}}]}},"dependencies":{"93u77gXhs16NOjMduXFQ5PRoGZD8vm6s6KTj0OQB":{"package":{"name":"Threshold","version":"2.0.0","description":"Thresholds an Image","author":"Toshan Luktuke, Muhammad Taha Suhail","image":"data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgNTA2LjEgNTA2LjEiIGhlaWdodD0iNTEyIiB2aWV3Qm94PSIwIDAgNTA2LjEgNTA2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DAtMzIuNjk4IDAtNDIuNTU3IDUzLjc3LTUxLjU1OSAxMDBoLTUwLjI3N2MtOS4zMDEtNDcuNzctMTguNzI4LTk0Ljk5OC00Ny4wNzUtOTkuNjM4di0yNS42MTdjMTYuMDY0IDUuNTggMjguNDk5LTE0LjQ4MyAxNi41NzEtMjYuNDA5bC0yMS4yNTgtMjEuMjU4Yy02LjI0OC02LjI0OC0xNi4zNzktNi4yNDgtMjIuNjI3IDBsLTIxLjI1OCAyMS4yNThjLTExLjkzNCAxMS45MzMuNTEyIDMxLjk4OCAxNi41NzEgMjYuNDA5djEyNS4yNTVoLTMyLjE5NmM1LjU4Mi0xNi4wNjUtMTQuNDg1LTI4LjQ5Ny0yNi40MDktMTYuNTcxbC0yMS4yNTggMjEuMjU3Yy02LjI0OSA2LjI0OS02LjI0OSAxNi4zNzkgMCAyMi42Mjh6bTE2Mi44MTggNDkuMTQ4Yy04LjY0NC0xMy41Ny0xNS43OS00OS43OTktMTguOTQ2LTY1LjcxOWgzNy44OTRjLTMuMTQzIDE1Ljg0NS0xMC4yOTggNTIuMTQ1LTE4Ljk0OCA2NS43MTl6bTc2LjY5OC0xNjMuNDM5YzguNjQ3IDEzLjU2OSAxNS43OTYgNDkuODI0IDE4Ljk0OCA2NS43MmgtMzcuODk2YzMuMTQ2LTE1Ljg2OCAxMC4yOTgtNTIuMTQ3IDE4Ljk0OC02NS43MnptLTE0OC45MTEgOS4yNDRjNi4xODggMTUuNjExIDExLjExNyAzOS41OTUgMTQuNDY0IDU2LjQ3NmgtMTQuNDY0eiIvPjwvc3ZnPg=="},"design":{"board":"Python3-Noetic","graph":{"blocks":[{"id":"5bc952ca-a4ed-4e11-a9b4-1a1e684cd957","type":"basic.input","data":{"name":"Img"},"position":{"x":316,"y":438}},{"id":"ade8fda5-a7fd-4560-8d6b-c5c7842c0407","type":"basic.input","data":{"name":"Enable"},"position":{"x":314,"y":629}},{"id":"a9f98608-80b9-4b47-a11c-085c128e0f98","type":"basic.output","data":{"name":"Out"},"position":{"x":1512,"y":565}},{"id":"0008-ce9be833-1c61-4473-99ff-00b9513b0a7b","type":"basic.constant","data":{"name":"Frequency","value":"30.0","local":true},"position":{"x":582,"y":47}},{"id":"0009-7a104a2d-943d-44a7-b045-f95d71bd1d8b","type":"basic.constant","data":{"name":"Lower Threshold","value":"127","local":true},"position":{"x":738,"y":49}},{"id":"0010-578a3e14-1ec5-4e36-8c1f-b1b4bfe31f47","type":"basic.constant","data":{"name":"Upper Threshold","value":"255","local":true},"position":{"x":892,"y":45}},{"id":"cc476ec1-8c9e-4599-834e-d4f3ac439fd9","type":"basic.code","data":{"code":"import cv2\nimport numpy as np\n\ndef main(inputs, outputs, parameters, synchronise):\n\n lower = int(parameters.read_string(\"Lower Threshold\"))\n upper = int(parameters.read_string(\"Upper Threshold\"))\n \n auto_enable = False\n try:\n enable = inputs.read_number(\"Enable\")\n except Exception:\n auto_enable = True\n\n while(auto_enable or inputs.read_number('Enable')):\n frame = inputs.read_image(\"Img\")\n if frame is None:\n continue\n\n frame = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)\n (T, thresh) = cv2.threshold(frame, lower, upper, cv2.THRESH_BINARY)\n output = cv2.cvtColor(thresh, cv2.COLOR_GRAY2BGR)\n \n outputs.share_image('Out', output)\n\n synchronise()","frequency":"30","params":[{"name":"Frequency"},{"name":"Lower Threshold"},{"name":"Upper Threshold"}],"ports":{"in":[{"name":"Img"},{"name":"Enable"}],"out":[{"name":"Out"}]},"size":{"width":"0px","height":"0px"}},"position":{"x":512,"y":194}}],"wires":[{"source":{"block":"5bc952ca-a4ed-4e11-a9b4-1a1e684cd957","port":"input-out","name":"Img"},"target":{"block":"cc476ec1-8c9e-4599-834e-d4f3ac439fd9","port":"Img","name":"Img"}},{"source":{"block":"ade8fda5-a7fd-4560-8d6b-c5c7842c0407","port":"input-out","name":"Enable"},"target":{"block":"cc476ec1-8c9e-4599-834e-d4f3ac439fd9","port":"Enable","name":"Enable"}},{"source":{"block":"cc476ec1-8c9e-4599-834e-d4f3ac439fd9","port":"Out","name":"Out"},"target":{"block":"a9f98608-80b9-4b47-a11c-085c128e0f98","port":"output-in","name":"output-in"}},{"source":{"block":"0010-578a3e14-1ec5-4e36-8c1f-b1b4bfe31f47","port":"constant-out","name":"Upper Threshold"},"target":{"block":"cc476ec1-8c9e-4599-834e-d4f3ac439fd9","port":"Upper Threshold","name":"Upper Threshold"}},{"source":{"block":"0009-7a104a2d-943d-44a7-b045-f95d71bd1d8b","port":"constant-out","name":"Lower Threshold"},"target":{"block":"cc476ec1-8c9e-4599-834e-d4f3ac439fd9","port":"Lower Threshold","name":"Lower Threshold"}},{"source":{"block":"0008-ce9be833-1c61-4473-99ff-00b9513b0a7b","port":"constant-out","name":"Frequency"},"target":{"block":"cc476ec1-8c9e-4599-834e-d4f3ac439fd9","port":"Frequency","name":"Frequency"}}]}}}}} \ No newline at end of file +{"editor":{"id":"7a330963-48a1-456d-9ed1-2f9e3967c8b6","offsetX":-46,"offsetY":-19,"zoom":100,"gridSize":0,"layers":[{"id":"2990741e-0de7-47ab-bf6d-206ba8f96b9e","type":"diagram-links","isSvg":true,"transformed":true,"models":{"ae48c6f9-0338-475b-ad0f-c6903c04afe3":{"id":"ae48c6f9-0338-475b-ad0f-c6903c04afe3","type":"default","selected":false,"source":"0004-ac7002a6-40c7-4418-962f-7c675c6f001e","sourcePort":"3fd3f5a4-258f-4dbd-b514-550dceded179","target":"33dd5494-98bc-4b04-8a69-51b382dcab04","targetPort":"ddafbdd4-8729-4bcc-a740-c318beb72ba6","points":[{"id":"2928341b-75d6-47b8-b996-c00fdf792f21","type":"point","x":777,"y":180.5},{"id":"fcd73268-c4e5-4109-b2d4-59bd35e04beb","type":"point","x":772.2000122070312,"y":307}],"labels":[],"width":3,"color":"gray","curvyness":50,"selectedColor":"rgb(0,192,255)"},"a54359c2-68f1-41e9-b216-90132a934041":{"id":"a54359c2-68f1-41e9-b216-90132a934041","type":"default","selected":false,"source":"0005-112cbdff-42c7-474a-9fa5-68735f94a527","sourcePort":"9e1a9ad4-39aa-4b68-ab87-49e2cc64389d","target":"33dd5494-98bc-4b04-8a69-51b382dcab04","targetPort":"78250a38-3f43-4f1d-9bc1-5ff8eff0d08c","points":[{"id":"1c061d17-e832-45ce-933c-df92aff0376a","type":"point","x":1080,"y":181.5},{"id":"4b234cc2-afbe-4070-8fdb-5ee1b12f44c8","type":"point","x":1082.88330078125,"y":307}],"labels":[],"width":3,"color":"gray","curvyness":50,"selectedColor":"rgb(0,192,255)"},"fad61610-1530-4cdb-9a1b-c43648e0e0ac":{"id":"fad61610-1530-4cdb-9a1b-c43648e0e0ac","type":"default","selected":false,"source":"1c04d721-6333-406c-888f-50596ce70b5b","sourcePort":"55477181-3603-4709-8343-7fb95d8a142a","target":"33dd5494-98bc-4b04-8a69-51b382dcab04","targetPort":"df503268-8b0c-4635-abe4-d9a68c24ea96","points":[{"id":"35d51f64-fc03-4843-96b0-bd7154d200df","type":"point","x":432.5,"y":666.5},{"id":"705290ea-a0ff-4235-9991-0d5b5f3362ec","type":"point","x":504.5,"y":643.6666870117188}],"labels":[],"width":3,"color":"gray","curvyness":50,"selectedColor":"rgb(0,192,255)"},"4125f060-e74b-4f2e-b338-8d67a25b78e8":{"id":"4125f060-e74b-4f2e-b338-8d67a25b78e8","type":"default","selected":false,"source":"ab27ff70-412a-4feb-b328-824b9555dee8","sourcePort":"2e88feb2-7fa4-441e-be8d-c17d3e4c3038","target":"33dd5494-98bc-4b04-8a69-51b382dcab04","targetPort":"86dfaa43-5b80-444c-bc27-b82b9a335c20","points":[{"id":"0345cc1b-cbc6-40fb-a8ab-ea754c319bb3","type":"point","x":433.5,"y":454.5},{"id":"30f54fb0-c023-4226-8aea-a663f9eff489","type":"point","x":504.5,"y":475.33331298828125}],"labels":[],"width":3,"color":"gray","curvyness":50,"selectedColor":"rgb(0,192,255)"},"26ced5b7-64b4-47b6-b064-9998324b0891":{"id":"26ced5b7-64b4-47b6-b064-9998324b0891","type":"default","selected":false,"source":"33dd5494-98bc-4b04-8a69-51b382dcab04","sourcePort":"f5186f9c-972f-44c8-8b15-968bfe8345a0","target":"c818c9da-dc27-4ce7-895a-24e94bdfcc16","targetPort":"3d661d50-0b0d-469b-a0bd-6792c4709904","points":[{"id":"199327ee-b30c-4202-a57d-5345cc8f22ee","type":"point","x":1350.1500244140625,"y":559.5},{"id":"55b0d239-4080-4d09-96ed-33aec2775d7f","type":"point","x":1474.5,"y":547.5}],"labels":[],"width":3,"color":"gray","curvyness":50,"selectedColor":"rgb(0,192,255)"}}},{"id":"ffe49c03-0dda-4b28-8744-0db353688078","type":"diagram-nodes","isSvg":false,"transformed":true,"models":{"ab27ff70-412a-4feb-b328-824b9555dee8":{"id":"ab27ff70-412a-4feb-b328-824b9555dee8","type":"basic.input","selected":true,"x":339,"y":427,"ports":[{"id":"2e88feb2-7fa4-441e-be8d-c17d3e4c3038","type":"port.output","x":426,"y":447,"name":"input-out","alignment":"right","parentNode":"ab27ff70-412a-4feb-b328-824b9555dee8","links":["4125f060-e74b-4f2e-b338-8d67a25b78e8"],"in":false,"label":"Img","hideLabel":true}],"data":{"name":"Img"}},"1c04d721-6333-406c-888f-50596ce70b5b":{"id":"1c04d721-6333-406c-888f-50596ce70b5b","type":"basic.input","selected":false,"x":339,"y":640,"ports":[{"id":"55477181-3603-4709-8343-7fb95d8a142a","type":"port.output","x":425,"y":659,"name":"input-out","alignment":"right","parentNode":"1c04d721-6333-406c-888f-50596ce70b5b","links":["fad61610-1530-4cdb-9a1b-c43648e0e0ac"],"in":false,"label":"Enable","hideLabel":true}],"data":{"name":"Enable"}},"33dd5494-98bc-4b04-8a69-51b382dcab04":{"id":"33dd5494-98bc-4b04-8a69-51b382dcab04","type":"basic.code","selected":false,"x":496,"y":229,"ports":[{"id":"86dfaa43-5b80-444c-bc27-b82b9a335c20","type":"port.input","x":497,"y":467.83331298828125,"name":"Img","alignment":"left","parentNode":"33dd5494-98bc-4b04-8a69-51b382dcab04","links":["4125f060-e74b-4f2e-b338-8d67a25b78e8"],"in":true,"label":"Img","hideLabel":false},{"id":"df503268-8b0c-4635-abe4-d9a68c24ea96","type":"port.input","x":497,"y":636.1666870117188,"name":"Enable","alignment":"left","parentNode":"33dd5494-98bc-4b04-8a69-51b382dcab04","links":["fad61610-1530-4cdb-9a1b-c43648e0e0ac"],"in":true,"label":"Enable","hideLabel":false},{"id":"f5186f9c-972f-44c8-8b15-968bfe8345a0","type":"port.output","x":1342.6500244140625,"y":552,"name":"Out","alignment":"right","parentNode":"33dd5494-98bc-4b04-8a69-51b382dcab04","links":["26ced5b7-64b4-47b6-b064-9998324b0891"],"in":false,"label":"Out","hideLabel":false},{"id":"ddafbdd4-8729-4bcc-a740-c318beb72ba6","type":"port.parameter","x":764.7000122070312,"y":299.5,"name":"LowerThreshold","alignment":"top","parentNode":"33dd5494-98bc-4b04-8a69-51b382dcab04","links":["ae48c6f9-0338-475b-ad0f-c6903c04afe3"],"in":true,"label":"LowerThreshold","hideLabel":false},{"id":"78250a38-3f43-4f1d-9bc1-5ff8eff0d08c","type":"port.parameter","x":1075.38330078125,"y":299.5,"name":"UpperThreshold","alignment":"top","parentNode":"33dd5494-98bc-4b04-8a69-51b382dcab04","links":["a54359c2-68f1-41e9-b216-90132a934041"],"in":true,"label":"UpperThreshold","hideLabel":false}],"data":{"code":"import cv2\nimport numpy as np\n\ndef main(inputs, outputs, parameters, synchronise):\n\n lower = parameters.read_number(\"LowerThreshold\")\n upper = parameters.read_number(\"UpperThreshold\")\n \n auto_enable = False\n try:\n enable = inputs.read_number(\"Enable\")\n except Exception:\n auto_enable = True\n\n while(auto_enable or inputs.read_number('Enable')):\n frame = inputs.read_image(\"Img\")\n if frame is None:\n continue\n\n frame = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)\n (T, thresh) = cv2.threshold(frame, lower, upper, cv2.THRESH_BINARY)\n output = cv2.cvtColor(thresh, cv2.COLOR_GRAY2BGR)\n \n outputs.share_image('Out', output)\n\n synchronise()","frequency":"30","params":[{"name":"LowerThreshold"},{"name":"UpperThreshold"}],"ports":{"in":[{"name":"Img"},{"name":"Enable"}],"out":[{"name":"Out"}]},"size":{"width":"727px","height":"500px"}}},"0004-ac7002a6-40c7-4418-962f-7c675c6f001e":{"id":"0004-ac7002a6-40c7-4418-962f-7c675c6f001e","type":"basic.constant","selected":false,"x":716,"y":65,"ports":[{"id":"3fd3f5a4-258f-4dbd-b514-550dceded179","type":"port.output","x":769.5,"y":173,"name":"constant-out","alignment":"bottom","parentNode":"0004-ac7002a6-40c7-4418-962f-7c675c6f001e","links":["ae48c6f9-0338-475b-ad0f-c6903c04afe3"],"in":false,"label":"Lower Threshold","hideLabel":true}],"data":{"name":"Lower Threshold","value":"127","local":true}},"0005-112cbdff-42c7-474a-9fa5-68735f94a527":{"id":"0005-112cbdff-42c7-474a-9fa5-68735f94a527","type":"basic.constant","selected":false,"x":1019,"y":66,"ports":[{"id":"9e1a9ad4-39aa-4b68-ab87-49e2cc64389d","type":"port.output","x":1072.5,"y":174,"name":"constant-out","alignment":"bottom","parentNode":"0005-112cbdff-42c7-474a-9fa5-68735f94a527","links":["a54359c2-68f1-41e9-b216-90132a934041"],"in":false,"label":"Upper Threshold","hideLabel":true}],"data":{"name":"Upper Threshold","value":"255","local":true}},"c818c9da-dc27-4ce7-895a-24e94bdfcc16":{"id":"c818c9da-dc27-4ce7-895a-24e94bdfcc16","type":"basic.output","selected":false,"x":1466,"y":521,"ports":[{"id":"3d661d50-0b0d-469b-a0bd-6792c4709904","type":"port.input","x":1467,"y":540,"name":"output-in","alignment":"left","parentNode":"c818c9da-dc27-4ce7-895a-24e94bdfcc16","links":["26ced5b7-64b4-47b6-b064-9998324b0891"],"in":true,"label":"output-in","hideLabel":true}],"data":{"name":"Out"}}}}]},"version":"3.0","package":{"name":"Threshold","version":"2.0.0","description":"Thresholds an Image","author":"Muhammad Taha, Toshan Luktuke","image":"data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZW5hYmxlL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OTM0LTMxLjk4OC41MTMtMjYuNDA5IDE2LjU3MWgtMTguMzg4Yy04LjkyMi00NS44Mi0xOC43ODUtMTAwLTUxLjU1OS0xMDAtMzIuNjk4IDAtNDIuNTU3IDUzLjc3LTUxLjU1OSAxMDBoLTUwLjI3N2MtOS4zMDEtNDcuNzctMTguNzI4LTk0Ljk5OC00Ny4wNzUtOTkuNjM4di0yNS42MTdjMTYuMDY0IDUuNTggMjguNDk5LTE0LjQ4MyAxNi41NzEtMjYuNDA5bC0yMS4yNTgtMjEuMjU4Yy02LjI0OC02LjI0OC0xNi4zNzktNi4yNDgtMjIuNjI3IDBsLTIxLjI1OCAyMS4yNThjLTExLjkzNCAxMS45MzMuNTEyIDMxLjk4OCAxNi41NzEgMjYuNDA5djEyNS4yNTVoLTMyLjE5NmM1LjU4Mi0xNi4wNjUtMTQuNDg1LTI4LjQ5Ny0yNi40MDktMTYuNTcxbC0yMS4yNTggMjEuMjU3Yy02LjI0OSA2LjI0OS02LjI0OSAxNi4zNzkgMCAyMi42Mjh6bTE2Mi44MTggNDkuMTQ4Yy04LjY0NC0xMy41Ny0xNS43OS00OS43OTktMTguOTQ2LTY1LjcxOWgzNy44OTRjLTMuMTQzIDE1Ljg0NS0xMC4yOTggNTIuMTQ1LTE4Ljk0OCA2NS43MTl6bTc2LjY5OC0xNjMuNDM5YzguNjQ3IDEzLjU2OSAxNS43OTYgNDkuODI0IDE4Ljk0OCA2NS43MmgtMzcuODk2YzMuMTQ2LTE1Ljg2OCAxMC4yOTgtNTIuMTQ3IDE4Ljk0OC02NS43MnptLTE0OC45MTEgOS4yNDRjNi4xODggMTUuNjExIDExLjExNyAzOS41OTUgMTQuNDY0IDU2LjQ3NmgtMTQuNDY0eiIvPjwvc3ZnPg=="},"design":{"board":"Python3-Noetic","graph":{"blocks":[{"id":"ab27ff70-412a-4feb-b328-824b9555dee8","type":"basic.input","data":{"name":"Img"},"position":{"x":339,"y":427}},{"id":"1c04d721-6333-406c-888f-50596ce70b5b","type":"basic.input","data":{"name":"Enable"},"position":{"x":339,"y":640}},{"id":"33dd5494-98bc-4b04-8a69-51b382dcab04","type":"basic.code","data":{"code":"import cv2\nimport numpy as np\n\ndef main(inputs, outputs, parameters, synchronise):\n\n lower = parameters.read_number(\"LowerThreshold\")\n upper = parameters.read_number(\"UpperThreshold\")\n \n auto_enable = False\n try:\n enable = inputs.read_number(\"Enable\")\n except Exception:\n auto_enable = True\n\n while(auto_enable or inputs.read_number('Enable')):\n frame = inputs.read_image(\"Img\")\n if frame is None:\n continue\n\n frame = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)\n (T, thresh) = cv2.threshold(frame, lower, upper, cv2.THRESH_BINARY)\n output = cv2.cvtColor(thresh, cv2.COLOR_GRAY2BGR)\n \n outputs.share_image('Out', output)\n\n synchronise()","frequency":"30","params":[{"name":"LowerThreshold"},{"name":"UpperThreshold"}],"ports":{"in":[{"name":"Img"},{"name":"Enable"}],"out":[{"name":"Out"}]},"size":{"width":"727px","height":"14px"}},"position":{"x":496,"y":229}},{"id":"0004-ac7002a6-40c7-4418-962f-7c675c6f001e","type":"basic.constant","data":{"name":"Lower Threshold","value":"127","local":true},"position":{"x":716,"y":65}},{"id":"0005-112cbdff-42c7-474a-9fa5-68735f94a527","type":"basic.constant","data":{"name":"Upper Threshold","value":"255","local":true},"position":{"x":1019,"y":66}},{"id":"c818c9da-dc27-4ce7-895a-24e94bdfcc16","type":"basic.output","data":{"name":"Out"},"position":{"x":1466,"y":521}}],"wires":[{"source":{"block":"0004-ac7002a6-40c7-4418-962f-7c675c6f001e","port":"constant-out","name":"Lower Threshold"},"target":{"block":"33dd5494-98bc-4b04-8a69-51b382dcab04","port":"LowerThreshold","name":"LowerThreshold"}},{"source":{"block":"0005-112cbdff-42c7-474a-9fa5-68735f94a527","port":"constant-out","name":"Upper Threshold"},"target":{"block":"33dd5494-98bc-4b04-8a69-51b382dcab04","port":"UpperThreshold","name":"UpperThreshold"}},{"source":{"block":"1c04d721-6333-406c-888f-50596ce70b5b","port":"input-out","name":"Enable"},"target":{"block":"33dd5494-98bc-4b04-8a69-51b382dcab04","port":"Enable","name":"Enable"}},{"source":{"block":"ab27ff70-412a-4feb-b328-824b9555dee8","port":"input-out","name":"Img"},"target":{"block":"33dd5494-98bc-4b04-8a69-51b382dcab04","port":"Img","name":"Img"}},{"source":{"block":"33dd5494-98bc-4b04-8a69-51b382dcab04","port":"Out","name":"Out"},"target":{"block":"c818c9da-dc27-4ce7-895a-24e94bdfcc16","port":"output-in","name":"output-in"}}]}},"dependencies":{}} \ No newline at end of file