Hello,
I am trying to set up Bob.Bio.base/.face/.video for different scenarios. One would be running verifications and identifications from file system without the need of databases. So I would like to use verify.py the following way: verify.py /home/myimg/img1.jpg /home/myimg/img2.jpg … and identification like this: images on file system in myimg
|--myimg
|--p1
-img1.jpg
-img2.jpg
…
|--p2
…
Verify.py /home/testface.jpg /home/myimg/ …
Furthermore I want to use bob for open set real-time identification with webcam enrollment + simple/basic GUI (Demo e-gate system if possible with PAD features). Does bob.bio.base + video + face (Bobs example installation) support those scenarios. I know bob is based around reproducible research but can it also be used for custom applications or integrated in them?
How could I implement new features in bob like webcam enrollment with GUI, if it does not support it? How well does one need to know you bob system for such plans? Note that I don’t know Python at all, would learn it though.
Regards,
--
-- You received this message because you are subscribed to the Google Groups bob-devel group. To post to this group, send email to bob-...@googlegroups.com. To unsubscribe from this group, send email to bob-devel+...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/bob-devel or directly the project website at http://idiap.github.com/bob/
---
You received this message because you are subscribed to the Google Groups "bob-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bob-devel+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks Amir
and Manuel,
I’m currently
looking into that.
I just can’t figure out how to create my dev/for_models.lst writing them by
hand can’t be the solution. Do you have a script for that? I have not found one.
Hi Tim,
You have to create them by hand or create using your own scripts since it's specific to your dataset.
Best,
Amir
--
$ verify.py --database/home/tim/protocoltest/testdb.py -p base -e eigenface -a pca --sub-directory testexperi -vv
bob.bio.base@2017-11-14 02:14:48,262 -- ERROR: During the execution, an exception was raised: Invalid group 'world'. Valid values are ['dev', 'eval'], or lists/tuples of thoseTraceback (most recent call last): File "/home/tim/miniconda3/bin/verify.py", line 6, in <module> sys.exit(bob.bio.base.script.verify.main()) File "/home/tim/miniconda3/lib/python3.6/site-packages/bob/bio/base/script/verify.py", line 435, in main verify(args, command_line_parameters) File "/home/tim/miniconda3/lib/python3.6/site-packages/bob/bio/base/script/verify.py", line 415, in verify if not execute(args): File "/home/tim/miniconda3/lib/python3.6/site-packages/bob/bio/base/script/verify.py", line 262, in execute indices = tools.indices(fs.original_data_list(groups=tools.groups(args)), None if args.grid is None else args.grid.number_of_preprocessing_jobs), File "/home/tim/miniconda3/lib/python3.6/site-packages/bob/bio/base/tools/FileSelector.py", line 113, in original_data_list return self.database.all_files(groups=groups,add_zt_files=self.zt_norm) File "/home/tim/miniconda3/lib/python3.6/site-packages/bob/bio/base/database/filelist/query.py", line 223, in all_files files = self.objects(groups, self.protocol, **self.all_files_options) File "/home/tim/miniconda3/lib/python3.6/site-packages/bob/bio/base/database/filelist/query.py", line 623, in objects default_parameters=self.groups(protocol, add_subworld=False)) File "/home/tim/miniconda3/lib/python3.6/site-packages/bob/db/base/database.py", line 109, in check_parameters_for_validity default_parameters) File "/home/tim/miniconda3/lib/python3.6/site-packages/bob/db/base/utils.py", line 356, in check_parameters_for_validity (parameter_description, parameter, valid_parameters))ValueError: Invalid group 'world'. Valid values are ['dev', 'eval'], or lists/tuples of those
#!/usr/bin/env python# import pkg_resourcesimport bob.bio.basefrom bob.bio.face.database import FaceBioFile#TESTDB_DIR = "home/tim/protocoltest/testdb/"# ,bio_file_class=FaceBioFile,original_extension=".jpg"database = bob.bio.base.database.FileListBioDatabase('testdb/','testdb')database.objects()
--
verify.py testdb.py --groups dev eval
bob.bio.base@2017-11-16 03:54:02,657 -- INFO: - Preprocessing: processing 2 data files from directory 'home/tim/' to directory 'temp/testexperi/preprocessed'bob.bio.base@2017-11-16 03:54:02,658 -- ERROR: During the execution, an exception was raised: File - constructor: C++ exception caught: 'file 'home/tim/home/tim/00002_930831_fa.jpg' is not readable'
Traceback (most recent call last): File "/home/tim/miniconda3/bin/verify.py", line 6, in <module> sys.exit(bob.bio.base.script.verify.main()) File "/home/tim/miniconda3/lib/python3.6/site-packages/bob/bio/base/script/verify.py", line 435, in main verify(args, command_line_parameters) File "/home/tim/miniconda3/lib/python3.6/site-packages/bob/bio/base/script/verify.py", line 415, in verify if not execute(args):
File "/home/tim/miniconda3/lib/python3.6/site-packages/bob/bio/base/script/verify.py", line 264, in execute force = args.force) File "/home/tim/miniconda3/lib/python3.6/site-packages/bob/bio/base/tools/preprocessor.py", line 71, in preprocess data = preprocessor.read_original_data(file_object, original_directory, original_extension) File "/home/tim/miniconda3/lib/python3.6/site-packages/bob/bio/base/utils/io.py", line 85, in read_original_data return biofile.load(directory, extension) File "/home/tim/miniconda3/lib/python3.6/site-packages/bob/db/base/file.py", line 132, in load return bob.io.base.load(path) File "/home/tim/miniconda3/lib/python3.6/site-packages/bob/io/base/__init__.py", line 149, in load return File(inputs, 'r').read()RuntimeError: File - constructor: C++ exception caught: 'file 'home/tim/home/tim/00002_930831_fa.jpg' is not readable'
verify.py testdb.py --groups dev eval
ipython --pdb -- `which verify.py` testdb.py --groups dev eval
Do you get this error with any image ?
--
Did some tests all images from FERET fail and my own captured with my Smartphone in hd.Added debugger log.
--
import bob.bio.basefrom bob.bio.face.database import FaceBioFile
database = bob.bio.base.database.FileListBioDatabase('testdb', #relative to my DBconfig.py dir 'testdb' same place as testdb.py name = 'testdb', bio_file_class = FaceBioFile, protocol='p1', original_directory = "/home/tim", #img dir starting at root "/home/tim/imgdir"--> files can't be found original_extension = ".jpg", database = 'testdb')preprocessor = '' #base , face-detect extractor = '' #linearize , eigenfacealgorithm = '' #gabor-jet , distance-cosinesub_directory = 'testexperi'verbose = 2