Browse Source

fix: recover

amanda 3 years ago
parent
commit
af13a323fe

+ 1 - 1
backend_refactor/service/photo_analyzer.py

@@ -49,7 +49,7 @@ class StandingPhotoAnalyzer(BasePhotoAnalyzer):
                 photos.append(FILE_URL + '{}.result.jpg'.format(i))
 
             callback("FINISHED", result={"data": {"front": {"file": photos[0]}, "right": {"file": photos[1]}},
-                                         "advice": {"front": npys[0], "right": npys[1],"points":poses}},)
+                                         "advice": {"front": npys[0], "right": npys[1]}},)
         except Exception as e:
             callback("ERROR", error=e)
             raise e

+ 0 - 7
frontend_refactor/src/containers/TaskList.js

@@ -73,7 +73,6 @@ function renderResult(x, data) {
     let analysis = []
 
     let advice_element = <></>
-    let points_element = <></>
 
     if (result !== undefined) {
         if (result.file !== undefined) {
@@ -91,10 +90,8 @@ function renderResult(x, data) {
 
         if (data.type === "PHOTO_STANDING") {
             advice_element = advice['front'].filter(x => typeof x === 'string').concat(advice['right'].filter(x => typeof x === 'string')).map(x => <>{x}<br/></>)
-            points_element = advice['points']
         } else {
             advice_element = <p>{advice}</p>
-            points_element= <p>{points}</p>
         }
 
         for (const key in result.data) {
@@ -135,10 +132,6 @@ function renderResult(x, data) {
                         <Card type="inner" title="分析建议">
                             {advice_element}
                         </Card>
-                        <Card type="inner" title="数据坐标">
-                            {points_element}
-                        </Card>
-
                         <Card type="inner" title="详细数据">
                             {analysis}
                         </Card>