java 打印box文件
生活随笔
收集整理的這篇文章主要介紹了
java 打印box文件
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
public void import11(){String path="D:\\北體檢陰陽性整標1116\\yinbox";TagImgFilter tageImgFilter=new TagImgFilter();tageImgFilter.setEq_setId("2367ff90d4ce495ca7c55fbd87683691"); tageImgFilter.setEq_typeId("f7ce9ce48b8b423b89ecd9da43edb2bc");tageImgFilter.setNull_tagJson(false);List<TagImg> tagImgList=tagImgService.selectAll(tageImgFilter);System.out.println("size:"+tagImgList.size());TagType tagType = null;int count=0;for(TagImg tagimg:tagImgList){tagType=tagTypeService.getById(tagimg.getTypeId());System.out.println(count);count++;//String md5=tagimg.getImgMd5();String id=tagimg.getId();FileUtil util=new FileUtil();String json=tagimg.getTagJson();JSONArray array=JSONArray.parseArray(json);if(array!=null && array.size()>0){for(int i=0;i<array.size();i++){JSONObject obj = array.getJSONObject(i);Double x=obj.getDouble("x");Double y=obj.getDouble("y");Double width=obj.getDouble("width");Double height=obj.getDouble("height");//String classname=obj.getString("classname");String typename=tagType.getName();String str=x.intValue()+" "+y.intValue()+" "+(int)(x+width.intValue())+" "+(int)(y+height.intValue())+" "+typename;//String str=x.intValue()+" "+y.intValue()+" "+(int)(x+width.intValue())+" "+(int)(y+height.intValue())+" "+"主動脈";//util.toFile(str, path, md5+".box");util.toFile(str, path, id+".box");}}
// if(count==1000){
// break;
// }
}}
?
轉載于:https://www.cnblogs.com/lely/p/10364608.html
總結
以上是生活随笔為你收集整理的java 打印box文件的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 二.安全NA之ASA基础
- 下一篇: DJANGO_SETTINGS_MODU