|
|
@@ -87,7 +87,8 @@ public class VideoProcessToolNew {
|
|
|
rank = Double.parseDouble(map.get("rank").replace("第", ""));
|
|
|
|
|
|
if (score > (total - rank) / total * 100 / 2) {
|
|
|
- imwrite(DateFormatUtils.format(new Date(), "yyyyMMddhhmmss") + RandomStringUtils.randomAlphabetic(4) + ".jpg", frame);
|
|
|
+ String filename = "/var/samples/" + DateFormatUtils.format(new Date(), "yyyyMMddHHmmss") + RandomStringUtils.randomNumeric(8) + ".jpg";
|
|
|
+ org.bytedeco.javacpp.opencv_imgcodecs.imwrite(filename, frame);
|
|
|
map.put("image", uploadImage(frame));
|
|
|
System.out.println(map);
|
|
|
break;
|