diff options
Diffstat (limited to 'client/faceSearch/faceSearch.query.js')
| -rw-r--r-- | client/faceSearch/faceSearch.query.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/client/faceSearch/faceSearch.query.js b/client/faceSearch/faceSearch.query.js index 425cb282..9f778ca0 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" @@ -58,7 +68,7 @@ class FaceSearchQuery extends Component { } </div> <div className='cta'> - <h2>Search This Dataset</h2> + <h2>Search by Image</h2> <h3>Searching {13456} images</h3> <p> {'Use facial recognition to reverse search into the LFW dataset '} |
