Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter - How to take real time input feed from camera and scan any object?

I'm building an application to scan a document by taking real-time camera feed and detect document in that feed. I'm very beginner in the flutter, I have already done it in the python using OpenCV with the following steps A. Get Image B. Convert image to Greyscale C. Detect Edge (Apply any edge detector) D. Find Contours E. Find Biggest Contour F. Apply Warp Perspective and lastly G. Get Scanned Document.

My question is, is there any package available to do this task? if not then what is the way to implement these points as I have mentioned above?

like image 460
Ajay Kumar Avatar asked Sep 14 '25 07:09

Ajay Kumar


1 Answers

While there is a Flutter Package for OpenCV and it works with Android only, it is still not complete.

The best solution is to integrate the OpenCV native sdk for both Android and IOS and invoke them through platform channels.

like image 182
Bilaal Abdel Hassan Avatar answered Sep 16 '25 19:09

Bilaal Abdel Hassan