Ask Your Question
0

Can I compress an image using opencv in android ?

asked 2013-05-12 23:19:06 -0600

Sreejith gravatar image

I have to upload an image from android to php server.I need to make upload faster.Now I am using multipart entity.Is there any method in open cv to compress the image so that upload takes only little time.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
3

answered 2013-05-12 23:28:45 -0600

highway900 gravatar image

OpenCV supports writing to JPEG with compression arguments.

http://docs.opencv.org/modules/highgui/doc/reading_and_writing_images_and_video.html?highlight=imwrite#imwrite

Or in android

http://docs.opencv.org/java/org/opencv/highgui/Highgui.html#CV_IMWRITE_JPEG_QUALITY

If you require compressing to a ZIP or tarball there are android versions of these around. If you search the internet.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-05-12 23:19:06 -0600

Seen: 2,536 times

Last updated: May 12 '13