gusucode.com > vision工具箱matlab源码程序 > vision/+vision/+internal/+ocr/ocrSpkgInstalled.m
function isInstalled = ocrSpkgInstalled() % Cache the existence of the support package %#codegen spkgFile = coder.internal.const('vision.internal.ocr.isOCRSupportPackageInstalled'); if vision.internal.ocr.isCodegen() exst = ~isempty(vision.internal.codegen.which(spkgFile)); isInstalled = logical(exst); else isInstalled = logical(~isempty(which(spkgFile))); end