| 13 | } |
| 14 | |
| 15 | MaaTaskId RemoteContext::run_task(const std::string& entry, const json::value& pipeline_override) |
| 16 | { |
| 17 | ContextRunTaskReverseRequest req { |
| 18 | .context_id = context_id_, |
| 19 | .entry = entry, |
| 20 | .pipeline_override = pipeline_override, |
| 21 | }; |
| 22 | |
| 23 | auto resp_opt = server_.send_and_recv<ContextRunTaskReverseResponse>(req); |
| 24 | if (!resp_opt) { |
| 25 | return MaaInvalidId; |
| 26 | } |
| 27 | return resp_opt->task_id; |
| 28 | } |
| 29 | |
| 30 | MaaRecoId RemoteContext::run_recognition(const std::string& entry, const json::value& pipeline_override, const cv::Mat& image) |
| 31 | { |
no outgoing calls
no test coverage detected