Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error #14

Open
Debiprasad-1 opened this issue Nov 6, 2019 · 1 comment
Open

error #14

Debiprasad-1 opened this issue Nov 6, 2019 · 1 comment

Comments

@Debiprasad-1
Copy link

x_paths = np.zeros((old_frame.shape[0]/PIXELS, old_frame.shape[1]/PIXELS, 1))

TypeError: 'float' object cannot be interpreted as an integer

while running this code i got error

@offirk
Copy link

offirk commented Nov 13, 2019

are you using python 3.x?
if so, in python 3.x the result of a division, even if it is a division of two integer type variables, is a float. a float cannot serve as an index. use int(old_frame.shape[0]/PIXELS)) and int(old_frame.shape[1]/PIXELS))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants