Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Correct Architecture for Qt Application
Forum Updated to NodeBB v4.3 + New Features

Correct Architecture for Qt Application

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 759 Views 1 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.
  • KiraK Offline
    KiraK Offline
    Kira
    wrote on last edited by
    #1

    Guys I am developing an application in which interfaces with the camera using opencv.
    Also working on algorithms related to camera which i have developed in python.
    I have to use the algorithms in qt application and I am restricted so cannot use pyQt.
    I just want to know the correct approach which should be followed which do not my hamper my QT application. Some of the approach which comes to me is:

    Approach 1:
    Writing the python alog in c++.
    Challenges faced:
    Python have lot of support library which i may not get for c++

    Approach 2:
    Set a mode of communication between two application and operate in parallel mode.
    Challenges faced:
    Both the application will interface camera managing them will be difficult
    And what approach should be followed to manage the application.

    Guys just want to know proper methodology which should be apply which do not hamper my application and its performance.

    jsulmJ 1 Reply Last reply
    0
    • KiraK Kira

      Guys I am developing an application in which interfaces with the camera using opencv.
      Also working on algorithms related to camera which i have developed in python.
      I have to use the algorithms in qt application and I am restricted so cannot use pyQt.
      I just want to know the correct approach which should be followed which do not my hamper my QT application. Some of the approach which comes to me is:

      Approach 1:
      Writing the python alog in c++.
      Challenges faced:
      Python have lot of support library which i may not get for c++

      Approach 2:
      Set a mode of communication between two application and operate in parallel mode.
      Challenges faced:
      Both the application will interface camera managing them will be difficult
      And what approach should be followed to manage the application.

      Guys just want to know proper methodology which should be apply which do not hamper my application and its performance.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Kira I would try to port the algorithms to C++.
      Using second approach would have performance impacts as you would need to communicate between two processes which isn't fast.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      KiraK 1 Reply Last reply
      1
      • jsulmJ jsulm

        @Kira I would try to port the algorithms to C++.
        Using second approach would have performance impacts as you would need to communicate between two processes which isn't fast.

        KiraK Offline
        KiraK Offline
        Kira
        wrote on last edited by
        #3

        @jsulm : Thanks for the reply.
        Ok the first approach seem good. One more thing if i have to go through the approach two.
        How can the communication take place . For ex: If i want to receive a frame generated by python program into qt.
        Is there any standard defined or what approch should be followed.

        jsulmJ 1 Reply Last reply
        0
        • KiraK Kira

          @jsulm : Thanks for the reply.
          Ok the first approach seem good. One more thing if i have to go through the approach two.
          How can the communication take place . For ex: If i want to receive a frame generated by python program into qt.
          Is there any standard defined or what approch should be followed.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Kira There are many different IPC approaches:

          • Shared memory
          • Sockets
          • D-Bus
          • Networking

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1

          • Login

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