IImageService.java 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. package com.huimv.process.service;
  2. import com.alibaba.fastjson.JSONObject;
  3. import java.io.IOException;
  4. public interface IImageService {
  5. /**
  6. * @Method : saveImage
  7. * @Description :
  8. * @Params : [imageBase64, imgPath]
  9. * @Return : void
  10. *
  11. * @Author : ZhuoNing
  12. * @Date : 2021/1/20
  13. * @Time : 15:51
  14. */
  15. public JSONObject saveImage(String imageBase64, String name);
  16. // public boolean saveImage(String imageBase64, String name);
  17. /**
  18. * @Method : addImage
  19. * @Description :
  20. * @Params : [name, imgPath, relativePath, fileName]
  21. * @Return : boolean
  22. *
  23. * @Author : ZhuoNing
  24. * @Date : 2021/1/21
  25. * @Time : 14:23
  26. */
  27. boolean addImage(String name, String imgPath, String relativePath, String fileName,String aiResult,int aiTimeUsed,String aiData);
  28. /**
  29. * @Method : getAIResult2
  30. * @Description : 获取AI识别结果
  31. * @Params : [imgPath]
  32. * @Return : java.lang.String
  33. *
  34. * @Author : ZhuoNing
  35. * @Date : 2021/1/21
  36. * @Time : 16:18
  37. */
  38. String getAiResult2(String imgPath) throws IOException;
  39. /**
  40. * @Method : getAiResult
  41. * @Description :
  42. * @Params : [imgPath, fileName]
  43. * @Return : com.alibaba.fastjson.JSONObject
  44. *
  45. * @Author : ZhuoNing
  46. * @Date : 2021/1/21
  47. * @Time : 19:55
  48. */
  49. JSONObject getAiResult(String imgPath,String fileName) throws IOException;
  50. }