CN108460769A - Image processing method and terminal device - Google Patents
Image processing method and terminal device Download PDFInfo
- Publication number
- CN108460769A CN108460769A CN201810200219.4A CN201810200219A CN108460769A CN 108460769 A CN108460769 A CN 108460769A CN 201810200219 A CN201810200219 A CN 201810200219A CN 108460769 A CN108460769 A CN 108460769A
- Authority
- CN
- China
- Prior art keywords
- image
- cutting
- pixel
- target image
- height
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/51—Indexing; Data structures therefor; Storage structures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9577—Optimising the visualization of content, e.g. distillation of HTML documents
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T9/00—Image coding
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Multimedia (AREA)
- Image Processing (AREA)
- Processing Or Creating Images (AREA)
Abstract
The present invention relates to technical field of image processing, a kind of image processing method and terminal device are disclosed.The image processing method includes:Determine object pixel the ratio of width to height of target image;Image cutting is carried out to the target image according to described object pixel the ratio of width to height, obtains at least two cutting images;At least two cutting images are compressed respectively, and the cutting image that compression obtains is uploaded onto the server and is stored.In the present invention, the displaying of the segmentation to the overlength scaled image is realized, and ensure that the clarity of the overlength scaled image;It is handled simultaneously by the preview of segmentation, improves the display efficiency to image, enhance the usage experience of user.
Description
Technical field
The present invention relates to technical field of image processing, more particularly to a kind of image processing method and terminal device.
Background technology
With the rapid development of information technology, the computing capability of network bandwidth and equipment is growing, mobile device is in people
Life in assume responsibility for more and more important role, affect the every aspect of people.Especially as image, music, video
Etc. multimedia technologies rise, various multimedia social networking applications also occur in the market like the mushrooms after rain, and image is as more matchmakers
A big important component and each most media social networking application in body an emphasis of interest, are used so constantly meeting
The rich and varied image shows demand in family also becomes the emphasis of major application.
As under a kind of application scenarios, using mobile phone, (mobile phone is only the one of which in terminal device to user, herein only with hand
For machine) camera edit out a pixel aspect ratio example be 1:10 image, and want the image completely sharing social activity
In.At present general way be by the whole image as a whole on after line width high compression and size compression
Pass to network.When user browses, mobile terminal application browses the locally downloading realization of the whole image.But meeting in this way
There are image speed of download is slow, keep the experience of user very poor, or image may be caused mould occur due to excess compression
The case where paste, performs poor when being shown on the poor mobile phone of performance at this time.
Invention content
The present invention provides image processing method and terminal device, to realize the clear display for certain super large pictures.
The present invention provides a kind of image processing methods, including:
Determine object pixel the ratio of width to height of target image;
Image cutting is carried out to the target image according to described object pixel the ratio of width to height, obtains at least two cutting drawings
Picture;
At least two cutting images are compressed respectively, and the cutting image that compression obtains is uploaded onto the server
It is stored.
Preferably, object pixel the ratio of width to height of the determining target image, including:
Obtain the wide height of pixel of the target image;
According to the wide high calculating object pixel the ratio of width to height of the pixel.
Preferably, described that image cutting is carried out to the target image according to described object pixel the ratio of width to height, it obtains at least
Two cutting images, including:
Described object pixel the ratio of width to height is compared with preset pixel aspect ratio;
And when described object pixel the ratio of width to height is more than preset pixel aspect ratio, image is carried out to the target image and is cut
It cuts, obtains at least two cutting images.
Preferably, described that image cutting is carried out to the target image, at least two cutting images are obtained, including:
Image cutting is carried out to the target image according to preset pixel aspect ratio, until the target image remainder
The pixel aspect ratio divided is not more than the preset pixel aspect ratio.
Preferably, described that image cutting is carried out to the target image according to preset pixel aspect ratio, it specifically includes:
On the basis of the pixel width values of the target image, to the pixel high level of the target image according to preset pixel
The ratio of width to height is cut;Or
On the basis of the pixel high level of the target image, to the pixel width values of the target image according to preset pixel
The ratio of width to height is cut.
Preferably, further include:
When carrying out image cutting to the target image, to the cutting image that is cut through image successively into rower
Note, with by marking obtained label information to determine the position relationship between each cutting image.
Preferably, described that at least two cutting images are compressed respectively, including:
At least two cutting images are compressed respectively according to the wide height of preset maximum pixel, are obtained described in satisfaction
The preset wide high cutting image of maximum pixel.
Preferably, further include:
The image list information of target image is obtained, includes the composition target image in described image list information
The wide high level of pixel of each cutting image;
And corresponding occupy-place figure is arranged according to the wide high level of the pixel of each cutting image;
The corresponding cutting image of occupy-place figure is extracted according to selected occupy-place figure to be shown.
Preferably, also include the label information of each cutting image in described image list information, selected by the basis
Occupy-place figure extracts the corresponding cutting image of occupy-place figure and is shown, including:
The cutting image corresponding to it is determined according to selected occupy-place figure;
And the label information corresponding to the cutting image according to the determination sends image zooming-out request to the server;
Image zooming-out response is received, the cutting drawing of the correspondence label information carried in described image extraction response is obtained
Picture, and show the cutting image.
The present invention also provides a kind of terminal devices, including:
Determination unit, object pixel the ratio of width to height for determining target image;
Cutter unit, for according to described object pixel the ratio of width to height to the target image carry out image cutting, obtain to
Few two cutting images;
Compression unit, for being compressed respectively at least two cutting images;
Uploading unit, the cutting image for obtaining compression, which is uploaded onto the server, to be stored.
Preferably, the determination unit, the wide height of pixel for obtaining the target image;According to the wide high meter of the pixel
Calculate object pixel the ratio of width to height.
Preferably, the cutter unit, for comparing described object pixel the ratio of width to height with preset pixel aspect ratio
Compared with;And when described object pixel the ratio of width to height is more than preset pixel aspect ratio, image cutting is carried out to the target image, is obtained
To at least two cutting images.
Preferably, the cutter unit, specifically for carrying out figure to the target image according to preset pixel aspect ratio
As cutting, until the pixel aspect ratio of the target image remainder is not more than the preset pixel aspect ratio.
Preferably, the cutter unit, is specifically used for:
On the basis of the pixel width values of the target image, to the pixel high level of the target image according to preset pixel
The ratio of width to height is cut;Or
On the basis of the pixel high level of the target image, to the pixel width values of the target image according to preset pixel
The ratio of width to height is cut.
Preferably, further include:
Marking unit is used for when carrying out image cutting to the target image, to the cutting drawing cut through image
As being marked successively, with by marking obtained label information to determine the position relationship between each cutting image.
Preferably, the compression unit, for wide high at least two cutting images according to preset maximum pixel
It is compressed respectively, obtains meeting the wide high cutting image of the preset maximum pixel.
Preferably, further include:
Acquiring unit, the image list information for obtaining target image include composition in described image list information
The wide high level of pixel of each cutting image of the target image;
Corresponding occupy-place figure is arranged for the wide high level of pixel according to each cutting image in setting unit;
Display unit is shown for extracting the corresponding cutting image of occupy-place figure according to selected occupy-place figure.
Preferably, also include the label information of each cutting image in described image list information, the display unit, specifically
For determining the cutting image corresponding to it according to selected occupy-place figure;And the mark corresponding to the cutting image according to the determination
Remember that information sends image zooming-out request to the server;Image zooming-out response is received, obtains and is taken in described image extraction response
The cutting image of the correspondence label information of band, and show the cutting image.
The present invention also provides a kind of terminal devices, including memory and processor, and the memory is based on storing
The step of calculation machine program, which realizes above-mentioned image processing method when being executed by processor.
The present invention also provides a kind of computer readable storage mediums, which is characterized in that the computer-readable storage medium
Computer program is stored in matter, which realizes above-mentioned method when being executed by processor.
Compared with prior art, the present invention has at least the following advantages:
By the object pixel the ratio of width to height for determining target image;And according to object pixel the ratio of width to height of the determination to target figure
As carrying out image cutting, at least two cutting images are obtained;Further to obtained at least two cutting images of cutting respectively into
Row compression, and the cutting image that compression obtains is uploaded onto the server and is stored;To with overlength scaled image after cutting with
Compression processing realizes the displaying of the segmentation to the overlength scaled image, and ensure that the clarity of the overlength scaled image;Simultaneously
It is handled by the preview of segmentation, improves the display efficiency to image, enhance the usage experience of user.
Description of the drawings
Fig. 1 is the image processing method flow chart that the embodiment of the present invention is provided;
Fig. 2 is the image processing method specific implementation flow chart that the embodiment of the present invention is provided;
Fig. 3 is the terminal device structure chart that the embodiment of the present invention is provided;
Fig. 4 is the hardware structure diagram for the terminal device that the embodiment of the present invention is provided.
Specific implementation mode
A kind of image processing method of present invention proposition and terminal device, below in conjunction with the accompanying drawings, to specific embodiment party of the present invention
Formula is described in detail.
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, and is only used for explaining the present invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singulative " one " used herein, " one
It is a ", " described " and "the" may also comprise plural form.It is to be further understood that is used in the specification of the present invention arranges
It refers to there are the feature, integer, step, operation, element and/or component, but it is not excluded that presence or addition to take leave " comprising "
Other one or more features, integer, step, operation, element, component and/or their group.It should be understood that when we claim member
Part is " connected " or when " coupled " to another element, it can be directly connected or coupled to other elements, or there may also be
Intermediary element.In addition, " connection " used herein or " coupling " may include being wirelessly connected or wirelessly coupling.It is used herein to arrange
Diction "and/or" includes that the whole of one or more associated list items or any cell are combined with whole.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art
Language and scientific terminology), there is meaning identical with the general understanding of the those of ordinary skill in fields of the present invention.Should also
Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art
The consistent meaning of meaning, and unless by specific definitions as here, the meaning of idealization or too formal otherwise will not be used
To explain.
If user need from terminal device upload pixel aspect ratio differ greatly image (such as pixel aspect ratio be 1:
200 or pixel aspect ratio be 200:1 image) when, existing solution is all often the maximum picture by limiting image
Plain width and pixels tall (such as a height of 4000x4000 of limitation maximum pixel width), zoom in and out original image, so that the image limits
The maximum wide height of pixel is made, the cutting of content is carried out to original image, and high compression is carried out to original image, to ensure to scheme
The harm that the wide high and file size of pixel of picture can be handled by terminal device, however so be handled is exactly that may result in image
Information lose, and can not ensure the clarity of image, in addition also can only when terminal device applies upper progress image preview
Image is subjected to preview as a whole.
For the above problem in the prior art, the present invention provides a kind of image processing methods, as shown in Figure 1, for this
The image processing method flow chart that inventive embodiments provide, including step:
Step 101, object pixel the ratio of width to height of target image is determined.
Step 102, image cutting is carried out to the target image according to described object pixel the ratio of width to height, obtains at least two
Cutting image.
Step 103, the cutting image for being compressed respectively at least two cutting images, and compression being obtained uploads
It is stored to server.
It by the offer of above-mentioned process flow, realizes to the segmentation compression processing with overlength scaled image, and ensures
The clarity of the overlength scaled image.
As shown in Fig. 2, the image processing method specific implementation flow chart provided by the embodiment of the present invention, the image procossing
Method specifically comprises the following steps:
Step 201, the wide height of pixel of target image is obtained.
In this step, for the target image selected by user, if terminal device it is expected to obtain the pixel of the target image
Can be directly acquired by image information entrained in the target image when width is high, it can also be by directly to the target
Image is analyzed to obtain, and is not limited merely to this certainly, the wide high place of the pixel for can arbitrarily obtain target image
Reason mode is within protection scope of the present invention.
Step 202, according to the wide high calculating object pixel the ratio of width to height of pixel.
In this example, if a height of 2000x100 of pixel width of the target image selected by user, by the pixel it is wide it is high into
Row calculates, and it is 20 to obtain object pixel the ratio of width to height:1.
Step 203, object pixel the ratio of width to height is compared with preset pixel aspect ratio.
If object pixel the ratio of width to height is more than preset pixel aspect ratio, step 204 is gone to, step 206 is otherwise gone to.
Step 204, image cutting is carried out to target image, obtains at least two cutting images.
In this step, when being cut to target image, figure is carried out to target image according to preset pixel aspect ratio
As cutting, until stopping cutting when the pixel aspect ratio of the target image remainder is not more than the preset pixel aspect ratio
It cuts, obtains at least two cutting images with preset pixel aspect ratio, or at least one has the wide height of preset pixel
The cutting image of ratio and a cutting image for being less than the preset pixel aspect ratio.
Further, image cutting is carried out to the target image according to preset pixel aspect ratio, specifically included as follows
Any mode:
(1) on the basis of the pixel width values of the target image, to the pixel high level of the target image according to preset
Pixel aspect ratio is cut.
(2) on the basis of the pixel high level of the target image, to the pixel width values of the target image according to preset
Pixel aspect ratio is cut.
Certainly, for the selection of above-mentioned processing mode, the wide height of pixel of target image is depended entirely on, if pixel width values are small
In pixel high level, then chooses (1) and handled;If pixel width values are more than pixel high level, choose (2) and handled;In a spy
In different scene, if pixel width values are equal with pixel high level, above-mentioned (1) and (2).
In aforementioned exemplary, a height of 2000x100 of pixel width of target image then chooses above-mentioned (2) and carries out cutting process,
In cutting, preset pixel aspect ratio is 4:3, then cutting for 26 a height of 75x100 of pixel width can be obtained after image is cut
Cut the cutting image of image and 1 a height of 50x100 of pixel width.
In this step, further include:
When carrying out image cutting to target image, the cutting image cut through image is marked successively, with
By marking obtained label information to determine the position relationship between each cutting image.
As aforementioned exemplary can be according to cutting sequence successively to each for 27 cutting images cut through image
It opens cutting image to be marked, enables to distinguish the front and back position relationship between each cutting image according to the label.
Wherein, in being marked, can successively be marked using number progress (such as first cutting image label 1, second
Open the 27th image tagged 27 of cutting image label 2 ...), certain mark mode is not limited merely to this, can also use it
His arbitrary mark mode, as long as the selected arbitrary mark mode can be used in showing that the front and back position between each cutting image is closed
System.
Step 205, to this, at least two cutting images compress respectively.
In this step, this compresses at least two cutting images respectively, including:
At least two cutting images are compressed respectively according to the wide height of preset maximum pixel, are obtained described in satisfaction
The preset wide high cutting image of maximum pixel.
Such as aforementioned exemplary, the selected preset a height of 80x80 of maximum pixel width, right according to the wide height of the maximum pixel
After the cutting image of the wide a height of 75x100 of 26 pixels and the cutting image of 1 a height of 50x100 of pixel width are compressed,
Obtain the cutting image of the wide a height of 60x80 of 26 pixels and the cutting image of 1 a height of 40x80 of pixel width.
Step 206, target image is compressed.
The target image is directly compressed according to preset maximum pixel wide height, obtains meeting preset maximum pixel
The high target image of width.
Step 207, the image that compression obtains is uploaded onto the server and is stored.
It by the offer of above-mentioned process flow, realizes to the segmentation compression processing with overlength scaled image, and ensures
The clarity of the overlength scaled image.
This is further comprised after image after processing is uploaded onto the server, in the embodiment of the present invention treated image exists
Exposition on terminal device, specifically includes:
The image list information of target image is obtained, includes the composition target image in described image list information
The wide high level of pixel of each cutting image;
And corresponding occupy-place figure is arranged according to the wide high level of the pixel of each cutting image;
The corresponding cutting image of occupy-place figure is extracted according to selected occupy-place figure to be shown.
Further, also include the label information of each cutting image in described image list information, selected by the basis
Occupy-place figure extract the corresponding cutting image of occupy-place figure and be shown, including:
The cutting image corresponding to it is determined according to selected occupy-place figure;
And the label information corresponding to the cutting image according to the determination sends image zooming-out request to the server;
Image zooming-out response is received, the cutting drawing of the correspondence label information carried in described image extraction response is obtained
Picture, and show the cutting image.
Such as aforementioned exemplary, terminal device is after getting the image list information of the target image, according to 27 therein
The occupy-place figure of each cutting image is respectively set in the wide high level of pixel of cutting image;The desired occupy-place figure shown of user is 11 (right
Answer the 11st cutting image) after, determine that corresponding to it be the 11st cutting image according to the occupy-place figure, and according to the 11st
The label information 11 of cutting image extracts the 11st cutting image from server, and is after the extraction cut to the 11st
Image is shown.
Based on the image processing method that aforementioned present invention is provided, the present invention also provides a kind of terminal devices, such as Fig. 3 institutes
Show, including:
Determination unit 31, object pixel the ratio of width to height for determining target image;
Cutter unit 32 is obtained for carrying out image cutting to the target image according to described object pixel the ratio of width to height
At least two cutting images;
Compression unit 33, for being compressed respectively at least two cutting images;
Uploading unit 34, the cutting image for obtaining compression, which is uploaded onto the server, to be stored.
Preferably, the determination unit 31, the wide height of pixel for obtaining the target image;According to the wide height of the pixel
Calculate object pixel the ratio of width to height.
Preferably, the cutter unit 32, for carrying out described object pixel the ratio of width to height and preset pixel aspect ratio
Compare;And when described object pixel the ratio of width to height is more than preset pixel aspect ratio, image cutting is carried out to the target image,
Obtain at least two cutting images.
Preferably, the cutter unit 32 is specifically used for carrying out the target image according to preset pixel aspect ratio
Image is cut, until the pixel aspect ratio of the target image remainder is not more than the preset pixel aspect ratio.
Preferably, the cutter unit 32, is specifically used for:
On the basis of the pixel width values of the target image, to the pixel high level of the target image according to preset pixel
The ratio of width to height is cut;Or
On the basis of the pixel high level of the target image, to the pixel width values of the target image according to preset pixel
The ratio of width to height is cut.
Preferably, further include:
Marking unit 35 is used for when carrying out image cutting to the target image, the cutting to being cut through image
Image is marked successively, with by marking obtained label information to determine the position relationship between each cutting image.
Preferably, the compression unit 33, for wide high at least two cutting drawings according to preset maximum pixel
As being compressed respectively, obtain meeting the wide high cutting image of the preset maximum pixel.
Preferably, further include:
Acquiring unit 36, the image list information for obtaining target image include group in described image list information
At the wide high level of pixel of each cutting image of the target image;
Corresponding occupy-place figure is arranged for the wide high level of pixel according to each cutting image in setting unit 37;
Display unit 38 is shown for extracting the corresponding cutting image of occupy-place figure according to selected occupy-place figure.
Preferably, also include the label information of each cutting image in described image list information, the display unit, specifically
For determining the cutting image corresponding to it according to selected occupy-place figure;And the mark corresponding to the cutting image according to the determination
Remember that information sends image zooming-out request to the server;Image zooming-out response is received, obtains and is taken in described image extraction response
The cutting image of the correspondence label information of band, and show the cutting image.
The present invention also provides a kind of terminal devices, including memory and processor, and the memory is based on storing
The step of calculation machine program, which realizes above-mentioned image processing method when being executed by processor.
The present invention also provides a kind of computer readable storage mediums, which is characterized in that the computer-readable storage medium
Computer program is stored in matter, which realizes above-mentioned method when being executed by processor.
Elaboration based on the image procossing scheme that aforementioned present invention is provided, the embodiment of the present invention additionally provide terminal and set
It is standby, as shown in figure 4, for convenience of description, illustrating only and not disclosed with the relevant part of the embodiment of the present invention, particular technique details
, please refer to present invention method part.The terminal can be include mobile phone, tablet computer, PDA (Personal
Digital Assistant, personal digital assistant), POS (Point of Sales, point-of-sale terminal), vehicle-mounted computer etc. it is arbitrary eventually
End equipment, by taking terminal device is mobile phone as an example:
Fig. 4 shows the block diagram with the part-structure of the relevant mobile phone of terminal device provided in an embodiment of the present invention.Ginseng
Fig. 4 is examined, mobile phone includes:Radio frequency (Radio Frequency, RF) circuit 1510, memory 1520, input unit 1530, display
Unit 1540, sensor 1550, voicefrequency circuit 1560, Wireless Fidelity (wireless fidelity, WiFi) module 1570, place
Manage the components such as device 1580 and power supply 1590.It will be understood by those skilled in the art that the not structure of handset structure shown in Fig. 4
The restriction of pairs of mobile phone may include either combining certain components or different components than illustrating more or fewer components
Arrangement.
Each component parts of mobile phone is specifically introduced with reference to Fig. 4:
RF circuits 1510 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station
After downlink information receives, handled to processor 1580;In addition, the data for designing uplink are sent to base station.In general, RF circuits
1510 include but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise
Amplifier, LNA), duplexer etc..In addition, RF circuits 1510 can also be logical with network and other equipment by radio communication
Letter.Above-mentioned wireless communication can use any communication standard or agreement, including but not limited to global system for mobile communications (Global
System of Mobile communication, GSM), general packet radio service (General Packet Radio
Service, GPRS), CDMA (Code Division Multiple Access, CDMA), wideband code division multiple access
(Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution,
LTE), Email, short message service (Short Messaging Service, SMS) etc..
Memory 1520 can be used for storing software program and module, and processor 1580 is stored in memory by operation
1520 software program and module, to execute various function application and the data processing of mobile phone.Memory 1520 can be led
To include storing program area and storage data field, wherein storing program area can storage program area, needed at least one function
Application program (such as sound-playing function, image player function etc.) etc.;Storage data field can be stored uses institute according to mobile phone
Data (such as audio data, phone directory etc.) of establishment etc..In addition, memory 1520 may include high random access storage
Device, can also include nonvolatile memory, and a for example, at least disk memory, flush memory device or other volatibility are solid
State memory device.
Input unit 1530 can be used for receiving the number or character information of input, and generate with the user setting of mobile phone with
And the related key signals input of function control.Specifically, input unit 1530 may include touch panel 1531 and other inputs
Equipment 1532.Touch panel 1531, also referred to as touch screen collect user on it or neighbouring touch operation (such as user
Use the behaviour of any suitable object or attachment such as finger, stylus on touch panel 1531 or near touch panel 1531
Make), and corresponding attachment device is driven according to preset formula.Optionally, touch panel 1531 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
It is converted into contact coordinate, then gives processor 1580, and order that processor 1580 is sent can be received and executed.In addition,
The multiple types such as resistance-type, condenser type, infrared ray and surface acoustic wave may be used and realize touch panel 1531.In addition to touch surface
Plate 1531, input unit 1530 can also include other input equipments 1532.Specifically, other input equipments 1532 may include
But in being not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating lever etc.
It is one or more.
Display unit 1540 can be used for showing information input by user or be supplied to user information and mobile phone it is each
Kind menu.Display unit 1540 may include display panel 1541, optionally, liquid crystal display (Liquid may be used
Crystal Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED)
To configure display panel 1541.Further, touch panel 1531 can cover display panel 1541, when touch panel 1531 detects
To processor 1580 on it or after neighbouring touch operation, is sent to determine the type of touch event, it is followed by subsequent processing device
1580 provide corresponding visual output according to the type of touch event on display panel 1541.Although in Fig. 4, touch panel
1531 be to realize input and the input function of mobile phone as two independent components with display panel 1541, but in certain realities
Apply in example, can be integrated by touch panel 1531 and display panel 1541 and that realizes mobile phone output and input function.
Mobile phone may also include at least one sensor 1550, such as optical sensor, motion sensor and other sensors.
Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light
Light and shade adjust the brightness of display panel 1541, proximity sensor can close display panel when mobile phone is moved in one's ear
1541 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (generally three axis) and add
The size of speed can detect that size and the direction of gravity when static, can be used to identify application (such as the horizontal/vertical screen of mobile phone posture
Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Also as mobile phone
The other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared sensor, details are not described herein.
Voicefrequency circuit 1560, loud speaker 1561, microphone 1562 can provide the audio interface between user and mobile phone.Audio
The transformed electric signal of the audio data received can be transferred to loud speaker 1561, is converted by loud speaker 1561 by circuit 1560
It is exported for voice signal;On the other hand, the voice signal of collection is converted to electric signal by microphone 1562, by voicefrequency circuit 1560
Audio data is converted to after reception, then by after the processing of audio data output processor 1580, through RF circuits 1510 to be sent to ratio
Such as another mobile phone, or audio data is exported to memory 1520 to be further processed.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 1570
Part, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 4 is shown
WiFi module 1570, but it is understood that, and it is not belonging to must be configured into for mobile phone, it can not change as needed completely
Become in the range of the essence of invention and omits.
Processor 1580 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone,
By running or execute the software program and/or module that are stored in memory 1520, and calls and be stored in memory 1520
Interior data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.Optionally, processor
1580 may include one or more processing units;Preferably, processor 1580 can integrate application processor and modulation /demodulation processing
Device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is mainly located
Reason wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 1580.
Mobile phone further includes the power supply 1590 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply
Management system and processor 1580 are logically contiguous, to realize management charging, electric discharge and power consumption pipe by power-supply management system
The functions such as reason.
Although being not shown, mobile phone can also include camera, bluetooth module etc., and details are not described herein.
In the present invention, by after cutting and compression processing, being realized to the overlength ratio chart with overlength scaled image
The segmentation of picture is shown, and ensure that the clarity of the overlength scaled image;It is handled, is improved to figure by the preview of segmentation simultaneously
The display efficiency of picture enhances the usage experience of user.
Those skilled in the art of the present technique be appreciated that can with computer program instructions come realize these structure charts and/or
The combination of each frame and these structure charts and/or the frame in block diagram and/or flow graph in block diagram and/or flow graph.This technology is led
Field technique personnel be appreciated that these computer program instructions can be supplied to all-purpose computer, special purpose computer or other
The processor of programmable data processing method is realized, to pass through the processing of computer or other programmable data processing methods
Device come execute structure chart and/or block diagram and/or flow graph disclosed by the invention frame or multiple frames in specify scheme.
Wherein, the modules of apparatus of the present invention can be integrated in one, and can also be deployed separately.Above-mentioned module can close
And be a module, multiple submodule can also be further split into.
It will be appreciated by those skilled in the art that attached drawing is the schematic diagram of a preferred embodiment, the module in attached drawing or stream
Journey is not necessarily implemented necessary to the present invention.
It will be appreciated by those skilled in the art that the module in device in embodiment can describe be divided according to embodiment
It is distributed in the device of embodiment, respective change can also be carried out and be located in one or more devices different from the present embodiment.On
The module for stating embodiment can be merged into a module, can also be further split into multiple submodule.
Aforementioned present invention serial number is for illustration only, can not represent the quality of embodiment.
Disclosed above is only several specific embodiments of the present invention, and still, the present invention is not limited to this, any ability
What the technical staff in domain can think variation should all fall into protection scope of the present invention.
Claims (10)
1. a kind of image processing method, which is characterized in that including:
Determine object pixel the ratio of width to height of target image;
Image cutting is carried out to the target image according to described object pixel the ratio of width to height, obtains at least two cutting images;
At least two cutting images are compressed respectively, and the obtained cutting image of compression is uploaded onto the server progress
Storage.
2. the method as described in claim 1, which is characterized in that object pixel the ratio of width to height of the determining target image, including:
Obtain the wide height of pixel of the target image;
According to the wide high calculating object pixel the ratio of width to height of the pixel.
3. the method as described in claim 1, which is characterized in that it is described according to described object pixel the ratio of width to height to the target figure
As progress image cutting, at least two cutting images are obtained, including:
Described object pixel the ratio of width to height is compared with preset pixel aspect ratio;
And when described object pixel the ratio of width to height is more than preset pixel aspect ratio, image cutting is carried out to the target image,
Obtain at least two cutting images.
4. method as claimed in claim 3, which is characterized in that it is described to the target image carry out image cutting, obtain to
Few two cutting images, including:
Image cutting is carried out to the target image according to preset pixel aspect ratio, until the target image remainder
Pixel aspect ratio is not more than the preset pixel aspect ratio.
5. method as claimed in claim 4, which is characterized in that it is described according to preset pixel aspect ratio to the target image
Image cutting is carried out, is specifically included:
On the basis of the pixel width values of the target image, to the pixel high level of the target image according to the wide height of preset pixel
Than being cut;Or
On the basis of the pixel high level of the target image, to the pixel width values of the target image according to the wide height of preset pixel
Than being cut.
6. the method as described in any one of claim 3-5, which is characterized in that further include:
When carrying out image cutting to the target image, the cutting image cut through image is marked successively, with
By marking obtained label information to determine the position relationship between each cutting image.
7. the method as described in any one of claim 1-6, which is characterized in that described at least two cutting images point
It is not compressed, including:
At least two cutting images are compressed respectively according to the wide height of preset maximum pixel, obtain meeting described default
The wide high cutting image of maximum pixel.
8. a kind of terminal device, which is characterized in that including:
Determination unit, object pixel the ratio of width to height for determining target image;
Cutter unit obtains at least two for carrying out image cutting to the target image according to described object pixel the ratio of width to height
Open cutting image;
Compression unit, for being compressed respectively at least two cutting images;
Uploading unit, the cutting image for obtaining compression, which is uploaded onto the server, to be stored.
9. a kind of terminal device, including memory and processor, the memory is for storing computer program, the computer
The step of image processing method described in any one of claim 1-7 is realized when program is executed by processor.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program realizes the method described in any one of claim 1-7 when the program is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810200219.4A CN108460769B (en) | 2018-03-12 | 2018-03-12 | image processing method and terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810200219.4A CN108460769B (en) | 2018-03-12 | 2018-03-12 | image processing method and terminal equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108460769A true CN108460769A (en) | 2018-08-28 |
CN108460769B CN108460769B (en) | 2019-12-13 |
Family
ID=63217306
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810200219.4A Active CN108460769B (en) | 2018-03-12 | 2018-03-12 | image processing method and terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108460769B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109949380A (en) * | 2019-02-02 | 2019-06-28 | 广州视源电子科技股份有限公司 | Image compression method, system and storage medium |
CN110865859A (en) * | 2019-10-29 | 2020-03-06 | 维沃移动通信有限公司 | Picture display method and device, electronic equipment and medium |
CN113545075A (en) * | 2019-03-18 | 2021-10-22 | 索尼集团公司 | Point cloud global block packing |
CN113852823A (en) * | 2021-11-30 | 2021-12-28 | 深圳市通恒伟创科技有限公司 | Image data uploading method, system and device based on Internet of things |
CN114020006A (en) * | 2021-09-26 | 2022-02-08 | 佛山中科云图智能科技有限公司 | Unmanned aerial vehicle auxiliary landing method and device, storage medium and electronic equipment |
CN118200456A (en) * | 2024-05-17 | 2024-06-14 | 深圳市莫尼迪科技有限责任公司 | Image compression system, device and method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013072889A1 (en) * | 2011-11-18 | 2013-05-23 | Koninklijke Philips Electronics N.V. | Encoding high quality (medical) images using standard lower quality (web) image formats |
CN104616263A (en) * | 2015-02-10 | 2015-05-13 | 深圳中兴网信科技有限公司 | Image processing method and device |
CN105550301A (en) * | 2015-12-14 | 2016-05-04 | 河海大学 | High-definition picture cutting and displaying method |
-
2018
- 2018-03-12 CN CN201810200219.4A patent/CN108460769B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013072889A1 (en) * | 2011-11-18 | 2013-05-23 | Koninklijke Philips Electronics N.V. | Encoding high quality (medical) images using standard lower quality (web) image formats |
CN104616263A (en) * | 2015-02-10 | 2015-05-13 | 深圳中兴网信科技有限公司 | Image processing method and device |
CN105550301A (en) * | 2015-12-14 | 2016-05-04 | 河海大学 | High-definition picture cutting and displaying method |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109949380A (en) * | 2019-02-02 | 2019-06-28 | 广州视源电子科技股份有限公司 | Image compression method, system and storage medium |
CN113545075A (en) * | 2019-03-18 | 2021-10-22 | 索尼集团公司 | Point cloud global block packing |
CN113545075B (en) * | 2019-03-18 | 2024-05-31 | 索尼集团公司 | Point cloud global block packing |
CN110865859A (en) * | 2019-10-29 | 2020-03-06 | 维沃移动通信有限公司 | Picture display method and device, electronic equipment and medium |
CN110865859B (en) * | 2019-10-29 | 2021-10-22 | 维沃移动通信有限公司 | Picture display method and device, electronic equipment and medium |
US12032975B2 (en) | 2019-10-29 | 2024-07-09 | Vivo Mobile Communication Co., Ltd. | Picture display method and apparatus, electronic device, and medium |
CN114020006A (en) * | 2021-09-26 | 2022-02-08 | 佛山中科云图智能科技有限公司 | Unmanned aerial vehicle auxiliary landing method and device, storage medium and electronic equipment |
CN114020006B (en) * | 2021-09-26 | 2023-04-07 | 佛山中科云图智能科技有限公司 | Unmanned aerial vehicle auxiliary landing method and device, storage medium and electronic equipment |
CN113852823A (en) * | 2021-11-30 | 2021-12-28 | 深圳市通恒伟创科技有限公司 | Image data uploading method, system and device based on Internet of things |
CN113852823B (en) * | 2021-11-30 | 2022-03-01 | 深圳市通恒伟创科技有限公司 | Image data uploading method, system and device based on Internet of things |
CN118200456A (en) * | 2024-05-17 | 2024-06-14 | 深圳市莫尼迪科技有限责任公司 | Image compression system, device and method |
Also Published As
Publication number | Publication date |
---|---|
CN108460769B (en) | 2019-12-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108460769A (en) | Image processing method and terminal device | |
CN111263234B (en) | Video clipping method, related device, equipment and storage medium | |
CN108322685A (en) | Video frame interpolation method, storage medium and terminal | |
CN111368934A (en) | Image recognition model training method, image recognition method and related device | |
CN106126174B (en) | A kind of control method and electronic equipment of scene audio | |
CN104571979B (en) | A kind of method and apparatus for realizing split view | |
CN109040643A (en) | The method, apparatus of mobile terminal and remote group photo | |
CN109919836A (en) | Video keying processing method, video keying processing client and readable storage medium storing program for executing | |
CN110166828A (en) | A kind of method for processing video frequency and device | |
CN107948748A (en) | Recommend method, equipment, mobile terminal and the computer-readable storage medium of video | |
CN107635110A (en) | A kind of video interception method and terminal | |
CN110209245A (en) | Face identification method and Related product | |
CN107943417A (en) | Image processing method, terminal, computer-readable storage medium and computer program | |
CN107395890A (en) | A kind of method and apparatus and mobile terminal for adjusting Showing Effectiveness On Screen | |
CN106791916B (en) | Method, device and system for recommending audio data | |
CN110209332A (en) | A kind of information processing method and terminal device | |
CN108337533A (en) | Video-frequency compression method and device | |
CN107256142B (en) | Page display method and terminal | |
JP2020509470A (en) | Method, apparatus and non-volatile computer readable medium for image synthesis | |
US10706282B2 (en) | Method and mobile terminal for processing image and storage medium | |
CN113421211B (en) | Method for blurring light spots, terminal equipment and storage medium | |
WO2023010705A1 (en) | Data processing method, mobile terminal, and storage medium | |
CN105513098B (en) | Image processing method and device | |
CN108121762A (en) | A kind of image processing method, mobile terminal and computer storage media | |
CN108259808A (en) | A kind of video frame compression method and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |