Last active
May 2, 2019 10:06
-
-
Save sktwentysix/e1bafd13cfb27155e59b21869a4d464e to your computer and use it in GitHub Desktop.
medium-ocr-react-generate2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button onClick={this.generateText} className="button">Generate</button> | |
... | |
{ /* Results */ } | |
<section className="results"> | |
{ this.state.documents.map((value, index) => { | |
return ( | |
<div key={index} className="results__result"> | |
<div className="results__result__image"> | |
<img src={this.state.uploads[index]} width="250px" /> | |
</div> | |
<div className="results__result__info"> | |
<div className="results__result__info__codes"> | |
<small><strong>Confidence Score:</strong> {value.confidence}</small> | |
</div> | |
<div className="results__result__info__codes"> | |
<small><strong>Pattern Output:</strong> {value.pattern.map((pattern) => { return pattern + ', ' })}</small> | |
</div> | |
<div className="results__result__info__text"> | |
<small><strong>Full Output:</strong> {value.text}</small> | |
</div> | |
</div> | |
</div> | |
) | |
}) } | |
</section> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment