From e5b6ef658e936c32d9500ff7f781171d9785315a Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 18 Dec 2018 01:34:36 +0100 Subject: pool_recycle 3600 --- client/faceSearch/faceSearch.query.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'client/faceSearch') 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 { :
{image ? null : } +