Giter Site home page Giter Site logo

Comments (2)

kyleellefsen avatar kyleellefsen commented on July 16, 2024

Hi @kousikkun, if you launch from within IPython, you need to also run import flika and then use the long name of the function. For subtract and ratio, these are flika.process.subtract and flika.process.ratio. The short names only work if you launch flika from a non-IPython terminal and you open the Script Editor. If you'd still like to use the shortened names, you can run in IPython:

from flika.process import *
generate_random_image()
gaussian_blur(sigma=2)

For instance, I followed these steps and was able to use ratio().

  • Open a terminal on my Mac (Ventura 13.5.1).
  • Clean install of python using a new venv (Python 3.11.7)
  • Clean install of flika using and pip install flika
  • Launch of IPython using ipython command in the terminal
  • Launch of flika using from flika import *; start_flika()
  • Importing flika using from flika.process import *
  • Generate a random image using generate_random_image(500, 20)
  • Applying the ratio function using ratio(0, 100, 'average', 0, True)

from flika.

kousikkun avatar kousikkun commented on July 16, 2024

Hello! Thanks it works fine.

Best,

Kousik

from flika.

Related Issues (20)

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.