ImageMagick

ImageMagick iOS image

寵の児 提交于 2019-12-25 06:07:02
问题 I am trying to preprocess images for OCR(tesseract) on my app, I have found a great script for doing this on Freds ImageMagick Scripts but I don't know how to use Image Magick within an iOS app let alone then run a script to do so. I have googled around and not found much to help so I'm wondering if is possible? I apologise for this being such an open question. Any help would be great. Thanks 来源: https://stackoverflow.com/questions/42763965/imagemagick-ios-image

Check image visible quality [PHP]

耗尽温柔 提交于 2019-12-25 05:34:06
问题 I want to make image quality check. Maybe calculate some index of that quality. For example, lets say, user A uploads something like http://www.hyperconectados.com/wp-content/uploads/2014/03/Selfie.jpg and user B uploads something like http://www.privatewifi.com/wp-content/uploads/2014/02/selfie.jpg It's obvious, that B photo is professional and in good quality. There's another thing, that it's not good to use image size and weight(?) because B image could be resized, photoshoped or something

Why cc cannot find lgomp while gcc can

旧街凉风 提交于 2019-12-25 05:25:29
问题 on Mac OS X 10.7 I run this command on this file http://www.imagemagick.org/source/wand.c as they said here http://www.imagemagick.org/script/magick-wand.php cc -o wand `pkg-config --cflags --libs MagickWand` wand.c An error occurred: ld: library not found for -lgomp clang: error: linker command failed with exit code 1 (use -v to see invocation) But gcc works fine: gcc -o wand `pkg-config --cflags --libs MagickWand` wand.c Why was that? I want to know what different between gcc and cc on this

Extract IPTC using ImageMagick without Entities but UTF-8

泄露秘密 提交于 2019-12-25 04:42:32
问题 I have an image containing ITPC data and use the following command to extract the IPTC as textual data: convert image.jpg IPTCTEXT:iptc.txt The problem is that this seems to be using entities for "special characters": 2#120#Caption="Beschreibung für den Import aus IPTC" Actually it should be "für" here. But instead of getting the correct entity ü for the "ü" character i get two entities (probably both bytes of the UTF-8 encoded character got transformed to entites separated). And these two

Limit space and memory used by Imagemagick

血红的双手。 提交于 2019-12-25 04:13:13
问题 I'm used Imagemagick on a rails application (with rmagick) but my server (Ubuntu) it's not very big and when i launch my convert process Imagemagick take all place/memory of my server (30GB HDD). I would like limit the memory and the tmp file size, how can i do it ? 回答1: Try running the command identify -list resource to see the resources you can control/limit. It gives this: Resource limits: Width: 214.7MP Height: 214.7MP Area: 4.295GP Memory: 2GiB <--- Default is 2 GiB Map: 4GiB Disk:

How can I detect borders of a piece of paper inside of an image and crop it using ImageMagick?

不想你离开。 提交于 2019-12-25 03:53:45
问题 I'm trying to crop paper documents from photographs. For example, someone takes a picture of a document and sends it to the server and it will get edited to look like a scanned document. How can I detect the border of the document and crop it using ImageMagick? Thanks 回答1: You want to use the convert command with the -trim option to crop out the solid color borders, and since the images are scanned, the -fuzz option to make sure trim completely crops the border even if the color isn't

Weird results using PHP-Imagick getImageSignature method

[亡魂溺海] 提交于 2019-12-25 03:47:05
问题 I´m trying to use PHP Imagick´s getImageSignature method to compare different images and see if they are equal, but I´m getting different signature even with same image file when the method is called from different computers with different versions of ImageMagick and OS. Should I always get the same signature in these conditions? Thanks a lot. 回答1: Should I always get the same signature in these conditions? Short answer is no. The Imagick::getImageSignature wraps MagickGetImageSignature which

create loop in batch for multiple export with ImageMagick

微笑、不失礼 提交于 2019-12-25 03:45:27
问题 Im trying to make a batch file that process multiple image files. The files are named P_1316_0001.png P_1316_0002.png P_1316_0003.png etc.. LETs sqy P_1316 is VARSESSION) thanks to the ImageMagick program i can convert an image directly with batch. Basically what i want to do is : Create a variable that would increment until there is no more file to convert in the folder. Comvert the file from png to jpg (convert %VARSESSION% %i%.png %VARSESSION% %i%.jpg) assuming that i is 0001 Well i hope

ImageMagick: Is there an equivalent of Gimp's tool to “shrink” and “grow” a selection?

狂风中的少年 提交于 2019-12-25 03:44:46
问题 I have a black and white mask image produced with this ImageMagick command: convert in.jpg -threshold 85% out.png Giving me this result: I'd like to reduce the size of each piece like if I was doing it with Gimp by selecting the white background, inverting the selection and shrink it by X pixels. Is it possible to do it with ImageMagick and if yes, how ? 回答1: In Imagemagick, you can use -morphology close to reduce the white holes in the black. But if you use too large a kernel size, it will

Calling Image Magick commands from .Net

旧巷老猫 提交于 2019-12-25 03:39:42
问题 I am trying call a Image Magick inside a .NET app. It is very strange that when I copy the same arguments and use command line to call it. It is OK but when I call it by my C# app, I get the error at the end. I don't know how come it expects a Affine argument when I call it by my app. Please help. var proc = new Process { StartInfo = new ProcessStartInfo { FileName = @"C:\Program Files (x86)\ImageMagick-6.8.4-Q16\convert.exe", Arguments = "\"C:\\Users\\Pouya\\Desktop\\Rugs\\test.jpg\" -matte