Ask Your Question

Image Editing Capability using GPU with Java API support

asked 2013-08-14 15:14:49 -0500

tang1837 gravatar image

Dear OpenCV Team, Currently we are using ImageMajick/im4java for photo editing for a major media client. It is currently in production, but the performance/CPU has been a major issue. We couldn't find solution using ImageMajick with GPU for the commands we are using.

So we started to evaluate other options. OpenCV is one of them. Here are our requirements, we want to check support team to make sure that our basic capabilities are supported before we invest time and resources for further POC. Please kindly advise at your earliest convenience.

1) The base photo is .jpeg file

2) The current editing capability we must support: a) add border (.PNG file) b) add one or more sticker or signiture (.PNG file) c) cropping d) rotation e) black and white f) contrast, brightness, saturation g) resizing

3) Has Java API

4) Support windows and Linux

5) Support GPU

Since our rendering application is currently in prod, so I would consider this request is high as priority. We are looking for replacement ImageMajick if: 1) All 5 items above are supported 2) Good performance matrix (currently with ImageMagic to add a border, it takes 5-6 seconds to render using CPU)

Thank you very much


edit retag flag offensive close merge delete


It has been a while since this question was asked. Any changes on this for JAVA API?

peterl gravatar imagepeterl ( 2015-11-01 13:04:39 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2013-08-14 16:44:29 -0500

Moster gravatar image

updated 2013-08-14 16:46:19 -0500

1) What is the requirement here? Opencv can read lots of image files, including jpg and png.

2) Adding a border should be possible with cv::Mat operations and also definitely faster than 5-6 seconds. The rest will be easy, too

3) Its definitely there:

4) Yes, windows and linux are supported.

5) The GPU module is not supported in the opencv java api, but maybe you could achieve some results with a jni wrapper.

edit flag offensive delete link more


Ad 5) There is available project ( I found today, compiled and tried example which has actually a switch for use(nouse) GPU and with yes switch it worked.

archenroot gravatar imagearchenroot ( 2017-01-19 14:28:05 -0500 )edit

Question Tools


Asked: 2013-08-14 15:14:49 -0500

Seen: 3,519 times

Last updated: Nov 01 '15