Community Articles

Find and share helpful community-sourced technical articles.
Labels (1)
Super Guru

Open Source Computer Vision with TensorFlow, Apache MiniFi, Apache NiFi, OpenCV, Apache Tika and Pyt...

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.

Custom Processor:

My processor is a thin wrapper on an awesome Java library:


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 to ingest your webcam images.

Example Image


Installable Release


Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.
Version history
Last update:
‎08-17-2019 08:04 AM
Updated by:
Top Kudoed Authors