Home > Back-end >  [Qt] Mat in between threads
[Qt] Mat in between threads

Time:12-02

I use signal void in thread A sendMat (CV: : Mat Mat is passed to the thread B, in the thread B RecMat is used on the Mat after clone, operation of RecMat found it was empty, how be to return A responsibility??
For help

CodePudding user response:

CodePudding user response:

CodePudding user response:

For help, this is what ah,
I want to realize the function of the Mat is thread A use cameras to collect data, then thread B use the Mat to record video, now the card in the transmission on the Mat, Mat type registered

CodePudding user response:

Empty your bitmap haven't coming, see you launch in A thread in debugging sendMat signal whether or not to bring A parameter to the bitmap

CodePudding user response:

reference 4 floor み し つ か ん response:
null illustrate your bitmap not coming, see you launch in A thread in debugging the sendMat signal whether or not to bring A bitmap parameter ~

Belt, but still won't do, but I finally preach QImage is successful, and then turn QImage Mat to solve the problem, but I still don't understand why the Mat is empty
  • Related