Capture Image through webcam on JSP Page and store image in folder in java -


how capture image through user's webcam , save file in default image folder database? i'm using jsp , java in web app.

it easy opencv & javacv libraries , , here code snippet capture image webcam & save disc.

                iplimage img;  // image format provided javacv apis                 opencvframegrabber grabber = new opencvframegrabber(0); // camera device id (0 built in , 1 external etc)                  grabber.start();                  img = grabber.grab();                  string imagename="images_name.jpg";                  cvsaveimage(imagename, img); 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -