tfLite.json 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. {
  2. "about": {
  3. "trial": false,
  4. "author": {
  5. "name": "EMQ",
  6. "email": "contact@emqx.io",
  7. "company": "EMQ Technologies Co., Ltd",
  8. "website": "https://www.emqx.io"
  9. },
  10. "helpUrl": {
  11. "en_US": "https://ekuiper.org/docs/en/latest/sqls/custom_functions.html",
  12. "zh_CN": "https://ekuiper.org/docs/zh/latest/sqls/custom_functions.html"
  13. },
  14. "description": {
  15. "en_US": "General Tensorflow lite plugin which can infer any tflite model dynamically",
  16. "zh_CN": "通用的 TensorFlow Lite 插件,可以动态推断任何 tflite 模型。"
  17. }
  18. },
  19. "name": "tfLite",
  20. "functions": [{
  21. "name": "tfLite",
  22. "example": "tfLite(model,para1, para2,...)",
  23. "hint": {
  24. "en_US": "Select AI model in runtime and infer the stream data",
  25. "zh_CN": "动态选择模型进行推断"
  26. },
  27. "args": [
  28. {
  29. "name": "model",
  30. "hidden": false,
  31. "optional": false,
  32. "control": "text",
  33. "type": "string",
  34. "hint": {
  35. "en_US": "Input data",
  36. "zh_CN": "输入模型"
  37. },
  38. "label": {
  39. "en_US": "Model Name",
  40. "zh_CN": "模型名称"
  41. }
  42. },{
  43. "name": "fields",
  44. "default": "",
  45. "optional": false,
  46. "control": "list",
  47. "type": "list_string",
  48. "hint": {
  49. "en_US": "select parameter fields",
  50. "zh_CN": "选取参数字段"
  51. },
  52. "label": {
  53. "en_US": "Parameter Fields",
  54. "zh_CN": "参数字段"
  55. }
  56. }
  57. ],
  58. "return": {
  59. "type": "array",
  60. "hint": {
  61. "en_US": "Inferred result",
  62. "zh_CN": "推理结果"
  63. }
  64. },
  65. "node": {
  66. "category": "function",
  67. "icon": "iconPath",
  68. "label": {
  69. "en_US": "Tensorflow Lite",
  70. "zh_CN": "Tensorflow Lite"
  71. }
  72. }
  73. }]
  74. }