tfLite.json 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. "functions": [{
  20. "name": "tfLite",
  21. "example": "tfLite(model,para1, para2,...)",
  22. "hint": {
  23. "en_US": "Select AI model in runtime and infer the stream data",
  24. "zh_CN": "动态选择模型进行推断"
  25. },
  26. "args": [
  27. {
  28. "name": "model",
  29. "hidden": false,
  30. "optional": false,
  31. "control": "text",
  32. "type": "string",
  33. "hint": {
  34. "en_US": "Input data",
  35. "zh_CN": "输入模型"
  36. },
  37. "label": {
  38. "en_US": "Model Name",
  39. "zh_CN": "模型名称"
  40. }
  41. },{
  42. "name": "fields",
  43. "default": "",
  44. "optional": false,
  45. "control": "list",
  46. "type": "list_string",
  47. "hint": {
  48. "en_US": "select parameter fields",
  49. "zh_CN": "选取参数字段"
  50. },
  51. "label": {
  52. "en_US": "Parameter Fields",
  53. "zh_CN": "参数字段"
  54. }
  55. }
  56. ],
  57. "return": {
  58. "type": "array",
  59. "hint": {
  60. "en_US": "Inferred result",
  61. "zh_CN": "推理结果"
  62. }
  63. },
  64. "node": {
  65. "category": "function",
  66. "icon": "iconPath",
  67. "label": {
  68. "en_US": "Tensorflow Lite",
  69. "zh_CN": "Tensorflow Lite"
  70. }
  71. }
  72. }]
  73. }