OpenCV in SystemC

I use both OpenCV and SystemC for several applications with great satisfaction.

Now I have this application where I need to display images from OpenCV in the SystemC simulation environment. For some reason, however, both packages seem to be incompatible "at runtime":

  • There is no problem calling cvNamedWindow or cvShowImage in the SystemC class before calling sc_start ().
  • However, when cvNamedWindow or cvShowImage is called in sc_thread, program execution is interrupted (Thread 1: EXC_BAD_ACCESS (code = 2, address = 0x7c91ad70)).

There is no problem with requesting frames (cvQueryFrame), only window-related functions seem to cause problems. If anyone has an idea what might cause this problem, and if there is a solution or workaround for this problem, that would be great.

Mihil

PS I am using xcode, but I believe that the problem is not related to the coding environment.

+4
source share
1 answer

Does not work , SystemC does not support GUI (graphical user interfaces).

Someone has done some research on this topic: Implementing a graphical user interface for SystemC

SystemC is an open source library used to develop models of software algorithms, hardware architecture, and the system level. Despite the fact that SystemC is very rich in hardware description capabilities, the simulation is performed using a console application, thus, only text, so it is very difficult to view the results. Our goal is to develop a GUI for SystemC to provide a more intuitive presentation of simulation results. We will document our experiment and compare the cost, in terms of simulation time, of our solution.

+3
source

All Articles