Open eyildiz-ugoe opened 2 years ago
There seem to be some bugs scattered in the code. Go into image_sequence.py and remove the feat_2d method and add the @property
decorator to length, number_of_features, width, and height. Then, in model.py, change line 33 to self._R, self._t = self.extract_rotation_translation(val)
. And line 49 of model.py can be self._sequence_length=P.shape[2]
. Unfortunately in that same method, there a K
matrix that comes out of no where.
Hello, PP=inv(K[:,:,i]).dot(P[:,:,i]); NameError: name 'K' is not defined
how can i fixe this error please?
Hello, I was able to solve the problem, it is necessary in uncalibrated-rec.py in line 336 global K and after pass the variable K in line 472 recModel = RecModel(K)
and after in model.py def init(self,K): self.K = K and in line 35 self._R, self._t = self.extract_rotation_translation(val,self.K)
i have this result(only two point and i used the data given with this code) help please
Upon executing the given command in the README.md:
python uncalibrated_rec.py --input_file=./example/features_poster.txt --show
I receive:
Any recommendations? (I use Python 3.8)