segmentationtest.cpp 393 B

12345678910111213141516
  1. #include "DetectionClient.hh"
  2. #include "opencv2/opencv.hpp"
  3. int main(){
  4. DetectionClient client("tcp://ob:55556");
  5. cv::Mat newmat = cv::imread("/studi-tmp/kstrohm/AnnotierteSequenzen/SZ_09445899065805/JPEGImages/000100.jpg");
  6. cv::imshow("test2",newmat);
  7. cv::Mat segmentation = client.getSegmentation(newmat);
  8. cv::imshow("test",segmentation * 50);
  9. cv::waitKey();
  10. }