rPPG icon indicating copy to clipboard operation
rPPG copied to clipboard

How to bring HR value to display on the live frames

Open msreevani060 opened this issue 2 years ago • 2 comments

In Plot_cont.py file, we have update_data() to update the data and set HR value .. I was trying to pass this HR value into Capture_Frames class to display on to the frames.

As we have self.plotter = DynamicPlot(self.signal_size, self.batch_size) this line in run.py where i will get the object of DynamicPlot class. using this object was trying to call self.hr_texts in plot_cont.py file hr_text = 'HR: ' + str(int(hr_fft)) self.hr_texts.set_text(hr_text)

Am new to this multiprocessing code, Please help me in this.

msreevani060 avatar Mar 27 '22 15:03 msreevani060

I was trying as shown below : self.plot_pipe = None if self.plot: self.plot_pipe, plotter_pipe = mp.Pipe() self.plotter = DynamicPlot(self.signal_size, self.batch_size) self.plot_process = mp.Process(target=self.plotter, args=(plotter_pipe,), daemon=True) self.plot_process.start()

    x=self.plotter.__call__(plotter_pipe)
    y=self.plotter.call_back()
    print('y', y.data)

its throwing error: Please help me out. I am sure this is not the proper way of calling it.

msreevani060 avatar Mar 27 '22 17:03 msreevani060

any updates on this?

msreevani060 avatar Mar 28 '22 13:03 msreevani060