首页 > 解决方案 > React reload after peak so photo that peak to OCR Process in无法进动

问题描述

单击生成反应后重新加载页面,因此已附加到网络的照片未附加。所以它不能处理OCR。我应该怎么做才能使它不重新加载页面并开始运行 OCR 进程。

一些代码

  <label className="fileUploaderContainer">
    Click here to upload documents
    <input
      type="file"
      id="fileUploader"
      onChange={this.handleChange}
      multiple
    />
  </label>
  <div>
    {" "}
    {this.state.uploads.map((value, index) => {
      return (
        <img key={index} src={value} width="100px " alt="state.uploads.map" />
      );
    })}{" "}
  </div>
  <button onClick={this.generateText} className="button">
    {" "}
    Generate{" "}
  </button>

标签: reactjsocr

解决方案


推荐阅读