sorceress


Namesorceress JSON
Version 1.8.8 PyPI version JSON
download
home_pagehttps://github.com/altunenes/sorceress
SummaryPython package for creating optical illusions
upload_time2023-01-12 17:31:05
maintainer
docs_urlNone
authoraltunenes
requires_python>=3.6,<4.0
licenseMIT
keywords optical-illusions illusions python perception image processing psychology vision neuroscience altunenes
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # sorceress 1.8

[![PyPI version](https://badge.fury.io/py/sorceress.svg)](https://badge.fury.io/py/sorceress) [![Jekyll site CI](https://github.com/altunenes/sorceress/actions/workflows/jekyll.yml/badge.svg)](https://github.com/altunenes/sorceress/actions/workflows/jekyll.yml)
[![Downloads](https://pepy.tech/badge/sorceress)](https://pepy.tech/project/sorceress)
[![Build status](https://ci.appveyor.com/api/projects/status/71rohei2h9q6ru0s?svg=true)](https://ci.appveyor.com/project/altunenes/sorceress)


### Purpose of package

This package's purpose is to create optical illusions in a simple way. The package is written in Python. however, the repo also includes JavaScript.  In [explanations](https://altunenes.github.io/sorceress/explanations%20of%20illusions/) section, you can find the explanations of the illusions.

This package contains a collection of well-known visual illusions, as well as some lesser-known ones that are just as fascinating.

By using the code provided in the package, you can easily recreate the illusions and see how they work for yourself.
Not only can you reproduce the illusions, but you can also experiment with them and modify the code to create your own variations.

With this package, you can dive deep into the world of visual illusions and learn more about how the human brain processes visual information.

Whether you're a researcher, a student, or just someone who loves illusions, this package has something for you. So if you're interested in exploring the mysteries of the human visual system, give it a try!

More importantly, we shouldn't take optical illusions as just fun. Optical illusions are visual phenomena that occur when our brain interprets information from our eyes in a way that is different from reality. These illusions can reveal a lot about how our brain works and how it processes visual information, which can help us understand the underlying mechanisms of human vision. Most of the optical illusions in this package are seriously researched in the neuroscience literature. And I must say that the "causation" of the most of effects is still debated in the literature according to my humble knowledge. Optical illusions are researching not only in human vision but in other animals. So we can get a lot of insights from an evolutionary perspective.

The difficulty of creating an optical illusion with code will depend on the specific illusion you're trying to create and your experience with coding. Some optical illusions may be relatively simple to implement, while others may be more complex and require a deeper understanding of graphics programming and the underlying principles of perception.To create an effective optical illusion, you (also me) need to understand the principles of perception and be able to use code to manipulate the visual information in a way that tricks the brain into seeing something that isn't actually there. This requires a deep understanding of the underlying mechanisms of perception and a lot of experimentation and trial and error to find the right combination of visual elements that creates the desired illusion.

Another challenge is that creating optical illusions often requires a high level of precision and control over the visual elements in an image. This can be difficult to achieve with code, especially if you're working with complex or dynamic images that need to be updated in real time.

Overall, creating optical illusions with code can be a challenging but rewarding task that requires a combination of technical skills, creativity, and an understanding of the underlying principles of perception  [(Bach, 2014)](https://pubmed.ncbi.nlm.nih.gov/25420328/).

For all optical illusions check this documentation: [altunenes.github.io/sorceress/](https://altunenes.github.io/sorceress/)

### Getting started🚀️

The package can be found on PyPI hence you can install it via pip.

```
pip install sorceress
```

```
#importing
from sorceress import sorceress
```

### Features

[For the API, click here](https://altunenes.github.io/sorceress/api_reference/)

+ Illusions in Python
  - chromatic
  - dotill
  - realtimegrid
  - addlines
  - eyecolour
  - dakinPex
  - bruno
  - dolboeuf
  - kanizsa
  - tAki2001
  - cafewall
  - ccob
  - ebbinghaus
  - whiteill
  - enigma
  - blackhole
  - colorgrids
  - munker
  - munker2
  - grids2
  - pareidolia
  - spirals
  - color negative
  - footsteps

 **Illusions in JavaScript**

  - footsteps
  - thelilac
  - EyeMovements
  - spatialmotion
  - Motion Induced Blindness (2 versions)
  - Depth Perception
  - Speed of Rotation
  - hypnotic circle
  - Bright Illusion
  - Length Illusion
  - Crazy Sine Waves
  - Crazy EEG-Fourier
  - phimotion
  - colour adaptation
  
## Examples

[In this page](https://altunenes.github.io/sorceress/explanations%20of%20illusions/), you can find all illusions, explanations, code, and how to use it. I show just a few examples on this page.

```
from sorceress import sorceress
sorceress.chromatic("myimage.jpg",circle=False, method="CMCCAT2000", gif=True, Gifduration=7)
sorceress.addlines("myimage.png",linecolour1=(0,255,0),linecolour2=(0,255,255),linecolour3=(255,0,0))
```

As you can see above, you can use the package in a very simple way. You will need to install the following packages to use the package. You will not need to import them, the package will do it for you.

```
pip install opencv-python
pip install numpy
pip install matplotlib
pip install imageio
pip install Pillow
pip install colour-science
pip install pygame
```

## Contribution

Any contribution, bug report, or suggestion is always welcome <3

+ Main Maintainer: Enes Altun

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/altunenes/sorceress",
    "name": "sorceress",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6,<4.0",
    "maintainer_email": "",
    "keywords": "optical-illusions,illusions,python,perception,image processing,psychology,vision,neuroscience,altunenes",
    "author": "altunenes",
    "author_email": "enesaltun2@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/12/24/d058245af9fe16a8b7fbe39994f63d61622114158259ac9932ec71ecf3f8/sorceress-1.8.8.tar.gz",
    "platform": null,
    "description": "# sorceress 1.8\n\n[![PyPI version](https://badge.fury.io/py/sorceress.svg)](https://badge.fury.io/py/sorceress) [![Jekyll site CI](https://github.com/altunenes/sorceress/actions/workflows/jekyll.yml/badge.svg)](https://github.com/altunenes/sorceress/actions/workflows/jekyll.yml)\n[![Downloads](https://pepy.tech/badge/sorceress)](https://pepy.tech/project/sorceress)\n[![Build status](https://ci.appveyor.com/api/projects/status/71rohei2h9q6ru0s?svg=true)](https://ci.appveyor.com/project/altunenes/sorceress)\n\n\n### Purpose of package\n\nThis package's purpose is to create optical illusions in a simple way. The package is written in Python. however, the repo also includes JavaScript.  In [explanations](https://altunenes.github.io/sorceress/explanations%20of%20illusions/) section, you can find the explanations of the illusions.\n\nThis package contains a collection of well-known visual illusions, as well as some lesser-known ones that are just as fascinating.\n\nBy using the code provided in the package, you can easily recreate the illusions and see how they work for yourself.\nNot only can you reproduce the illusions, but you can also experiment with them and modify the code to create your own variations.\n\nWith this package, you can dive deep into the world of visual illusions and learn more about how the human brain processes visual information.\n\nWhether you're a researcher, a student, or just someone who loves illusions, this package has something for you. So if you're interested in exploring the mysteries of the human visual system, give it a try!\n\nMore importantly, we shouldn't take optical illusions as just fun. Optical illusions are visual phenomena that occur when our brain interprets information from our eyes in a way that is different from reality. These illusions can reveal a lot about how our brain works and how it processes visual information, which can help us understand the underlying mechanisms of human vision. Most of the optical illusions in this package are seriously researched in the neuroscience literature. And I must say that the \"causation\" of the most of effects is still debated in the literature according to my humble knowledge. Optical illusions are researching not only in human vision but in other animals. So we can get a lot of insights from an evolutionary perspective.\n\nThe difficulty of creating an optical illusion with code will depend on the specific illusion you're trying to create and your experience with coding. Some optical illusions may be relatively simple to implement, while others may be more complex and require a deeper understanding of graphics programming and the underlying principles of perception.To create an effective optical illusion, you (also me) need to understand the principles of perception and be able to use code to manipulate the visual information in a way that tricks the brain into seeing something that isn't actually there. This requires a deep understanding of the underlying mechanisms of perception and a lot of experimentation and trial and error to find the right combination of visual elements that creates the desired illusion.\n\nAnother challenge is that creating optical illusions often requires a high level of precision and control over the visual elements in an image. This can be difficult to achieve with code, especially if you're working with complex or dynamic images that need to be updated in real time.\n\nOverall, creating optical illusions with code can be a challenging but rewarding task that requires a combination of technical skills, creativity, and an understanding of the underlying principles of perception  [(Bach, 2014)](https://pubmed.ncbi.nlm.nih.gov/25420328/).\n\nFor all optical illusions check this documentation: [altunenes.github.io/sorceress/](https://altunenes.github.io/sorceress/)\n\n### Getting started\ud83d\ude80\ufe0f\n\nThe package can be found on PyPI hence you can install it via pip.\n\n```\npip install sorceress\n```\n\n```\n#importing\nfrom sorceress import sorceress\n```\n\n### Features\n\n[For the API, click here](https://altunenes.github.io/sorceress/api_reference/)\n\n+ Illusions in Python\n  - chromatic\n  - dotill\n  - realtimegrid\n  - addlines\n  - eyecolour\n  - dakinPex\n  - bruno\n  - dolboeuf\n  - kanizsa\n  - tAki2001\n  - cafewall\n  - ccob\n  - ebbinghaus\n  - whiteill\n  - enigma\n  - blackhole\n  - colorgrids\n  - munker\n  - munker2\n  - grids2\n  - pareidolia\n  - spirals\n  - color negative\n  - footsteps\n\n **Illusions in JavaScript**\n\n  - footsteps\n  - thelilac\n  - EyeMovements\n  - spatialmotion\n  - Motion Induced Blindness (2 versions)\n  - Depth Perception\n  - Speed of Rotation\n  - hypnotic circle\n  - Bright Illusion\n  - Length Illusion\n  - Crazy Sine Waves\n  - Crazy EEG-Fourier\n  - phimotion\n  - colour adaptation\n  \n## Examples\n\n[In this page](https://altunenes.github.io/sorceress/explanations%20of%20illusions/), you can find all illusions, explanations, code, and how to use it. I show just a few examples on this page.\n\n```\nfrom sorceress import sorceress\nsorceress.chromatic(\"myimage.jpg\",circle=False, method=\"CMCCAT2000\", gif=True, Gifduration=7)\nsorceress.addlines(\"myimage.png\",linecolour1=(0,255,0),linecolour2=(0,255,255),linecolour3=(255,0,0))\n```\n\nAs you can see above, you can use the package in a very simple way. You will need to install the following packages to use the package. You will not need to import them, the package will do it for you.\n\n```\npip install opencv-python\npip install numpy\npip install matplotlib\npip install imageio\npip install Pillow\npip install colour-science\npip install pygame\n```\n\n## Contribution\n\nAny contribution, bug report, or suggestion is always welcome <3\n\n+ Main Maintainer: Enes Altun\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Python package for creating optical illusions",
    "version": "1.8.8",
    "split_keywords": [
        "optical-illusions",
        "illusions",
        "python",
        "perception",
        "image processing",
        "psychology",
        "vision",
        "neuroscience",
        "altunenes"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9e925495a2a98b10541627a06aa889e583561fd2f1d41fd730d23ed1e5bbe365",
                "md5": "5a19f331b2b625a68b09baa747614096",
                "sha256": "0da0a460d401611f0d4c30142ce31ac346083579860d8b6fec1f3536aa51d45e"
            },
            "downloads": -1,
            "filename": "sorceress-1.8.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5a19f331b2b625a68b09baa747614096",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6,<4.0",
            "size": 16491,
            "upload_time": "2023-01-12T17:30:58",
            "upload_time_iso_8601": "2023-01-12T17:30:58.653543Z",
            "url": "https://files.pythonhosted.org/packages/9e/92/5495a2a98b10541627a06aa889e583561fd2f1d41fd730d23ed1e5bbe365/sorceress-1.8.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1224d058245af9fe16a8b7fbe39994f63d61622114158259ac9932ec71ecf3f8",
                "md5": "fa6162b4f7d0e54bb3786a5b4400b8e8",
                "sha256": "b8b80367455d56ec98855a8f55bdca79d2ca81c082d9445304f4c940342ecdd1"
            },
            "downloads": -1,
            "filename": "sorceress-1.8.8.tar.gz",
            "has_sig": false,
            "md5_digest": "fa6162b4f7d0e54bb3786a5b4400b8e8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6,<4.0",
            "size": 18952,
            "upload_time": "2023-01-12T17:31:05",
            "upload_time_iso_8601": "2023-01-12T17:31:05.700963Z",
            "url": "https://files.pythonhosted.org/packages/12/24/d058245af9fe16a8b7fbe39994f63d61622114158259ac9932ec71ecf3f8/sorceress-1.8.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-12 17:31:05",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "altunenes",
    "github_project": "sorceress",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "sorceress"
}
        
Elapsed time: 0.02730s