From efafab5273ba3ff13a19f07088c320a5180188b6 Mon Sep 17 00:00:00 2001
From: pans <pansen626@sina.com>
Date: 星期四, 31 一月 2019 10:49:56 +0800
Subject: [PATCH] 1.2_布控feature: Auto stash before merge of "ywv1.2_布控feature" and "origin/ywv1.2_布控feature"
---
QiaoJiaSystem/DataManagerServer/demo.cpp | 34 ++++++++++++++++++++++------------
1 files changed, 22 insertions(+), 12 deletions(-)
diff --git a/QiaoJiaSystem/DataManagerServer/demo.cpp b/QiaoJiaSystem/DataManagerServer/demo.cpp
index 8756a8c..9334952 100644
--- a/QiaoJiaSystem/DataManagerServer/demo.cpp
+++ b/QiaoJiaSystem/DataManagerServer/demo.cpp
@@ -5,24 +5,34 @@
#include <AppPipeController.h>
#include <basic/util/app/AppPreference.hpp>
+using namespace std;
int main() {
- Json::Value json;
- json["rtsp"] = "rtsp://admin:a1234567@192.168.1.201:554/h264/ch1/main/av_stream";
+// Json::Value json;
+// json["rtsp"] = "rtsp://admin:a1234567@192.168.1.201:554/h264/ch1/main/av_stream";
+//
+// std::string publish_basepath = "rtmp://localhost:1934/live/cam" + std::to_string(554);
+// appPref.setLongData("gpu.index", 0);
+// appPref.setStringData("publish.basepath", publish_basepath);
+// appPref.setIntData("pulish.width", 640);
+// appPref.setIntData("pulish.height", 360);
+//
+// AppPipeController a(0, json);
+// a.start();
+//
+// getchar();
+//
+// a.stop();
+// a.wait();
- std::string publish_basepath = "rtmp://localhost:1934/live/cam" + std::to_string(554);
- appPref.setLongData("gpu.index", 0);
- appPref.setStringData("publish.basepath", publish_basepath);
- appPref.setIntData("pulish.width", 640);
- appPref.setIntData("pulish.height", 360);
+ string img = "http://192.168.1.182:8080/ManCarAnaly/group2/M00/02/B5/wKgBnFw3TB-AfsrIAAah4WWyHJ0555.jpg";
- AppPipeController a(0, json);
- a.start();
+ auto pos = img.find("group");
- getchar();
+ auto img_url = img.substr(pos);
+ std::string img_str = "http://";
+ img_str.append("");
- a.stop();
- a.wait();
return 0;
}
\ No newline at end of file
--
Gitblit v1.8.0