Add basic examples for function cascading/successive functions
Opened this issue · 1 comments
Verbatim from the project README:
Since you're never going to just implement one function, there's a need to be able to cascade. Inputs & outputs to all functions are common - byte arrays. Hence output from one function can directly be fed to the next.
This means that all functions take the same byte arrays (exceptions include functions that need a grayscale image instead of a binary one, but the grayscale image too is in a byte array form!), e.g. houghCircles. In general, in OpenCV, a lot can be achieved by using 2-3 different functions in succession. For example, something as simple as Canny edge detection (https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_imgproc/py_canny/py_canny.html) would require one to convert the source image to grayscale, then apply some blur to it, then run the Canny function.
Find any good use case for the same and add your function to the examples in example/lib/main.dart
which showcases the demo app.
To add an example to the app:
- Simply add a new switch case in runAFunction
- Add the string calling this function in the Dropdown Widget
After you do this, every time someone selects your new function name from the dropdown and clicks on run, your own cascaded/successive function(s) run in the runAFunction method and throw an output image.
Hi,
I want to work on this, if it is possible