HI. I'm again. I have i question about the plotting and saving images using 
another qtimer. I would like to save images in the same time that plotting 
the spectrograms. Actually, I save the images using this:

def saveFig(self):
fname1 = 
"/home/oyuki/Downloads/spectro_Real_time/audios/mic1/result_%s.png"%time.strftime("%H:%M:%S",
 
gmtime())
self.exporter1 = pg.exporters.ImageExporter(self.imageItems[0])
self.exporter2 = pg.exporters.ImageExporter(self.imageItems[1])
self.exporter3 = pg.exporters.ImageExporter(self.imageItems[2])
self.exporter4 = pg.exporters.ImageExporter(self.imageItems[3])
self.exporter5 = pg.exporters.ImageExporter(self.imageItems[4])
self.exporter6 = pg.exporters.ImageExporter(self.imageItems[5])
self.exporter7 = pg.exporters.ImageExporter(self.imageItems[6])
self.exporter8 = pg.exporters.ImageExporter(self.imageItems[7])

self.exporter = 
[self.exporter1,self.exporter2,self.exporter3,self.exporter4,self.exporter5,self.exporter6,self.exporter7,self.exporter8]

for i in range(len(self.pItems)):
self.exporter[i].params.param('width').setValue(304, 
blockSignal=self.exporter[i].widthChanged)
self.exporter[i].params.param('height').setValue(163, 
blockSignal=self.exporter[i].heightChanged)

self.exporter[0].export(fname1)



El jueves, 19 de diciembre de 2019, 14:23:36 (UTC-6), Grant R escribió:
>
> What are you having trouble doing? Plotting or plotting and saving? The 
> plotting should be quite fast and you can do the saving similarly to how 
> you plot. Have another qtimer and iterate through the images saving each 
> time. 
>
> On Fri, Dec 20, 2019 at 8:38 AM Aldrich Cabrera <[email protected] 
> <javascript:>> wrote:
>
>>
>> It is working now. :) Thank you very much for the support! I appreciate 
>> your help Grant R.
>>
>> Now I need to save images every 2 seconds. However the computer is slow, 
>> I suppose because I am reading all the channels and plotting at the same 
>> time.
>> Maybe it will be comfortable and fast in OpenCV or maybe no. What do you 
>> think?
>>
>> For now, I will have to save the images. Thanks for the support!
>>
>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "pyqtgraph" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/pyqtgraph/_RjdXBDKRJg/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/pyqtgraph/1fde7c22-5c5c-406d-91f8-2647d1d27ce6%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/pyqtgraph/1fde7c22-5c5c-406d-91f8-2647d1d27ce6%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyqtgraph/cc6cd3a9-67f9-4247-ab8a-8b60c67538c1%40googlegroups.com.

Reply via email to