| | |
| | | package cn.huge.base.common.utils; |
| | | |
| | | |
| | | import com.baidu.aip.ocr.AipOcr; |
| | | import com.google.common.collect.Maps; |
| | | import org.json.JSONObject; |
| | |
| | | JSONObject result = json.getJSONObject("words_result"); |
| | | String sex = result.getJSONObject("性别").getString("words"); |
| | | map.put("sex",sex); |
| | | // if(sex.equals(CaseBaseConstsEnum.SEX_1.getDes())){ |
| | | // map.put("sexName",CaseBaseConstsEnum.SEX_1.getIndex()); |
| | | // }else{ |
| | | // map.put("sexName",CaseBaseConstsEnum.SEX_2.getIndex()); |
| | | // } |
| | | String name = result.getJSONObject("姓名").getString("words"); |
| | | map.put("trueName",name); |
| | | String address = result.getJSONObject("住址").getString("words"); |