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

Toon Filters not like a video? #309

Open
emresancaktar opened this issue Dec 27, 2019 · 0 comments
Open

Toon Filters not like a video? #309

emresancaktar opened this issue Dec 27, 2019 · 0 comments

Comments

@emresancaktar
Copy link

Hello,

I am trying to add Toon filter to my images but it does not look like the live video view from the examples.

I tried this one;
let toonFilter = SmoothToonFilter() let testImage = UIImage(named:"1.JPG")! let pictureInput = PictureInput(image:testImage) let pictureOutput = PictureOutput() pictureOutput.encodedImageFormat = .jpeg pictureOutput.imageAvailableCallback = {image in self.imageView.image = UIImage.init(cgImage: image.cgImage!) } pictureInput --> toonFilter --> pictureOutput pictureInput.processImage(synchronously:true)

and this one;

let testImage = UIImage(named:"WID-small.jpg")! let toonFilter = SmoothToonFilter() let filteredImage = testImage.filterWithOperation(toonFilter)

they all same. It put filter but effects are very low. I tried to change threshold and quantizationLevels but it same.

What is the problem ? How can I use this filter like FilterShowcase app video preview. ?

Thanks!

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