Search found 10 matches
- 2014-12-25T16:26:38-07:00
- Forum: Developers
- Topic: iOS Black and White Image and C API
- Replies: 17
- Views: 19105
Re: iOS Black and White Image and C API
The one on the last post? or the original one?
- 2014-12-24T14:38:55-07:00
- Forum: Developers
- Topic: iOS Black and White Image and C API
- Replies: 17
- Views: 19105
Re: iOS Black and White Image and C API
There is a tiny difference, but I think RGB serves more the purpose because it gives me a more define image.
Here is the comparison:

Thanks a lot for your help!
regards and merry Christmas!
Here is the comparison:

Thanks a lot for your help!
regards and merry Christmas!
- 2014-12-24T08:56:55-07:00
- Forum: Developers
- Topic: iOS Black and White Image and C API
- Replies: 17
- Views: 19105
Re: iOS Black and White Image and C API
Never mind, found the error. Here is the final code: char *argv[] = {"convert","-respect-parenthesis","\(", input, "-set", "-colorspace", "RGB", "-colorspace", "gray", "-type", "grayscale","-colorspace","RGB", "-normalize","\)","\(","-clone", "0","-set","-colorspace", "RGB","-colorspace","gray ...
- 2014-12-24T08:26:46-07:00
- Forum: Developers
- Topic: iOS Black and White Image and C API
- Replies: 17
- Views: 19105
Re: iOS Black and White Image and C API
Ok, I`ve made some progress. I was able to use for the first time the "ConvertImageCommand()" with the API,which I thnk would make things easier. This code works fine: char *argv[] = {"convert", input, "-colorspace", "gray", "-type", "grayscale","-gamma", "0.25", "-auto-level", "-negate", "-lat ...
- 2014-12-23T06:10:20-07:00
- Forum: Developers
- Topic: iOS Black and White Image and C API
- Replies: 17
- Views: 19105
Re: iOS Black and White Image and C API
Some times the edges are black (or shadows) but they are not even on each one of them and that causes the OCR engine to read them as something. What I would like to do is to gently remove them trying to keep what it is in the middle. For example in the image that I uploaded the white borders would ...
- 2014-12-22T21:55:11-07:00
- Forum: Developers
- Topic: iOS Black and White Image and C API
- Replies: 17
- Views: 19105
Re: iOS Black and White Image and C API
sorry for my ignorance, but same thing for the edges?
Regards!
Regards!
- 2014-12-22T21:25:35-07:00
- Forum: Developers
- Topic: iOS Black and White Image and C API
- Replies: 17
- Views: 19105
Re: iOS Black and White Image and C API
It worked!! this is the code: MagickLevelImage(wand,0.0,0.25,MaxRGB); MagickNegateImage(wand,false); MagickAdaptiveThresholdImage(wand,30,30,10); MagickNegateImage(wand,false); Im almos there. Now I need to do two more things. 1. clear the image a little bit more. For example remove black edges, and ...
- 2014-12-22T18:45:32-07:00
- Forum: Developers
- Topic: iOS Black and White Image and C API
- Replies: 17
- Views: 19105
Re: iOS Black and White Image and C API
Ok, so after diggin around I came up with the code below. The input image and output image are at the bottom: My goal is to clean the image and have a clean monochrome image which black font and white background. Hope thant you could give me some pointers, regards! -(UIImage *)drawMonochromeImage ...
- 2014-12-22T07:55:06-07:00
- Forum: Developers
- Topic: iOS Black and White Image and C API
- Replies: 17
- Views: 19105
Re: iOS Black and White Image and C API
Thanks!
This is what I´ve found.
I will try it and see what comes out.
Regards!
This is what I´ve found.
Code: Select all
MagickBooleanType MagickAdaptiveThresholdImage(MagickWand *wand,
const size_t width,const size_t height,const ssize_t offset)
Regards!
- 2014-12-21T21:41:37-07:00
- Forum: Developers
- Topic: iOS Black and White Image and C API
- Replies: 17
- Views: 19105
iOS Black and White Image and C API
Hi guys, I'm trying to create a code that allows me to clear images to be read by and OCR engine. So far I haven't been able to accomplish much. Only install Imagemagink on my iOS project and use some of the API functions to create a Gray Scale image. What I'm trying to achieve is something like ...