JeVoisBase
1.20
JeVois Smart Embedded Machine Vision Toolkit Base Modules
|
Share this page: |
|
|
|
|
|
|
Go to the documentation of this file.
25 #include <opencv2/core/core.hpp>
26 #include <opencv2/imgproc/imgproc.hpp>
29 #include <linux/videodev2.h>
35 "Note that currently, confidence values are binary (only 0 or 1), and quite conservative "
36 "(many good detections may get a confidence of 0 if they are not very clean).",
37 0.0
F, roadfinder::ParamCateg);
131 cv::Mat imggray = inframe.getCvGRAY();
138 int const w = imggray.cols;
139 std::pair<Point2D<int>,
float> vp =
itsRoadFinder->getCurrVanishingPoint();
150 inimg.
require(
"input",
w,
h, V4L2_PIX_FMT_YUYV);
166 outimg.
require(
"output",
w,
h + 16, V4L2_PIX_FMT_YUYV);
169 unsigned short const txtcol = 0xa0ff;
180 std::pair<Point2D<int>,
float> vp =
itsRoadFinder->getCurrVanishingPoint();
184 std::ostringstream otxt; otxt << std::fixed << std::setprecision(3);
185 otxt <<
"VP x=" << vp.first.i <<
" (" << vp.second <<
") CTR=" << std::setprecision(1);
189 otxt << cp.i <<
" TGT=" << tp.i <<
" fTPX=" << tpx;
virtual ~RoadNavigation()
Virtual destructor for safe inheritance.
jevois::Timer itsProcessingTimer
Module internals.
void sendSerialImg1Dx(unsigned int camw, float x, float size=0.0F, std::string const &id="", std::string const &extra="")
cv::Mat convertToCvGray(RawImage const &src)
virtual void process(jevois::InputFrame &&inframe, jevois::OutputFrame &&outframe) override
Processing function with USB video out.
void require(char const *info, unsigned int w, unsigned int h, unsigned int f) const
std::shared_ptr< RoadFinder > itsRoadFinder
void writeText(RawImage &img, std::string const &txt, int x, int y, unsigned int col, Font font=Font6x10)
RoadNavigation(std::string const &instance)
Constructor.
const std::string & stop(double *seconds)
void drawFilledRect(RawImage &img, int x, int y, unsigned int w, unsigned int h, unsigned int col)
StdModule(std::string const &instance)
void paste(RawImage const &src, RawImage &dest, int dx, int dy)
virtual void process(jevois::InputFrame &&inframe) override
Processing function, no video out.
JEVOIS_REGISTER_MODULE(RoadNavigation)