JeVois Tutorials
1.20
JeVois Smart Embedded Machine Vision Tutorials
|
|
Share this page: |
|
|
|
|
|
|
Go to the documentation of this file.
15 #define CATEGORY "computer_keyboard"
23 digitalWrite(
LEDPIN, HIGH);
31 char * tok = strtok(
instr,
" \r\n");
32 int state = 0, i;
float score;
45 if (strcmp(tok,
"DO") == 0) state = 1;
else state = 1000;
53 while (i >= 0 && tok[i] !=
':') --i;
61 score = atof(&tok[i+1]);
65 if (strcmp(tok,
CATEGORY) == 0) state = 2;
76 tok = strtok(0,
" \r\n");
84 digitalWrite(
LEDPIN, HIGH);
Data collection mode RAW means that the latest available raw data is returned each time get() is called
std::vector< float > itsBeta
friend friend class Component
double process(jevois::RawImage const &input)
std::future< std::invoke_result_t< std::decay_t< Function >, std::decay_t< Args >... > > async(Function &&f, Args &&... args)
JEVOIS_DECLARE_PARAMETER(thresh1, double, "First threshold for hysteresis", 50.0, ParamCateg)
void process(jevois::RawImage const &input, bool do_gist)
Send serial message to mark the the end(MARK STOP)
cv::Mat convertToCvRGB(RawImage const &src)
void drawCircle(RawImage &img, int x, int y, unsigned int rad, unsigned int thick, unsigned int col)
Prepend standardized serial messages with a frame time
cv::Mat convertToCvGray(RawImage const &src)
Data collection mode RAW means that the latest available raw data is returned each time hence timing may not be very accurate depending on how regularly grate into a FIFO and and accumulates resulting output data into the IMU s internal FIFO buffer at a fixed rate This parameter can only be set in a module s params cfg file
void require(char const *info, unsigned int w, unsigned int h, unsigned int f) const
void writeText(RawImage &img, std::string const &txt, int x, int y, unsigned int col, Font font=Font6x10)
std::string system(std::string const &cmd, bool errtoo=true)
Surprise(std::string const &instance)
void process(cv::Mat const &img, std::vector< cv::Rect > &faces, std::vector< std::vector< cv::Rect > > &eyes, bool detect_eyes=false)
std::vector< float > itsAlpha
friend friend class Engine
FaceDetector(std::string const &instance)
void drawFilledRect(RawImage &img, int x, int y, unsigned int w, unsigned int h, unsigned int col)
std::string warnAndIgnoreException(std::string const &prefix="")
std::string to_string(T const &val)
DiceCounter(std::string const &instance)
virtual void postUninit()
void paste(RawImage const &src, RawImage &dest, int dx, int dy)
void drawRect(RawImage &img, int x, int y, unsigned int w, unsigned int h, unsigned int thick, unsigned int col)
JEVOIS_DECLARE_PARAMETER(updatefac, float, "Surprise update factor on every video frame", 0.95F, jevois::Range< float >(0.001F, 0.999F), ParamCateg)
std::shared_ptr< Saliency > itsSaliency
JEVOIS_REGISTER_MODULE(HelloJeVois)
Prepend standardized serial messages with a frame number
virtual void process(jevois::InputFrame &&inframe, jevois::OutputFrame &&outframe) override
friend friend class Module