Single Camera access by two process at the same time.
I want use One Camera for two process/thread e.g. a) live streaming and b) image processing at the same time. Use Case: Application which can handle multiple request based on user request. a) Use can request – Detect cam-1 and do Live streamlining b) Later user can request – Detect Motion/Image processing using same cam-1, while process (a) is doing live streaming. Challenge I see to access same camera by 2 different process at the same time, is there way to reroute the data/pointers of Cam data to different process ?? Any help will be appreciated !! Regards, AK
What have you already try ? Do you use C++ python Java ? Please improve your question
Am using C++
why do you think, you need 2 seperate processes for this ? (maybe your design, is just wrong.)
Thanks, Now i tried to achieve using one Process but POC is not helping me.. Below problem I am seeing .. a) thread t1 does not work with Detach, means it does not show the Live streaming b) if I use t1.join() then control will not return to parent process..
no, it's much simpler: