Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Picture compression method and system based on mobile terminal

A technology of mobile terminal and compression method, which is applied in the field of image processing to achieve good effect and avoid excessive compression

Pending Publication Date: 2018-11-30
杭州吉吉知识产权运营有限公司
View PDF3 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Although this method can realize the compression of pictures in the mobile phone, the compression rules for regular pictures and long pictures are the same when compressing pictures, and excessive compression of long pictures cannot be avoided, thereby affecting the display effect of long pictures

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Picture compression method and system based on mobile terminal
  • Picture compression method and system based on mobile terminal
  • Picture compression method and system based on mobile terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0071] This embodiment provides a method for image compression based on a mobile terminal, such as figure 1 Shown, including steps:

[0072] S11. Obtain the resolution of the mobile terminal itself and the resolution of the picture;

[0073] S12. Determine whether the picture is a long picture according to the resolution of the picture; if so, skip to step S13, if not, skip to step S14;

[0074] S13. Calculate the zoom rate of the picture according to the method for calculating the zoom rate of the long picture, and then skip to step S15;

[0075] S14. Calculate the zoom rate of the picture according to the conventional picture zoom rate calculation method, and then skip to step S15;

[0076] S15. Calculate the sampling rate of the picture according to the calculated zoom rate of the picture;

[0077] S16. Determine whether the picture needs to be compressed; if so, skip to step S17;

[0078] S17. Compress the picture according to the size of the sampling rate.

[0079] The mobile terminal...

Embodiment 2

[0119] This embodiment provides a method for image compression based on a mobile terminal, such as image 3 Said, including the steps:

[0120] S21. Obtain the resolution of the mobile terminal itself and the resolution of the picture;

[0121] S22. Determine whether the picture is a long picture according to the resolution of the picture; if so, skip to step S23, if not, skip to step S24;

[0122] S23. Calculate the zoom rate of the picture according to the method for calculating the zoom rate of the long picture, and then skip to step S25;

[0123] S24. Calculate the zoom rate of the picture according to the conventional picture zoom rate calculation method, and then skip to step S25;

[0124] S25. Calculate the sampling rate of the picture according to the calculated zoom rate of the picture;

[0125] S26. Determine whether the picture needs to be compressed; if so, skip to step S27;

[0126] S27. Compress the picture according to the size of the sampling rate;

[0127] S28. Determine w...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a picture compression method and system based on a mobile terminal. The picture compression method comprises the steps that S11, the resolution ratio of the mobile terminal andthe resolution ratio of pictures are obtained; S12, whether the pictures are long pictures or not is judged according to the resolution ratio of the pictures; if yes, skip to the step S13, and if not, skip to the step S14; S13, the zoom ratio of the pictures is calculated according to the calculation method of the long picture zoom ratio, and then skipping to the step S15 is conducted; S14, the zoom ratio of the pictures is calculated according to the calculation method of the conventional picture zoom ratio, and then skipping to the step S15 is conducted; S15, the sampling ratio of the pictures is calculated according to the calculated picture zoom ratio; S16, whether the pictures need to be compressed or not is judged, and if yes, skip to the step S17; and S17, the pictures are compressed according to the magnitude of the sampling ratio. According to the picture compression method and system, the displaying effect of the compressed pictures on a mobile phone is optimal while the problem of OOM caused by picture displaying is avoided.

Description

Technical field [0001] The present invention relates to the technical field of image processing, in particular to a method and system for image compression based on a mobile terminal. Background technique [0002] With the advancement of technology, the performance of mobile terminals has also been greatly improved, and at the same time, there are more and more pictures in the mobile terminal. Among them, the source of the picture may include multiple aspects, such as user photos, webpage pictures, pictures generated by social software, and so on. With the increase of pictures, a large amount of storage space of mobile terminals will be occupied, and mobile terminals often have OOM (Out of Memory, memory overflow) problems. [0003] Picture display can be said to be inevitable in any application software, but loading and displaying large images on Android phones often causes OOM problems. The reason is that ImageView (image view) on Android devices will eventually load Bitmap (bit...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06T3/40
CPCG06T3/4023Y02D30/70
Inventor 李建华
Owner 杭州吉吉知识产权运营有限公司
Features
  • Generate Ideas
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More