Commit 2e4a103207b97f5e9e495e42b7077ca559d6a9f3
1 parent
6d1b0073
Exists in
master
and in
2 other branches
data test pass
Showing
3 changed files
with
6 additions
and
4 deletions
Show diff stats
mdata/CV.py
| ... | ... | @@ -150,7 +150,7 @@ class DataCV(DataDumperBase): |
| 150 | 150 | for imgname, imgtag in dict_tagbuf.items(): |
| 151 | 151 | # if imgtag == 'True': |
| 152 | 152 | image = self.img_dir + imgname[:3] + '/' + imgname[3:] |
| 153 | - desc = HOG.FeatHOG.feat(image, size=(48, 48)) | |
| 153 | + desc = HOG.FeatHOG().feat(image, size=(48, 48)) | |
| 154 | 154 | dict_featbuf[imgname] = desc |
| 155 | 155 | |
| 156 | 156 | for imgname, desc in dict_featbuf.items(): | ... | ... |
mdata/CV.pyc
No preview for this file type
test_data.py
| ... | ... | @@ -12,9 +12,11 @@ def test_MSR(): |
| 12 | 12 | |
| 13 | 13 | def test_CV(): |
| 14 | 14 | dcv = CV.DataCV() |
| 15 | - dcv.format() | |
| 16 | - dcv.build_list() | |
| 15 | + #dcv.format() | |
| 16 | + #dcv.build_list() | |
| 17 | + #dcv.get_feat() | |
| 18 | + dcv.store_feat() | |
| 17 | 19 | |
| 18 | 20 | if __name__ == '__main__': |
| 19 | 21 | test_CV() |
| 20 | - print 'helllo ' | |
| 21 | 22 | \ No newline at end of file |
| 23 | + print 'helllo ' | ... | ... |