Skip to content

Commit

Permalink
Remove confidence cut off
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertSasak committed Sep 30, 2019
1 parent ecca1a4 commit 4f932e9
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions RNOpenALPRExample/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,10 @@ export default class App extends Component {
camera = null

onPlateRecognized = ({ plate, confidence }) => {
if (confidence > 0) {
this.setState({
plate,
confidence: confidence.toFixed(1),
})
}
this.setState({
plate,
confidence: confidence.toFixed(1),
})
}

toggleOptions = () => this.setState({ showOptions: !this.state.showOptions })
Expand Down

0 comments on commit 4f932e9

Please sign in to comment.