Fix wrong type cast 92/214592/1 accepted/tizen/unified/20190925.042220 submit/tizen/20190925.014740
authorTae-Young Chung <ty83.chung@samsung.com>
Tue, 24 Sep 2019 07:49:29 +0000 (16:49 +0900)
committerTae-Young Chung <ty83.chung@samsung.com>
Tue, 24 Sep 2019 07:49:29 +0000 (16:49 +0900)
Change-Id: Ieaf42f74bba1eb7f2c832362b519cffb7071dfe9
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
packaging/inference-engine-interface.spec
vision/inference_engine_vision_impl.cpp

index cb27576..8118191 100644 (file)
@@ -1,7 +1,7 @@
 Name:        inference-engine-interface
 Summary:     Interface of inference engines
 Version:     0.0.1
-Release:     6
+Release:     7
 Group:       Multimedia/Framework
 License:     Apache-2.0
 Source0:     %{name}-%{version}.tar.gz
index 0bf5a37..cf4b32f 100644 (file)
@@ -388,7 +388,7 @@ int InferenceEngineVision::GetInferenceResult(ObjectDetectionResults& results)
     float* boxes = reinterpret_cast<float*>(inferResults[0]);
     float* classes = reinterpret_cast<float*>(inferResults[1]);
     float* scores = reinterpret_cast<float*>(inferResults[2]);
-    int number_of_detections = (int)(reinterpret_cast<int*>(inferResults[3]));
+    int number_of_detections = (int)(*reinterpret_cast<float*>(inferResults[3]));
 
     int left, top, right, bottom;
     cv::Rect loc;
@@ -438,7 +438,7 @@ int InferenceEngineVision::GetInferenceResult(FaceDetectionResults& results)
     float* classes = reinterpret_cast<float*>(inferResults[1]);
     float* scores = reinterpret_cast<float*>(inferResults[2]);
 
-    int number_of_detections = (int)(reinterpret_cast<int*>(inferResults[3]));
+    int number_of_detections = (int)(*reinterpret_cast<float*>(inferResults[3]));
     int left, top, right, bottom;
     cv::Rect loc;