【vc++精品源码栏目提醒】:网学会员鉴于大家对vc++精品源码十分关注,论文会员在此为大家搜集整理了“LED颜色检测VC实现源码 - 综合课件”一文,供大家参考学习
利用普通摄像头获取LED区域进行颜色检查的Dll源码. 代码vc6.0编译通过. WWW.KMD-SZ.COM //LED COLOR CHECK. include iostream.h include windows.h include Winbase.h include stdafx.h include stdio.h include string.h struct X_LEDPARAM int ColorValue int ColorRange int SampleQty int Precision long nLeft long nTop long nWidth long nHeight int nState extern C _declspecdllexport HWND _stdcall GetVidAppHwnd extern C _declspecdllexport HWND _stdcall GetVidWinHwnd extern C _declspecdllexport int _stdcall ShowLedLocationHWND hWnd X_LEDPARAM Led char ShowMsg extern C _declspecdllexport int _stdcall LedColorCheckHWND hWndX_LEDPARAM Led int DelayMs /void TimerDelay int Delay int DelayMsendMs endMsGetTickCount DelayMsDelayGetTickCount whileendMs