简体   繁体   English

SystemC中的OpenCV

[英]OpenCV in SystemC

I have been using both OpenCV and SystemC for several applications with great satisfaction. 我一直在使用OpenCV和SystemC来满足几个应用程序。

Now, I have this application where I need to display images with OpenCV in a SystemC simulation environment. 现在,我有这个应用程序,我需要在SystemC模拟环境中使用OpenCV显示图像。 For some reason however, both packages seem to be incompatible "at runtime": 但是出于某种原因,两个软件包似乎在“运行时”不兼容:

  • There is no problem when I call cvNamedWindow or cvShowImage in a SystemC class before sc_start() was called. 还有,当我打电话没有问题cvNamedWindowcvShowImage之前,在SystemC的类sc_start()被调用。
  • However, when cvNamedWindow or cvShowImage is called in a sc_thread , the execution of the program is aborted: 然而,当cvNamedWindowcvShowImage被称为在sc_thread ,该程序的执行是中止:

    Thread 1: EXC_BAD_ACCESS(code=2, address=0x7c91ad70). 线程1:EXC_BAD_ACCESS(代码= 2,地址= 0x7c91ad70)。

There is no problem with querying frames ( cvQueryFrame ), only window-related functions seem to cause problems. 查询框架( cvQueryFrame )没有问题,只有与窗口相关的函数似乎会导致问题。 If someone has an idea what could cause this problem and if there is a solution or a work-around for this issue, that would be great. 如果有人知道可能导致此问题的原因,并且如果有解决方案或解决此问题的方法,那就太棒了。

PS I'm using Xcode, but I suppose that the problem is not related to the coding environment. PS我正在使用Xcode,但我认为问题与编码环境无关。

It won't work , SystemC doesn't support GUIs (Graphical User Interfaces). 它不起作用SystemC不支持GUI (图形用户界面)。

Somebody did some research on this subject: Implementing a Graphical User Interface for SystemC 有人就此主题做了一些研究: 为SystemC实现图形用户界面

SystemC is an open source library used for developing models of software algorithms, hardware architecture and system-level designs. SystemC是一个开源库,用于开发软件算法,硬件架构和系统级设计的模型。 Although SystemC is very rich in possibilities for Hardware Description, the simulation is made via a console application, thus textual only, hence it is cumbersome to view the results. 虽然SystemC非常丰富了硬件描述的可能性,但是模拟是通过控制台应用程序进行的,因此只是文本的,因此查看结果很麻烦。 Our objective is to develop a GUI for SystemC to provide a more intuitive representation of simulation results. 我们的目标是为SystemC开发GUI,以提供更直观的仿真结果表示。 We will document our experiment and compare the cost, in terms of simulation time, of our solution. 我们将记录我们的实验,并比较我们的解决方案的模拟时间成本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM