|
@@ -301,8 +301,7 @@ public class CreateObjUtil {
|
|
|
|
|
|
public static void convertTxtToVisionmodeldata(String srcpath,String despath)throws Exception
|
|
|
{
|
|
|
- try
|
|
|
- {
|
|
|
+ try{
|
|
|
Visionmodeldata.NavigationInfo.Builder builder = Visionmodeldata.NavigationInfo.newBuilder();
|
|
|
String jsonFormat = readTxtFileToJson(srcpath);
|
|
|
JsonFormat.merge(jsonFormat, builder);
|
|
@@ -613,7 +612,7 @@ public class CreateObjUtil {
|
|
|
}
|
|
|
|
|
|
public static void main(String[] args) throws Exception{
|
|
|
-// CreateObjUtil.convertTxtToVisionmodeldata("F:\\visiontest\\KJ-HXMNTDYs1E.txt", "F:\\visiontest\\vision.modeldata");
|
|
|
+ CreateObjUtil.convertTxtToVisionmodeldata("F:\\visiontest\\vision.txt", "F:\\visiontest\\vision.modeldata");
|
|
|
// CreateObjUtil.convertTxtToDam("F:\\visiontest\\modeldata.txt", "F:\\visiontest\\dacf7dfa24ae47fab8fcebfe4dc41ab9_50k.dam");
|
|
|
|
|
|
// String text = "web:web";
|
|
@@ -626,17 +625,17 @@ public class CreateObjUtil {
|
|
|
// Thread.sleep(2000);
|
|
|
// stopWatch.stop();
|
|
|
// System.out.println(stopWatch.getTime(TimeUnit.SECONDS));
|
|
|
- ExecutorService executorService = Executors.newFixedThreadPool(1);
|
|
|
- Future<String> future = executorService.submit(()->{
|
|
|
- return CreateObjUtil.test();
|
|
|
- });
|
|
|
-
|
|
|
- try {
|
|
|
- String s = future.get();
|
|
|
- }catch (Exception e){
|
|
|
-
|
|
|
- System.out.println(ExceptionUtil.stacktraceToString(e));
|
|
|
- }
|
|
|
+// ExecutorService executorService = Executors.newFixedThreadPool(1);
|
|
|
+// Future<String> future = executorService.submit(()->{
|
|
|
+// return CreateObjUtil.test();
|
|
|
+// });
|
|
|
+//
|
|
|
+// try {
|
|
|
+// String s = future.get();
|
|
|
+// }catch (Exception e){
|
|
|
+//
|
|
|
+// System.out.println(ExceptionUtil.stacktraceToString(e));
|
|
|
+// }
|
|
|
|
|
|
|
|
|
|