|
@@ -46,12 +46,12 @@ void HttpPushNode::work()
|
|
|
std::string image_name = "result/" + metaData->from + "_" + getTimeString() + ".jpg";
|
|
|
cv::imwrite(image_name, image);
|
|
|
|
|
|
- // if (!metaData->depth.empty())
|
|
|
- // {
|
|
|
- // get_color_depth(metaData->depth);
|
|
|
- // std::string depth_name = "result/" + metaData->from + "_depth_" + getTimeString() + ".jpg";
|
|
|
- // cv::imwrite(depth_name, get_color_depth(metaData->depth));
|
|
|
- // }
|
|
|
+ if (!metaData->depth.empty())
|
|
|
+ {
|
|
|
+ get_color_depth(metaData->depth);
|
|
|
+ std::string depth_name = "result/" + metaData->from + "_depth_" + getTimeString() + ".jpg";
|
|
|
+ cv::imwrite(depth_name, get_color_depth(metaData->depth));
|
|
|
+ }
|
|
|
}
|
|
|
if (!has_data) {
|
|
|
std::unique_lock<std::mutex> lock(mutex_);
|