---
# System prepended metadata

title: 2022/10/14開發紀錄

---

# 2022/10/14開發紀錄

### 議題：AIController的使用方式

initial:
```
AIControllerFactory tmpAIControllerFactory; //"CADe_v4.0_test_tracking"
"CADe4.3_CADe4.0_two_version_combine"
auto tmpResult=tmpAIControllerFactory.createAIController(PlayerSettings::CADeSensitivityLevel, "CADe_v4.0_test_tracking", ip_ThresholdMap);
	testingController = std::get<0>(tmpResult);
	m_CADTool = std::get<1>(tmpResult);
	m_CADxModel = std::get<2>(tmpResult);
```
![](https://i.imgur.com/XpAydPi.png)

使用:
```
testingController->DetectionWithDiagnoseROI(tempImgData, dis, PlayerSettings::IsPhantom, i, extra_inform);
```
![](https://i.imgur.com/HlkNkrX.png)

呼叫結果:
```
//Method tracking  method_id=0 表示b-1 lesion會隨時間改變
testingController->GetLesionFrameByFrame(curFrameID, 0);

//Method tracking  method_id=1 表示 b-2 lesion不會隨時間改變
testingController->GetLesionFrameByFrame(curFrameID - 5, 1);
```
![](https://i.imgur.com/PE8FR68.png)
