获取任务当前的定义(解析为对象) / Get the current definition of task (parsed as object) Args: name: 任务名 / Task name Returns: Optional[JPipelineData]: 任务定义对象,如果不存在则返回 None Task definition object, or None if not exists
(self, name: str)
| 204 | return None |
| 205 | |
| 206 | def get_node_object(self, name: str) -> Optional[JPipelineData]: |
| 207 | """获取任务当前的定义(解析为对象) / Get the current definition of task (parsed as object) |
| 208 | |
| 209 | Args: |
| 210 | name: 任务名 / Task name |
| 211 | |
| 212 | Returns: |
| 213 | Optional[JPipelineData]: 任务定义对象,如果不存在则返回 None |
| 214 | Task definition object, or None if not exists |
| 215 | """ |
| 216 | node_data = self.get_node_data(name) |
| 217 | |
| 218 | if not node_data: |
| 219 | return None |
| 220 | |
| 221 | return JPipelineParser.parse_pipeline_data(node_data) |
| 222 | |
| 223 | def get_default_recognition_param(self, reco_type: JRecognitionType) -> Optional[JRecognitionParam]: |
| 224 | """获取指定识别类型的默认参数 / Get default parameters for specified recognition type |
nothing calls this directly
no test coverage detected