|
|
@@ -43,23 +43,7 @@ public class IotBzyImgService {
|
|
|
* @return
|
|
|
*/
|
|
|
public void insertIotBzyimg(IotDevice iotDevice, JSONObject jsonObject, String devUpdateddate) {
|
|
|
- long cbdimgPestnum;
|
|
|
-
|
|
|
String cbdimgAddr = this.getJsonData("Image", jsonObject);
|
|
|
- //String cbdrecogResult = this.getJsonData("Result", jsonObject);
|
|
|
- //String cbdrecogAddr = this.getJsonData("Result_image", jsonObject);
|
|
|
- //String cbdimgPestnumStr = this.getJsonData("Result_c", jsonObject);
|
|
|
- //String cbdrecogMachinemark = this.getJsonData("Result_code", jsonObject);
|
|
|
-
|
|
|
- /* try {
|
|
|
- cbdimgPestnum = Long.parseLong(cbdimgPestnumStr.split(",")[1]);
|
|
|
- } catch (Exception e) {
|
|
|
- cbdimgPestnum = 0L;
|
|
|
- }*/
|
|
|
-
|
|
|
- /* IotBzyPestRecogService.PestRecogResult pestRecogResult = iotBzyPestRecogService.getIotPestrecogResult(
|
|
|
- iotDevice, cbdrecogResult);*/
|
|
|
-
|
|
|
// 保存 测报灯基础图片信息
|
|
|
IotBzyimg iotBzyimg = new IotBzyimg();
|
|
|
iotBzyimg.setBzyimgBid(iotBzyimg.getUUId());
|
|
|
@@ -71,19 +55,7 @@ public class IotBzyImgService {
|
|
|
iotBzyimg.setBzyimgDelstatus("0");
|
|
|
|
|
|
mongoService.saveOne(iotBzyimg);
|
|
|
-
|
|
|
- //String recogBid = iotBzyimg.getUUId();
|
|
|
-
|
|
|
- // 保存 测报灯图片识别信息
|
|
|
- /*IotBzyrecog iotBzyrecog = iotBzyRecogService.saveIotBzyRecog(recogBid, iotBzyimg, iotDevice, cbdrecogAddr,
|
|
|
- cbdrecogResult, null);*/
|
|
|
-
|
|
|
- // 保存 虫情识别信息
|
|
|
- //iotBzyPestRecogService.savePestRecog(pestRecogResult, iotDevice, iotBzyrecog);
|
|
|
}
|
|
|
|
|
|
- public String getBzyPestRecogImgOssUrl(String originalImgOssUrl, String imgId, List<JSONObject> points) {
|
|
|
- return BzyInsectIdentifyUtil.identifyAndUpload(originalImgOssUrl, ResConstants.BizType.CBD_RECOGNITION_MARKERS_AI, imgId, points, iotPestService.selectIotPestMapAll());
|
|
|
- }
|
|
|
}
|
|
|
|