diff options
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" |
