Commit 6d1b0073c493d50988eb7c4aa011051a4a67ab21
1 parent
24b3b616
Exists in
master
and in
2 other branches
staged.
Showing
3 changed files
with
6 additions
and
3 deletions
Show diff stats
.gitignore
.idea/ImageR.iml
... | ... | @@ -2,7 +2,7 @@ |
2 | 2 | <module type="PYTHON_MODULE" version="4"> |
3 | 3 | <component name="NewModuleRootManager"> |
4 | 4 | <content url="file://$MODULE_DIR$" /> |
5 | - <orderEntry type="jdk" jdkName="Python 2.7.8 virtualenv at ~/.virtualenvs/env1" jdkType="Python SDK" /> | |
5 | + <orderEntry type="jdk" jdkName="Python 2.7.6 virtualenv at ~/.virtualenvs/env0" jdkType="Python SDK" /> | |
6 | 6 | <orderEntry type="sourceFolder" forTests="false" /> |
7 | 7 | </component> |
8 | 8 | </module> |
9 | 9 | \ No newline at end of file | ... | ... |
mdata/CV.py
... | ... | @@ -31,7 +31,7 @@ class DataCV(DataDumperBase): |
31 | 31 | img.save('res/tmp.jpg', format='JPEG') |
32 | 32 | image = 'res/tmp.jpg' |
33 | 33 | |
34 | - with open('res/tmp.jpg', 'rb') as f: | |
34 | + with open(image, 'rb') as f: | |
35 | 35 | index = md5(f.read()).hexdigest() |
36 | 36 | |
37 | 37 | self.dict_data[index] = ispos | ... | ... |