nicoprocessor / fingerprint-recognition-dip Goto Github PK
View Code? Open in Web Editor NEWDigital Image Processing Project
Digital Image Processing Project
Hi, I tried using the utils.py file but I get the following error:
"TypeError: Too few parameters for typing.Dict; actual 1, expected 2"
The error comes on def inverse_dictionary.
I don't know where I went wrong with this one. Please advise.
**> Full Error:
TypeError Traceback (most recent call last)
in
----> 1 def inverse_dictionary(original_dict: Dict[Any], unique_values: bool = False) -> Dict[Any]:
2 """Swap keys and values in the dictionary
3 :param original_dict: the dictionary that will be inverted
4 :param unique_values: true if the values in the original dictionary are unique.
5 If false, the inverse dictionary will contain the list of original keys that were mapped to the same value, i.e:C:\ProgramData\Anaconda3\lib\typing.py in inner(*args, **kwds)
249 except TypeError:
250 pass # All real errors (not unhashable args) are raised below.
--> 251 return func(*args, **kwds)
252 return inner
253C:\ProgramData\Anaconda3\lib\typing.py in getitem(self, params)
625 msg = "Parameters to generic types must be types."
626 params = tuple(_type_check(p, msg) for p in params)
--> 627 _check_generic(self, params)
628 return _subs_tvars(self, self.parameters, params)
629C:\ProgramData\Anaconda3\lib\typing.py in _check_generic(cls, parameters)
203 elen = len(cls.parameters)
204 if alen != elen:
--> 205 raise TypeError(f"Too {'many' if alen > elen else 'few'} parameters for {cls};"
206 f" actual {alen}, expected {elen}")
207TypeError: Too few parameters for typing.Dict; actual 1, expected 2**
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.