Get Informed out of Data

Full width home advertisement

Raspbian

DataScience

Post Page Advertisement [Top]

Nokhwa - Slint - UI Tool kit

Nokhwa - Slint - UI Tool kit

 In the previous post, we gone through the code for OpenCV and Slint integration. But, OpenCV has bindings of C++ which is not native Rust for handling the Image Rendering.

OpenCV is a great tool for image processing but we need to choose between the use case. Here, for just enquiring the camera frames and display it on a UI. It is not required.



So, we gone for a native Rust crate which is cross-platform lib - Nokhwa.

https://github.com/l1npengtul/nokhwa

Slint UI and the threading-based Data shared variable through Rust makes the UI simple and not crashing also memory safe.

Let's move to the code, starting with dependencies,


No comments:

Post a Comment

Bottom Ad [Post Page]