Levi-Lesches / opencv_ffi

An FFI-based implementation of OpenCV in Dart
https://pub.dev/packages/opencv_ffi
Other
16 stars 1 forks source link

Question - getting position of objects on the photo #26

Closed Pierre918 closed 4 months ago

Pierre918 commented 4 months ago

Hello, Here is not really a bug but a question. I was wondering if there was a method in this package that allows to get the position of the element in the picture.

In my case, i would like to get the position of every checkbox on a selected screenshot.

Is it possible ?

Levi-Lesches commented 4 months ago

Hi, thanks for the question.

This package is mainly an interface to the OpenCV C++ SDK. I am not an expert on OpenCV's API, so I can't advise you here, but if you were to figure out how to accomplish this in C++, you can come back here and we can port it to Dart. For example, I am working on detecting ArUco tags and needed to research the cv2::arcuo namespace before introducing it to this package, and now my video stream highlights any tags it finds.

Given that this is a question about OpenCV itself, I'm going to close this for now. But if you can find the OpenCV C++ code to accomplish what you want, please come back and re-open it so we can add it!