labelImage.json 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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": "Example plugin to demonstrate inferring Tensorflow lite model to label an image",
  16. "zh_CN": "示例插件,演示如何使用Tensorflow lite模型对图像进行标记推断。"
  17. }
  18. },
  19. "functions": [{
  20. "name": "labelImage",
  21. "example": "labelImage(col1)",
  22. "hint": {
  23. "en_US": "Label an image by tensorflow lite model.",
  24. "zh_CN": "采用 tensorflow lite 模型标记图片。"
  25. },
  26. "args": [
  27. {
  28. "name": "image",
  29. "hidden": false,
  30. "optional": false,
  31. "control": "field",
  32. "type": "string",
  33. "hint": {
  34. "en_US": "Input image",
  35. "zh_CN": "输入图像"
  36. },
  37. "label": {
  38. "en_US": "Image",
  39. "zh_CN": "图像"
  40. }
  41. }
  42. ],
  43. "return": {
  44. "type": "string",
  45. "hint": {
  46. "en_US": "Image Label",
  47. "zh_CN": "图像标注"
  48. }
  49. },
  50. "node": {
  51. "category": "function",
  52. "icon": "iconPath",
  53. "label": {
  54. "en_US": "Label Image",
  55. "zh_CN": "图像标注"
  56. }
  57. }
  58. }]
  59. }