| | |
| | | #pragma once |
| | | #pragma once |
| | | |
| | | #include "Global_Define.h" |
| | | #include "HardwareSettings.h" |
| | |
| | | void WriteSetupData(); |
| | | |
| | | protected: |
| | | CString MakeResultCsvPath(LPCTSTR stem) const; |
| | | bool AppendCsvWithHeader(const CString& strFilePath, const CString& strHeader, const CString& strBody); |
| | | void JudgementData(); |
| | | void SaveDefectImageNG(); |
| | | void SaveDefectImageOK(); |
| | | void SaveMeasureData(CString strGlassID, CString strTime); |
| | | void SaveChipData(CString strGlassID, CString strTime); |
| | | void SaveDefectListData(CString strGlassID, CString strTime); |
| | | void SaveRipSideInspect(CString strGlassID, CString strTime); |
| | | void SaveDefectData(); |
| | | void MergeDefect(); |
| | | void CalcGlassSize(); |
| | |
| | | BOOL DefectProcess_Judge(CDefect *pDefect); |
| | | BOOL DefectProcess(CDefect* pDefect,CInspectCamera *pInspect, CCameraSettings* pCamera); |
| | | BOOL SaveDefectImage(LPBYTE pImage,CSize szImage,CRect rectDefect,CString strFile,DimensionDir emDir); |
| | | BOOL SaveDefectImage2(LPBYTE pImage,CSize szImage,CRect rectDefect,CString strFile); |
| | | BOOL SaveDefectImageModern(LPBYTE pImage,CSize szImage,CRect rectDefect,CString strFile); |
| | | BOOL SaveDefectImage_with_Title(CDefect* pDefect, CSize szImage, CRect rectDefect, CString strFile, CvScalar color = cvScalar(0, 0, 255)); |
| | | int MeasrueCutLineResult(DimensionDir dir); |
| | | |
| | |
| | | BOOL DeleteFolder(const CString &strFolder); |
| | | |
| | | private: |
| | | CRITICAL_SECTION m_criticalSection; //?¥3aá? |
| | | CRITICAL_SECTION m_criticalSection; //?¥3aá? |
| | | inline void Lock() { ::InitializeCriticalSection(&m_criticalSection); } |
| | | inline void Unlock() { ::DeleteCriticalSection(&m_criticalSection); } |
| | | |