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

OpenCV: Impl a testing environment for checking config #20

Open
yustarandomname opened this issue Mar 1, 2023 · 1 comment
Open

OpenCV: Impl a testing environment for checking config #20

yustarandomname opened this issue Mar 1, 2023 · 1 comment
Assignees

Comments

@yustarandomname
Copy link
Collaborator

Create a environment that has as input a and outputs a:

  1. Valid hierarchy for a image
  2. The correct hierarchy structure for some certain image
  3. (Bonus) Have input images in one folder and output images in another for debugging
  4. (Bonus) Testing environment to test specifically the transformation step too

I think vitest might be the best tool for this issue. If there are any other suggestion, please add these here

@juliavdkris
Copy link
Collaborator

I'm thinking maaayyybe for this one it's better to have a separate testing environment? Because I think unit testing OpenCV.js is probably gonna be kind of a pain (since it's just not really designed to run in an environment that's not a web browser). Also, we probably don't want the unit test to fail if one of the test cases fails, since we're mostly interested in what percentage of images gets processed properly.

I would suggest maybe we should set up a separate testing environment in Python, where we just pass it one big object with the configuration/thresholds used, and output the percentage of images that gets parsed properly. What do you guys think?

@juliavdkris juliavdkris self-assigned this Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants