Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 1.0.18 instead.
Reason given by maintainers: Please use edge-impulse-linux instead

Edge Impulse Linux SDK for Python

This library lets you run machine learning models and collect sensor data on Linux machines using Python. This SDK is part of Edge Impulse where we enable developers to create the next generation of intelligent device solutions with embedded machine learning. Start here to learn more and train your first model.

pip install edgeimpulse

runner.py

Implements the ImpulseRunner

use:

from edgeimpulse.runner import ImpulseRunner
import signal
runner = None

def signal_handler(sig, frame):
    print('Interrupted')
    if (runner):
        runner.stop()
    sys.exit(0)

signal.signal(signal.SIGINT, signal_handler)

...
runner = ImpulseRunner(modelfile)
model_info = runner.init()
...
res = runner.classify(features[:window_size].tolist())

Audio classification

from edgeimpulse.audio import AudioImpulseRunner
runner = AudioImpulseRunner('/path/to/your/model')
model_info = runner.init()
...
res = runner.classify(data)
print(res);

Classify audio from your microphone in real-time

from edgeimpulse.audio import AudioImpulseRunner
...
with AudioImpulseRunner('/path/to/your/model') as runner:
    model_info = runner.init()
    for res, audio in runner.classifier():
        print(res)

Image classification

from edgeimpulse.audio import ImageImpulseRunner
runner = ImageImpulseRunner('/path/to/your/model')
model_info = runner.init()
...
res = runner.classify(data)
print(res);

Classify images frames from your camera in real-time

from edgeimpulse.image import ImageImpulseRunner
import cv2

with ImageImpulseRunner('/path/to/your/model') as runner:
    model_info = runner.init()
    for res, img in runner.classifier():
        print(res)
        cv2.imshow('frame',img)
        cv2.waitKey()

examples:

/camera
/microphone

camera

Classifies frames grabbed directly from the webcam.

microphone

Classifies audio acquired directly from the audio interface.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

edgeimpulse-0.0.13.tar.gz (4.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

edgeimpulse-0.0.13-py3.8.egg (12.9 kB view details)

Uploaded Egg

edgeimpulse-0.0.13-py3.7.egg (12.9 kB view details)

Uploaded Egg

edgeimpulse-0.0.13-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file edgeimpulse-0.0.13.tar.gz.

File metadata

  • Download URL: edgeimpulse-0.0.13.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.10+

File hashes

Hashes for edgeimpulse-0.0.13.tar.gz
Algorithm Hash digest
SHA256 5a93669e0d2aeb9df683688d7f8722f03a6a983b74047822a13d217ee921d10c
MD5 ae457d03ca09033996397fd13759f727
BLAKE2b-256 5693e7e0e3490810b4285a1c685d61287fe845fd10448b39fbb34a07faf30b71

See more details on using hashes here.

File details

Details for the file edgeimpulse-0.0.13-py3.8.egg.

File metadata

  • Download URL: edgeimpulse-0.0.13-py3.8.egg
  • Upload date:
  • Size: 12.9 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.10+

File hashes

Hashes for edgeimpulse-0.0.13-py3.8.egg
Algorithm Hash digest
SHA256 1024d53f72cb1bf2575cff067f76a88d25a26c48d63025b3b7e1a7c4e0f8f890
MD5 fde5b6d2503c8e70e319b8c53086ecb1
BLAKE2b-256 6034041b17fc654be4a550a6880a84b9411949def47cd73af519f2ad2a6c0086

See more details on using hashes here.

File details

Details for the file edgeimpulse-0.0.13-py3.7.egg.

File metadata

  • Download URL: edgeimpulse-0.0.13-py3.7.egg
  • Upload date:
  • Size: 12.9 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.10+

File hashes

Hashes for edgeimpulse-0.0.13-py3.7.egg
Algorithm Hash digest
SHA256 e9ecb16c964c23ca5741a21f9189a3dbab866ac5c0855bcfb1db677fb3bb1fc7
MD5 335eac947312e66339e41888da4217dd
BLAKE2b-256 b2c98dc811d41ab9d8720ebe7f80d0d16fa8a8199c5d54719d4551f1a4791482

See more details on using hashes here.

File details

Details for the file edgeimpulse-0.0.13-py3-none-any.whl.

File metadata

  • Download URL: edgeimpulse-0.0.13-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.10+

File hashes

Hashes for edgeimpulse-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 ca033665fccde3e5ef26cd71ed19acdf76d17d7e1d24ff37ca3c078f10320bd0
MD5 c9b5c7efb0189dbff00b60b692dc6ba6
BLAKE2b-256 1d310f9502b0e86768993ef08d87f0b41428f3ca608af78230f110e5c83fa372

See more details on using hashes here.

Release history Release notifications | RSS feed

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page