We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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)
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!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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!
The text was updated successfully, but these errors were encountered: