Refactor project structure
This commit is contained in:
40
modules/ANSLPR/include/utils_image_file.h
Normal file
40
modules/ANSLPR/include/utils_image_file.h
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
// Line.h: interface for the C_Line class.
|
||||
*/
|
||||
#if !defined(UTILS_IMAGE_FILE_H)
|
||||
#define UTILS_IMAGE_FILE_H
|
||||
#pragma once
|
||||
#include <list>
|
||||
#include "Levenshtein.h"
|
||||
#include <opencv2/core.hpp>
|
||||
/**
|
||||
@brief
|
||||
//return the ascii character that corresponds to index class output by the dnn
|
||||
@param classe : integer index = class identifier, output by the object detection dnn
|
||||
@return an ascii character
|
||||
@see
|
||||
*/
|
||||
char get_char(const int classe);
|
||||
/**
|
||||
@brief
|
||||
//checks if the characters contained in lpn are compatible with the alphabet
|
||||
@param lpn: the registration of the vehicle as a string
|
||||
@return
|
||||
@see
|
||||
*/
|
||||
bool could_be_lpn(const std::string& lpn);
|
||||
/**
|
||||
@brief
|
||||
returns the true license plate number out of a filename
|
||||
you must place the true license plate number in the image filename this way : number+underscore+license plate number,
|
||||
for instance filename 0000000001_3065WWA34.jpg will be interpreted as an image with the license plate 3065WWA34 in it.
|
||||
@param filename: the image filename that contains in it the true registration number
|
||||
@return the lpn contained in the image filename
|
||||
@see
|
||||
*/
|
||||
//retourne l'index du caractere LPChar
|
||||
int get_index(const char LPChar);
|
||||
std::string getTrueLPN(const std::string& filename, const bool& vrai_lpn_after_underscore);
|
||||
//extracts from a test directory all images files
|
||||
void load_images_filenames(const std::string& dir, std::list<std::string>& image_filenames);
|
||||
#endif // !defined(UTILS_IMAGE_FILE_H)
|
||||
Reference in New Issue
Block a user