mirror of
https://github.com/Karaka-Management/cOMS.git
synced 2026-01-18 06:08:41 +00:00
cs fixes
This commit is contained in:
parent
bad0b9c3e0
commit
40efcb8a66
|
|
@ -63,6 +63,7 @@ namespace Image {
|
|||
|
||||
// Approximate polygon
|
||||
/* Question: we probably don't want a polygon all the time?! */
|
||||
// @todo bad implementation, focus on single square
|
||||
std::vector<std::vector<cv::Point> > contoursDraw (contoursArea.size());
|
||||
for (int i = 0; i < contoursArea.size(); ++i){
|
||||
cv::approxPolyDP(cv::Mat(contoursArea[i]), contoursDraw[i], 40, true);
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ namespace Utils {
|
|||
|
||||
public:
|
||||
static inline
|
||||
char* get_arg (const char *id, char **argv, int length)
|
||||
char* get_arg(const char *id, char **argv, int length)
|
||||
{
|
||||
if (Utils::StringUtils::is_number(id)) {
|
||||
return argv[atoi(id)];
|
||||
|
|
@ -38,7 +38,7 @@ namespace Utils {
|
|||
}
|
||||
|
||||
static inline
|
||||
bool has_arg (const char *id, char **argv, int length)
|
||||
bool has_arg(const char *id, char **argv, int length)
|
||||
{
|
||||
for (int i = 0; i < length; ++i) {
|
||||
if (strcmp(id, argv[i]) == 0) {
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ namespace Utils {
|
|||
|
||||
public:
|
||||
static inline
|
||||
bool is_number (const char *s)
|
||||
bool is_number(const char *s)
|
||||
{
|
||||
while (*s != '\0') {
|
||||
if (!isdigit(*s)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user