Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/patarapolw/imagedb
Store images, especially from Clipboard, in a database, and spin an image server (for usage in Jupyter Notebook).
https://github.com/patarapolw/imagedb
jupyter-notebook
Last synced: 10 days ago
JSON representation
Store images, especially from Clipboard, in a database, and spin an image server (for usage in Jupyter Notebook).
- Host: GitHub
- URL: https://github.com/patarapolw/imagedb
- Owner: patarapolw
- License: mit
- Created: 2018-09-15T18:48:34.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-25T21:58:59.000Z (over 6 years ago)
- Last Synced: 2025-01-17T03:39:34.139Z (about 1 month ago)
- Topics: jupyter-notebook
- Language: Python
- Homepage:
- Size: 1.61 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ImageDB
Store images, especially from Clipboard, in a database, and spin an image server (for usage in Jupyter Notebook).
## Installation
```commandline
$ pip install imagedb
```Or
1. Clone the project from GitHub
2. `poetry add imagedb --path path/to/imagedb/folder`## Usage
### Run an image server
In a Python script (outside Jupyter Notebook).
```python
from imagedb import ImageDB
ImageDB('images.db').runserver()
# Then, go to `http://localhost:8000` in your browser to register an image (from the clipboard).
```### Get images from the image server
In Jupyter Notebook
```pydocstring
>>> from imagedb import ImageDB
>>> idb = ImageDB('images.db')
>>> idb.last()
# The latest image in the server will be shown. `idb.last(5)` is also supported.
>>> from IPython.display import display
>>> for image in idb.search(tags='bar'):
... display(image)
# All images corresponding to the tag 'bar' will be shown.
```## Screenshots
![]()
![]()
![]()
![]()