Giter Site home page Giter Site logo

kaustubh-sadekar / invisibility_cloak Goto Github PK

View Code? Open in Web Editor NEW
198.0 198.0 83.0 4.44 MB

This is a fun application of image processing which enables you to experience the magic of an invisibility cloak. Let's make our childhood fantasy of using an invisibility cloak come true.

License: MIT License

Python 100.00%
ar-invisibility-cloak computer computer-vision hobby-project image-processing opencv python tutorial

invisibility_cloak's Issues

VideoCapture window not closing[bug]

๐Ÿ› Describe the bug

the code works great but there is a problem, the videocapture window is not closing at all.
display close option is not working.
had to close vc code every time in order to close the videocapture window.

@kaustubh-sadekar

Not Working Properly

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

This code have an erroe

I try your code bro on Google Colab, n it shows error "IdentationError" for background=0 please help me

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.