Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic examples for function cascading/successive functions #3

Open
AdityaMulgundkar opened this issue Apr 19, 2020 · 1 comment
Labels

Comments

@AdityaMulgundkar
Copy link
Owner

AdityaMulgundkar commented Apr 19, 2020

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.
@m4n4n-j
Copy link

m4n4n-j commented Feb 5, 2023

Hi,
I want to work on this, if it is possible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants