CN107977947A - A kind of image processing method, mobile terminal - Google Patents

A kind of image processing method, mobile terminal Download PDF

Info

Publication number
CN107977947A
CN107977947A CN201711400229.4A CN201711400229A CN107977947A CN 107977947 A CN107977947 A CN 107977947A CN 201711400229 A CN201711400229 A CN 201711400229A CN 107977947 A CN107977947 A CN 107977947A
Authority
CN
China
Prior art keywords
pixel
area
image
corner areas
corner
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
Application number
CN201711400229.4A
Other languages
Chinese (zh)
Other versions
CN107977947B (en
Inventor
刘亚美
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201711400229.4A priority Critical patent/CN107977947B/en
Publication of CN107977947A publication Critical patent/CN107977947A/en
Application granted granted Critical
Publication of CN107977947B publication Critical patent/CN107977947B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • G06T5/77
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image

Abstract

The invention discloses a kind of image processing method, mobile terminal, the described method includes:According to the corresponding first default fillet coefficient in any corner in target image, the corresponding radius area in the corner and corner areas are determined;According to the pixel value of each pixel in the corresponding image of the corner areas, effective coverage is determined in the corner areas, wherein, the effective coverage represents the region for including effective image information in the corner areas;According to default compression algorithm, by the corresponding image in the effective coverage and the corresponding compression of images of the radius area to the radius area.The present invention can avoid the loss of effective image information while realizing that image fillet is shown, effectively improve the display effect that image fillet is shown.

Description

A kind of image processing method, mobile terminal
Technical field
The present invention relates to technical field of image processing, more particularly to a kind of image processing method, mobile terminal.
Background technology
With the development of terminal technology, the intelligent terminal such as mobile phone, tablet computer is widely used in daily life. Before intelligent terminal shows image, for aesthetic requirements, the corner of image can generally be handled, with one section and corner Realize and fillet image is shown in intelligent terminal to form fillet in the original corner of the tangent circularity substitution in both sides.
At present, when intelligent terminal handles the corner of image, specifically, according to fillet coefficient (fillet corresponding half Footpath) corner parts beyond Circle in Digital Images angle are cropped, alternatively, being covered on the corresponding image of corner parts beyond fillet black Color floating layer, to realize that the fillet of image is shown.
But fillet processing is carried out to image using the above method, abandon the corresponding figure of corner parts beyond fillet Picture, if comprising effective image information such as timestamp or words in the parts of images, image fillet can be caused, which to be lost when showing, to be had Image information is imitated, have impact on the display effect that image fillet is shown.
The content of the invention
The embodiment of the present invention provides a kind of image processing method, mobile terminal, is shown with solving image fillet in the prior art The problem of effective image information is lost when showing.
In order to solve the above-mentioned technical problem, the present invention is realized in:
In a first aspect, an embodiment of the present invention provides a kind of image processing method, including:
According to the corresponding first default fillet coefficient in any corner in target image, the corresponding fillet area in the corner is determined Domain and corner areas;
According to the pixel value of each pixel in the corresponding image of the corner areas, determined in the corner areas effective Region, wherein, the effective coverage represents the region for including effective image information in the corner areas;
According to default compression algorithm, by the corresponding image in the effective coverage and the corresponding compression of images of the radius area To the radius area.
Second aspect, the embodiment of the present invention additionally provide a kind of mobile terminal, including:
Determining module, for according to the corresponding first default fillet coefficient in any corner in target image, determining the side The corresponding radius area in angle and corner areas;
The determining module, is additionally operable to the pixel value according to each pixel in the corresponding image of the corner areas, in institute State and effective coverage is determined in corner areas, wherein, the effective coverage represents to include effective image information in the corner areas Region;
Compression module, for the default compression algorithm of basis, by the corresponding image in the effective coverage and the radius area Corresponding compression of images is to the radius area.
The third aspect, the embodiment of the present invention additionally provide a kind of mobile terminal, including processor, memory and are stored in institute The image processing program that can be run on memory and on the processor is stated, described image processing routine is held by the processor The step of image processing method as described above is realized during row.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer-readable storage medium, the computer-readable storage medium Image processing program is stored in matter, described image processing routine realizes image processing method as described above when being executed by processor The step of.
In embodiments of the present invention, according to the corresponding first default fillet coefficient in any corner in target image, determining should The corresponding radius area in corner and corner areas, according to the pixel value of each pixel in the corresponding image of corner areas, in corner The effective coverage for including effective image information is determined in region, and then according to default compression algorithm, by the corresponding figure in effective coverage Picture and the corresponding compression of images of radius area are to radius area so that the corresponding fillet figure in the corner is obtained in radius area Picture, so as to avoid the loss of effective image information while realizing that image fillet is shown, effectively improves image fillet and shows Display effect.
Brief description of the drawings
Attached drawing described herein is used for providing a further understanding of the present invention, forms the part of the present invention, this hair Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is a kind of flow diagram of image processing method provided in an embodiment of the present invention;
Fig. 2 is the schematic diagram of target image provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram of radius area provided in an embodiment of the present invention and corner areas;
Fig. 4 is the schematic diagram in fillet processing procedure provided in an embodiment of the present invention;
Fig. 5 is the schematic diagram that target image fillet provided in an embodiment of the present invention is shown;
Fig. 6 is a kind of structure diagram of mobile terminal provided in an embodiment of the present invention;
Fig. 7 is a kind of hardware architecture diagram for the mobile terminal for realizing each embodiment of the present invention.
Embodiment
Technical solution of the present invention is carried out clearly and completely below in conjunction with the specific embodiment of the invention and corresponding attached drawing Description, it is clear that described embodiment is part of the embodiment of the present invention, instead of all the embodiments.Based in the present invention Embodiment, those of ordinary skill in the art's all other embodiments obtained without making creative work, Belong to the scope of protection of the invention.
The technical solution provided below in conjunction with attached drawing, each embodiment that the present invention will be described in detail.
Embodiment 1
Fig. 1 is a kind of flow diagram of image processing method provided in an embodiment of the present invention.The method can be as follows It is shown.
Step 102:According to the corresponding first default fillet coefficient in any corner in target image, determine that the corner is corresponding Radius area and corner areas.
Wherein, corner represents the angle between the adjacent side of target image.
Fig. 2 is the schematic diagram of target image provided in an embodiment of the present invention.
As shown in Fig. 2, target image is right angle image, i.e., target image includes four corners, and four corners are all straight Angle.
For any corner in target image, according to the corresponding first default fillet coefficient in the corner, the corner pair is determined The radius area and corner areas answered, wherein, the corresponding first default fillet coefficient in the corner is the corresponding radius of fillet.
It should be noted that the first default fillet coefficient can be determined according to actual conditions, it is not specifically limited here.
Preferably, in target image the corresponding fillet in any corner be a quarter circle, that is to say one 90 ° of arc Shape.
Fig. 3 is the schematic diagram of radius area provided in an embodiment of the present invention and corner areas.
As shown in figure 3, corner A is one 90 ° of right angle, A corresponding first default fillet coefficients in corner are a, this first It is the circular arc L that an angle is 90 °, radius is a to preset the corresponding fillets of fillet coefficient a1.Corner areas 31 is circular arc L1In addition Include the region of corner A, radius area 32 is circular arc L1Within region.Corner areas 31 and radius area 32 collectively form one A length of side is the square area of a.
Step 104:According to the pixel value of each pixel in the corresponding image of corner areas, determined in the corner areas Imitate region.
Wherein, effective coverage represents the region for including effective image information in corner areas.
The effective image information in corner areas is lost when being shown in order to avoid target image fillet (for example, timestamp, text Word, etc.), the effective coverage for including effective image information is determined in corner areas.
In the embodiment of the present invention, according to the pixel value of each pixel in the corresponding image of corner areas, in corner areas Determine effective coverage, including:
Determine the corresponding background colour in first area that radius area and corner areas collectively form;
According to the pixel value of each pixel in background colour and the corresponding image of corner areas, determined in corner areas effective Region.
Specifically, it is determined that the corresponding background colour in first area that radius area and corner areas collectively form, including:
Region division is carried out to first area by Region Segmentation Algorithm, determines the connected domain in first area;
According to the pixel value of each pixel in the corresponding image of connected domain, the corresponding pixel number of statistics any pixel value Mesh;
The corresponding color of the most pixel value of pixel number is determined as background colour.
Still by taking above-mentioned Fig. 3 as an example, first area that corner areas and radius area collectively form be a length of side be a just It is square.
Region division is carried out to first area by Region Segmentation Algorithm, each characteristic area is generated, then weeds out orphan Vertical region, finally obtains the connected domain of non-orphaned.
For above-mentioned definite connected domain, according to the pixel value of each pixel in the corresponding image of the connected domain, statistics is appointed The corresponding pixel number of one pixel value, and the corresponding color of the most pixel value of pixel number is determined as first area Background colour.
For example, 255 corresponding pixel number of pixel value is most in connected domain, then the background colour of first area is white.
In the embodiment of the present invention, according to the pixel value of each pixel in background colour and the corresponding image of corner areas, on side Effective coverage is determined in angular zone, including:
According to the second default fillet coefficient, corner areas is divided into second area and the 3rd region, the second default fillet Coefficient is less than the first default fillet coefficient, wherein, second area includes corner, the 3rd region be second area and radius area it Between region;
Determine the corresponding pixel ratio of background colour in second area, which represents background colour pair in the second area The pixel number answered accounts for total pixel number purpose ratio;
If the pixel ratio is more than preset ratio threshold value, the second default fillet coefficient is increased into preset value, as new Second default fillet coefficient, until the pixel ratio is not more than preset ratio threshold value;
If the pixel ratio is not more than preset ratio threshold value, the 3rd region is determined as effective coverage.
Still by taking above-mentioned Fig. 3 as an example, according to the second default fillet coefficient, corner areas is divided into second area and the 3rd area Domain, obtains the schematic diagram in fillet processing procedure shown in Fig. 4.Fig. 4 is in fillet processing procedure provided in an embodiment of the present invention Schematic diagram.
As shown in figure 4, the second default fillet coefficient be b, second to preset the corresponding fillets of fillet coefficient b be an angle for this 90 °, the circular arc L that radius is b2.Circular arc L2Corner areas is divided into 42 and the 3rd region 43 of second area.Second area 42 wraps Include corner A, region of the 3rd region 43 between second area 42 and radius area 41.Radius area 41,42 and of second area 3rd region 42 collectively forms first area:The square area that one length of side is a, wherein, a>b.
According to the corresponding background colour in above-mentioned definite first area, total pixel number z and background in second area are counted The corresponding pixel number x of color, and then determine the corresponding pixel ratio x/z of background colour in second area, that is, determine second area The corresponding pixel number x of middle background colour accounts for the ratio of total pixel number z.
If the corresponding pixel ratio of background colour is more than preset ratio threshold value m, i.e. x/z in second area>M, then can determine It is largely background colour in second area, i.e. second area is inactive area, not including effective image information.
And then using the second default fillet coefficient increase preset value as the new second default fillet coefficient, preset with second The increase of fillet coefficient, the increase of second area area, the 3rd region area reduce.Repeat above-mentioned steps and determine second area The corresponding pixel ratio of middle background colour, until the corresponding pixel ratio of background colour is not more than preset ratio threshold value m in second area, That is x/z≤m, then can determine second area not include the inactive area of the area maximum of effective image information, the 3rd region The middle effective image information started to include in target image, is determined as effective coverage by the 3rd region.
It should be noted that the second default fillet coefficient, preset ratio threshold value, preset value can be true according to actual conditions It is fixed, it is not specifically limited here.
For example, the second default fillet coefficient is identical with preset value, it is the distance of 1 pixel;Preset value preset ratio threshold It is worth for 90%.I.e. second default fillet coefficient determines the corresponding picture of background colour in second area since the distance of 1 pixel Plain ratio, and when the definite pixel ratio is not more than 90%, the distance that the second default fillet coefficient increases by 1 pixel is made Fillet coefficient is preset for new second, and repeats above-mentioned steps and determines the corresponding pixel ratio of background colour in second area, Until the pixel ratio is not more than preset ratio threshold value 90%, it is determined that the 3rd region is effective coverage.
Step 106:According to default compression algorithm, by the corresponding image in effective coverage and the corresponding compression of images of radius area To radius area.
After determining the effective coverage comprising effective image information in corner areas, using default compression algorithm, will have The corresponding image in region and the corresponding compression of images of radius area are imitated into radius area, so that obtaining side in radius area The corresponding fillet image in angle.
With by the corresponding image of corner areas and the corresponding compression of images of radius area corner is obtained into radius area Corresponding fillet image is compared, by the corresponding image in effective coverage in corner areas and the corresponding compression of images of radius area to circle In angular zone, the deformation extent for the corresponding fillet image in corner that can reduce, the display effect of raising fillet image.
In the embodiment of the present invention, default compression algorithm includes:Correction algorithm based on longitude and latitude.
It should be noted that default compression algorithm except can be based on the correction algorithm of longitude and latitude in addition to, can also be Correction algorithm based on concentric circles, can also be other compression algorithms, is not specifically limited here.
In the embodiment of the present invention, after the corresponding fillet image in corner is obtained in radius area, further include:
The corresponding image of corner areas is shown according to default display effect.
After the corresponding fillet image in corner being obtained using the above method in radius area, the corresponding image of corner areas The part that can be abandoned beyond fillet, is directed to the corner parts correspondence image, can be by filling some pre-set color (examples Such as:The pure color such as black, white, blue, Transparent color, etc.), or pre-set image is filled to realize the fillet of the corresponding image of the corner parts Display.
In practical application, one or more of target image corner can be justified using above-mentioned image processing method Angle is handled, to realize that the fillet of target image is shown.
Still by taking the target image shown in above-mentioned 2 as an example, using above-mentioned image processing method to four sides in target image Angle carries out fillet processing, obtains the fillet display effect shown in Fig. 5.Fig. 5 is target image fillet provided in an embodiment of the present invention The schematic diagram of display.
The technical solution that the embodiment of the present invention is recorded, according to the corresponding first default fillet system in any corner in target image Number, determines the corresponding radius area in the corner and corner areas, according to the pixel of each pixel in the corresponding image of corner areas Value, determines the effective coverage for including effective image information in corner areas, and then according to default compression algorithm, by effective coverage Corresponding image and the corresponding compression of images of radius area are to radius area so that it is corresponding that the corner is obtained in radius area Fillet image, so as to avoid the loss of effective image information while realizing that image fillet is shown, effectively improves image circle The display effect that angle is shown.
Embodiment 2
Fig. 6 is a kind of structure diagram of mobile terminal provided in an embodiment of the present invention.Mobile terminal 600 includes:Determine Module 601 and compression module 602, wherein:
Determining module 601, for according to the corresponding first default fillet coefficient in any corner in target image, determining the side The corresponding radius area in angle and corner areas;
Determining module 601, is additionally operable to the pixel value according to each pixel in the corresponding image of corner areas, in corner areas In determine effective coverage, wherein, effective coverage represents to include the region of effective image information in corner areas;
Compression module 602, it is for the default compression algorithm of basis, the corresponding image in effective coverage and radius area is corresponding Compression of images is to radius area.
Optionally it is determined that module 601 further comprises:Determination unit, wherein:
Determination unit, for determining the corresponding background colour in first area that radius area and corner areas collectively form;
Determination unit, is additionally operable to the pixel value according to each pixel in background colour and the corresponding image of corner areas, on side Effective coverage is determined in angular zone.
Optionally it is determined that unit is specifically used for:
Region division is carried out to first area by Region Segmentation Algorithm, determines the connected domain in first area;
According to the pixel value of each pixel in the corresponding image of connected domain, the corresponding pixel number of statistics any pixel value Mesh;
The corresponding color of the most pixel value of pixel number is determined as background colour.
Optionally it is determined that unit is specifically used for:
According to the second default fillet coefficient, corner areas is divided into second area and the 3rd region, the second default fillet Coefficient is less than the first default fillet coefficient, wherein, second area includes corner, the 3rd region be second area and radius area it Between region;
Determine the corresponding pixel ratio of background colour in second area, which represents background colour pair in the second area The pixel number answered accounts for total pixel number purpose ratio;
If the pixel ratio is more than preset ratio threshold value, the second default fillet coefficient is increased into preset value, as new Second default fillet coefficient, until the pixel ratio is not more than preset ratio threshold value;
If the pixel ratio is not more than preset ratio threshold value, the 3rd region is determined as effective coverage.
Mobile terminal provided in an embodiment of the present invention can realize each process in the embodiment of the method for Fig. 1 to Fig. 5, reach To identical technique effect, to avoid repeating, which is not described herein again.
Fig. 7 is a kind of hardware architecture diagram for the mobile terminal for realizing each embodiment of the present invention,
The mobile terminal 700 includes but not limited to:It is radio frequency unit 701, mixed-media network modules mixed-media 702, audio output unit 703, defeated Enter unit 704, sensor 705, display unit 706, user input unit 707, interface unit 708, memory 709, processor The component such as 710 and power supply 711.It will be understood by those skilled in the art that the mobile terminal structure shown in Fig. 7 is not formed Restriction to mobile terminal, mobile terminal can be included than illustrating more or fewer components, either combine some components or Different component arrangements.In embodiments of the present invention, mobile terminal include but not limited to mobile phone, tablet computer, laptop, Palm PC, car-mounted terminal, wearable device and pedometer etc..
Wherein, processor 710, for according to the corresponding first default fillet coefficient in any corner in target image, determining The corresponding radius area in the corner and corner areas;According to the pixel value of each pixel in the corresponding image of corner areas, on side Effective coverage is determined in angular zone, wherein, effective coverage represents the region for including effective image information in corner areas;According to pre- If compression algorithm, by the corresponding image in effective coverage and the corresponding compression of images of radius area to radius area.
According to the corresponding first default fillet coefficient in any corner in target image, the corresponding radius area in the corner is determined And corner areas, according to the pixel value of each pixel in the corresponding image of corner areas, determined in corner areas comprising effective The effective coverage of image information, and then according to default compression algorithm, the corresponding image in effective coverage and radius area is corresponding Compression of images is to radius area so that the corresponding fillet image in the corner is obtained in radius area, so as to realize that image justifies Angle avoids the loss of effective image information while display, effectively improve the display effect that image fillet is shown.
It should be understood that in the embodiment of the present invention, radio frequency unit 701 can be used for receiving and sending messages or communication process in, signal Reception and transmission, specifically, by from base station downlink data receive after, handled to processor 710;In addition, by uplink Data sending is to base station.In general, radio frequency unit 701 includes but not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 701 can also by wireless communication system and network and other set Standby communication.
Mobile terminal has provided wireless broadband internet to the user by mixed-media network modules mixed-media 702 and has accessed, and such as helps user to receive Send e-mails, browse webpage and access streaming video etc..
Audio output unit 703 can be receiving by radio frequency unit 701 or mixed-media network modules mixed-media 702 or in memory 709 It is sound that the voice data of storage, which is converted into audio signal and exports,.Moreover, audio output unit 703 can also be provided and moved The relevant audio output of specific function that dynamic terminal 700 performs is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 703 includes loudspeaker, buzzer and receiver etc..
Input unit 704 is used to receive audio or video signal.Input unit 704 can include graphics processor (Graphics Processing Unit, GPU) 7041 and microphone 7042, graphics processor 7041 is in video acquisition mode Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) carry out Reason.Picture frame after processing may be displayed on display unit 706.Picture frame after the processing of graphics processor 7041 can be deposited Storage is transmitted in memory 709 (or other storage mediums) or via radio frequency unit 701 or mixed-media network modules mixed-media 702.Mike Wind 7042 can receive sound, and can be voice data by such acoustic processing.Voice data after processing can be The form output of mobile communication base station can be sent to via radio frequency unit 701 by being converted in the case of telephone calling model.
Mobile terminal 700 further includes at least one sensor 705, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 7061, and proximity sensor can close when mobile terminal 700 is moved in one's ear Display panel 7061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, size and the direction of gravity are can detect that when static, available for identification mobile terminal posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Pass Sensor 705 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared ray sensor etc. are spent, details are not described herein.
Display unit 706 is used for the information for showing by information input by user or being supplied to user.Display unit 706 can wrap Display panel 7061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 7061.
User input unit 707 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal The key signals input that family is set and function control is related.Specifically, user input unit 707 include contact panel 7071 and Other input equipments 7072.Contact panel 7071, also referred to as touch-screen, collect user on it or neighbouring touch operation (for example user uses any suitable objects or annex such as finger, stylus on contact panel 7071 or in contact panel 7071 Neighbouring operation).Contact panel 7071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects the signal that touch operation is brought, and transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 710, receiving area Manage the order that device 710 is sent and performed.It is furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Type realizes contact panel 7071.Except contact panel 7071, user input unit 707 can also include other input equipments 7072.Specifically, other input equipments 7072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, operation lever, details are not described herein.
Further, contact panel 7071 can be covered on display panel 7061, when contact panel 7071 is detected at it On or near touch operation after, send to processor 710 with determine touch event type, be followed by subsequent processing device 710 according to touch The type for touching event provides corresponding visual output on display panel 7061.Although in the figure 7, contact panel 7071 and display Panel 7061 is the component independent as two to realize the function that outputs and inputs of mobile terminal, but in some embodiments In, can be integrated by contact panel 7071 and display panel 7061 and realize the function that outputs and inputs of mobile terminal, it is specific this Place does not limit.
Interface unit 708 is the interface that external device (ED) is connected with mobile terminal 700.For example, external device (ED) can include Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, audio input/output (I/O) port, video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 708 can be used for receive the input (for example, data message, electric power etc.) from external device (ED) and One or more elements that the input received is transferred in mobile terminal 700 can be used in 700 He of mobile terminal Data are transmitted between external device (ED).
Memory 709 can be used for storage software program and various data.Memory 709 can mainly include storing program area And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Voice data, phone directory etc.) etc..In addition, memory 709 can include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 710 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection A part, by running or performing the software program and/or module that are stored in memory 709, and calls and is stored in storage Data in device 709, perform the various functions and processing data of mobile terminal, so as to carry out integral monitoring to mobile terminal.Place Reason device 710 may include one or more processing units;Preferably, processor 710 can integrate application processor and modulatedemodulate is mediated Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main Handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 710.
Mobile terminal 700 can also include the power supply 711 (such as battery) to all parts power supply, it is preferred that power supply 711 Can be logically contiguous by power-supply management system and processor 710, so as to realize management charging by power-supply management system, put The function such as electricity and power managed.
In addition, mobile terminal 700 includes some unshowned function modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 710, and memory 709, is stored in On memory 709 and the image processing program that can run on the processor 710, the image processing program are performed by processor 710 Each process of the above-mentioned image processing method embodiments of Shi Shixian, and identical technique effect can be reached, to avoid repeating, here Repeat no more.
The embodiment of the present invention also provides a kind of computer-readable recording medium, and figure is stored with computer-readable recording medium As processing routine, which realizes each process of above-mentioned image processing method embodiment when being executed by processor, And identical technique effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer-readable recording medium, Such as read-only storage (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, letter Claim RAM), magnetic disc or CD etc..
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those key elements, and And other elements that are not explicitly listed are further included, or further include as this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Also there are other identical element in the process of key element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme substantially in other words does the prior art Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, services Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
The embodiment of the present invention is described above in conjunction with attached drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned embodiment is only schematical, rather than restricted, those of ordinary skill in the art Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make very much Form, belongs within the protection of the present invention.

Claims (10)

  1. A kind of 1. image processing method, it is characterised in that including:
    According to the corresponding first default fillet coefficient in any corner in target image, determine the corresponding radius area in the corner and Corner areas;
    According to the pixel value of each pixel in the corresponding image of the corner areas, effective district is determined in the corner areas Domain, wherein, the effective coverage represents the region for including effective image information in the corner areas;
    According to default compression algorithm, by the corresponding image in the effective coverage and the corresponding compression of images of the radius area to institute State radius area.
  2. 2. the method as described in claim 1, it is characterised in that according to each pixel in the corresponding image of the corner areas Pixel value, determines effective coverage in the corner areas, including:
    Determine the corresponding background colour in first area that the radius area and the corner areas collectively form;
    According to the pixel value of each pixel in the background colour and the corresponding image of the corner areas, in the corner areas Determine effective coverage.
  3. 3. method as claimed in claim 2, it is characterised in that determine that the radius area and the corner areas collectively form The corresponding background colour in first area, including:
    Region division is carried out to the first area by Region Segmentation Algorithm, determines the connected domain in the first area;
    According to the pixel value of each pixel in the corresponding image of the connected domain, the corresponding pixel number of statistics any pixel value Mesh;
    The corresponding color of the most pixel value of pixel number is determined as the background colour.
  4. 4. method as claimed in claim 2 or claim 3, it is characterised in that corresponding according to the background colour and the corner areas The pixel value of each pixel in image, determines effective coverage in the corner areas, including:
    According to the second default fillet coefficient, the corner areas is divided into second area and the 3rd region, described second is default Fillet coefficient is less than the described first default fillet coefficient, wherein, the second area includes the corner, and the 3rd region is Region between the second area and the radius area;
    Determine the corresponding pixel ratio of background colour described in the second area, the pixel ratio is represented in the second area Described in the corresponding pixel number of background colour account for total pixel number purpose ratio;
    If the pixel ratio is more than preset ratio threshold value, the described second default fillet coefficient is increased into preset value, as new The second default fillet coefficient, until the pixel ratio is not more than the preset ratio threshold value;
    If the pixel ratio is not more than the preset ratio threshold value, the 3rd region is determined as the effective coverage.
  5. A kind of 5. mobile terminal, it is characterised in that including:
    Determining module, for according to the corresponding first default fillet coefficient in any corner in target image, determining the corner pair The radius area and corner areas answered;
    The determining module, is additionally operable to the pixel value according to each pixel in the corresponding image of the corner areas, on the side Effective coverage is determined in angular zone, wherein, the effective coverage represents the area for including effective image information in the corner areas Domain;
    Compression module, for according to default compression algorithm, the corresponding image in the effective coverage and the radius area to be corresponded to Compression of images to the radius area.
  6. 6. mobile terminal as claimed in claim 5, it is characterised in that the determining module further comprises:
    Determination unit, the corresponding background in first area collectively formed for determining the radius area and the corner areas Color;
    The determination unit, is additionally operable to the pixel according to each pixel in the background colour and the corresponding image of the corner areas Value, determines effective coverage in the corner areas.
  7. 7. mobile terminal as claimed in claim 6, it is characterised in that the determination unit is specifically used for:
    Region division is carried out to the first area by Region Segmentation Algorithm, determines the connected domain in the first area;
    According to the pixel value of each pixel in the corresponding image of the connected domain, the corresponding pixel number of statistics any pixel value Mesh;
    The corresponding color of the most pixel value of pixel number is determined as the background colour.
  8. 8. mobile terminal as claimed in claims 6 or 7, it is characterised in that the determination unit is specifically used for:
    According to the second default fillet coefficient, the corner areas is divided into second area and the 3rd region, described second is default Fillet coefficient is less than the described first default fillet coefficient, wherein, the second area includes the corner, and the 3rd region is Region between the second area and the radius area;
    Determine the corresponding pixel ratio of background colour described in the second area, the pixel ratio is represented in the second area Described in the corresponding pixel number of background colour account for total pixel number purpose ratio;
    If the pixel ratio is more than preset ratio threshold value, the described second default fillet coefficient is increased into preset value, as new The second default fillet coefficient, until the pixel ratio is not more than the preset ratio threshold value;
    If the pixel ratio is not more than the preset ratio threshold value, the 3rd region is determined as the effective coverage.
  9. 9. a kind of mobile terminal, it is characterised in that including processor, memory and be stored on the memory and can be described The image processing program run on processor, realizes such as claim 1 when described image processing routine is performed by the processor The step of to image processing method any one of 4.
  10. 10. a kind of computer-readable recording medium, it is characterised in that store image procossing on the computer-readable recording medium Program, realizes image processing method according to any one of claims 1 to 4 when described image processing routine is executed by processor The step of method.
CN201711400229.4A 2017-12-22 2017-12-22 Image processing method and mobile terminal Active CN107977947B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711400229.4A CN107977947B (en) 2017-12-22 2017-12-22 Image processing method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711400229.4A CN107977947B (en) 2017-12-22 2017-12-22 Image processing method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107977947A true CN107977947A (en) 2018-05-01
CN107977947B CN107977947B (en) 2019-12-24

Family

ID=62007434

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711400229.4A Active CN107977947B (en) 2017-12-22 2017-12-22 Image processing method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107977947B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112261242A (en) * 2020-10-21 2021-01-22 合肥芯颖科技有限公司 Image data processing method and device
CN113412470A (en) * 2019-04-23 2021-09-17 华为技术有限公司 Method and device for processing image layer
CN113554547A (en) * 2020-04-24 2021-10-26 北京小米移动软件有限公司 Image processing method, image processing device, terminal equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103985084A (en) * 2014-05-06 2014-08-13 青岛海信电器股份有限公司 Image processing method and device
CN106056604A (en) * 2016-05-27 2016-10-26 浙江工业大学 Automatic hollowing method of reinforced reality identifier
CN106875328A (en) * 2015-12-11 2017-06-20 北京新媒传信科技有限公司 Image processing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103985084A (en) * 2014-05-06 2014-08-13 青岛海信电器股份有限公司 Image processing method and device
CN106875328A (en) * 2015-12-11 2017-06-20 北京新媒传信科技有限公司 Image processing method and device
CN106056604A (en) * 2016-05-27 2016-10-26 浙江工业大学 Automatic hollowing method of reinforced reality identifier

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113412470A (en) * 2019-04-23 2021-09-17 华为技术有限公司 Method and device for processing image layer
CN113412470B (en) * 2019-04-23 2023-09-08 华为技术有限公司 Method and device for processing image layer
CN113554547A (en) * 2020-04-24 2021-10-26 北京小米移动软件有限公司 Image processing method, image processing device, terminal equipment and storage medium
EP3901895A1 (en) * 2020-04-24 2021-10-27 Beijing Xiaomi Mobile Software Co., Ltd. Image processing method, apparatus, terminal device and storage medium
US11450005B2 (en) 2020-04-24 2022-09-20 Beijing Xiaomi Mobile Software Co., Ltd. Image processing method, apparatus, terminal device and storage medium
CN112261242A (en) * 2020-10-21 2021-01-22 合肥芯颖科技有限公司 Image data processing method and device
CN112261242B (en) * 2020-10-21 2022-09-27 合肥芯颖科技有限公司 Image data processing method and device

Also Published As

Publication number Publication date
CN107977947B (en) 2019-12-24

Similar Documents

Publication Publication Date Title
CN107908383A (en) A kind of screen color method of adjustment, device and mobile terminal
CN107734260A (en) A kind of image processing method and mobile terminal
CN107948499A (en) A kind of image capturing method and mobile terminal
CN107977652A (en) The extracting method and mobile terminal of a kind of screen display content
CN107833178A (en) A kind of image processing method, device and mobile terminal
CN107786817A (en) A kind of photographic method and mobile terminal
CN108492246A (en) A kind of image processing method, device and mobile terminal
CN107911445A (en) A kind of information push method, mobile terminal and storage medium
CN107845363B (en) A kind of display control method and mobile terminal
CN107845057A (en) One kind is taken pictures method for previewing and mobile terminal
CN108037966A (en) A kind of interface display method, device and mobile terminal
CN107608606A (en) A kind of image display method, mobile terminal and computer-readable recording medium
CN107678829A (en) A kind of application control method and mobile terminal
CN107895143A (en) A kind of finger print information processing method, mobile terminal and computer-readable recording medium
CN107682637A (en) A kind of image pickup method, mobile terminal and computer-readable recording medium
CN107888765A (en) A kind of method of handoff scenario pattern, mobile terminal
CN107786751A (en) A kind of method for broadcasting multimedia file and mobile terminal
CN107846583A (en) A kind of image shadow compensating method and mobile terminal
CN107864336A (en) A kind of image processing method, mobile terminal
CN107682639A (en) A kind of image processing method, device and mobile terminal
CN108093306A (en) A kind of barrage display methods and mobile terminal
CN107977947A (en) A kind of image processing method, mobile terminal
CN109192153A (en) A kind of terminal and terminal control method
CN110138963A (en) A kind of message treatment method and mobile terminal
CN107749761B (en) A kind of anti-interference 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