Delphi-OpenCV/resource/uResourcePaths.pas
Laentir Valetov 1b0632f752 Directory restructuring ...
Signed-off-by: Laentir Valetov <laex@bk.ru>
2019-12-18 00:44:54 +04:00

35 lines
589 B
ObjectPascal

unit uResourcePaths;
{$WRITEABLECONST ON}
interface
Const
{
Relative paths from
<root>\bin\Win32
<root>\bin\Win64
to <root>\resource
}
cResourceMedia = '..\..\resource\media\';
cResourceFaces = '..\..\resource\faces\';
cResourceFaceDetect = '..\..\resource\facedetectxml\';
cResourceResultDefault = '..\..\resource\result\';
function cResourceResult: AnsiString;
implementation
uses
SysUtils;
function cResourceResult: AnsiString;
begin
if DirectoryExists(cResourceResultDefault) then
Result := cResourceResultDefault
else
Result := '';
end;
end.