CN109726716A - A kind of image processing method and system - Google Patents

A kind of image processing method and system Download PDF

Info

Publication number
CN109726716A
CN109726716A CN201811638592.4A CN201811638592A CN109726716A CN 109726716 A CN109726716 A CN 109726716A CN 201811638592 A CN201811638592 A CN 201811638592A CN 109726716 A CN109726716 A CN 109726716A
Authority
CN
China
Prior art keywords
image
processed
grabbed
rgb value
removal
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.)
Pending
Application number
CN201811638592.4A
Other languages
Chinese (zh)
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.)
Shenzhen Quchuang Technology Co Ltd
Original Assignee
Shenzhen Quchuang Technology 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 Shenzhen Quchuang Technology Co Ltd filed Critical Shenzhen Quchuang Technology Co Ltd
Priority to CN201811638592.4A priority Critical patent/CN109726716A/en
Publication of CN109726716A publication Critical patent/CN109726716A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a kind of image processing methods, are applied to mobile terminal, comprising: obtain image to be processed;It receives image and removes information, and information is removed according to described image and identifies the object to be removed in image to be processed;The profile of object to be removed is anchored according to the colouring information of image and removes it from the image to be processed;Image around object to be removed is grabbed according to the colouring information of image;By the position after the image completion grabbed to object removal to be removed.The present invention is by obtaining image to be processed, and information is removed according to externally input image and identifies the object to be removed in image to be processed, the profile of object to be removed is anchored according to the colouring information of image and removes it from image to be processed, the image around object to be removed can be grabbed and filled to the position after object removal to be removed, it may make mobile terminal is not necessarily to repair figure software can remove barrier in picture, it is easy to operate simple, user experience can be improved.

Description

A kind of image processing method and system
Technical field
The present invention relates to field of image processing, relate more specifically to a kind of image processing method and system.
Background technique
It is constantly reformed with progress, intelligent mobile terminal with the development of science and technology.Currently, intelligent mobile terminal because Its multi-functional and portability gradually penetrates into the every aspect of people's life, especially because intelligent mobile terminal setting is taken the photograph As the continuous development of device, people can satisfy on the photo or image either pixel or color of mobile terminal shooting Visual demand, thus mobile terminal gradually instead of profession picture pick-up device, become when people go sightseeing shoot, photograph First-selected instrument.
And continuing to optimize along with mobile terminal camera hardware and software algorithm, the effect that mobile terminal is taken pictures also are got over It is better to come, while major cell phone manufacturer realizes U.S. face, background blurring and various scenes by algorithm in camera shooting process Filtering effects may make the photo later period shot and to hardly need processing and just have reached the effect that user wants, but its For shooting photo in some barriers (or passerby) still need using repair figure software carry out post-processing.
In consideration of it, it is necessary to provide it is a kind of without repair figure software can remove image processing method and the system of barrier with Solve drawbacks described above.
Summary of the invention
It can be removed at the image of barrier technical problem to be solved by the invention is to provide a kind of without repairing figure software Reason method.
Another technical problem to be solved by this invention, which is to provide, a kind of can remove the figure of barrier without repairing figure software As processing system.
In order to solve the above technical problems, it is according to an aspect of the present invention, a kind of image processing method is provided, movement is applied to Terminal, described image processing method include:
Obtain image to be processed;
It receives image and removes information, and information is removed according to described image and identifies the object to be removed in image to be processed Body;
The profile of object to be removed is anchored according to the colouring information of image and removes it from the image to be processed;
Image around object to be removed is grabbed according to the colouring information of image;
By the position after the image completion grabbed to object removal to be removed.
Its further technical solution are as follows: position after the image completion that will be grabbed to object removal to be removed it Afterwards, further includes: to after image completion region and side images carry out Fuzzy Processing.
Its further technical solution are as follows: described to include: according to image around the colouring information of image crawl object to be removed
The rgb value of object circumferential images to be removed is calculated according to the colouring information;
The average RGB value of object circumferential images to be removed is calculated according to rgb value calculated;
Grab the image of the closest average RGB value of rgb value.
Its further technical solution are as follows: the position packet after the image completion that will be grabbed to object removal to be removed It includes:
Obtain the size of object overlay area to be removed;
The picture size grabbed is adjusted to identical as the size of object overlay area to be removed;
By the position after the image completion after size adjusting to object removal to be removed.
According to another aspect of the present invention, a kind of image processing system is provided, which includes:
First obtains module, for obtaining image to be processed;
Identification module for receiving image removal information, and removes information according to described image and identifies image to be processed In object to be removed;
Module is removed, is anchored the profile of object to be removed and by it from described to be processed for the colouring information according to image It is removed in image;
Image-capture module, for grabbing image around object to be removed according to the colouring information of image;
Processing module is filled, for by the position after the image completion grabbed to object removal to be removed.
Its further technical solution are as follows: described image processing system further includes Fuzzy Processing module, for image completion Region and side images afterwards carries out Fuzzy Processing.
Its further technical solution are as follows: described image handling module includes:
Computing unit, for calculating the rgb value of object circumferential images to be removed according to the colouring information;It is also used to basis Rgb value calculated calculates the average RGB value of object circumferential images to be removed;
Extraction unit, for grabbing the image of the closest average RGB value of rgb value.
Its further technical solution are as follows: the filling processing module includes:
Second acquisition unit, for obtaining the size of object overlay area to be removed;
Adjustment unit, for adjusting the picture size grabbed to identical as the size of object overlay area to be removed;
Fills unit, for by the position after the image completion after size adjusting to object removal to be removed.
Compared with prior art, the present invention may make mobile terminal that can remove user in picture without repairing figure software and want to go to The barrier removed, i.e., it is by obtaining image to be processed, and removes information according to externally input image and identify figure to be processed Object to be removed as in is anchored the profile of object to be removed and by it from the image to be processed according to the colouring information of image Middle removal, and image around object to be removed is grabbed according to the colouring information of image, and by the image completion grabbed to wait go It is easy to operate simple except the position after object removal, without spending user's too many time, user experience can be improved.
Detailed description of the invention
Fig. 1 is the flow diagram of one specific embodiment of image processing method of the present invention.
Fig. 2 is the structural block diagram of one specific embodiment of image processing system of the present invention.
Fig. 3 is the specific block diagram representation of image-capture module in Fig. 2.
Fig. 4 is the specific block diagram representation that processing module is filled in Fig. 2.
Specific embodiment
To make those skilled in the art that the object, technical solutions and advantages of the present invention be more clearly understood, with Under the present invention is further elaborated in conjunction with the accompanying drawings and embodiments.
Referring to Fig.1, Fig. 1 is the flow diagram of one specific embodiment of image processing method of the present invention.Shown in the drawings In embodiment, described image processing method is applied to mobile terminal, and the mobile terminal in the present invention can be mobile phone, tablet computer Deng, this method comprises:
S101, image to be processed is obtained.
In the step, mobile terminal obtains image to be processed, image preview when entering image preview mode or edit pattern Mode is the run-up mode of Image Acquisition, completes the various preparation works of Image Acquisition, for example, camera is opened, capture figure Picture can be stored corresponding image as image to be processed to particular memory region when receiving the instruction of confirmation acquisition, and On a display screen, and edit pattern is that user can select figure therein in particular memory region after the completion of Image Acquisition for display As being shown on a display screen as image to be processed.
S102, receive image remove information, and according to described image remove information identify in image to be processed wait go Except object.
In the step, user can remove information by the removal button input picture clicked on display screen, described to be removed Object is the object in the region that the region smeared in image to be processed positioned at user is either outlined with square-shaped frame.
S103, the profile that object to be removed is anchored according to the colouring information of image and by it from the image to be processed It removes.
In the step, based on OpenCV function according to image color information to the color of object to be removed in image to be processed It is identified, and then carries out outline identification to be anchored the profile of object to be removed, and incite somebody to action entire object to be removed from figure to be processed (plucking out) is removed as in.
S104, image around object to be removed is grabbed according to the colouring information of image.
Specifically, in the step, the rgb value of object circumferential images to be removed, and root can be calculated according to the colouring information The average RGB value of object circumferential images to be removed is calculated according to rgb value calculated, and grabs the closest average RGB value of rgb value Image so that filled image overall visual effect is more preferable.
S105, by the position after the image completion grabbed to object removal to be removed.
In the step, pass through the position after the image completion to object removal to be removed around the object to be removed that will grab The region that object to be removed once covered in image i.e. to be processed, it is ensured that the integrality of whole image, and may make whole image More coordinate, to guarantee the visual effect after image removal barrier (object to be removed).Specifically, first when being filled processing The size for first obtaining object overlay area to be removed, by the picture size grabbed adjust to object overlay area to be removed Size is identical, and by the position after the image completion after size adjusting to object removal to be removed.
S106, to after image completion region and side images carry out Fuzzy Processing.
In the step, fuzzy place is carried out to the image behind the region for once covering the image completion of crawl to object to be removed It manages (virtualization processing), fills treated influence of the region to general image visual effect to reduce.
In conclusion image processing method of the present invention can allow mobile terminal is intelligent during shooting to remove picture Middle user wants to go to the barrier (object to be removed) fallen, is thus avoided that the later period takes time to repair execution removal figure in figure software In piece the step of barrier, and for picture editor's scene, do not need profession repairs diagram technology, it is only necessary to click and want After the image removed can reach the effect of same removal barrier, and it removes barrier, can also it grab around barrier Image is simultaneously filled to the position after barrier removal, and the visual effect of image is further increased.
Referring to Figure 2 to Figure 4, Fig. 2 to Fig. 4 illustrates a specific embodiment of image processing system 200 of the present invention.In attached drawing Shown in embodiment, described image processing system 200 includes first obtaining module 201, identification module 202, removal module 203, image-capture module 204, filling processing module 205 and Fuzzy Processing module 206.
Wherein, the first acquisition module 201 is for obtaining image to be processed, wherein mobile terminal enters image preview Image to be processed is obtained when mode or edit pattern, image preview mode is the run-up mode of Image Acquisition, completes image and adopts The various preparation works of collection capture image for example, camera is opened, can will be corresponding when receiving the instruction of confirmation acquisition Image is stored as image to be processed to particular memory region, and is shown on a display screen, and edit pattern, is that Image Acquisition is complete Image therein can be selected to show on a display screen in particular memory region as image to be processed at rear user.The knowledge Other module 202 for receive image removal information, and according to described image remove information identify in image to be processed wait go Except object, wherein the object to be removed is that square is either used in the region smeared out in image to be processed positioned at user The object in region that circle comes out.The removal module 203 is used to be anchored object to be removed according to the colouring information of image Profile simultaneously removes it from the image to be processed;The removal module 203 is based on OpenCV function according to image color information The color of object to be removed in image to be processed is identified, and then carries out outline identification to be anchored the wheel of object to be removed Exterior feature, and entire object to be removed is removed from image to be processed and (plucked out).Described image handling module 204 is used for according to figure The colouring information of picture grabs image around object to be removed, specifically, referring to Fig. 3, in the present embodiment, described image handling module 204 include computing unit 2041 and extraction unit 2042, wherein the computing unit 2041 is used for according to the colouring information The rgb value for calculating object circumferential images to be removed is also used to calculate object circumferential images to be removed according to rgb value calculated Average RGB value;The extraction unit 2042 is used to grab the image of the closest average RGB value of rgb value.The filling handles mould Position after the image completion to object removal to be removed that block 205 is used to be grabbed, the module are to be removed by that will grab The area that object to be removed once covered in the position after image completion to object removal to be removed, that is, image to be processed around object Domain, it is ensured that the integrality of whole image, and whole image may make more to coordinate, to guarantee that image removal barrier is (to be removed Object) after visual effect.The Fuzzy Processing module 206 be used for after image completion region and side images obscure It handles (virtualization processing), fills treated influence of the region to general image visual effect to reduce.
Referring to Fig. 4, in the present embodiment, the filling processing module 205 includes second acquisition unit 2051, adjustment unit 2052 and fills unit 2053, wherein the second acquisition unit 2051 is used to obtain the ruler of object overlay area to be removed It is very little;The adjustment unit 2052 is for adjusting the picture size grabbed to the size phase with object overlay area to be removed Together;The fills unit 2053, for by the position after the image completion after size adjusting to object removal to be removed.
It should be noted that it is apparent to those skilled in the art that, above-mentioned 200 He of image processing system The specific implementation process of each module can refer to the corresponding description in preceding method embodiment, for convenience of description and succinctly, Details are not described herein.
In conclusion the present invention may make mobile terminal that can remove user in picture without repairing figure software and want to go to the barrier removed Hinder object, i.e., it is by obtaining image to be processed, and removes information according to externally input image and identify in image to be processed Object to be removed is anchored the profile of object to be removed and by it from the image to be processed according to the colouring information of image It removes, and image around object to be removed is grabbed according to the colouring information of image, and by the image completion grabbed to object to be removed Position after body removal, it is easy to operate simple, without spending user's too many time, user experience can be improved.
The above description is only a preferred embodiment of the present invention, rather than does limitation in any form to the present invention.This field Technical staff can impose various equivalent changes and improvement, all institutes within the scope of the claims on the basis of the above embodiments The equivalent variations or modification done, should all fall under the scope of the present invention.

Claims (8)

1. a kind of image processing method, it is applied to mobile terminal, which is characterized in that described image processing method includes:
Obtain image to be processed;
It receives image and removes information, and information is removed according to described image and identifies the object to be removed in image to be processed;
The profile of object to be removed is anchored according to the colouring information of image and removes it from the image to be processed;
Image around object to be removed is grabbed according to the colouring information of image;
By the position after the image completion grabbed to object removal to be removed.
2. image processing method as described in claim 1, it is characterised in that: in the image completion that will be grabbed to wait go After the position after object removal, further includes: to after image completion region and side images carry out Fuzzy Processing.
3. image processing method as described in claim 1, it is characterised in that: described to be grabbed according to the colouring information of image wait go Except image includes: around object
The rgb value of object circumferential images to be removed is calculated according to the colouring information;
The average RGB value of object circumferential images to be removed is calculated according to rgb value calculated;
Grab the image of the closest average RGB value of rgb value.
4. image processing method as described in claim 1, it is characterised in that: the image completion that will be grabbed is to be removed Position after object removal includes:
Obtain the size of object overlay area to be removed;
The picture size grabbed is adjusted to identical as the size of object overlay area to be removed;
By the position after the image completion after size adjusting to object removal to be removed.
5. a kind of image processing system, which is characterized in that described image processing system includes:
First obtains module, for obtaining image to be processed;
Identification module for receiving image removal information, and removes information according to described image and identifies in image to be processed Object to be removed;
Module is removed, is anchored the profile of object to be removed and by it from the image to be processed for the colouring information according to image Middle removal;
Image-capture module, for grabbing image around object to be removed according to the colouring information of image;
Processing module is filled, for by the position after the image completion grabbed to object removal to be removed.
6. image processing system as claimed in claim 5, it is characterised in that: described image processing system further includes Fuzzy Processing Module, for after image completion region and side images carry out Fuzzy Processing.
7. image processing system as claimed in claim 5, which is characterized in that described image handling module includes:
Computing unit, for calculating the rgb value of object circumferential images to be removed according to the colouring information;It is also used to according to being counted The rgb value of calculation calculates the average RGB value of object circumferential images to be removed;
Extraction unit, for grabbing the image of the closest average RGB value of rgb value.
8. image processing system as claimed in claim 5, which is characterized in that the filling processing module includes:
Second acquisition unit, for obtaining the size of object overlay area to be removed;
Adjustment unit, for adjusting the picture size grabbed to identical as the size of object overlay area to be removed;
Fills unit, for by the position after the image completion after size adjusting to object removal to be removed.
CN201811638592.4A 2018-12-29 2018-12-29 A kind of image processing method and system Pending CN109726716A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811638592.4A CN109726716A (en) 2018-12-29 2018-12-29 A kind of image processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811638592.4A CN109726716A (en) 2018-12-29 2018-12-29 A kind of image processing method and system

Publications (1)

Publication Number Publication Date
CN109726716A true CN109726716A (en) 2019-05-07

Family

ID=66299333

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811638592.4A Pending CN109726716A (en) 2018-12-29 2018-12-29 A kind of image processing method and system

Country Status (1)

Country Link
CN (1) CN109726716A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110191324A (en) * 2019-06-28 2019-08-30 Oppo广东移动通信有限公司 Image processing method, device, server and storage medium
CN110267009A (en) * 2019-06-28 2019-09-20 Oppo广东移动通信有限公司 Image processing method, device, server and storage medium
CN111858979A (en) * 2020-07-23 2020-10-30 北京京东乾石科技有限公司 Database construction method and device, and obstacle identification method, device and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106603903A (en) * 2015-10-15 2017-04-26 中兴通讯股份有限公司 Photo processing method and apparatus
CN107734260A (en) * 2017-10-26 2018-02-23 维沃移动通信有限公司 A kind of image processing method and mobile terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106603903A (en) * 2015-10-15 2017-04-26 中兴通讯股份有限公司 Photo processing method and apparatus
CN107734260A (en) * 2017-10-26 2018-02-23 维沃移动通信有限公司 A kind of image processing method and mobile terminal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110191324A (en) * 2019-06-28 2019-08-30 Oppo广东移动通信有限公司 Image processing method, device, server and storage medium
CN110267009A (en) * 2019-06-28 2019-09-20 Oppo广东移动通信有限公司 Image processing method, device, server and storage medium
CN110267009B (en) * 2019-06-28 2021-03-12 Oppo广东移动通信有限公司 Image processing method, image processing apparatus, server, and storage medium
CN110191324B (en) * 2019-06-28 2021-09-14 Oppo广东移动通信有限公司 Image processing method, image processing apparatus, server, and storage medium
CN111858979A (en) * 2020-07-23 2020-10-30 北京京东乾石科技有限公司 Database construction method and device, and obstacle identification method, device and system

Similar Documents

Publication Publication Date Title
US10334153B2 (en) Image preview method, apparatus and terminal
WO2018201809A1 (en) Double cameras-based image processing device and method
WO2021073331A1 (en) Zoom blurred image acquiring method and device based on terminal device
JP6905602B2 (en) Image lighting methods, devices, electronics and storage media
CN112492209B (en) Shooting method, shooting device and electronic equipment
US8885091B2 (en) Imaging device and distance information detecting method
KR20150050486A (en) Image processing apparatus, image processing method and program thereof
CN109726716A (en) A kind of image processing method and system
JP3760846B2 (en) Subject extraction device and photographing device
CN110493525A (en) Zoom image determines method and device, storage medium, terminal
CN113630545B (en) Shooting method and equipment
CN110324532A (en) A kind of image weakening method, device, storage medium and electronic equipment
CN105120172A (en) Photographing method for front and rear cameras of mobile terminal and mobile terminal
JP4053764B2 (en) Subject extraction device and photographing device
CN110611768B (en) Multiple exposure photographic method and device
CN112770042B (en) Image processing method and device, computer readable medium, wireless communication terminal
US9020269B2 (en) Image processing device, image processing method, and recording medium
JP2020053774A (en) Imaging apparatus and image recording method
JP2011223294A (en) Imaging apparatus
CN113706421B (en) Image processing method and device, electronic equipment and storage medium
CN101472064A (en) Filming system and method for processing scene depth
US20080088712A1 (en) Slimming Effect For Digital Photographs
CN106161970B (en) A kind of image pickup method, device and mobile terminal
CN114071010A (en) Shooting method and equipment
CN108257086A (en) A kind of method and device of distant view photograph processing

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190507