| | |
| | | double th = (double) m_pRecipe->m_SideParam[(int) emDim].m_NotchPrm[nNotchIdx].m_nReferece_Line_Threshold; |
| | | int nNotchCenterOffset = m_pRecipe->m_SideParam[(int) emDim].m_NotchPrm[nNotchIdx].m_nNotchCenter_Offset_pxl; |
| | | |
| | | cvThreshold(scr, img_Bin_MeasureLine, th, 50, CV_THRESH_BINARY); |
| | | cvThreshold(scr, img_Bin_MeasureLine, th, 255, CV_THRESH_BINARY); |
| | | |
| | | // 1. Find Seed |
| | | CvPoint ptSeed; |
| | |
| | | |
| | | BOOL CInspectCamera::ProcessFrame(int iThread,DimensionDir emDim,stFrameIndex stFrame) |
| | | { |
| | | try { |
| | | // 1. Find End Line.. (Corner甫 力寇茄 Side扼牢阑 茫扁 困秦 End Line何磐 茫绰促) |
| | | FindEndLine(iThread, emDim, stFrame); |
| | | |
| | |
| | | |
| | | // 11. Exception Area Process |
| | | ExceptionArea_Process(iThread,emDim,stFrame); |
| | | } |
| | | catch (const std::exception&) { |
| | | g_pLog->DisplayMessage(_T("Exception in ProcessFrame for Camera %d, Dimension %d"), m_iCamera, (int)emDim); |
| | | return FALSE; |
| | | } |
| | | |
| | | return TRUE; |
| | | } |