Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to bring HR value to display on the live frames #24

Open
msreevani060 opened this issue Mar 27, 2022 · 2 comments
Open

How to bring HR value to display on the live frames #24

msreevani060 opened this issue Mar 27, 2022 · 2 comments

Comments

@msreevani060
Copy link

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
Copy link
Author

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
Copy link
Author

any updates on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant