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
Post a Comment