sarxos / webcam-capture

The goal of this project is to allow integrated or USB-connected webcams to be accessed directly from Java. Using provided libraries users are able to read camera images and detect motion. Main project consist of several sub projects - the root one, which contains required classes, build-in webcam driver compatible with Windows, Linux and Mac OS, which can stream images as fast as your camera can serve them (up to 50 FPS). Main project can be used standalone, but user is able to replace build-in driver with different one - such as OpenIMAJ, GStreamer, V4L4j, JMF, LTI-CIVIL, FMJ, etc.
http://webcam-capture.sarxos.pl
MIT License
2.27k stars 1.11k forks source link

Organization of video archive #520

Open Rustem81 opened 7 years ago

Rustem81 commented 7 years ago

Hello, determine how to add the date and time in the video stream. How to organize a video archive and search frames in time intervals.

sarxos commented 7 years ago

You can use WebcamImageTransformer to print date on every frame. This example demonstrates how to rotate frame by using filter (in transform(..) method), but you can use the same approach to print anything you want on the BufferedImage. It will be then returned by API, and, in case you are adding these images to the stream, become the part of your stream.