react-native-fast-opencv
A powerful port of OpenCV for React Native.
git clone https://github.com/lukaszkurantdev/react-native-fast-opencv.gitlukaszkurantdev/react-native-fast-opencvA powerful port of OpenCV for React Native.
- 🔥 Powered by JSI
- 🏎️ Uses OpenCV C++ API
- 🪽 Easy usage, without manual configuration
- 📸 Easy VisionCamera integration
- 🧵 Easy WorkletsCore integration
- ⛓️💥 It can also be used on its own without integration
Motivation
OpenCV is a popular library for image processing, but quite tricky when it comes to its integration and use in React Native applications. My main goal is to enable simple operations directly from JavaScript code.
Currently, there is a port of the OpenCV library but due to the change in standards when developing React Native applications, I decided to create a new library using an API in C++ that will allow for simpler integration, better performance and readability when used in code.
Installation
The method of installation is described here.
State of development
Version V1 (July 2026) supports only the new architecture (tested only on React Native versions 0.85 and later).
Upgrading from 0.4.X? The API changed significantly in V1 — see the migration guide.
Due to the size of the OpenCV library, this port currently only supports selected objects and functions. However, development is simple enough to only require the addition of specific code in C++ using the functionality.
List of available functions are available here.
Credits
Special thanks to:
- The creators of the Vision Camera, WorkletsCore and FastTFLite libraries, especially Marc Rousavy - thanks for the amazing libraries.
- Creator of the react-native-opencv3 library (Adam G. Freeman) - your library was an important starting point for creating my port.
- Creator of the TS definition for OpenCV (Peter Uhnak) - the library was an important support for this port.
License
MIT © 2024-2026 Lukasz Kurant
more like this