質問編集履歴
3
プライベート情報の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -34,7 +34,7 @@
|
|
34
34
|
|
35
35
|
author="xxxxxxxxx",
|
36
36
|
|
37
|
-
author_email="
|
37
|
+
author_email="xxxxxxx",
|
38
38
|
|
39
39
|
description="Face recognition System",
|
40
40
|
|
2
強調文字の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -18,9 +18,9 @@
|
|
18
18
|
|
19
19
|
|
20
20
|
|
21
|
-
|
21
|
+
--with open("README.md", "r") as fh:
|
22
22
|
|
23
|
-
|
23
|
+
-- long_description = fh.read()
|
24
24
|
|
25
25
|
|
26
26
|
|
@@ -76,9 +76,9 @@
|
|
76
76
|
|
77
77
|
from __future__ import absolute_import
|
78
78
|
|
79
|
+
from .fuji_Face_recognition import Face_recognition
|
79
80
|
|
80
81
|
|
81
|
-
from .fuji_Face_recognition import Face_recognition
|
82
82
|
|
83
83
|
------------------------------------------------------------
|
84
84
|
|
@@ -164,7 +164,7 @@
|
|
164
164
|
|
165
165
|
|
166
166
|
|
167
|
-
|
167
|
+
--Face_recognitionクラスの生成
|
168
168
|
|
169
169
|
rep = fuji_face_recognition.Face_recognition()
|
170
170
|
|
1
強調文字の修正とプライベート情報の削除
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,9 +10,9 @@
|
|
10
10
|
|
11
11
|
|
12
12
|
|
13
|
-
setup.py
|
13
|
+
### setup.py
|
14
14
|
|
15
|
-
|
15
|
+
-----------------------------------------------------------
|
16
16
|
|
17
17
|
import setuptools
|
18
18
|
|
@@ -32,35 +32,35 @@
|
|
32
32
|
|
33
33
|
license='',
|
34
34
|
|
35
|
-
author="
|
35
|
+
author="xxxxxxxxx",
|
36
36
|
|
37
37
|
author_email="ai@fujisannwa.com",
|
38
38
|
|
39
39
|
description="Face recognition System",
|
40
40
|
|
41
|
-
|
41
|
+
-- long_description=long_description,
|
42
42
|
|
43
|
-
|
43
|
+
-- long_description_content_type="text/markdown",
|
44
44
|
|
45
|
-
url="https://github.com/
|
45
|
+
url="https://github.com/xxxxxxx/fuji_Face_recognition",
|
46
46
|
|
47
47
|
packages=['fuji_face_recognition'],
|
48
48
|
|
49
49
|
package_data={'fuji_face_recognition': ['*.lua']},
|
50
50
|
|
51
|
-
|
51
|
+
-- package_data={'fuji_face_recognition': 'setuptools.find_packages()'},
|
52
52
|
|
53
|
-
|
53
|
+
-- packages=setuptools.find_packages(),
|
54
54
|
|
55
|
-
|
55
|
+
-- classifiers=[
|
56
56
|
|
57
|
-
|
57
|
+
-- "Programming Language :: Python :: 3",
|
58
58
|
|
59
|
-
|
59
|
+
-- "License :: OSI Approved :: MIT License",
|
60
60
|
|
61
|
-
|
61
|
+
-- "Operating System :: OS Independent",
|
62
62
|
|
63
|
-
|
63
|
+
-- ],
|
64
64
|
|
65
65
|
python_requires='>=3.7',
|
66
66
|
|
@@ -68,13 +68,11 @@
|
|
68
68
|
|
69
69
|
※luaのインストールバッチは特に作成しておりません。
|
70
70
|
|
71
|
-
|
71
|
+
------------------------------------------------------------
|
72
|
+
|
73
|
+
### _init_.py
|
72
74
|
|
73
75
|
------------------------------------------------------------
|
74
|
-
|
75
|
-
_init_.py
|
76
|
-
|
77
|
-
************************************************************
|
78
76
|
|
79
77
|
from __future__ import absolute_import
|
80
78
|
|
@@ -82,13 +80,11 @@
|
|
82
80
|
|
83
81
|
from .fuji_Face_recognition import Face_recognition
|
84
82
|
|
85
|
-
|
83
|
+
------------------------------------------------------------
|
84
|
+
|
85
|
+
### fuji_Face_recognition.py
|
86
86
|
|
87
87
|
------------------------------------------------------------
|
88
|
-
|
89
|
-
fuji_Face_recognition.py
|
90
|
-
|
91
|
-
************************************************************
|
92
88
|
|
93
89
|
import cv2
|
94
90
|
|
@@ -110,7 +106,7 @@
|
|
110
106
|
|
111
107
|
import cupy as cp
|
112
108
|
|
113
|
-
import crayons
|
109
|
+
import crayons --これをimportしたらprintの色が変わった
|
114
110
|
|
115
111
|
|
116
112
|
|
@@ -122,15 +118,15 @@
|
|
122
118
|
|
123
119
|
INTERVAL = 33
|
124
120
|
|
125
|
-
|
121
|
+
-- 顔のアラインメントファイル名
|
126
122
|
|
127
123
|
DLIBMODELDIR_FILE = "shape_predictor_68_face_landmarks.dat"
|
128
124
|
|
129
|
-
|
125
|
+
-- 顔からの特徴量抽出ファイル名
|
130
126
|
|
131
127
|
OPENFACEMODELDIR_FILE = "nn4.small2.v1.t7"
|
132
128
|
|
133
|
-
|
129
|
+
-- Haar-like特徴分類器ファイル名
|
134
130
|
|
135
131
|
CASCADE_FILE = "haarcascade_frontalface_alt2.xml"
|
136
132
|
|
@@ -138,29 +134,29 @@
|
|
138
134
|
|
139
135
|
class Face_recognition:
|
140
136
|
|
141
|
-
|
137
|
+
--プロジェクトフォルダ
|
142
138
|
|
143
139
|
gProject_Dir = ''
|
144
140
|
|
145
|
-
|
141
|
+
--顔imageファルダ
|
146
142
|
|
147
143
|
gimageDir = ''
|
148
144
|
|
149
|
-
|
145
|
+
--モデルファルダ
|
150
146
|
|
151
147
|
gModelDir = ''
|
152
148
|
|
153
149
|
|
154
150
|
|
155
|
-
|
151
|
+
--コンストラクタ
|
156
152
|
|
157
153
|
def __init__(self):
|
158
154
|
|
159
155
|
・・・省略
|
160
156
|
|
161
|
-
|
157
|
+
----------------------------------------------------------
|
162
158
|
|
163
|
-
呼び出し側
|
159
|
+
### 呼び出し側
|
164
160
|
|
165
161
|
-----------------------------------------------------------
|
166
162
|
|