GithubHelp home page GithubHelp logo

mpoelzl / pxt-planetx-ai Goto Github PK

View Code? Open in Web Editor NEW

This project forked from elecfreaks/pxt-planetx-ai

0.0 0.0 0.0 301 KB

(行星X)The micro:bit new sensor series PlanetX(only AI) with RJ11 connection port by ELECFREAKS Co.ltd

Home Page: https://elecfreaks.github.io/pxt-PlanetX-AI/

License: MIT License

Ruby 0.30% TypeScript 99.41% Makefile 0.29%

pxt-planetx-ai's Introduction

AiLens Package

This extension is designed to programme and drive the AiLens.

The AI Lens is able to achieve the functions of face recognition, balls tracking, cards recognition and characteristics acquisition.

Get Product

You can get AiLens from the Elecfreaks store

Use Tutorial

You can get a detailed tutorial on how to use it here ELECFREAKS WIKI

Block

  • Initialize AI Lens and wait for AIlens to upload IIC data
PlanetX_AILens.initModule()
  • Switch ailens function, including, card, ball, color, line inspection, feature learning
PlanetX_AILens.switchfunc(PlanetX_AILens.FuncList.Card)
  • Get the data of current frame from ailens
PlanetX_AILens.cameraImage()
  • Process the data of small ball in the screen (if the screen contains small ball and the function is selected as small ball)
PlanetX_AILens.checkBall()
PlanetX_AILens.ballColor(PlanetX_AILens.ballColorList.Red)
PlanetX_AILens.BallTotalNum()
PlanetX_AILens.ballData(PlanetX_AILens.Ballstatus.X)
  • Process the data of face in the picture (if the picture contains face and the function is face)
PlanetX_AILens.checkFace()
PlanetX_AILens.faceTotalNum()
PlanetX_AILens.faceData(PlanetX_AILens.Facestatus.X)
  • Process the card data in the screen (if the screen contains cards and the function is selected as card)
PlanetX_AILens.numberCard(numberCards.1)
PlanetX_AILens.letterCard(letterCards.A)
PlanetX_AILens.trafficCard(trafficCards.forward)
PlanetX_AILens.otherCard(otherCards.cat)
PlanetX_AILens.cardTotalNum()
PlanetX_AILens.CardData(Cardstatus.X)
  • Process the data of line segments in the screen (if the screen contains line segments and the function is tracking)
PlanetX_AILens.lineData(Linestatus.angle)
PlanetX_AILens.lineDirection(Linestatus.angle)
  • Learn the characteristics of the object in the current picture, and record and save
PlanetX_AILens.learnObject(1)
  • Remove all learned objects
PlanetX_AILens.ClearlearnObject()
  • Deal with the confidence of the learned object in the picture
PlanetX_AILens.objectCheck(PlanetX_AILens.learnID.ID1)
PlanetX_AILens.objectConfidence(PlanetX_AILens.learnID.ID1)

Supported targets

for PXT/microbit

License

MIT

pxt-planetx-ai's People

Contributors

lionyhw avatar elecfreaks1 avatar mpoelzl avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.