mirror of
https://github.com/BertoldVdb/ZoneDetect.git
synced 2026-03-25 08:45:56 +00:00
Add install target to makefile, edit demo to not print coordinate list by default
This commit is contained in:
parent
29d52cebe2
commit
bcdcfacb75
2 changed files with 8 additions and 1 deletions
4
demo.c
4
demo.c
|
|
@ -48,7 +48,8 @@ void printResults(ZoneDetect *cd, ZoneDetectResult *results, float safezone)
|
|||
}
|
||||
}
|
||||
}
|
||||
size_t length = 0;
|
||||
if(0){
|
||||
size_t length = 0;
|
||||
float* list = ZDPolygonToList(cd, results[index].polygonId, &length);
|
||||
if(list){
|
||||
printf("Coordinate list length: %lu\n", length/2);
|
||||
|
|
@ -57,6 +58,7 @@ void printResults(ZoneDetect *cd, ZoneDetectResult *results, float safezone)
|
|||
}
|
||||
free(list);
|
||||
}
|
||||
}
|
||||
index++;
|
||||
}
|
||||
ZDFreeResults(results);
|
||||
|
|
|
|||
|
|
@ -56,3 +56,8 @@ obj/%.o: src/%.c $(INCLUDES_SRC)
|
|||
|
||||
clean:
|
||||
rm -rf $(OBJECTS_OBJ) $(EXECUTABLE)
|
||||
|
||||
install:
|
||||
cp zonedetect.h /usr/include/
|
||||
cp $(EXECUTABLE) /usr/lib/
|
||||
ldconfig
|
||||
|
|
|
|||
Loading…
Reference in a new issue