diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-12-18 01:34:36 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-12-18 01:34:36 +0100 |
| commit | e5b6ef658e936c32d9500ff7f781171d9785315a (patch) | |
| tree | 9130c9760e3094410551e5e2ae2036454a32899d /client/faceSearch/faceSearch.query.js | |
| parent | bf3dd1399e4ef1db5fb8830004827fe603f73b2e (diff) | |
pool_recycle 3600
Diffstat (limited to 'client/faceSearch/faceSearch.query.js')
| -rw-r--r-- | client/faceSearch/faceSearch.query.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/client/faceSearch/faceSearch.query.js b/client/faceSearch/faceSearch.query.js index 425cb282..20d200bb 100644 --- a/client/faceSearch/faceSearch.query.js +++ b/client/faceSearch/faceSearch.query.js @@ -5,6 +5,14 @@ import { connect } from 'react-redux' import { Loader } from '../common' import * as actions from './faceSearch.actions' +// function parse_bbox(s) { +// // "BBox: (77,86), (166, 177), width:89, height:91" +// try { +// const [x, y, w, h, width, height] = s.replace(/\D/g, ' ').replace(/\s+/g, ' ').trim().split(' ') +// return { x, y, w, h } +// } +// } + class FaceSearchQuery extends Component { state = { image: null @@ -32,6 +40,7 @@ class FaceSearchQuery extends Component { render() { const { result } = this.props const { image } = this.state + console.log(result) const style = {} if (image) { style.backgroundImage = 'url(' + image + ')' @@ -47,6 +56,7 @@ class FaceSearchQuery extends Component { </div> : <div style={style}> {image ? null : <img src="/assets/img/icon_camera.svg" />} + <input type="file" name="img" |
