-
Hello, is there an example of how to process a camera stream? Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The cv.VideoCapture can open camera and take pictures, but if you want to use it in Flutter, to improve the performance, some extra works are required, i.e., you need to use Texture to update the content, you can explore more in camera plugin. But if showing realtime camera video is not necessary, you can use cv.VideoCapture directly and get pictures with cv.VideoCapture.read(). if you do not want to write native code and implement Texture yourself, you can just combine camera plugin and opencv_dart, the example of this repo used to provide this, see here https://github.com/rainyl/opencv_dart/blob/d28d05eed46ba680413244d6bfb14de6af7d5ecf/example/lib/main.dart |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
The cv.VideoCapture can open camera and take pictures, but if you want to use it in Flutter, to improve the performance, some extra works are required, i.e., you need to use Texture to update the content, you can explore more in camera plugin.
But if showing realtime camera video is not necessary, you can use cv.VideoCapture directly and get pictures with cv.VideoCapture.read().
if you do not want to write native code and implement Texture yourself, you can just combine camera plugin and opencv_dart, the example of this repo used to provide this, see here https://github.com/rainyl/opencv_dart/blob/d28d05eed46ba680413244d6bfb14de6af7d5ecf/example/lib/main.dart