Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Intel OpenVino on Linux
Forum Updated to NodeBB v4.3 + New Features

Intel OpenVino on Linux

Scheduled Pinned Locked Moved Solved Installation and Deployment
8 Posts 6 Posters 1.9k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sdra81
    wrote on last edited by
    #1

    Hi,

    while building an application based on Qt5 and Intel OpenVino I noticed that there's some kind of conflict when linking the two libraries together. The symptoms are that, when performing face detection with OpenVino, the coordinates of the boxes are offset and discretized.

    A very simple way to experience that is by compiling and running the interactive_face_detection_demo of OpenVino:

    cd /opt/intel/computer_vision_sdk/inference_engine/samples/
    ./build_samples.sh
    
    cd ~/inference_engine_samples_build/intel64/Release/
    ./interactive_face_detection_demo -m /opt/intel/computer_vision_sdk/deployment_tools/intel_models/face-detection-adas-0001/FP32/face-detection-adas-0001.xml
    

    and then simply adding and recompiling:

    ...
    #include <QApplication>
    
    ...
    int main(int argc, char *argv[]) {
        QApplication app(argc, argv);
    ...
    

    in the /opt/intel/computer_vision_sdk/inference_engine/samples/interactive_face_detection_demo/main.cpp file.

    My only clue is about a possible conflict between the threading framework used by OpenVino (OpenMP) and the one used by Qt5 on Linux.

    Has anyone experienced this? or has some lead how to solve this conflict?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      scooter1556
      wrote on last edited by
      #7

      This is a locale issue, specifically your default distro "LC_NUMERIC" setting. This causes a conflict with certain POSIX functions which can mess with data type conversion and maths functions. Try adding the following right after initializing your application:

      setlocale(LC_NUMERIC,"C");
      

      More info HERE

      V 1 Reply Last reply
      3
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #2

        Hi and welcome to devnet,

        Can you provide the link to the OpenVino version you are using ?
        What version of Qt are you using ?
        What Linux distribution are you running ?
        What result are you expecting ?
        What result are you getting ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Sdra81
          wrote on last edited by
          #3

          Hi @SGaist

          the issue happens with different version of openvino, including the last release 2018 R5 (also in 2018 R2):

          OpenVino link : http://registrationcenter-download.intel.com/akdlm/irc_nas/15013/l_openvino_toolkit_p_2018.5.445.tgz
          QT version : 5.9.5
          Linux distribution : Ubuntu 18.04 (also in Ubuntu 16.04)
          Kernel : 4.15.0-43-generic x86_64 (also in 4.4.0-139-generic x86_64)
          Experienced behavior : face location returned by the openvino face detector is offset compared to the location returned by the openvino face detector binary not linking Qt5
          Expected behavior : face location returned by the openvino face detector binary with and without Qt5 linking is the same

          Thanks!

          1 Reply Last reply
          0
          • N Offline
            N Offline
            noli
            wrote on last edited by
            #4

            Hi,

            I can confirm this one with the R4 release of OpenVino, QT 5.7 under Ubuntu 16.04.
            The location and the size of the detected faces are corrupted. This bug occurs either on CPU or NCS/MYRIAD target.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              Sdra81
              wrote on last edited by
              #5

              I can confirm on:
              OpenVino 2019 R1.0.1
              Ubuntu 18.04
              QT 5.9.5

              1 Reply Last reply
              0
              • A Offline
                A Offline
                ameliagomes
                Banned
                wrote on last edited by
                #6
                This post is deleted!
                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  scooter1556
                  wrote on last edited by
                  #7

                  This is a locale issue, specifically your default distro "LC_NUMERIC" setting. This causes a conflict with certain POSIX functions which can mess with data type conversion and maths functions. Try adding the following right after initializing your application:

                  setlocale(LC_NUMERIC,"C");
                  

                  More info HERE

                  V 1 Reply Last reply
                  3
                  • S scooter1556

                    This is a locale issue, specifically your default distro "LC_NUMERIC" setting. This causes a conflict with certain POSIX functions which can mess with data type conversion and maths functions. Try adding the following right after initializing your application:

                    setlocale(LC_NUMERIC,"C");
                    

                    More info HERE

                    V Offline
                    V Offline
                    Viet P.
                    wrote on last edited by
                    #8

                    @scooter1556 Thank you for your post! Had wrong classification results all the time, now everything is working fine. I stumbled upon this thread some weeks ago already. Luckily I checked for updates again today :)

                    1 Reply Last reply
                    0

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved