Add Test Mode and Viewfinder
This commit is contained in:
@@ -10,8 +10,19 @@ int main(int argc, char **argv)
|
||||
{
|
||||
StreamManager stream_mgr;
|
||||
ImageAnalyzer analyzer;
|
||||
FaultManager fault_mgr(stoi(argv[1]), stod(argv[2]));
|
||||
FaultManager fault_mgr;
|
||||
PvString lConnectionID;
|
||||
|
||||
// If running in test mode
|
||||
if (argc > 1 && !strcmp(argv[1], "test"))
|
||||
{
|
||||
while(1)
|
||||
{
|
||||
if (!analyzer.ProcessImage(0, 0, 0, fault_mgr, true))
|
||||
break;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
// If no devies are found, exit.
|
||||
if (stream_mgr.FindDevice(&lConnectionID).IsFailure())
|
||||
|
||||
Reference in New Issue
Block a user