Classes
xCamera
Additional hardware required! Take a picture from connected Camera through USB
$ python core/xcamera.py
from core.xcamera import xCamera
idCamera = xCamera()
idCamera.capture()
xFaceRecognition
Open Source Computer Vision. OpenCV is released under a BSD license and hence it’s free for both academic and commercial use. It has C++, C, Python and Java interfaces and supports Windows, Linux, Mac OS, iOS and Android. OpenCV was designed for computational efficiency and with a strong focus on real-time applications.
$ python core/xfacerecognition.py
from core.xfacerecognition import xFaceRecognition
idFaceRecognition = xFaceRecognition(imageinput='in.jpeg', imageoutput='out.jpeg')
idFaceRecognition.detect()
xLcdRgb
The RGB color model is an additive color model in which red, green, and blue light are added together in various ways to reproduce a broad array of colors. The name of the model comes from the initials of the three additive primary colors, red, green, and blue. Wikipedia
A liquid-crystal display (LCD) is a flat panel display, electronic visual display, or video display that uses the light modulating properties of liquid crystals. Liquid crystals do not emit light directly. Wikipedia
Additional hardware required! Set a specific color in the display and show a specific text.
$ python core/xlcdrgb.py
from core.xlcdrgb import xLcdRgb
idLcdRgb = xLcdRgb()
while True:
idLcdRgb.clear()
idLcdRgb.setCursor(0,0)
idLcdRgb.setText("Hello Lcd Rgb!")
idLcdRgb.setColor("Red")
xMqttPub
MQTT is a machine-to-machine (M2M)/"Internet of Things" connectivity protocol. It was designed as an extremely lightweight publish/subscribe messaging transport. It is useful for connections with remote locations where a small code footprint is required and/or network bandwidth is at a premium.
$ python core/xmqttpub.py
from core.xmqttpub import xMqttPub
idMqtt = xMqttPub(server="test.mosquitto.org", port=1883)
idMqtt.write("temp/random", "43")
xSpeechRecognition
Additional hardware required!
root@edison:~# vi ~/.asoundrc
pcm.!default {
type plug
slave {
pcm "hw:3,0"
}
}
ctl.!default {
type plug
slave {
pcm "hw:2,0"
}
}
$ python core/xspeechrecognition.py
from core.xspeechrecognition import xSpeechRecognition
idSpeechRecognition = xSpeechRecognition()
print idSpeechRecognition.recognize()
xTalk
Additional hardware required! Uses VoiceRSS service through Mashape to enable Text To Speech Service
Voice RSS provides free text-to-speech (TTS) online service and free TTS API with very fast and simple integration.
Hundreds of thousands of developers rely on Mashape products for deliverying better APIs and Microservices.
$ python core/xtalk.py
from core.xtalk import xtalk
xtalk("en-us", "Hello World of Text To Speech via Voice RSS")
xTwitter
Twitter (/ˈtwɪtər/) is an online social networking service that enables users to send and read short 140-character messages called "tweets". Wikipedia
$ python core/xtwitter.py
from core.xtweet import xTwitter
idTwitter = xTwitter()
idTwitter.tweet('#TheIoTLearningInitiative Testing Time', None)
xVoice
Additional hardware required!
$ python core/xvoice.py
from core.xvoice import xVoice
idVoice = xVoice()
idVoice.record()
idVoice.play()
xWolfram
Wolfram Alpha (also styled WolframAlpha and Wolfram|Alpha) is a computational knowledge engine[4] or answer engine developed by Wolfram Research. It is an online service that answers factual queries directly by computing the answer from externally sourced "curated data", rather than providing a list of documents or web pages that might contain the answer as a search engine might. Wikipedia
from core.xwolfram import xWolfram
idWolfram = xWolfram()
print idWolfram.question("What is the capital of Mexico")
root@edison:~/myproject# python core/xwolfram.py
Mexico City Distrito Federal Mexico
root@edison:~/myproject#