# Geertjan Wielenga: An Introduction to the Java Visual Recognition API

> Source: <https://bytecode.news/posts/2026/11/geertjan-wielenga-an-introduction-to-the-java-visual-recognition-api>
> Published: 2026-11-18 16:37:00+00:00

**Key takeaway:** JSR 381's Java Visual Recognition API can be paired with a DuckDB-backed nearest-neighbor classifier to keep image classification in-house instead of relying on external services.

Geertjan Wielenga has published "[An Introduction to JSR 381, the Java Visual Recognition API](https://foojay.io/today/jsr-381-java-visual-recognition-api/)" on [foojay.io](https://foojay.io). It's not only neat to see the API in practice, but Geertjan also shows an implementation of a nearest-neighbor classifier based on [DuckDB](https://duckdb.org/).

Could you do this with [OpenCV](https://bytecode.news/factoids/opencv) or something like that, or maybe even offload it to an LLM for classification? Yes, you certainly could. But it's very useful to have in-house APIs, especially in environments where external services represent security concerns or unpredictable cost centers.

Very interesting article, interesting API, and the reduction of images for classification... feels insufficient but quite useful for *example* purposes.
