Ask Your Question
0

Image Editing Capability using GPU with Java API support

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

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

Kan

edit retag flag offensive close merge delete

Comments

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 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

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

Moster gravatar image

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

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: http://opencv.org/opencv-java-api.html

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

Comments

Ad 5) There is available project https://github.com/bytedeco/javacpp-presets (https://github.com/bytedeco/javacpp-p...) I found today, compiled and tried Stitching.java 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 -0600 )edit

Question Tools

Stats

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

Seen: 4,043 times

Last updated: Nov 01 '15