I've programmed server side and client side to receive a video stream from a webcam in java .
This is What I'm using in the client side :
public void update (ReceiveStreamEvent event) {
if (event instanceof NewReceiveStreamEvent) {
ecritureAffichage("Reception d'un flux");
//new flux received
ReceiveStream rs = event.getReceiveStream();
try {
Player p = Manager.createRealizedPlayer(rs.getDataSource());
//if the payer has a visual component , then create new jframe
I'm getting the stream from the server perfectly , what I need now is to do some motion detection on the client side , I'm thinking to use OpenCv but I don't know how to make it work ! all I know is that OpenCv can open a video file or use the webcam directly , what I don't know is can it take a video stream as an input ?
could it be done ? or I'm just going in the wrong way. Please give me some ideas , Thanks