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

Change the track bar default to 6 #7

Open
Blackcipher101 opened this issue Dec 1, 2020 · 11 comments
Open

Change the track bar default to 6 #7

Blackcipher101 opened this issue Dec 1, 2020 · 11 comments
Assignees
Labels
bug Something isn't working

Comments

@Blackcipher101
Copy link
Owner

The trackbar default should be setup to 6 its 7 currently

@Blackcipher101 Blackcipher101 added the bug Something isn't working label Dec 1, 2020
@Xx-Ashutosh-xX
Copy link
Contributor

can you tell me more on this. @Blackcipher101

@Blackcipher101
Copy link
Owner Author

When you check the track bar it should start out at the value of 6 not 7 as of right now the trackbar basically decides the amount smoothness one wants

@Xx-Ashutosh-xX
Copy link
Contributor

If I am correct, you are talking about this...right?

Screenshot (215)

@Blackcipher101
Copy link
Owner Author

Yes but this value should be changed in gui and also in opencv

@Xx-Ashutosh-xX
Copy link
Contributor

meaning, I have to implement something like a slider so that the user could change its values, right?

@Blackcipher101
Copy link
Owner Author

meaning, I have to implement something like a slider so that the user could change its values, right?

That is already implemented I just want to change the default value it takes at the starting which is 7.

@Xx-Ashutosh-xX
Copy link
Contributor

Xx-Ashutosh-xX commented Dec 27, 2020

@Blackcipher101 I checked this one out apparently the ksize (amount of blur) must be an odd number.
https://plantcv.readthedocs.io/en/v1.1/median_blur/#:~:text=Applies%20a%20median%20blur%20filter,the%20OpenCV%20function%20median%20blur.

@Blackcipher101
Copy link
Owner Author

Yeah its true the blur value is calculated (slider)*2+1=blur so it always odd just change the slider value

@Blackcipher101
Copy link
Owner Author

@Xx-Ashutosh-xX

@Xx-Ashutosh-xX
Copy link
Contributor

[sg.Slider(range=(1,8),
         default_value=4,
         size=(20,15),
         orientation='horizontal',
         font=('Helvetica', 12),
         key="-BLUR-"),]

So, I have to just change the default value to 6 from 4 ?

@Blackcipher101
Copy link
Owner Author

yep

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants