![]() |
Dashcam SDK 1.0.7
Captures, recognizes and records road aigns.
|
#include <FrameHandler.h>
Classes | |
class | CarDistance |
Public Types | |
enum class | RecognitionFeature { Collision , LaneDeparture , SpeedSign } |
enum class | CollisionSensitivity { Low , Medium , High } |
enum class | Direction { None , Left , Right } |
enum class | FrameFormat { NV21 , NV12 , BGRA , RGBA } |
Public Member Functions | |
FrameHandler (FrameFormat frameFormat) | |
~FrameHandler () | |
void | setFrameTitle (const std::string &title) |
std::string | getFrameTitle () const |
void | updateUi () |
void | onSpeedLimit (const char *label) |
bool | handleFrame (int width, int height, int rowStride, unsigned char *frameData, unsigned char *outputBitmap, int frameNumber, double frameTimestamp) |
const std::vector< std::string > & | getSigns () const |
const std::vector< std::string > | getFrameLogs () const |
std::string | getLogsPath () const |
void | setFramesSkippingEnabled (bool isEnabled) |
void | setUsesCurrentSpeed (bool usesCurrentSpeed) |
bool | getUsesCurrentSpeed () |
void | setWriteAll (bool writeAll) |
void | setRecognitionFeatureEnabled (RecognitionFeature feature, bool isEnabled) |
void | setRecognitionFeatureMinSpeed (RecognitionFeature feature, int speedInKmH) |
void | setRecognitionMaxSpeed (int speedInKmH) |
void | setCollisionSensitivity (CollisionSensitivity sensitivity) |
void | setCollisionTime (double timeInSeconds) |
bool | isRecognitionFeatureActive (RecognitionFeature feature) const |
void | setLocation (double lat, double lon, double altitudeInMeters, double bearing, double speedInMetersPerSec, double gpsTimestamp, double systemTimestamp) |
void | setCurrentCountry (const std::string &countryIso3Code, const std::string &signSet) |
void | setDataDirectories (const char *dirRcg, const char *dirData, const char *dirLibraries) |
std::vector< cv::String > | readProcessor (const char *path, const char *model) |
void | Start () |
void | ReCenter () |
bool | setImageOn (bool bImage) |
bool | getIsVehicleTooClose () const |
cv::Point2f | getVanishingPoint () const |
void | setVanishingPoint (const cv::Point2f &point) |
const std::vector< std::string > & | getSupportedSignSets () const |
FrameHandler::Direction | getLaneLeavingDirection () const |
|
strong |
|
strong |
|
strong |
|
strong |
FrameHandler::FrameHandler | ( | FrameFormat | frameFormat | ) |
FrameHandler::~FrameHandler | ( | ) |
const std::vector< std::string > FrameHandler::getFrameLogs | ( | ) | const |
std::string FrameHandler::getFrameTitle | ( | ) | const |
bool FrameHandler::getIsVehicleTooClose | ( | ) | const |
FrameHandler::Direction FrameHandler::getLaneLeavingDirection | ( | ) | const |
std::string FrameHandler::getLogsPath | ( | ) | const |
const std::vector< std::string > & FrameHandler::getSigns | ( | ) | const |
const std::vector< std::string > & FrameHandler::getSupportedSignSets | ( | ) | const |
bool FrameHandler::getUsesCurrentSpeed | ( | ) |
cv::Point2f FrameHandler::getVanishingPoint | ( | ) | const |
bool FrameHandler::handleFrame | ( | int | width, |
int | height, | ||
int | rowStride, | ||
unsigned char * | frameData, | ||
unsigned char * | outputBitmap, | ||
int | frameNumber, | ||
double | frameTimestamp | ||
) |
bool FrameHandler::isRecognitionFeatureActive | ( | RecognitionFeature | feature | ) | const |
void FrameHandler::onSpeedLimit | ( | const char * | label | ) |
std::vector< cv::String > FrameHandler::readProcessor | ( | const char * | path, |
const char * | model | ||
) |
void FrameHandler::ReCenter | ( | ) |
void FrameHandler::setCollisionSensitivity | ( | CollisionSensitivity | sensitivity | ) |
void FrameHandler::setCollisionTime | ( | double | timeInSeconds | ) |
void FrameHandler::setCurrentCountry | ( | const std::string & | countryIso3Code, |
const std::string & | signSet | ||
) |
void FrameHandler::setDataDirectories | ( | const char * | dirRcg, |
const char * | dirData, | ||
const char * | dirLibraries | ||
) |
void FrameHandler::setFramesSkippingEnabled | ( | bool | isEnabled | ) |
void FrameHandler::setFrameTitle | ( | const std::string & | title | ) |
bool FrameHandler::setImageOn | ( | bool | bImage | ) |
void FrameHandler::setLocation | ( | double | lat, |
double | lon, | ||
double | altitudeInMeters, | ||
double | bearing, | ||
double | speedInMetersPerSec, | ||
double | gpsTimestamp, | ||
double | systemTimestamp | ||
) |
void FrameHandler::setRecognitionFeatureEnabled | ( | RecognitionFeature | feature, |
bool | isEnabled | ||
) |
void FrameHandler::setRecognitionFeatureMinSpeed | ( | RecognitionFeature | feature, |
int | speedInKmH | ||
) |
void FrameHandler::setRecognitionMaxSpeed | ( | int | speedInKmH | ) |
void FrameHandler::setUsesCurrentSpeed | ( | bool | usesCurrentSpeed | ) |
void FrameHandler::setVanishingPoint | ( | const cv::Point2f & | point | ) |
void FrameHandler::setWriteAll | ( | bool | writeAll | ) |
void FrameHandler::Start | ( | ) |
void FrameHandler::updateUi | ( | ) |