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 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)

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.9.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

edgeimpulse-0.0.9-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: edgeimpulse-0.0.9.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.8+

File hashes

Hashes for edgeimpulse-0.0.9.tar.gz
Algorithm Hash digest
SHA256 76dafcba26da1c62f3e140f01903679af0d15b803386697fd2793e1cf1bcd23c
MD5 be281b65f29617b4a594873fb587955d
BLAKE2b-256 dbc8e7819587e338ea7f51d23c1469057193703798a961067eeb28718c37b730

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgeimpulse-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.8+

File hashes

Hashes for edgeimpulse-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 b087cb6987d5a55767d7c8c76ae66d6211d6635fb0289cd25faa8c39fcb14a65
MD5 742e32f239df8d91682cf1a88831a379
BLAKE2b-256 18766a14a2401c9cbd5d747bf479a9f0a08f6a445d45c7db4cdb05e19373e260

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 Sentry Error logging StatusPage Status page