Skip to content

How to access camera? #33

Answered by rainyl
IvRogoz asked this question in Q&A
Apr 22, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rainyl
Comment options

Answer selected by rainyl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants