<gsb-card2  title="身份证文字识别">

  <div>
    <gsb-step :psteps="steps" :step="step">
   </gsb-step></br>
  </div>
  <div style="text-align:center;">
    <el-upload
      id="file"
      list-type="picture-card"
      :on-preview="handlePictureCardPreview"
      accept="image/jpeg,image/jpg,image/png"
      :on-remove="handleRemove"
      class="upload1"
      :action="action"
      :data="d"
      multiple="false"
      limit="1"
      :on-exceed="onExceed"
      :before-upload="beforeUpload"
      :on-success="success"
      :on-error="error"
      :on-progress="progress"
      :on-remove="remove"
      >
      <i class="el-icon-plus"></i>
    </el-upload>
    <el-dialog :visible.sync="dialogVisible">
      <img width="20%" border="5px" :src="dialogImageUrl" alt="">
    </el-dialog>
  </div>
  <div style="text-align:center;margin-top:20px;">
    <el-button type="primary"  :disabled="disabled" @click="picToText">身份证转文字</el-button>
  </div>
  <div name="text" v-show="convertState" >

      <p>姓名：{{text.name}}</p>
      <p>性别：{{text.sex}}</p>
      <p>民族：{{text.nationality}}</p>
      <p>出生：{{text.birth}}</p>
      <p>住址：{{text.address}}</p>
      <p>公民身份号码：{{text.num}}</p>

  </div>
</gsb-card2>
