tianboguang преди 2 години
родител
ревизия
c1e90fc107

+ 0 - 26
4dkankan-utils-model/src/main/java/com/fdkankan/model/utils/ConvertCommonUtils.java

@@ -135,32 +135,6 @@ public class ConvertCommonUtils {
 
     }
 
-    public static void main(String[] args) throws Exception{
-//        List<String> list1 = new ArrayList<String>();
-//        list1.add("普通会员");
-//        list1.add("专业会员");
-//        list1.add("商业会员");
-//        List<String> list2 = new ArrayList<String>();
-//        list2.add("1G");
-//        list2.add("1T");
-//        List<List<String>> dimValue = new ArrayList<List<String>>();
-//        dimValue.add(list1);
-//        dimValue.add(list2);
-//
-//        // 递归实现笛卡尔积
-//        ConvertCommonUtils s = new ConvertCommonUtils();
-//        List<List<String>> res = s.descartes(dimValue);
-//        System.out.println("递归实现笛卡尔乘积: 共 " + res.size() + " 个结果");
-//        for (List<String> list : res) {
-//            for (String string : list) {
-//                System.out.print(string + " ");
-//            }
-//            System.out.println();
-//        }
-        ConvertCommonUtils.convertTxtToVisionModelData("F:\\visiontest\\vision.txt", "F:\\visiontest\\vision.modeldata");
-
-    }
-
     public static void convertTxtToVisionmodeldata(String srcpath,String despath)throws Exception
     {
         try

+ 0 - 4
4dkankan-utils-model/src/main/java/com/fdkankan/model/utils/ConvertUtils.java

@@ -137,10 +137,6 @@ public class ConvertUtils {
 
     }
 
-    public static void main(String[] args) throws Exception {
-        ConvertUtils.convertVisionModelDataToTxt("F:\\test\\vision.modeldata", "F:\\test\\vision.json");
-    }
-
     public static void convertTxtToVisionmodeldata(String srcpath,String despath)throws Exception
     {
         try

+ 0 - 50
4dkankan-utils-model/src/main/java/com/fdkankan/model/utils/CreateObjUtil.java

@@ -593,56 +593,6 @@ public class CreateObjUtil {
 		log.info("删除/mnt/data/下的数据完毕:" + command);
 	}
 
-	public static void ossUtilCp(String fileUrl , String path) throws Exception{
-		String command = ConstantCmd.OSS_UTIL_CP + " " + fileUrl + " " + path;
-		Long start = System.currentTimeMillis();
-		log.info("开始oss下载文件:" + command);
-		callshell(command);
-		log.info("oss下载文件完成,时间为:" + (System.currentTimeMillis() - start));
-	}
-
-	/**
-	 * oss文件下载,支持目录或者单个文件下载
-	 * @param fyunType oss类型(oss, aws)
-	 * @param bucket oss桶名
-	 * @param remoteFilePath	key
-	 * @param path		本地路径
-	 * @throws Exception
-	 */
-	public static void ossDownload(String fyunType, String bucket, String remoteFilePath , String path) throws Exception{
-		String optType = remoteFilePath.contains(".") ? "file" : "folder";
-		String command = String.format(ConstantCmd.FYUN_DOWNLOAD, bucket, remoteFilePath, path, fyunType, optType);
-		Long start = System.currentTimeMillis();
-		log.info("开始oss下载文件:" + command);
-		callshell(command);
-		log.info("oss下载文件完成,时间为:" + (System.currentTimeMillis() - start));
-	}
-
-	/**
-	 * oss文件上传,支持目录或者单个文件上传
-	 * @param fyunType oss类型(oss, aws)
-	 * @param bucket oss桶名
-	 * @param remoteFilePath	key
-	 * @param path		本地路径
-	 * @throws Exception
-	 */
-	public static void ossUpload(String fyunType, String bucket, String remoteFilePath , String path) throws Exception{
-		String optType = remoteFilePath.contains(".") ? "file" : "folder";
-		String command = String.format(ConstantCmd.FYUN_UPLOAD, bucket, path, remoteFilePath, fyunType, optType);
-		Long start = System.currentTimeMillis();
-		log.info("开始oss上传文件:" + command);
-		callshell(command);
-		log.info("oss上传文件完成,时间为:" + (System.currentTimeMillis() - start));
-	}
-
-	public static void ossFileCp(String fileUrl , String path) throws Exception{
-		String command = ConstantCmd.OSS_FILE_CP + " " + fileUrl + " " + path;
-		Long start = System.currentTimeMillis();
-		log.info("开始s3文件下载文件:" + command);
-		callshell(command);
-		log.info("s3文件下载文件完成,时间为:" + (System.currentTimeMillis() - start));
-	}
-
 	/**
 	 * matterpro场景获取阿里云的切图数据
 	 * @param path