Hi everyone,
I'm developing a surveillance system for my grade and I must use Ice. After learning many documents, I earned a minimun function of my program.
A camera (client) have to pass a frame from a video to the server, and this have to segment it (by substract functions) and show it (using OpenCV).
The problem comes when I need multiples cameras sending information to different servers. Each client has his own server.
When I initialize a client/server thread, it runs well. Client opens a opencv window with the frame and server opens another windows with the segmented image. But when I initialize the second thread, with a different configuration (id, port) the first thread images continue showing on the second thread's window.
I tested with a simple program, a counter. I initialize the thread 1 who prints a counter with the port where the thread is running. When I initialize the thread 2, both threads print the same port.
10000 -> 1
10000 -> 2
10000 -> 3
10000 -> 4
10000 -> 5 //thread 2 starts
11000 -> 1
11000 -> 6
11000 -> 2
11000 -> 7
11000 -> 3
11000 -> 8
...
The problem is the same with OpenCV. Images wich should show in "window1", continue showing in "window2" after thread 2 begin.
Any idea?
Thank you very much and sorry for my english![]()

Reply With Quote
