Changeset 147 in pacpussensors for trunk/CameraViewer


Ignore:
Timestamp:
Apr 14, 2017, 5:55:02 PM (8 years ago)
Author:
ldecherf
Message:

Ajout CameraPlayer

Location:
trunk/CameraViewer
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/CameraViewer/CMakeLists.txt

    r141 r147  
    7676)
    7777
     78target_compile_definitions(${PROJECT_NAME} PUBLIC OPENCV_MAJOR=${OpenCV_VERSION_MAJOR})
     79
    7880
    7981# ========================================
  • trunk/CameraViewer/CameraViewerComponent.cpp

    r141 r147  
     1
    12
    23// Includes, project.
     
    1819using namespace pacpus;
    1920
    20 // Declare the logger and register the new component.
    21 //DECLARE_STATIC_LOGGER("pacpus.component.vislabCamera")
    22 //REGISTER_COMPONENT(CameraViewerComponent, "Camera");
    2321
    2422ComponentFactory<CameraViewerComponent> sFactory("CameraViewerComponent");
     
    6260void CameraViewerComponent::DisplayFrame(cv::Mat const& frame)
    6361{
    64         //getchar();
    65         //std::cout << getName().toStdString() << std::endl;
    6662        cv::imshow(getName().toStdString(), frame);
    67         //cv::imshow("Image", frame);
    6863}
    6964
  • trunk/CameraViewer/CameraViewerComponent.hpp

    r141 r147  
    1313
    1414// Includes, opencv.
    15 #include <opencv2/opencv.hpp>
    16 #include <opencv2/highgui.hpp>
     15#if (OPENCV_MAJOR == 3)
     16#   include <opencv2/opencv.hpp>
     17#   include <opencv2/highgui.hpp>
     18#else
     19#   include <opencv/cv.h>
     20#   include <opencv/highgui.h>
     21#endif
    1722
    1823
Note: See TracChangeset for help on using the changeset viewer.