target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBS} ${MV_COMMON_LIB_NAME} zbar dlog)
target_include_directories(${PROJECT_NAME} PRIVATE include)
+target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra -Werror)
install(TARGETS ${PROJECT_NAME} DESTINATION ${LIB_INSTALL_DIR})
}
if (roi.point.x < 0 || roi.point.y < 0 ||
- (roi.point.x + roi.width) > src_w ||
- (roi.point.y + roi.height) > src_h) {
+ (unsigned int)(roi.point.x + roi.width) > src_w ||
+ (unsigned int)(roi.point.y + roi.height) > src_h) {
LOGE("roi is out of area on source");
return MEDIA_VISION_ERROR_INVALID_PARAMETER;
}
target_link_libraries(${PROJECT_NAME} ${MV_COMMON_LIB_NAME} ${OpenCV_LIBS} zint dlog)
target_include_directories(${PROJECT_NAME} PRIVATE include)
+target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra -Werror)
install(TARGETS ${PROJECT_NAME} DESTINATION ${LIB_INSTALL_DIR})
target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBS} ${${PROJECT_NAME}_DEP_LIBRARIES})
target_include_directories(${PROJECT_NAME} PUBLIC include ${${PROJECT_NAME}_DEP_INCLUDE_DIRS} ${CMAKE_SOURCE_DIR}/include)
+target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra -Werror)
install(TARGETS ${PROJECT_NAME} DESTINATION ${LIB_INSTALL_DIR})
target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBS} ${MV_COMMON_LIB_NAME} dlog)
target_include_directories(${PROJECT_NAME} PRIVATE include)
+target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra -Werror)
install(TARGETS ${PROJECT_NAME} DESTINATION ${LIB_INSTALL_DIR})
}
for (int idx = 0; idx < 4; idx++) {
if (roi->points[idx].x < 0 || roi->points[idx].y < 0 ||
- roi->points[idx].x > src_w || roi->points[idx].y > src_h) {
+ (unsigned int) roi->points[idx].x > src_w ||
+ (unsigned int) roi->points[idx].y > src_h) {
LOGE("roi is out of area on source");
return MEDIA_VISION_ERROR_INVALID_PARAMETER;
}
return ret;
}
if (roi->point.x < 0 || roi->point.y < 0 ||
- (roi->point.x + roi->width) > src_w ||
- (roi->point.y + roi->height) > src_h) {
+ (unsigned int) (roi->point.x + roi->width) > src_w ||
+ (unsigned int) (roi->point.y + roi->height) > src_h) {
LOGE("roi is out of area on source");
return MEDIA_VISION_ERROR_INVALID_PARAMETER;
}
target_link_libraries(${PROJECT_NAME} ${MV_COMMON_LIB_NAME} ${OpenCV_LIBS})
target_include_directories(${PROJECT_NAME} PUBLIC include)
+target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra -Werror)
install(TARGETS ${PROJECT_NAME} DESTINATION ${LIB_INSTALL_DIR})
target_link_libraries(${PROJECT_NAME} ${MV_COMMON_LIB_NAME} ${OpenCV_LIBS} ${${PROJECT_NAME}_DEP_LIBRARIES})
target_include_directories(${PROJECT_NAME} PRIVATE include)
+target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra -Werror)
install(TARGETS ${PROJECT_NAME} DESTINATION ${LIB_INSTALL_DIR})
using namespace std;
using namespace MediaVision::ROITracker;
-static cv::Mat getTrackerFrame(mv_colorspace_e colorspace, unsigned int channels, unsigned int width, unsigned int height, unsigned char* buffer)
+static cv::Mat getTrackerFrame(mv_colorspace_e colorspace, unsigned int width, unsigned int height, unsigned char* buffer)
{
switch (colorspace) {
case MEDIA_VISION_COLORSPACE_Y800:
LOGD(" w: %d, h: %d, c: %d", width, height, channels);
try {
- cv::Mat frame = getTrackerFrame(colorspace, channels, width, height, buffer);
+ cv::Mat frame = getTrackerFrame(colorspace, width, height, buffer);
auto pTracker = static_cast<ROITracker *>(handle);
pTracker->perform(frame);
target_link_libraries(${PROJECT_NAME} ${MV_COMMON_LIB_NAME} ${MV_FACE_LIB_NAME})
target_include_directories(${PROJECT_NAME} PRIVATE include)
+target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra -Werror)
install(TARGETS ${PROJECT_NAME} DESTINATION ${LIB_INSTALL_DIR})
double confidence,
void *user_data)
{
- if (face_location == NULL || face_label == NULL) {
+ if (source == NULL || face_location == NULL || face_label == NULL) {
LOGI("Face wasn't recognized");
return;
}