Selaa lähdekoodia

注释报错代码

yumeng 5 vuotta sitten
vanhempi
commit
e65b1e18a2

+ 5 - 1
jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/opencv/CornerCheck.java

@@ -1,3 +1,4 @@
+/*
 package org.jeecg.modules.demo.opencv;
 
 import cn.com.ctop.common.module.utils.ResultMapUtils;
@@ -8,9 +9,11 @@ import org.opencv.imgproc.Imgproc;
 
 import java.util.*;
 
+*/
 /**
  * 角点检测
- */
+ *//*
+
 public class CornerCheck {
     static {
         System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
@@ -227,3 +230,4 @@ public class CornerCheck {
         }
     }
 }
+*/

+ 9 - 3
jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/opencv/Perspective.java

@@ -1,3 +1,4 @@
+/*
 package org.jeecg.modules.demo.opencv;
 
 
@@ -8,9 +9,11 @@ import org.opencv.utils.Converters;
 
 import java.util.List;
 
+*/
 /**
  * 透视变换
- */
+ *//*
+
 public class Perspective {
     public static void main(String[] args) {
 
@@ -111,13 +114,15 @@ public class Perspective {
         return (iSum % 2) != 0;
     }
 
-    /**
+    */
+/**
      * 判断点是否在多边形内,如果点位于多边形的顶点或边上,也算做点在多边形内,直接返回true
      *
      * @param point   检测点
      * @param polygon 多边形的顶点
      * @return 点在多边形内返回true, 否则返回false
-     */
+     *//*
+
     public static boolean isPtInPoly(Point point, List<Point> polygon) {
 
         int N = polygon.size();
@@ -210,3 +215,4 @@ public class Perspective {
         }
     }
 }
+*/

+ 2 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/opencv/Test.java

@@ -1,3 +1,4 @@
+/*
 package org.jeecg.modules.demo.opencv;
 
 public class Test {
@@ -13,3 +14,4 @@ public class Test {
     }
 
 }
+*/

+ 17 - 7
jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/opencv/VideoProcessing.java

@@ -1,3 +1,4 @@
+/*
 package org.jeecg.modules.demo.opencv;
 
 import org.bytedeco.javacv.FFmpegFrameGrabber;
@@ -8,21 +9,25 @@ import javax.imageio.ImageIO;
 import java.awt.image.BufferedImage;
 import java.io.File;
 
+*/
 /**
  * 视频截帧处理
- */
+ *//*
+
 public class VideoProcessing {
     public static String videoPath = "D:/data";
 
     //存放截取视频某一帧的图片
     public static String videoFramesPath = "D:/data/images/";
 
-    /**
+    */
+/**
      * 将视频文件帧处理并以“jpg”格式进行存储。
      * 依赖FrameToBufferedImage方法:将frame转换为bufferedImage对象
      *
      * @param videoFileName
-     */
+     *//*
+
     public static String grabberVideoFramer(String videoFileName) {
         //最后获取到的视频的图片的路径
         String videPicture = "";
@@ -31,9 +36,11 @@ public class VideoProcessing {
         //标识
         int flag = 0;
         try {
-			 /*
+			 */
+/*
             获取视频文件
-            */
+            *//*
+
             FFmpegFrameGrabber fFmpegFrameGrabber = new FFmpegFrameGrabber(videoPath + "/" + videoFileName);
             fFmpegFrameGrabber.start();
 
@@ -43,9 +50,11 @@ public class VideoProcessing {
 
             while (flag <= ftp) {
                 frame = fFmpegFrameGrabber.grabImage();
-				/*
+				*/
+/*
 				对视频的第五帧进行处理
-				 */
+				 *//*
+
                 if (frame != null) {
                     //文件绝对路径+名字
                     String fileName = videoFramesPath + String.valueOf(flag) + ".jpg";
@@ -76,3 +85,4 @@ public class VideoProcessing {
         grabberVideoFramer(videoFileName);
     }
 }
+*/