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

pass pre_version as array instead of saving and reading again? #10

Open
HBeing3 opened this issue Sep 12, 2021 · 0 comments
Open

pass pre_version as array instead of saving and reading again? #10

HBeing3 opened this issue Sep 12, 2021 · 0 comments

Comments

@HBeing3
Copy link

HBeing3 commented Sep 12, 2021

I'm thinking to skip saving pre_version image and pass to the next step
So, I'm thinking to get a function to do this but not sure how to do this.
I tried to convert it as unit8 type but the colour is not correct.
I think it's realted to the types and normalization issues.
Could you advise how to get the function to do this? Thanks

img=function(pre_version) img = cv2.threshold(img, 0, 255, cv2.THRESH_BINARY_INV | cv2.THRESH_OTSU)[1] cv2.imwrite("output.png", img)

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

1 participant