Skip to content

A Demo of a simple Jina executor that classifies videos and images

License

Notifications You must be signed in to change notification settings

Jacob-Barhak/JinaDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jina Demo

Simple Video Classifier as JINA executor

This is an example of a simple JINA executor that classifies videos and images

The demo is for an evening of python coding meetup event.

To run this, install all requirements in the requirements.txt file using conda or pip - use python 3.10

This was tested on Python 3.10.12 | packaged by conda-forge | (main, Aug 22 2022, 20:29:51) [MSC v.1929 64 bit (AMD64)] on win32

Usage

  1. Copy the file imagenet_class_index.json from https://github.com/raghakot/keras-vis/blob/master/resources/imagenet_class_index.json and place it in the same directory as main.py - this file is under MIT license which is different than the CC0 license under which this code is distributed in - so be careful not to redistribute without changing the license.
  2. Place some images and/or videos to be classified in the images subdirectory
  3. Open a terminal and execute the Jina server using the command: python main.py
  4. Open another terminal and execute the client using the command: python client.py

The classifications of the images / videos should be printed on the screen

License

CC0

To the extent possible under law, Jacob Barhak has waived all copyright and related or neighboring rights to Jina Demo This work is published from: Israel.

Exceptions are:

About

A Demo of a simple Jina executor that classifies videos and images

Resources

License

Stars

Watchers

Forks

Languages