kNOw SIGN
Functions
main_thread.cpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdarg.h>
#include <errno.h>
#include <string.h>
#include <signal.h>
#include <syslog.h>
#include <termios.h>
#include <netinet/in.h>
#include <getopt.h>
#include <iostream>
#include <vector>
#include <cmath>
#include <thread>
#include <chrono>
#include "opencv2/opencv.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/imgproc/types_c.h"
#include "opencv2/highgui/highgui_c.h"
#include "ArduiPi_OLED_lib.h"
#include "Adafruit_GFX.h"
#include "ArduiPi_OLED.h"
#include "FrameGen.hpp"
#include "roi.hpp"
#include "main.hpp"
#include "RecogModel.h"
#include "handDetect.h"
#include "led_display.hpp"
#include "ThreadSafeFramesQueue.hpp"
Include dependency graph for main_thread.cpp:

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )

THREAD 1: Frames-capturing thread UPDATES: raw frames queue

If ESC is pressed OR stream is exhausted, Send the kill-signal to other threads

Note
need to use clone here to pass a copy, otherwise input could be corrupted

THREAD 2: Inference thread UPDATES: inference frames queue - inferred chars

inp is valid, run inference on it