FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
TCSystemCS/MetaData/ProcessingInfosExt.cs at develop · tgoessler/TCSystemCS · GitHub
tgoessler
TCSystemCS
Repository navigation
Code
Pull requests
6
(6)
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
TCSystemCS
/
MetaData
/
ProcessingInfosExt.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
59 lines (52 loc) · 2.72 KB
Breadcrumbs
TCSystemCS
/
MetaData
/
ProcessingInfosExt.cs
Copy path
File metadata and controls
59 lines (52 loc) · 2.72 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// *******************************************************************************
//
// ******* *** *** *
// * * * *
// * * * *****
// * * *** * * ** * ** ***
// * * * * * * * **** * * *
// * * * * * * * * * * *
// * *** *** * ** ** ** * *
// *
// *******************************************************************************
// see https://github.com/tgoessler/TCSystemCS for details.
// Copyright (C) 2003 - 2026 Thomas Goessler. All Rights Reserved.
// *******************************************************************************
//
// TCSystem is the legal property of its developers.
// Please refer to the COPYRIGHT file distributed with this source distribution.
//
// *******************************************************************************
namespace
TCSystem
.
MetaData
;
/// <summary>Provides queries over image-processing flags.</summary>
public
static
class
ProcessingInfosExt
{
#region Public
/// <summary>Determines whether every configured frontal and CNN face detection has completed.</summary>
public
static
bool
AreAllFaceDetectionsDone
(
this
ProcessingInfos
processingInfos
)
{
return
(
processingInfos
&
ProcessingInfos
.
DlibFrontalFaceDetection2000
)
!=
0
&&
(
processingInfos
&
ProcessingInfos
.
DlibFrontalFaceDetection3000
)
!=
0
&&
(
processingInfos
&
ProcessingInfos
.
DlibCnnFaceDetection1000
)
!=
0
&&
(
processingInfos
&
ProcessingInfos
.
DlibCnnFaceDetection2000
)
!=
0
;
}
/// <summary>Determines whether both configured frontal-face detections have completed.</summary>
public
static
bool
AreAllFrontalFaceDetectionsDone
(
this
ProcessingInfos
processingInfos
)
{
return
(
processingInfos
&
ProcessingInfos
.
DlibFrontalFaceDetection2000
)
!=
0
&&
(
processingInfos
&
ProcessingInfos
.
DlibFrontalFaceDetection3000
)
!=
0
;
}
/// <summary>Determines whether any frontal-face detection has completed.</summary>
public
static
bool
IsFrontalFaceDetection
(
this
ProcessingInfos
processingInfos
)
{
return
(
processingInfos
&
ProcessingInfos
.
DlibFrontalFaceDetection2000
)
!=
0
||
(
processingInfos
&
ProcessingInfos
.
DlibFrontalFaceDetection3000
)
!=
0
;
}
/// <summary>Determines whether any CNN face detection has completed.</summary>
public
static
bool
IsCnnFaceDetection
(
this
ProcessingInfos
processingInfos
)
{
return
(
processingInfos
&
ProcessingInfos
.
DlibCnnFaceDetection1000
)
!=
0
||
(
processingInfos
&
ProcessingInfos
.
DlibCnnFaceDetection2000
)
!=
0
;
}
#endregion
}
Back
|
FazBrowse Home
|
New Git URL