Created on 03-27-2018 08:22 PM - edited 08-17-2019 08:04 AM
In preparation for this talk, I am releasing some articles detailing how to work with images. In this one I use my custom Web Camera processor to ingest web camera images via Apache NiFi on an OSX laptop equipped with two webcameras.
This will let you ingest as many images as you need for security, motion detection or fun.
My processor is a thin wrapper on an awesome Java library: http://webcam-capture.sarxos.pl/
To use the processor, you can clone my github project or download the prebuilt NAR and install to your nifi/lib directory and restart your NiFi server.
It is easy to use. Add the processor to your workflow at the start to ingest images from your webcam.
The processor takes two properties: imagefilename and camername. The Imagefilename is the name you want the newly created image to be. The cameraname is the name of the camera if you have more than one. You can put in a partial name to match. For my OSX machine, I have the built-in one and one in my display. When I am working in locked mode I want it to grab the Display version so I enter the text Display.
When combining with the custom TensorFlow processor it's really nice workflow.
The Easiest Java 8 Code Ever. Wrap Any Of Your Java Goodness and make it a processor today!
Even easier to test. When you use the maven archetype it builds the full directory, a valid empty processor and a unit test.
Apache NiFi builds the documentation for me. Add some comments in your code and blammo.
Another awesome option is to use the MiniFi C++ Agent https://github.com/apache/nifi-minifi-cpp/blob/master/PROCESSORS.md#getusbcamera to ingest your webcam images.