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

Not Working Properly #5

Open
Aashish1106 opened this issue Dec 12, 2020 · 0 comments
Open

Not Working Properly #5

Aashish1106 opened this issue Dec 12, 2020 · 0 comments

Comments

@Aashish1106
Copy link

Hii,
I have followed the exact instructions as per readme.md but still I am having some issues with the code, could you pls help me with that?
I got this as Output:-

Harry :  Hey !! Would you like to try my invisibility cloak ??
         Its awesome !!
        
         Prepare to get invisible .....................
    
---------------------------------------------------------------------------
AxisError                                 Traceback (most recent call last)
<ipython-input-1-8140f276118a> in <module>()
     17         ret,background = cap.read()
     18 
---> 19 background = np.flip(background,axis=1)
     20 
     21 while(cap.isOpened()):

<__array_function__ internals> in flip(*args, **kwargs)

2 frames
/usr/local/lib/python3.6/dist-packages/numpy/lib/function_base.py in flip(m, axis)
    247         indexer = (np.s_[::-1],) * m.ndim
    248     else:
--> 249         axis = _nx.normalize_axis_tuple(axis, m.ndim)
    250         indexer = [np.s_[:]] * m.ndim
    251         for ax in axis:

/usr/local/lib/python3.6/dist-packages/numpy/core/numeric.py in normalize_axis_tuple(axis, ndim, argname, allow_duplicate)
   1325             pass
   1326     # Going via an iterator directly is slower than via list comprehension.
-> 1327     axis = tuple([normalize_axis_index(ax, ndim, argname) for ax in axis])
   1328     if not allow_duplicate and len(set(axis)) != len(axis):
   1329         if argname:

/usr/local/lib/python3.6/dist-packages/numpy/core/numeric.py in <listcomp>(.0)
   1325             pass
   1326     # Going via an iterator directly is slower than via list comprehension.
-> 1327     axis = tuple([normalize_axis_index(ax, ndim, argname) for ax in axis])
   1328     if not allow_duplicate and len(set(axis)) != len(axis):
   1329         if argname:

AxisError: axis 1 is out of bounds for array of dimension 0 
#5
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

1 participant