CN107203964A - Image processing method and device - Google Patents

Image processing method and device Download PDF

Info

Publication number
CN107203964A
CN107203964A CN201710374898.2A CN201710374898A CN107203964A CN 107203964 A CN107203964 A CN 107203964A CN 201710374898 A CN201710374898 A CN 201710374898A CN 107203964 A CN107203964 A CN 107203964A
Authority
CN
China
Prior art keywords
predetermined pattern
image
described image
processing
mirror
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
CN201710374898.2A
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710374898.2A priority Critical patent/CN107203964A/en
Publication of CN107203964A publication Critical patent/CN107203964A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8146Monomedia components thereof involving graphical data, e.g. 3D object, 2D graphics

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)

Abstract

Present disclose provides a kind of image processing method and device, belong to technical field of image processing.Methods described includes:Pass through the camera collection image of mirror image pattern;Detect whether described image includes the first predetermined pattern, the first predetermined pattern is the mirror image pattern of character;When described image includes first predetermined pattern, mirror transformation processing is carried out to first predetermined pattern in described image.The disclosure solve image validity it is relatively low the problem of, improve the validity of image, the disclosure is used for image procossing.

Description

Image processing method and device
Technical field
This disclosure relates to technical field of image processing, more particularly to a kind of image processing method and device.
Background technology
With the development of science and technology, occurring in that increasing network direct broadcasting platform, user can be on network direct broadcasting platform Live various information.
In correlation technique, live mobile phone (mobile phone of such as main broadcaster) can be with the server of the live platform of logging in network, Ran Houzhi Image can be gathered by broadcasting the camera of mobile phone, and live mobile phone can also be sent the image collected to broadcasting by direct broadcast server Put the cell phone (mobile phones of such as spectators), and the image received is shown in order to play mobile phone.
Because main broadcaster gathers image when live usually using the mobile phone front camera of mirror image pattern, and the preposition shooting The image that collects of head is the mirror image character that character in the image of mirror image pattern, image is true character, therefore, image it is true Solidity is relatively low.
The content of the invention
Present disclose provides a kind of image processing method and device.The technical scheme is as follows:
First aspect includes there is provided a kind of image processing method, methods described:
Pass through the camera collection image of mirror image pattern;
Detect whether described image includes the first predetermined pattern, first predetermined pattern is the mirror image pattern of character;
When described image includes first predetermined pattern, mirror is carried out to first predetermined pattern in described image As conversion process.
Optionally, first predetermined pattern in described image carries out mirror transformation processing, including:
Mirror transformation processing is carried out to whole described image.
Optionally, first predetermined pattern in described image carries out mirror transformation processing, including:
First predetermined pattern is extracted from described image;
Mirror transformation processing is carried out to first predetermined pattern extracted, changing patterns are obtained;
After first predetermined pattern in described image carries out mirror transformation processing, methods described is also wrapped Include:
The changing patterns are covered in the predeterminated position in the described image extracted after first predetermined pattern, its In, before first predetermined pattern is extracted from described image, first predetermined pattern is located at the predeterminated position;
When there is blank pixel in the described image after covered with the changing patterns, the blank pixel is filled out Fill.
Optionally, the camera of the mirror image pattern is the front camera of live terminal, and methods described also includes:
Live information is sent to playback terminal by direct broadcast server, the live information includes the figure after processing Picture, the described image after processing is used to be presented on playback terminal.
Optionally, methods described also includes:
Detect whether described image includes the second predetermined pattern;
When described image includes second predetermined pattern, the corresponding default multimedia of second predetermined pattern is determined Information;
Wherein, the live information also includes the default multimedia messages, and the default multimedia messages are used for and place Described image after reason is presented on the playback terminal simultaneously.
Optionally, methods described also includes:
Detect whether to receive the process instruction that user triggers;
It is described to the predetermined pattern carry out mirror transformation processing, including:
When receiving the process instruction, the mirror transformation processing is carried out to the predetermined pattern.
Optionally, methods described also includes:
Detect whether described image includes the 3rd predetermined pattern;
When described image includes three predetermined pattern, horse is carried out to the 3rd predetermined pattern in described image Sai Ke processing.
Optionally, the 3rd predetermined pattern is the pattern for being related to privacy information, and the privacy information includes:Identity card is believed Any information in breath, bank card information and communication number.
Second aspect includes there is provided a kind of image processing apparatus, described image processing unit:
Acquisition module, is configured as the camera collection image by mirror image pattern;
First detection module, is configured as whether detection described image includes the first predetermined pattern, the described first default figure Case is the mirror image pattern of character;
Mirror transformation processing module, is configured as when described image includes first predetermined pattern, to described image In first predetermined pattern carry out mirror transformation processing.
Optionally, the mirror transformation processing module is additionally configured to carry out mirror transformation processing to whole described image.
Optionally, the mirror transformation processing module is additionally configured to:
First predetermined pattern is extracted from described image;
Mirror transformation processing is carried out to first predetermined pattern extracted, changing patterns are obtained;
Described image processing unit also includes:
Overlay module, for the changing patterns to be covered in the described image extracted after first predetermined pattern Predeterminated position, wherein, before first predetermined pattern is extracted from described image, first predetermined pattern is located at described pre- If position;
Module is filled, during for there is blank pixel in the described image after covered with the changing patterns, to described Blank pixel is filled.
Optionally, the camera of the mirror image pattern is the front camera of live terminal, and described image processing unit is also Including:
Sending module, is configured as sending live information, the live information bag to playback terminal by direct broadcast server The described image after processing is included, the described image after processing is used to be presented on playback terminal.
Optionally, described image processing unit also includes:
Second detection module, is configured as whether detection described image includes the second predetermined pattern;
Determining module, is configured as, when described image includes second predetermined pattern, determining the described second default figure The corresponding default multimedia messages of case;
Wherein, the live information also includes the default multimedia messages, and the default multimedia messages are used for and place Described image after reason is presented on the playback terminal simultaneously.
Optionally, described image processing unit also includes:
3rd detection module, is configured as the process instruction for detecting whether to receive user's triggering;
The mirror transformation processing module is additionally configured to, when receiving the process instruction, enter the predetermined pattern The row mirror transformation processing.
Optionally, described image processing unit also includes:
4th detection module, is configured as whether detection described image includes the 3rd predetermined pattern;
Mosaic processing module, is configured as when described image includes three predetermined pattern, in described image The 3rd predetermined pattern carry out mosaic processing.
Optionally, the 3rd predetermined pattern is the pattern for being related to privacy information, and the privacy information includes:Identity card is believed Any information in breath, bank card information and communication number.
The third aspect includes there is provided a kind of image processing apparatus, described image processing unit:
Processing assembly;
It is configured as storing the memory of the executable instruction of the processing assembly;
Wherein, the processing assembly is configured as:Perform the method described in first aspect.
The beneficial effect brought of technical scheme that the disclosure is provided is:
After image is collected by the camera of mirror image pattern, if image include the first predetermined pattern, to this first Predetermined pattern carries out mirror transformation processing so that the first predetermined pattern in the image after processing is corresponding with the first predetermined pattern Actual scene is identical, so that the image after processing and actual scene are even more like, improves the validity of image.
Brief description of the drawings
In order to illustrate more clearly of the technical scheme in the embodiment of the present disclosure, make required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present disclosure, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is a kind of method flow diagram of image processing method according to an exemplary embodiment;
Fig. 2 is a kind of application scenarios schematic diagram of image processing method according to an exemplary embodiment;
Fig. 3 is the method flow diagram of another image processing method according to an exemplary embodiment;
Fig. 4 is a kind of display interface schematic diagram according to an exemplary embodiment;
Fig. 5 is another display interface schematic diagram according to an exemplary embodiment;
Fig. 6 is a kind of mirror transformation processing schematic diagram according to an exemplary embodiment;
Fig. 7 is another mirror transformation processing schematic diagram according to an exemplary embodiment;
Fig. 8 is a kind of mosaic processing schematic diagram according to an exemplary embodiment;
Fig. 9 is a kind of structural representation of the image processing apparatus provided according to an exemplary embodiment;
Figure 10 is the structural representation of another image processing apparatus provided according to an exemplary embodiment;
Figure 11 is the structural representation of another image processing apparatus provided according to an exemplary embodiment;
Figure 12 is the structural representation of another image processing apparatus provided according to an exemplary embodiment;
Figure 13 is a kind of structural representation of the image processing apparatus provided according to another exemplary embodiment;
Figure 14 is the structural representation of another image processing apparatus according to another exemplary embodiment;
Figure 15 is the structural representation of another image processing apparatus provided according to another exemplary embodiment.
Embodiment
To make the purpose, technical scheme and advantage of the disclosure clearer, below in conjunction with accompanying drawing to disclosure embodiment party Formula is described in further detail.
Fig. 1 is a kind of method flow diagram of image processing method according to an exemplary embodiment, as shown in figure 1, The image processing method can include:
In a step 101, the camera collection image of mirror image pattern is passed through.
In a step 102, whether detection image includes the first predetermined pattern, and the first predetermined pattern is the mirror image figure of character Case.
In step 103, when image includes the first predetermined pattern, mirror image change is carried out to the first predetermined pattern in image Change processing.
In summary, in the image processing method provided due to the embodiment of the present disclosure, in the camera by mirror image pattern Collect after image, if image includes the first predetermined pattern, mirror transformation processing is carried out to first predetermined pattern so that place The first predetermined pattern actual scene corresponding with the first predetermined pattern in image after reason is identical, so that the figure after processing As even more like with the scene of reality, the validity of image is improved.
Optionally, the image processing method can be used for live terminal, and the image processing method can be also used for other ends End, the embodiment of the present disclosure is not construed as limiting to this.
Optionally, step 103 can include:Mirror transformation processing is carried out to whole image.
Optionally, step 103 can include:First predetermined pattern is extracted from described image;
Mirror transformation processing is carried out to first predetermined pattern extracted, changing patterns are obtained;
After first predetermined pattern in described image carries out mirror transformation processing, methods described is also wrapped Include:
The changing patterns are covered in the predeterminated position in the described image extracted after first predetermined pattern, its In, before first predetermined pattern is extracted from described image, first predetermined pattern is located at the predeterminated position;
When there is blank pixel in the image after covered with changing patterns, blank pixel is filled.
Optionally, the camera of mirror image pattern is the front camera of live terminal, and the image processing method can also be wrapped Include:
Receive the Living Network address that direct broadcast server is sent;
Live information is sent according to Living Network address, live information includes the image after processing, and the image after processing is used It is presented in by direct broadcast server on playback terminal.
Optionally, the image processing method can also include:
Whether detection image includes the second predetermined pattern;
When image includes the second predetermined pattern, the corresponding default multimedia messages of the second predetermined pattern are determined;
Wherein, live information also includes default multimedia messages, and presetting multimedia messages is used to lead to the image after processing Direct broadcast server is crossed while being presented on playback terminal.
Optionally, the image processing method can also include:
Detect whether to receive the process instruction that user triggers;
Step 103 can include:When receiving process instruction, mirror transformation processing is carried out to predetermined pattern.
Optionally, the image processing method can also include:
Whether detection image includes the 3rd predetermined pattern;
When image includes three predetermined patterns, mosaic processing is carried out to the 3rd predetermined pattern in image.
Optionally, the first predetermined pattern is character.
Optionally, the 3rd predetermined pattern is the pattern for being related to privacy information, and privacy information includes:ID card information, bank Any information in card information and communication number.
In summary, in the image processing method provided due to the embodiment of the present disclosure, in the camera by mirror image pattern Collect after image, if image includes the first predetermined pattern, mirror transformation processing is carried out to first predetermined pattern so that place The first predetermined pattern actual scene corresponding with the first predetermined pattern in image after reason is identical, so that the figure after processing As even more like with the scene of reality, the validity of image is improved.
Fig. 2 is a kind of application scenarios schematic diagram of image processing method according to an exemplary embodiment, such as Fig. 2 institutes Show, live terminal 12 and playback terminal 13 can be set up and communicate after direct broadcast server 11 is logged in the direct broadcast server 11 Connection.Direct broadcast server 11 can manage multiple Living Network addresses.
Example, the communication connection set up between direct broadcast server 11, live terminal 12 and playback terminal 13 can be logical Cross cable network foundation or being set up by wireless network, the embodiment of the present disclosure is not construed as limiting to this.Wherein, have Gauze network can include but is not limited to:USB (English:Universal Serial Bus;Referred to as:USB), wirelessly Network can include but is not limited to:Wireless Fidelity (English:Wireless Fidelity;Referred to as:WIFI), bluetooth, infrared, purple Honeybee (English:Zigbee), data etc..
Fig. 3 is at the method flow diagram of another image processing method according to an exemplary embodiment, the image Reason method can be used for the scene shown in Fig. 2, as shown in figure 3, the image processing method can include:
In step 301, live terminal sends live request to direct broadcast server.
Example, the live terminal landing direct broadcast server of user's control and with direct broadcast server set up communication connection after, If user needs beginning live, user can control live terminal to send live request to direct broadcast server.
The live terminal landing direct broadcast server of user's control and with direct broadcast server set up communication connection after, live terminal User interface can with as shown in figure 4, the button of " I am live " can be shown in the user interface of the live terminal, when with When family needs live, " I the am live " button can be clicked directly on, so that trigger live terminal sends straight to direct broadcast server Broadcast request.
Further, can also be shown in the user interface of live terminal just in live user, and with user's phase The live video of pass.Search box can also be shown in the user interface of the live terminal, that is, when user needs viewing another User it is live when, the search box can be clicked directly on, and the user name of another user is inputted in search box, then, directly The live video of another user can just be shown by broadcasting terminal.
In step 302, direct broadcast server sends the Living Network address of direct broadcast server to live terminal.
Example, direct broadcast server can have multiple Living Network addresses, and direct broadcast server is receiving live terminal hair After the live request sent, direct broadcast server can just be filtered out in multiple Living Network addresses of direct broadcast server one it is live The network address, and the Living Network address that this is filtered out is sent to live terminal.Such as:Direct broadcast server can be according to filtering out The message that the Living Network address generation come includes the Living Network address, and will be live comprising this using a certain communication protocol The message of the network address is sent to live terminal.
In step 303, the camera collection image that live terminal passes through mirror image pattern.
Live terminal is after Living Network address is received, and user can gather image, Ye Jitong with the live terminal of use Cross camera (front camera of such as live terminal) the collection image (multiple image) of mirror image pattern.Optionally, the mirror image mould The camera of formula can not also be the front camera of live terminal, and the embodiment of the present disclosure is not construed as limiting to this.
In step 304, whether live terminal detection image includes the first predetermined pattern, and the first predetermined pattern is character Mirror image pattern.When image includes the first predetermined pattern, step 305 is performed;When image does not include the first predetermined pattern, perform Step 307.
Example, live terminal is after a two field picture is often collected, and whether live terminal can include the with detection image One predetermined pattern.
It should be noted that the characteristic information of the first predetermined pattern can be previously stored with live terminal, live terminal After a two field picture is often collected, live terminal can be just analyzed the information of the two field picture, and by prestore The characteristic information of one predetermined pattern is compared with the information of the two field picture.If the packet of the two field picture contains the first predetermined pattern Characteristic information, it is determined that the two field picture include the first predetermined pattern.If the information of the two field picture does not include the first predetermined pattern Characteristic information, it is determined that the two field picture do not include the first predetermined pattern.
In step 305, live terminal detects whether to receive the process instruction of user's triggering.Received in live terminal During the process instruction of user's triggering, step 306 is performed;When live terminal does not receive the process instruction of user's triggering, perform Step 307.
Example, when image includes the first predetermined pattern, the display interface of live terminal can be with as shown in figure 5, live Terminal can display whether to carry out the first predetermined pattern that in the prompting frame of mirror transformation processing, the prompting frame "Yes" can be included Option and "No" option, so that user selects;Further, live terminal can also be carried out the first predetermined pattern detected Special mark (predetermined pattern of flow control one is framed in such as Fig. 5), in order to inform the position of the predetermined pattern of user first in the picture Put.
If user feels now to need to carry out mirror transformation processing to the first predetermined pattern, as shown in figure 5, user can be with The "Yes" option on display interface is clicked on, so that triggering live terminal receives process instruction, the process instruction can be used for referring to Show that the live predetermined pattern of terminal-pair first carries out mirror transformation processing.If user thinks that now this thing is without to the first predetermined pattern Mirror transformation processing is carried out, then the "No" option that user can be clicked on display interface (does not show that in Fig. 5 and clicks on the dynamic of "No" Make), forbid process instruction so as to trigger live terminal and receive, this forbids process instruction to can serve to indicate that live terminal is forbidden Mirror transformation processing is carried out to the first predetermined pattern.
Within step 306, the first predetermined pattern in live terminal-pair image carries out mirror transformation processing.
If live terminal is by detection, it is determined that receiving the process instruction of user's triggering, then live terminal can be to image In the first predetermined pattern carry out mirror transformation processing.Example, live terminal can be carried out at mirror transformation to whole image Reason, or, live terminal only carries out mirror transformation processing to the first predetermined pattern in image.
As shown in Figure 6, it is assumed that image comprising the first predetermined pattern (such as the first predetermined pattern be character E mirror image pattern) and Other patterns, then live terminal can be to whole image progress mirror transformation processing.After mirror transformation processing is carried out to image, The first predetermined pattern in image is changed into other patterns in the mirror image pattern (namely character E) of the first predetermined pattern, image It is changed into the mirror image pattern of other patterns.
As shown in Figure 7, it is assumed that image comprising the first predetermined pattern (such as the first predetermined pattern be character E mirror image pattern) and Other patterns, then live terminal the first predetermined pattern, and only the first predetermined pattern to extracting can be extracted from image Mirror transformation processing is carried out, changing patterns (namely mirror image pattern of the first predetermined pattern, character E) are obtained.
It should be noted that before the first predetermined pattern is extracted from image, the first predetermined pattern is located at pre- in image If position, extract in the picture after the first predetermined pattern, the corresponding pixel of the first predetermined pattern is changed into blank pixel in image, Now not without pixel value in the corresponding pixel of the first predetermined pattern.Therefore, conversion process is being carried out to the first predetermined pattern Afterwards, live terminal also needs to the predeterminated position being covered in changing patterns on the image extracted after the first predetermined pattern so that become Change pattern to cover the partial blank pixel in image or all blank pixels, to eliminate partial blank pixel or whole blank Pixel.And after cover transformation pattern, in addition it is also necessary to which whether detection in the image after changing patterns covered with also having blank picture Element, if covered with blank pixel is still had in the image after changing patterns, needing to be filled blank pixel (as used Presetted pixel value fills in the blanks pixel, or is filled in the blanks pixel using the pixel value of other pixels around blank pixel), with All blank pixels in image are eliminated, so as to obtain the complete image of a width.It that is to say, live terminal can be only to image In the first predetermined pattern carry out mirror transformation processing, without in image other patterns carry out mirror transformation processing, right Image is carried out after mirror transformation processing, and the first predetermined pattern in image is changed into changing patterns.
In step 307, live terminal sends live information according to Living Network address to direct broadcast server.
The process instruction of user's triggering is not received when image does not include the first predetermined pattern, or in live terminal When, or after the first predetermined pattern in image carries out mirror transformation processing, live terminal can connect according in step 302 The Living Network address received, live information is sent to direct broadcast server.
If it should be noted that detect image in step 304 comprising the first predetermined pattern, and it is live in step 305 Terminal receives the process instruction of user's triggering, then live information can include after live terminal processes (mirror transformation processing) Image.If detecting image in step 304 and not comprising the first predetermined pattern, or, live terminal does not connect in step 305 Receive user triggering process instruction, then live terminal can using the image collected as live information (namely not to collection To image handled).
In step 308, direct broadcast server sends live information to playback terminal.
Example, direct broadcast server can send the live information received to playback terminal, it is achieved thereby that will be straight The live information in terminal is broadcast to send to playback terminal.
In a step 309, live information is presented in playback terminal.
Live information can be presented after live information is received in playback terminal.As playback terminal shows receive straight Broadcast the image in information.
Optionally, live terminal is after image is collected, and whether live terminal can be preset with detection image comprising second Pattern, when image includes the second predetermined pattern, live terminal can determine the corresponding default multimedia letter of the second predetermined pattern Breath.Example, second predetermined pattern can be " heart pattern ", should " heart pattern " corresponding default multimedia messages can be with For the voice messaging of " liking you ".
Optionally, live terminal is after image is collected, and whether live terminal can be preset with detection image comprising the 3rd Pattern, when image includes three predetermined patterns, the 3rd predetermined pattern in live terminal-pair image carries out mosaic processing.Can Choosing, the 3rd predetermined pattern can be the pattern for being related to privacy information, and the privacy information can include:ID card information, bank Any information in card information and communication number.The privacy information can also be not desired to the information seen by other people for other users, The embodiment of the present disclosure is not construed as limiting to this.Optionally, the 3rd predetermined pattern can also be not easy to what is shown to other people including user Image.
As shown in figure 8, during user live broadcast, if the figure that live terminal is collected by the camera of mirror image pattern As including during ID card information, in order to prevent the leakage of ID card information, then the ID card information can be carried out at mosaic Reason.It should be noted that when carrying out mosaic processing to ID card information, only can enter to the ID card information in image Row mosaic processing, without carrying out mosaic processing to the other information in image.
Optionally, the 3rd predetermined pattern can also be the face pattern of user relatives, during user live broadcast, if User is not desired to be easily seen the relatives of user to protect the privacy of relatives, then can set the face pattern of user relatives It is set to the 3rd predetermined pattern.After user is using live mobile phone collection image, live terminal is able to detect that image includes the 3rd Predetermined pattern, then live terminal can be automatically to the 3rd predetermined pattern progress mosaic processing.
If live terminal is after image is collected, it is necessary to which whether detection image includes the first predetermined pattern, the second default figure Case and the 3rd predetermined pattern, and live terminal finishes the first predetermined pattern, the second predetermined pattern and the 3rd predetermined pattern in detection Afterwards, it is determined that the image collected is simultaneously comprising the first predetermined pattern, the second predetermined pattern and the 3rd predetermined pattern, then live terminal Need to carry out mirror transformation processing to the first predetermined pattern, to the 3rd predetermined pattern progress mosaic processing, and it needs to be determined that The default multimedia messages of second predetermined pattern.Now, live terminal is sent to the live information of direct broadcast server in step 307 Include the default multimedia messages of the image after mirror transformation processing and mosaic processing, and the second predetermined pattern.In step In 309, if comprising default multimedia messages in live information, while image of the playback terminal after display processing, playing Terminal also needs to play the default multimedia messages in live information.
If the image that live terminal is collected does not include the first predetermined pattern, the second predetermined pattern and the 3rd predetermined pattern, Then live terminal is without handling the image collected.
In summary, in the image processing method provided due to the embodiment of the present disclosure, in the camera by mirror image pattern Collect after image, if image includes the first predetermined pattern, mirror transformation processing is carried out to first predetermined pattern so that place The first predetermined pattern actual scene corresponding with the first predetermined pattern in image after reason is identical, so that the figure after processing As even more like with the scene of reality, the validity of image is improved.
Fig. 9 is a kind of structural representation of the image processing apparatus provided according to an exemplary embodiment, as shown in figure 9, The image processing apparatus 90 can include:
Acquisition module 901, is configured as the camera collection image by mirror image pattern;
First detection module 902, is configured as whether detection image includes the first predetermined pattern;
Mirror transformation processing module 903, is configured as when image includes the first predetermined pattern, pre- to first in image If pattern carries out mirror transformation processing.
In summary, in the image processing apparatus provided due to the embodiment of the present disclosure, acquisition module is passing through mirror image pattern Camera collect after image, if first detection module detects image comprising the first predetermined pattern, mirror transformation processing Module carries out mirror transformation processing to first predetermined pattern so that the first predetermined pattern and first in the image after processing are pre- If the corresponding actual scene of pattern is identical, so that the image and the scene of reality after processing are even more like, image is improved Validity.
Optionally, mirror transformation processing module 903 is additionally configured to carry out mirror transformation processing to whole image.
Optionally, mirror transformation processing module 903 is additionally configured to:The first predetermined pattern is extracted from image;To extracting The first predetermined pattern gone out carries out mirror transformation processing, obtains changing patterns;
Figure 10 is the structural representation of another image processing apparatus provided according to an exemplary embodiment, such as Figure 10 institutes Show, on the basis of Fig. 9, the image processing apparatus 90 can also include:
Overlay module 910, for the predeterminated position being covered in changing patterns on the image extracted after the first predetermined pattern, Wherein, before the first predetermined pattern is extracted from image, the first predetermined pattern is located at predeterminated position;
Module 911 being filled, during for there is blank pixel in the image after covered with changing patterns, blank pixel being entered Row filling.
Optionally, the camera of mirror image pattern is the front camera of live terminal, and Figure 11 is according to an exemplary implementation The structural representation for another image processing apparatus that example is provided, as shown in figure 11, on the basis of Fig. 9, image procossing dress Putting 90 can also include:
Sending module 904, is configured as sending live information to playback terminal by direct broadcast server, live information includes Image after processing, the image after processing is used to be presented on playback terminal.
Optionally, Figure 12 is the structural representation of another image processing apparatus provided according to an exemplary embodiment, As shown in figure 12, on the basis of Figure 11, the image processing apparatus 90 can also include:
Second detection module 905, is configured as whether detection image includes the second predetermined pattern;
Determining module 906, is configured as, when image includes the second predetermined pattern, determining that the second predetermined pattern is corresponding pre- If multimedia messages;
Wherein, live information also includes default multimedia messages, preset multimedia messages be used for it is same with image after processing When be presented on playback terminal.
Optionally, Figure 13 is a kind of structural representation of the image processing apparatus provided according to another exemplary embodiment, As shown in figure 13, on the basis of Fig. 9, the image processing apparatus 90 can also include:
3rd detection module 907, is configured as the process instruction for detecting whether to receive user's triggering;
Mirror transformation processing module 903 is additionally configured to when receiving process instruction, and mirror image change is carried out to predetermined pattern Change processing.
Optionally, Figure 14 is the structural representation of another image processing apparatus provided according to another exemplary embodiment Figure, as shown in figure 14, on the basis of Fig. 9, the image processing apparatus 90 can also include:
4th detection module 908, is configured as whether detection image includes the 3rd predetermined pattern;
Mosaic processing module 909, is configured as, when image includes three predetermined patterns, presetting the 3rd in image Pattern carries out mosaic processing.
Optionally, the first predetermined pattern is the mirror image pattern of character.
Optionally, the 3rd predetermined pattern is the pattern for being related to privacy information, and privacy information includes:ID card information, bank Any information in card information and communication number.
In summary, in the image processing apparatus provided due to the embodiment of the present disclosure, acquisition module is passing through mirror image pattern Camera collect after image, if first detection module detects image comprising the first predetermined pattern, mirror transformation processing Module carries out mirror transformation processing to first predetermined pattern so that the first predetermined pattern and first in the image after processing are pre- If the corresponding actual scene of pattern is identical, so that the image and the scene of reality after processing are even more like, image is improved Validity.
Figure 15 is the structural representation of another image processing apparatus 1400 according to another exemplary embodiment, should Live terminal 1400 can be the live terminal 12 shown in Fig. 2.For example, image processing apparatus 1400 can be mobile phone, meter Calculation machine, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, individual digital Assistant etc..
Reference picture 15, image processing apparatus 1400 can include following one or more assemblies:Processing assembly 1402, storage Device 1404, power supply module 1406, multimedia groupware 1408, audio-frequency assembly 1410, the interface 1412 of input/output (I/O), sensing Device assembly 1414, and communication component 1416.
The integrated operation of the generally control image processing apparatus 1400 of processing assembly 1402, such as with display, call, number According to communication, the camera operation operation associated with record operation.Processing assembly 1402 can include one or more processors 1420 carry out execute instruction, to complete all or part of step of above-mentioned method.In addition, processing assembly 1402 can include one Or multiple modules, it is easy to the interaction between processing assembly 1402 and other assemblies.For example, processing assembly 1402 can include many matchmakers Module, to facilitate the interaction between multimedia groupware 1408 and processing assembly 1402.
Memory 1404 is configured as storing various types of data supporting the operation in image processing apparatus 1400.This The example of a little data includes the instruction of any application program or method for being operated on image processing apparatus 1400, contact person Data, telephone book data, message, picture, video etc..Memory 1404 by any kind of volatibility or non-volatile can be deposited Store up equipment or combinations thereof is realized, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash memory, disk or CD.
Power supply module 1406 provides electric power for the various assemblies of image processing apparatus 1400.Power supply module 1406 can include Power-supply management system, one or more power supplys, and other generate to for image processing apparatus 1400, manage and to distribute electric power related The component of connection.
Multimedia groupware 1408 is included in one output interface of offer between described image processing unit 1400 and user Screen.In certain embodiments, screen can include liquid crystal display (English:Liquid Crystal Display;Letter Claim:LCD) and touch panel (English:touch panel;Referred to as:TP).If screen includes touch panel, screen can be by reality It is now touch-screen, to receive the input signal from user.It is tactile to sense that touch panel includes one or more touch sensors Touch, slide and touch panel on gesture.The touch sensor can not only sensing touch or sliding action border, and Also detection is touched or slide related duration and pressure with described.In certain embodiments, multimedia groupware 1408 Including a front camera and/or rear camera.When image processing apparatus 1400 be in operator scheme, such as screening-mode or During video mode, front camera and/or rear camera can receive the multi-medium data of outside.Each front camera and Rear camera can be a fixed optical lens system or with focusing and optical zoom capabilities.
Audio-frequency assembly 1410 is configured as output and/or input audio signal.For example, audio-frequency assembly 1410 includes a wheat Gram wind (English:Microphone;Referred to as:MIC), when image processing apparatus 1400 is in operator scheme, such as call model, record When pattern and speech recognition mode, microphone is configured as receiving external audio signal.The audio signal received can be entered One step is stored in memory 1404 or sent via communication component 1416.In certain embodiments, audio-frequency assembly 1410 also includes One loudspeaker, for exports audio signal.
I/O interfaces 1412 are that interface, above-mentioned peripheral interface module are provided between processing assembly 1402 and peripheral interface module Can be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and Locking press button.
Sensor cluster 1414 includes one or more sensors, for providing various aspects for image processing apparatus 1400 State estimation.For example, sensor cluster 1414 can detect opening/closed mode of image processing apparatus 1400, component Relative positioning, such as described component is the display and keypad of image processing apparatus 1400, and sensor cluster 1414 may be used also Changed with the position of 1,400 1 components of detection image processing unit 1400 or image processing apparatus, user and image processing apparatus The existence or non-existence of 1400 contacts, the orientation of image processing apparatus 1400 or acceleration/deceleration and the temperature of image processing apparatus 1400 Degree change.Sensor cluster 1414 can include proximity transducer, be configured to detect in not any physical contact The presence of neighbouring object.Sensor cluster 1414 can also include optical sensor, such as CMOS or ccd image sensor, for Used in imaging applications.In certain embodiments, the sensor cluster 1414 can also include acceleration transducer, and gyroscope is passed Sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1416 is configured to facilitate wired or wireless way between image processing apparatus 1400 and other equipment Communication.Image processing apparatus 1400 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or they Combination.In one exemplary embodiment, communication component 1416 is received from external broadcasting management system via broadcast channel Broadcast singal or broadcast related information.In one exemplary embodiment, the communication component 1416 also includes near-field communication (English Text:Near Field Communication;Referred to as:NFC) module, to promote junction service.For example, can be based in NFC module Radio frequency identification (English:Radio Frequency Identification;Referred to as:RFID) technology, Infrared Data Association's (English Text:InfraredDataAssociation;Referred to as:IrDA) technology, ultra wide band (English:UltraWideband;Referred to as:UWB) Technology, bluetooth (English:Bluetooth;Referred to as:BT) technology and other technologies are realized.
In the exemplary embodiment, image processing apparatus 1400 can be by one or more application specific integrated circuit (English Text:Application Specific Integrated Circuit;Referred to as:ASIC), digital signal processor (English: Digital Signal Processing;Referred to as:DSP), digital signal processing appts (English:Digital Signal Processing device;Referred to as:DSPD), PLD (English:(programmable logic device; Referred to as:PLD), field programmable gate array (English:Field-Programmable GateArray;Referred to as:FPGA), control Device, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 1404 of instruction, above-mentioned instruction can be performed above-mentioned to complete by the processor 1420 of image processing apparatus 1400 Method.For example, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, Tape, floppy disk and optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by image processing apparatus During 1400 computing device so that image processing apparatus 1400 is able to carry out a kind of image processing method, methods described includes:
Pass through the camera collection image of mirror image pattern;
Detect whether described image includes the first predetermined pattern;
When described image includes first predetermined pattern, mirror is carried out to first predetermined pattern in described image As conversion process.
Optionally, first predetermined pattern in described image carries out mirror transformation processing, including:
Mirror transformation processing is carried out to whole described image.
Optionally, the camera of the mirror image pattern is the front camera of live terminal, and methods described also includes:
Live information is sent to playback terminal by direct broadcast server, the live information includes the figure after processing Picture, the described image after processing is used to be presented on playback terminal.
Optionally, methods described also includes:
Detect whether described image includes the second predetermined pattern;
When described image includes second predetermined pattern, the corresponding default multimedia of second predetermined pattern is determined Information;
Wherein, the live information also includes the default multimedia messages, and the default multimedia messages are used for and place Described image after reason is presented on the playback terminal simultaneously.
Optionally, methods described also includes:
Detect whether to receive the process instruction that user triggers;
It is described to the predetermined pattern carry out mirror transformation processing, including:
When receiving the process instruction, the mirror transformation processing is carried out to the predetermined pattern.
Optionally, methods described also includes:
Detect whether described image includes the 3rd predetermined pattern;
When described image includes three predetermined pattern, horse is carried out to the 3rd predetermined pattern in described image Sai Ke processing.
Optionally, first predetermined pattern is the mirror image pattern of character.
Optionally, the 3rd predetermined pattern is the pattern for being related to privacy information, and the privacy information includes:Identity card is believed Any information in breath, bank card information and communication number.
In summary, in the image processing method provided due to the embodiment of the present disclosure, in the camera by mirror image pattern Collect after image, if image includes the first predetermined pattern, mirror transformation processing is carried out to first predetermined pattern so that place The first predetermined pattern actual scene corresponding with the first predetermined pattern in image after reason is identical, so that the figure after processing As even more like with the scene of reality, the validity of image is improved.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the image of foregoing description Processing method embodiment and image processing apparatus embodiment can be referred to mutually, and the embodiment of the present disclosure will not be repeated here.
Above-mentioned embodiment of the present disclosure sequence number is for illustration only, and the quality of embodiment is not represented.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can be by hardware To complete, the hardware of correlation can also be instructed to complete by program, described program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only the alternative embodiment of the disclosure, not to limit the disclosure, all spirit in the disclosure and Within principle, any modification, equivalent substitution and improvements made etc. should be included within the protection domain of the disclosure.

Claims (17)

1. a kind of image processing method, it is characterised in that methods described includes:
Pass through the camera collection image of mirror image pattern;
Detect whether described image includes the first predetermined pattern, first predetermined pattern is the mirror image pattern of character;
When described image includes first predetermined pattern, mirror image change is carried out to first predetermined pattern in described image Change processing.
2. according to the method described in claim 1, it is characterised in that first predetermined pattern in described image is entered The processing of row mirror transformation, including:
Mirror transformation processing is carried out to whole described image.
3. according to the method described in claim 1, it is characterised in that
First predetermined pattern in described image carries out mirror transformation processing, including:
First predetermined pattern is extracted from described image;
Mirror transformation processing is carried out to first predetermined pattern extracted, changing patterns are obtained;
After first predetermined pattern in described image carries out mirror transformation processing, methods described also includes:
The changing patterns are covered in the predeterminated position in the described image extracted after first predetermined pattern, wherein, Extracted from described image before first predetermined pattern, first predetermined pattern is located at the predeterminated position;
When there is blank pixel in the described image after covered with the changing patterns, the blank pixel is filled.
4. according to the method described in claim 1, it is characterised in that the camera of the mirror image pattern is preposition for live terminal Camera, methods described also includes:
Live information is sent to playback terminal by direct broadcast server, the live information includes the described image after processing, place Described image after reason is used to be presented on playback terminal.
5. method according to claim 4, it is characterised in that methods described also includes:
Detect whether described image includes the second predetermined pattern;
When described image includes second predetermined pattern, the corresponding default multimedia letter of second predetermined pattern is determined Breath;
Wherein, the live information also include the default multimedia messages, the default multimedia messages be used for after processing Described image simultaneously be presented on the playback terminal.
6. according to any described method of claim 1 to 5, it is characterised in that methods described also includes:
Detect whether to receive the process instruction that user triggers;
It is described to the predetermined pattern carry out mirror transformation processing, including:
When receiving the process instruction, the mirror transformation processing is carried out to the predetermined pattern.
7. according to any described method of claim 1 to 5, it is characterised in that methods described also includes:
Detect whether described image includes the 3rd predetermined pattern;
When described image includes three predetermined pattern, mosaic is carried out to the 3rd predetermined pattern in described image Processing.
8. method according to claim 7, it is characterised in that
3rd predetermined pattern is the pattern for being related to privacy information, and the privacy information includes:ID card information, bank card letter Any information in breath and communication number.
9. a kind of image processing apparatus, it is characterised in that described image processing unit includes:
Acquisition module, is configured as the camera collection image by mirror image pattern;
First detection module, is configured as whether detection described image includes the first predetermined pattern, and first predetermined pattern is The mirror image pattern of character;
Mirror transformation processing module, is configured as when described image includes first predetermined pattern, in described image First predetermined pattern carries out mirror transformation processing.
10. image processing apparatus according to claim 9, it is characterised in that the mirror transformation processing module also by with It is set to and mirror transformation processing is carried out to whole described image.
11. image processing apparatus according to claim 9, it is characterised in that
The mirror transformation processing module is additionally configured to:
First predetermined pattern is extracted from described image;
Mirror transformation processing is carried out to first predetermined pattern extracted, changing patterns are obtained;
Described image processing unit also includes:
Overlay module, it is default in the described image extracted after first predetermined pattern for the changing patterns to be covered in Position, wherein, before first predetermined pattern is extracted from described image, first predetermined pattern is located at the default position Put;
Module is filled, during for there is blank pixel in the described image after covered with the changing patterns, to the blank Pixel is filled.
12. image processing apparatus according to claim 9, it is characterised in that the camera of the mirror image pattern is live The front camera of terminal, described image processing unit also includes:
Sending module, is configured as sending live information to playback terminal by direct broadcast server, the live information includes place Described image after reason, the described image after processing is used to be presented on playback terminal.
13. image processing apparatus according to claim 12, it is characterised in that described image processing unit also includes:
Second detection module, is configured as whether detection described image includes the second predetermined pattern;
Determining module, is configured as, when described image includes second predetermined pattern, determining second predetermined pattern pair The default multimedia messages answered;
Wherein, the live information also include the default multimedia messages, the default multimedia messages be used for after processing Described image simultaneously be presented on the playback terminal.
14. according to any described image processing apparatus of claim 9 to 13, it is characterised in that described image processing unit is also Including:
3rd detection module, is configured as the process instruction for detecting whether to receive user's triggering;
The mirror transformation processing module is additionally configured to when receiving the process instruction, and institute is carried out to the predetermined pattern State mirror transformation processing.
15. according to any described image processing apparatus of claim 9 to 13, it is characterised in that described image processing unit is also Including:
4th detection module, is configured as whether detection described image includes the 3rd predetermined pattern;
Mosaic processing module, is configured as when described image includes three predetermined pattern, to the institute in described image State the 3rd predetermined pattern and carry out mosaic processing.
16. image processing apparatus according to claim 15, it is characterised in that
3rd predetermined pattern is the pattern for being related to privacy information, and the privacy information includes:ID card information, bank card letter Any information in breath and communication number.
17. a kind of image processing apparatus, it is characterised in that described image processing unit includes:
Processing assembly;
It is configured as storing the memory of the executable instruction of the processing assembly;
Wherein, the processing assembly is configured as:Perform claim requires the method any one of 1-8.
CN201710374898.2A 2017-05-24 2017-05-24 Image processing method and device Pending CN107203964A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710374898.2A CN107203964A (en) 2017-05-24 2017-05-24 Image processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710374898.2A CN107203964A (en) 2017-05-24 2017-05-24 Image processing method and device

Publications (1)

Publication Number Publication Date
CN107203964A true CN107203964A (en) 2017-09-26

Family

ID=59905775

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710374898.2A Pending CN107203964A (en) 2017-05-24 2017-05-24 Image processing method and device

Country Status (1)

Country Link
CN (1) CN107203964A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108055463A (en) * 2017-12-26 2018-05-18 努比亚技术有限公司 Image processing method, terminal and storage medium
CN108235054A (en) * 2017-12-15 2018-06-29 北京奇虎科技有限公司 A kind for the treatment of method and apparatus of live video data
CN113793410A (en) * 2021-08-31 2021-12-14 北京达佳互联信息技术有限公司 Video processing method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150207918A1 (en) * 2013-01-18 2015-07-23 Troy Lockman Mobile system for turning a mobile phone screen into a mirror
CN105657270A (en) * 2016-01-29 2016-06-08 宇龙计算机通信科技(深圳)有限公司 Photographed video processing method, device and equipment
CN105959564A (en) * 2016-06-15 2016-09-21 维沃移动通信有限公司 Photographing method and mobile terminal
WO2016197657A1 (en) * 2016-01-08 2016-12-15 中兴通讯股份有限公司 Photographing processing method and apparatus
CN106341720A (en) * 2016-08-18 2017-01-18 北京奇虎科技有限公司 Method for adding face effects in live video and device thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150207918A1 (en) * 2013-01-18 2015-07-23 Troy Lockman Mobile system for turning a mobile phone screen into a mirror
WO2016197657A1 (en) * 2016-01-08 2016-12-15 中兴通讯股份有限公司 Photographing processing method and apparatus
CN105657270A (en) * 2016-01-29 2016-06-08 宇龙计算机通信科技(深圳)有限公司 Photographed video processing method, device and equipment
CN105959564A (en) * 2016-06-15 2016-09-21 维沃移动通信有限公司 Photographing method and mobile terminal
CN106341720A (en) * 2016-08-18 2017-01-18 北京奇虎科技有限公司 Method for adding face effects in live video and device thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108235054A (en) * 2017-12-15 2018-06-29 北京奇虎科技有限公司 A kind for the treatment of method and apparatus of live video data
CN108055463A (en) * 2017-12-26 2018-05-18 努比亚技术有限公司 Image processing method, terminal and storage medium
CN113793410A (en) * 2021-08-31 2021-12-14 北京达佳互联信息技术有限公司 Video processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107025419B (en) Fingerprint template inputting method and device
JP6543644B2 (en) Video processing method, apparatus, program, and recording medium
CN104267877B (en) The display methods and device of expression picture, electronic equipment
CN106709399A (en) Fingerprint identification method and device
CN105491284A (en) Preview image display method and device
CN103927200B (en) Electronic equipment awakening method and relevant apparatus
CN104731868A (en) Method and device for intercepting advertisements
US20120173744A1 (en) Wireless connection method and apparatus using image recognition in mobile communication terminal
CN104933419A (en) Method and device for obtaining iris images and iris identification equipment
CN104506443A (en) Router setting interface display method and device
CN107592256A (en) Add the method, apparatus and system of good friend
CN108965691A (en) Camera control method, device, mobile terminal and storage medium
CN109120841A (en) Camera control method, device, mobile terminal and storage medium
CN105631804A (en) Image processing method and device
CN107071862A (en) Account binding method and device and smart machine
CN107203964A (en) Image processing method and device
CN105094539B (en) Reference information display methods and device
CN111343402B (en) Display method and electronic equipment
CN106453032A (en) Information pushing method, device and system
CN106817608A (en) Realize the method and device of local display
CN108011191A (en) Antenna, terminal, the method and device for controlling antenna
CN105138956A (en) Face detection method and device
CN104539497B (en) Method for connecting network and device
CN106331328A (en) Information prompting method and device
CN104133553B (en) Webpage content display method and device

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