JeVois  1.0
JeVois Smart Embedded Machine Vision Toolkit
jevois Namespace Reference

Namespaces

 coords
 
 detail
 
 engine
 
 font
 
 manager
 
 rawimage
 
 rgb565
 Helper RGB565 colors.
 
 serial
 
 trace
 
 yuyv
 Helper YUYV colors.
 

Classes

class  BoundedBuffer
 Thread-safe synchronized producer/consumer queue. More...
 
class  Camera
 JeVois camera driver class - grabs frames from a Video4Linux camera sensor. More...
 
class  Component
 A component of a model hierarchy. More...
 
class  DynamicLoader
 Class to open shared object (.so) files and load functions contained in them. More...
 
class  Engine
 JeVois processing engine - gets images from camera sensor, processes them, and sends results over USB. More...
 
class  Gadget
 JeVois gadget driver - exposes a uvcvideo interface to host computer connected over USB. More...
 
class  InputFrame
 Exception-safe wrapper around a raw camera input frame. More...
 
class  JpegCompressor
 Simple singleton wrapper over a turbojpeg compressor. More...
 
class  Log
 Logger class. More...
 
class  Manager
 Manager of a hierarchy of Component objects. More...
 
class  Module
 Virtual base class for a vision processing module. More...
 
class  MovieInput
 Movie input, can be used as a replacement for Camera to debug algorithms using a fixed video sequence. More...
 
class  MovieOutput
 Video output to a movie file, using OpenCV video encoding. More...
 
class  OutputFrame
 Exception-safe wrapper around a raw image to be sent over USB. More...
 
class  Parameter
 Generic variadic template class template definition for Component Parameters. More...
 
class  Parameter< Param, Tail...>
 A set of Parameters attached to a component. More...
 
class  Parameter<>
 Special case to terminate variadic template inheritance recursion. More...
 
class  ParameterBase
 Base class for Parameter. More...
 
struct  ParameterCategory
 A category to which multiple ParameterDef definitions can belong. More...
 
class  ParameterCore
 A changeable parameter for a Component, core class. More...
 
class  ParameterDef
 A Parameter Definition. More...
 
class  ParameterDefBase
 Base class for a Parameter definition. More...
 
class  ParameterRegistry
 A simple registry of all parameters associated with a Component. More...
 
class  ParameterSummary
 ParameterSummary provides a summary about a parameter. More...
 
class  Profiler
 Simple profiler class. More...
 
class  Range
 A generic range class. More...
 
class  RawImage
 A raw image as coming from a V4L2 Camera and/or being sent out to a USB Gadget. More...
 
class  Semaphore
 A simple semaphore. More...
 
class  Serial
 Interface to a serial port. More...
 
class  Singleton
 A generic singleton class to enforce a single instance of an object. More...
 
class  StdioInterface
 String-based user interface, simple terminal input/output to use on host. More...
 
class  StepRange
 A generic range class with a step. More...
 
class  timed_lock_guard
 Acquire a lock object on a std::timed_mutex, or LFATAL after 1 second of waiting. More...
 
class  Timer
 Simple timer class. More...
 
class  UserInterface
 Abstract base class for a string-based user interface. More...
 
class  ValidValuesSpecBase
 Base class for specifying a set of valid values for a type. More...
 
class  ValidValuesSpecList
 Finite list valid values spec, everything listed at construction is valid, anything else is not. More...
 
class  ValidValuesSpecNone
 Open/None valid values spec, anything that T can take is valid. More...
 
class  ValidValuesSpecRange
 Range-based valid values spec, bounds are included. More...
 
class  ValidValuesSpecRegex
 Regex-based valid values spec, everything that is a match to the regex is considered valid. More...
 
class  ValidValuesSpecStepRange
 StepRange-based valid values spec, bounds are included. More...
 
class  VideoBuf
 A V4L2 video buffer, to be held in a shared_ptr. More...
 
class  VideoBuffers
 Collection of buffers for V4L2 video frames (Camera or Gadget) with hooks to the MMAP'd areas. More...
 
class  VideoDisplay
 Video output to local screen. More...
 
class  VideoInput
 Base class for video input, which will get derived into Camera and MovieInput. More...
 
struct  VideoMapping
 Simple struct to hold video mapping definitions for the processing Engine. More...
 
class  VideoOutput
 Base class for video output. Gadget, MovieOutput, VideoDisplay, and VideoOutputNone derive from it. More...
 
class  VideoOutputNone
 No-op VideoOutput derivative for when there is no video output. More...
 

Enumerations

enum  BlockingBehavior { BlockingBehavior::Block, BlockingBehavior::Throw }
 Behavior when attemting an operation that cannot be completed immediately. More...
 

Functions

template<typename T >
void paramValToString (T const &val, std::string &result)
 Machine-readable conversion of T to a string, for use in jevois::Parameter. More...
 
template<>
void paramValToString< unsigned char > (unsigned char const &val, std::string &result)
 Machine-readable conversion of T to a string, specialization to convert unsigned char to number, not character. More...
 
template<typename T >
void paramStringToVal (std::string const &valstring, T &result)
 Machine-readable conversion from string to T, for use in jevois::Parameter. More...
 
template<typename Q >
void paramValToString (std::vector< Q > const &val, std::string &result)
 Machine-readable output to a string, for use in jevois::Parameter: outputs [Element1, Element2, ...]. More...
 
template<typename Q >
void paramStringToVal (std::string const &valstring, std::vector< Q > &result)
 Machine-readable input from a string, for use in jevois::Parameter: reads [Element1, Element2, ...]. More...
 
template<typename K , typename V >
void paramValToString (std::map< K, V > const &val, std::string &result)
 Machine-readable output to a string, for use in jevois::Parameter: outputs [Key1:Value1, Key2:Value2, ...]. More...
 
template<typename K , typename V >
void paramStringToVal (std::string const &valstring, std::map< K, V > &result)
 Machine-readable input from a string, for use in jevois::Parameter: reads [Key1:Value1, Key2:Value2, ...]. More...
 
template<>
void paramValToString< bool > (bool const &val, std::string &result)
 Machine-readable conversion of bool to a string, for use in jevois::Parameter. More...
 
template<>
void paramStringToVal< bool > (std::string const &valstring, bool &result)
 Machine-readable conversion from string to bool, for use in jevois::Parameter. More...
 
template<>
void paramValToString< std::string > (std::string const &val, std::string &result)
 Machine-readable conversion of string to a string, for use in jevois::Parameter. More...
 
template<>
void paramStringToVal< std::string > (std::string const &valstring, std::string &result)
 Machine-readable conversion from string to string, for use in jevois::Parameter. More...
 
void warnAndRethrowException ()
 Convenience function to catch an exception, issue some LERROR (depending on type), and rethrow it. More...
 
std::string warnAndIgnoreException ()
 Convenience function to catch an exception, issue some LERROR (depending on type), and ignore it. More...
 
void logSetEngine (Engine *e)
 Set an Engine so that all log messages will be forwarded to its serial ports. More...
 
std::string getSysInfoCPU ()
 Get CPU info: frequency, thermal, load. More...
 
std::string getSysInfoMem ()
 Get memory info. More...
 
std::string getSysInfoVersion ()
 Get O.S. version info. More...
 
void convertYUYVtoYUV422 (unsigned char const *src, int width, int height, unsigned char *dst)
 Helper to convert from packed YUYV to planar YUV422. More...
 
unsigned long compressBGRtoJpeg (unsigned char const *src, int width, int height, unsigned char *dst, int quality=75)
 Compress raw pixel buffer to jpeg. More...
 
void compressBGRtoJpeg (cv::Mat const &src, RawImage &dst, int quality=75)
 Compress a BGR cv::Mat into an output JPEG jevois::RawImage. More...
 
unsigned long compressRGBAtoJpeg (unsigned char const *src, int width, int height, unsigned char *dst, int quality=75)
 Compress raw pixel buffer to jpeg. More...
 
void compressRGBAtoJpeg (cv::Mat const &src, RawImage &dst, int quality=75)
 Compress an RGBA cv::Mat into an output JPEG jevois::RawImage. More...
 
std::string demangle (std::string const &mangledName)
 Demangle a mangled name. More...
 
std::string demangle (char const *mangledName)
 Demangle a mangled name. More...
 
template<typename T >
std::string demangledName ()
 Get the demangled type name of type T. More...
 
template<>
std::string demangledName< std::string > ()
 Specialization for std::string to avoid getting an ugly name. More...
 
std::string fccstr (unsigned int fcc)
 Convert a V4L2 four-cc code (V4L2_PIX_FMT_...) to a 4-char string. More...
 
unsigned int v4l2BytesPerPix (unsigned int fcc)
 Return the number of bytes per pixel for a given V4L2_PIX_FMT_... More...
 
unsigned int v4l2ImageSize (unsigned int fcc, unsigned int width, unsigned int height)
 Return the image size in bytes for a given V4L2_PIX_FMT_..., width, height. More...
 
std::vector< std::string > split (std::string const &input, std::string const &regex="\\s+")
 Split string into vector of tokens using a regex to specify what to split on; default regex splits by whitespace. More...
 
std::string join (std::vector< std::string > const &strings, std::string const &delimiter)
 Concatenate a vector of tokens into a string. More...
 
bool stringStartsWith (std::string const &str, std::string const &prefix)
 Return true if str starts with prefix (including if both strings are equal) More...
 
std::string sformat (char const *fmt,...) __attribute__((format(__printf__
 Create a string using printf style arguments. More...
 
template<typename T >
std::string T from_string (std::string const &str)
 Convert from string to a type. More...
 
template<typename T >
std::string to_string (T const &val)
 Convert from type to string. More...
 
template<typename dest_type , typename source_type >
dest_type clamped_convert (source_type source)
 Clamped numerical conversion. More...
 
void flushcache ()
 Flush the caches, may sometimes be useful when running the cemare in turbo mode. More...
 

Variables

int logLevel = LOG_INFO
 Current log level. More...
 
int traceLevel = 0
 Current trace level. More...