[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN107770443A - A kind of image processing method, mobile terminal and computer-readable recording medium - Google Patents

A kind of image processing method, mobile terminal and computer-readable recording medium Download PDF

Info

Publication number
CN107770443A
CN107770443A CN201711018577.5A CN201711018577A CN107770443A CN 107770443 A CN107770443 A CN 107770443A CN 201711018577 A CN201711018577 A CN 201711018577A CN 107770443 A CN107770443 A CN 107770443A
Authority
CN
China
Prior art keywords
area
target image
target
image
target object
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
CN201711018577.5A
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201711018577.5A priority Critical patent/CN107770443A/en
Publication of CN107770443A publication Critical patent/CN107770443A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes

Landscapes

  • Engineering & Computer Science (AREA)
  • Bioethics (AREA)
  • Theoretical Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Databases & Information Systems (AREA)
  • Signal Processing (AREA)
  • Medical Informatics (AREA)
  • Multimedia (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses a kind of image processing method, mobile terminal and computer-readable recording medium, described image processing method receives the selection operation that user performs on target image;Based on the selection operation, the first area on the target image is determined;The picture material in second area on the target image is encrypted, wherein, second area is other regions in addition to the first area on the target image on the target image.So; described image processing method can be according to the subregion in the selection operation encrypted image of user; so as to effectively prevent the image in photo or video from surprisingly revealing the privacy information of user, the personal secrets of user are protected, avoid bringing unnecessary trouble to user.

Description

A kind of image processing method, mobile terminal and computer-readable recording medium
Technical field
The present invention relates to image access technical field, more particularly to a kind of image processing method, mobile terminal and computer Readable storage medium storing program for executing.
Background technology
With the continuous development of electronic technology, the function of mobile terminal (such as smart mobile phone, tablet personal computer etc.) is increasingly It is powerful, play indispensable key player in the work and life of people.Mobile terminal typically has phase at present Machine function, people are more and more frequent using the camera function of mobile terminal, such as shooting photo either video or passes through application Photo in routine access camera or picture library, so, easily because of photo or the privacy information of video leakage user.Citing For, enterprise work personnel during external collaborator Video chat with may surprisingly reveal the enterprise's machine write on background blank It is close, or the internal information such as receipt on desk.
Though there is the mode in the presence of privacy information in protection photo or video in the prior art, however, in the prior art only Can be according to the scene automatic identification pre-set, it is impossible to accurately determine user and want hiding object.
The content of the invention
In view of this, the present invention proposes a kind of image processing method, mobile terminal and computer-readable recording medium, with solution Certainly above-mentioned technical problem.
First, to achieve the above object, the present invention proposes a kind of image processing method, applied to mobile terminal, the side Method includes:
Receive the selection operation that user performs on target image;
Based on the selection operation, the first area on the target image is determined;
The picture material in second area on the target image is encrypted, wherein, second area is on the target image Other regions on the target image in addition to the first area.
Alternatively, after the first area determined on the target image, the secondth area on the target image is encrypted Before picture material in domain, methods described also includes:
Detect the edge of target object in first area in the target image;
Wherein, second area is other areas in addition to the target object on the target image on the target image Domain.
Alternatively, the target image is the two field picture in mobile terminal shooting video, and methods described also includes:
Detect the edge of target object in first area in the target image;
Using target object in first area in the image tracking algorithm tracking target image, the shooting video is obtained In include the picture frame of the target object;
According in the target image in first area target object edge, it is determined that including the image of the target object The second area in the region in frame in addition to the target object;
The encryption picture material included in the target object image frame in second area.
Alternatively, the target object includes two dimension or three-dimensional body, described to detect first area in the target image The edge of interior target object, including:
Detect the two-dimentional edge or three-dimensional edges of target object in first area in the target image.
Alternatively, the two-dimentional edge for detecting target object in first area in the target image, including:
The edge of target object in first area in the target image is detected using edge detection algorithm.
Alternatively, the three-dimensional edges for detecting target object in first area in the target image, including:
The edge of target object in first area in the target image is detected using edge detection algorithm;
The threedimensional model of the target object is constructed according to the edge of the target object.
Alternatively, in the detection first area after the edge of target object, methods described also includes:
The profile information at the edge of the target object detected is stored in the database of tree-like hierarchy structure.
Alternatively, before the selection operation that the reception performs on target image, methods described also includes:
Receive the access request that destination application accesses the target image;
Picture material on the encryption target image in second area, including:
Allow the destination application to access the picture material of first area on the target image, and refuse the mesh Mark the picture material that application program accesses second area on the target image.
Further, to achieve the above object, the present invention also provides a kind of mobile terminal, and the mobile terminal includes storage Device, at least one processor and it is stored on the memory and can be at least one journey of at least one computing device Sequence, the step in the method described in any of the above-described is realized when at least one program is by least one computing device Suddenly.
Further, to achieve the above object, the present invention also provides a kind of computer-readable recording medium, the computer Readable storage medium storing program for executing is stored with the executable at least one program of computer, and at least one program is performed by the computer When the computer is performed the step in the method described in any of the above-described.
Compared to prior art, image processing method proposed by the invention receives the choosing that user performs on target image Select operation;Based on the selection operation, the first area on the target image is determined;Encrypt the secondth area on the target image Picture material in domain, wherein, on the target image second area be the target image in addition to the first area Other regions.So, described image processing method can according to the subregion in the selection operation encrypted image of user, so as to It can effectively prevent the image in photo or video from surprisingly revealing the privacy information of user, protect the personal secrets of user, keep away Exempt from customs examination user brings unnecessary trouble.
Brief description of the drawings
Fig. 1 is a kind of hardware architecture diagram for the mobile terminal for realizing each embodiment of the present invention;
Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic flow sheet of image processing method provided in an embodiment of the present invention;
Fig. 4 is a kind of region division schematic diagram of target image provided in an embodiment of the present invention;
Fig. 5 is the schematic flow sheet of another image processing method provided in an embodiment of the present invention;
Fig. 6 is the schematic flow sheet of another image processing method provided in an embodiment of the present invention;
The schematic flow sheet of Fig. 7 another image processing methods provided in an embodiment of the present invention;
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only Be advantageous to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. move Dynamic terminal, and the fixed terminal such as digital TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of each embodiment of the realization present invention, the shifting Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103rd, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit 108th, the part such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less parts, Either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station Downlink information receive after, handled to processor 110;In addition, up data are sent to base station.Generally, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrate Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need To be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is receiving or It is sound that the voice data stored in memory 109, which is converted into audio signal and exported,.Moreover, audio output unit 103 The audio output related to the specific function that mobile terminal 100 performs can also be provided (for example, call signal receives sound, disappeared Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after the processing of graphics processor 1041 can be deposited Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model. Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound Caused noise or interference during frequency signal.
Mobile terminal 100 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, CD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it (for example user uses any suitable objects or annex such as finger, stylus on contact panel 1071 or in contact panel 1071 Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it Contact coordinate is converted into, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel 1061 be the part independent as two to realize the input of mobile terminal and output function, but in certain embodiments, can Input and the output function of mobile terminal are realized so that contact panel 1071 and display panel 1061 is integrated, is not done herein specifically Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and at least one element that the input received is transferred in mobile terminal 100 or can use In transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection Individual part, by running or performing the software program and/or module that are stored in memory 109, and call and be stored in storage Data in device 109, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Place Reason device 110 may include at least one processing unit;Preferably, processor 110 can integrate application processor and modulation /demodulation processing Device, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is mainly located Manage radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) to all parts power supply, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system being based on below to the mobile terminal of the present invention enters Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system Unite as the LTE system of universal mobile communications technology, the UE that the LTE system includes communicating connection successively (User Equipment, is used Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling between EPC203, there is provided carrying and connection management.HSS2032 is all to manage for providing some registers Such as the function of attaching position register (not shown) etc, and preserve some and used about service features, data rate etc. The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And following new network system etc., do not limit herein.
Based on the above-mentioned hardware configuration of mobile terminal 100 and communications network system, each embodiment of the inventive method is proposed. It should be noted that in the embodiment of the present invention, the mobile terminal 100 also includes being arranged on the same face of mobile terminal 100 Two cameras, described two cameras include optical anti-vibration camera lens (OSI), and the optical anti-vibration camera lens includes stabilization Eyeglass.
Refering to Fig. 3, Fig. 3 is a kind of step flow chart of image processing method provided in an embodiment of the present invention, methods described Applied in a mobile terminal, as shown in figure 3, methods described includes:
Step 301, receive the selection operation that user performs on target image.
In the step, methods described receives the selection operation that is performed on target image of user, and the selection operation can be with It is the selection operation of user's selection region on the target image, the region can be arbitrary shape, such as rectangle, triangle Shape, trapezoidal or other any irregular figures.The selection operation can be that user uses the instrument of preset shape described Circle selection operation is performed on target image, can also the sliding trace that is performed on the target image of user be close-shaped cunning Dynamic operation, the embodiment of the present invention are not especially limited to this.
The target image can shoot the preview image in the photo or shooting process of completion, can also clap The a certain two field picture taken the photograph in the video of completion.When the photo that the target image is completed for shooting, methods described is receiving Destination application receives the selection operation that user performs in target image in the case of accessing the access request of the target image, I.e. described step 301 is received in the case that destination application accesses the access request of the target image in methods described and held OK.When the target image is the preview image in shooting process, methods described enters pre- in the camera of the mobile terminal Look under pattern and perform the step 301.When a certain two field picture in the video that the target image is completed for shooting, the side Method performs the step 301 during video is shot.For example, when target image includes the privacy information of user, User can perform selection operation on the target image, and selection does not include the region of the privacy information of user.
Step 302, based on the selection operation, determine the first area on the target image.
In the step, methods described is based on the selection operation, determines the first area on the target image.Work as user Using the instrument of preset shape when performing circle selection operation on the target image, methods described according to the preset shape and The circle selection operation of user determines the first area;When the sliding trace that user performs on the target image is close-shaped Slide when, methods described determines the first area according to the sliding trace of the slide.
For example, it is assumed that selection operation of the user on target image 400 is in the target image The rectangular loop selection operation performed on 400, methods described can determine that the region 401 in the rectangle frame is the target image 400 first area.
It should be noted that in embodiments of the invention, the first area can be a region or multiple Region, the present invention are not especially limited to this.
Picture material in step 303, the encryption target image in second area, wherein, the on the target image Two regions are other regions in addition to the first area on the target image.
In the step, methods described determines that other regions on the target image in addition to the first area are the mesh Second area in logo image, and encrypt the picture material on the target image in second area.For example, such as Fig. 4 institutes Show, methods described can determine that other regions on the target image 400 in addition to the first area 401 are second area 402。
The mode that methods described encrypts the picture material in second area on the target image can be specifically display institute The picture material in first area is stated, and encrypts the picture material on the target image in second area, such as Fuzzy Processing Picture material on the target image in second area.In such manner, it is possible to effectively prevent second area on the target image Leakage of private information, so as to effectively protect the privacy of user, avoid bringing unnecessary trouble to user.
When the target image is the image that destination application request accesses, methods described encrypts the target image The mode of picture material in upper second area accesses first area on the target image for the permission destination application Picture material, and refuse the picture material that the destination application accesses second area on the target image.
In some embodiments of the invention, methods described can also provide user interface and set the target image for user Second area checking information, when destination application needs to access the second area on the target image, the side Method can provide user's validation information, if the checking information of user's input matches with the checking information of the second area, Methods described allows the destination application to access the second area on the target image.So, described in being accessed when needs During second area on target image, input correct checking information and may have access to, provide the user with larger convenience.
In the present embodiment, described image processing method receives the selection operation that user performs on target image;Based on institute Selection operation is stated, first area is determined on the target image;Encrypt in the image on the target image in second area Hold, wherein, second area is other regions in addition to the first area on the target image on the target image.This Sample, described image processing method can be according to the subregions in the selection operation encrypted image of user, so as to effectively anti- Only the image in photo or video surprisingly reveals the privacy information of user, protects the personal secrets of user, avoid to user with Carry out unnecessary trouble.
Referring to Fig. 5, Fig. 5 is the schematic flow sheet of another image processing method provided in an embodiment of the present invention, such as Fig. 5 institutes Show, methods described includes:
The selection operation that step 501, reception perform on target image.
Step 502, based on the selection operation, determine the first area on the target image.
Step 503, the edge for detecting target object in first area in the target image.
In the step, methods described detects the edge of target object in the first area, and the target object can be Two-dimensional bodies or three-dimensional body;Correspondingly, the edge of the target object can be two-dimentional edge or three Tie up edge.
For two-dimensional bodies, methods described can use edge detection algorithm (Canny algorithms, such as Suzuki algorithm) to detect The edge of target object.It is understood that because the contrast of two-dimensional bodies surface straight line is strong, vision algorithm can be passed through Detect the edge of target object.For three-dimensional body, methods described can use edge detection algorithm to detect firstth area The edge of target object in domain, the threedimensional model of the target object is then constructed according to the edge of the target object.
In the embodiment of the present invention, by the object behind the edge of target object in the methods described detection first area The marginal information of body is stored in the mobile terminal, and in some embodiments of the invention, methods described is by the target object Marginal information be stored in the database of tree-like hierarchy structure.
Picture material in step 504, the encryption target image in second area, wherein, the on the target image Two regions are other regions in addition to the target object on the target image.
In the step, methods described determines that other regions in the target image in addition to the target object are the mesh Second area in logo image, and encrypt the picture material on the target image in second area.For example, when the target When image is portrait photographs, some privacy informations in background be present, the regional choice including personage can be the firstth area by user Domain, so, methods described can encrypt the region in addition to personage in photo, avoid exposing the privacy information in background.
Alternatively, the target object includes two dimension or three-dimensional body, described to detect target object in the first area Edge, including:
Detect the two-dimentional edge or three-dimensional edges of target object in the first area.
Alternatively, the two-dimentional edge for detecting target object in first area in the target image, including:
The edge of target object in first area in the target image is detected using edge detection algorithm.
Alternatively, the three-dimensional edges for detecting target object in first area in the target image, including:
The edge of target object in first area in the target image is detected using edge detection algorithm;
The threedimensional model of the target object is constructed according to the edge of the target object.
Alternatively, in the detection first area after the edge of target object, methods described also includes:
The profile information at the edge of the target object detected is stored in the database of tree-like hierarchy structure.
It is described in detail, but is not limited thereto so that the embodiment of the present invention is operated on Android system as an example below.Examine Considering needs, the camera sub-system of methods described offer Android compatible with camera sub-system, wherein, camera sub-system and other sons Between system independently of each other.The request of capture images is sent to camera for destination application, if the destination application It is required that with 1280*960 resolution access camera under preview mode, or require in image capture mode (when shooting) Photo is stored with 640*480 resolution ratio.Stream (i.e. internal damping can be respectively created for different patterns in methods described Area), and buffering area (BufferQueue) is respectively created to buffer the view data under each pattern.Methods described will detect To the information at edge of target object be stored in the buffering area of tree-like hierarchy structure, so, methods described can more be accelerated Speed gets the marginal information of the target object, accelerates response speed, strengthens Consumer's Experience.
Referring to Fig. 6, Fig. 6 is the schematic flow sheet of another image processing method provided in an embodiment of the present invention, such as Fig. 6 institutes Show, methods described includes:
Step 601, receive the selection operation that user performs on target image.
Step 602, based on the selection operation, determine the first area on the target image.
Picture material in step 603, the encryption target image in second area, wherein, the on the target image Two regions are other regions in addition to the first area on the target image.
In the embodiment, the target image shoots the two field picture in video, i.e., described step for the mobile terminal 601 trigger execution in the case where the mobile terminal shoots video.Implementation shown in the step 601 to step 603 and Fig. 3 Step 301 in example is identical to step 303, and here is omitted.
Step 604, the edge for detecting target object in first area in the target image.
In the step, methods described detects the edge of target object in the first area, and the target object can be Two-dimensional bodies or three-dimensional body;Correspondingly, the edge of the target object can be two-dimentional edge or three Tie up edge.
For two-dimensional bodies, methods described can use edge detection algorithm (Canny algorithms, such as Suzuki algorithm) to detect The edge of target object.It is understood that because the contrast of two-dimensional bodies surface straight line is strong, vision algorithm can be passed through Detect the edge of target object.For three-dimensional body, methods described can use edge detection algorithm to detect firstth area The edge of target object in domain, the threedimensional model of the target object is then constructed according to the edge of the target object.
In the embodiment of the present invention, by the object behind the edge of target object in the methods described detection first area The marginal information of body is stored in the mobile terminal, and in some embodiments of the invention, methods described is by the target object Marginal information be stored in the database of tree-like hierarchy structure.
Step 605, target object in first area tracked in the target image using image tracking algorithm, obtained described The picture frame of the target object is included in shooting video.
In the step, methods described tracks in the target image the during the video capture using image tracking algorithm Target object in one region, obtain the picture frame for including the target object in the shooting video.
Step 606, according in the target image in first area target object edge, it is determined that including the object The second area in the region in the picture frame of body in addition to the target object.
In the step, methods described according in the target image in first area target object edge, it is determined that including The second area in the region in the picture frame of the target object in addition to the target object.Specifically, methods described can be The marginal information of the target object of storage is obtained when shooting video, and is identified currently according to the marginal information of the target object Target object in the photo of shooting.It is understood that when the camera of mobile terminal shoots video, due to angle adjustment or The reasons such as person's shake, each two field picture and other two field pictures might have deviation in the video of shooting, and so, the step can be Shoot video when according to the limb recognition of the target object target object, so as to accurate lock onto target object, keep away Exempt to produce deviation.
Step 607, the encryption picture material included in the target object image frame in second area.
In the step, the area in each two field picture for the video that methods described encryption shooting obtains in addition to the target object Domain.For example, when user shoots personage's video, some privacy informations be present in background, user can be in a certain two field picture Middle by the regional choice including personage is first area, and so, methods described can encrypt in the video that shooting obtains and remove personage Outside region, avoid exposing the privacy information in background.
Alternatively, the target object includes two dimension or three-dimensional body, described to detect target object in the first area Edge, including:
Detect the two-dimentional edge or three-dimensional edges of target object in the first area.
Alternatively, the two-dimentional edge for detecting target object in first area in the target image, including:
The edge of target object in first area in the target image is detected using edge detection algorithm.
Alternatively, the three-dimensional edges for detecting target object in first area in the target image, including:
The edge of target object in first area in the target image is detected using edge detection algorithm;
The threedimensional model of the target object is constructed according to the edge of the target object.
Alternatively, in the detection first area after the edge of target object, methods described also includes:
The profile information at the edge of the target object detected is stored in the database of tree-like hierarchy structure.
Referring to Fig. 7, Fig. 7 is the schematic flow sheet of another image processing method provided in an embodiment of the present invention, such as Fig. 7 institutes Show, methods described includes:
Step 701, the access request for receiving destination application access target image.
In the embodiment, methods described receives the access request of destination application access target image.
Step 702, receive the selection operation that user performs on target image.
Step 703, based on the selection operation, determine the first area on the target image.
The step 702 is identical to step 302 with the step 301 in the embodiment shown in Fig. 3 to step 703, herein not Repeat again.
Step 704, allow the destination application to access the picture material of first area on the target image, and refuse The destination application accesses the picture material of second area on the target image absolutely, wherein, the on the target image Two regions are other regions in addition to the first area on the target image.
In the step, methods described allows the image of first area on the destination application access target image Content, and refuse the picture material that the destination application accesses second area on the target image.
For example, it is assumed that a target image includes image in 2 D code information and report messages, and application program A needs The Quick Response Code of the target image is identified, but when report messages are privacy information, user can ask to know in the application program A Not the target image when, it is first area to select the region in the target image where Quick Response Code, and so, methods described is only Allow the application program A to access the first area of the target image, i.e., only allow the application program A to identify the target 2 D code information in image, without allowing the application program A to access the report messages on the target image.So as to convenient The privacy information of user is effectively protected in application program A recognition target images while 2 D code information, is provided the user with conveniently.
One of ordinary skill in the art will appreciate that all or part of step for realizing above-described embodiment method is can be with Completed by the related hardware of at least one programmed instruction, at least one program can be stored in shifting as shown in Figure 1 In the memory 109 of dynamic terminal 100, and can the processor 110 perform, at least one program is by the processor During 110 execution, following steps are realized:
Receive the selection operation that user performs on target image;
Based on the selection operation, the first area on the target image is determined;
The picture material in second area on the target image is encrypted, wherein, second area is on the target image Other regions on the target image in addition to the first area.
Alternatively, after the first area determined on the target image, the secondth area on the target image is encrypted Before picture material in domain, when at least one program is performed by the processor 110, following steps can be also realized:
Detect the edge of target object in first area in the target image;
Wherein, second area is other areas in addition to the target object on the target image on the target image Domain.
Alternatively, the target image shoots the two field picture in video, at least one journey for the mobile terminal When sequence is performed by the processor 110, following steps can be also realized:
Detect the edge of target object in first area in the target image;
Using target object in first area in the image tracking algorithm tracking target image, the shooting video is obtained In include the picture frame of the target object;
According in the target image in first area target object edge, it is determined that including the image of the target object The second area in the region in frame in addition to the target object;
The encryption picture material included in the target object image frame in second area.
Alternatively, the target object includes two dimension or three-dimensional body, described to detect first area in the target image The edge of interior target object, including:
Detect the two-dimentional edge or three-dimensional edges of target object in first area in the target image.
Alternatively, the two-dimentional edge for detecting target object in first area in the target image, including:
The edge of target object in first area in the target image is detected using edge detection algorithm.
Alternatively, the three-dimensional edges for detecting target object in first area in the target image, including:
The edge of target object in first area in the target image is detected using edge detection algorithm;
The threedimensional model of the target object is constructed according to the edge of the target object.
Alternatively, in the detection first area after the edge of target object, at least one program is by institute When stating the execution of processor 110, following steps can be also realized:
The profile information at the edge of the target object detected is stored in the database of tree-like hierarchy structure.
Alternatively, before the selection operation that the reception performs on target image, methods described also includes:
Receive the access request that destination application accesses the target image;
Picture material on the encryption target image in second area, including:
Allow the destination application to access the picture material of first area on the target image, and refuse the mesh Mark the picture material that application program accesses second area on the target image.
One of ordinary skill in the art will appreciate that all or part of step for realizing above-described embodiment method is can be with Completed by the related hardware of at least one programmed instruction, at least one program can be stored in one and computer-readable deposit In storage media, when at least one program is performed, following steps are realized:
Receive the selection operation that user performs on target image;
Based on the selection operation, the first area on the target image is determined;
The picture material in second area on the target image is encrypted, wherein, second area is on the target image Other regions on the target image in addition to the first area.
Alternatively, after the first area determined on the target image, the secondth area on the target image is encrypted Before picture material in domain, when at least one program is performed, following steps can be also realized:
Detect the edge of target object in first area in the target image;
Wherein, second area is other areas in addition to the target object on the target image on the target image Domain.
Alternatively, the target image shoots the two field picture in video, at least one journey for the mobile terminal When sequence is performed, following steps can be also realized:
Detect the edge of target object in first area in the target image;
Using target object in first area in the image tracking algorithm tracking target image, the shooting video is obtained In include the picture frame of the target object;
According in the target image in first area target object edge, it is determined that including the image of the target object The second area in the region in frame in addition to the target object;
The encryption picture material included in the target object image frame in second area.
Alternatively, the target object includes two dimension or three-dimensional body, described to detect first area in the target image The edge of interior target object, including:
Detect the two-dimentional edge or three-dimensional edges of target object in first area in the target image.
Alternatively, the two-dimentional edge for detecting target object in first area in the target image, including:
The edge of target object in first area in the target image is detected using edge detection algorithm.
Alternatively, the three-dimensional edges for detecting target object in first area in the target image, including:
The edge of target object in first area in the target image is detected using edge detection algorithm;
The threedimensional model of the target object is constructed according to the edge of the target object.
Alternatively, in the detection first area after the edge of target object, at least one program is held During row, following steps can be also realized:
The profile information at the edge of the target object detected is stored in the database of tree-like hierarchy structure.
Alternatively, before the selection operation that the reception performs on target image, methods described also includes:
Receive the access request that destination application accesses the target image;
Picture material on the encryption target image in second area, including:
Allow the destination application to access the picture material of first area on the target image, and refuse the mesh Mark the picture material that application program accesses second area on the target image.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those key elements, and And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Other identical element also be present in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, computer, clothes Be engaged in device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of image processing method, applied to mobile terminal, it is characterised in that methods described includes:
Receive the selection operation performed on target image;
Based on the selection operation, the first area on the target image is determined;
The picture material in second area on the target image is encrypted, wherein, second area is described on the target image Other regions on target image in addition to the first area.
2. image processing method as claimed in claim 1, it is characterised in that firstth area determined on the target image After domain, before encrypting the picture material on the target image in second area, methods described also includes:
Detect the edge of target object in first area in the target image;
Wherein, second area is other regions in addition to the target object on the target image on the target image.
3. image processing method as claimed in claim 1, it is characterised in that the target image shoots for the mobile terminal A two field picture in video, methods described also include:
Detect the edge of target object in first area in the target image;
Using target object in first area in the image tracking algorithm tracking target image, obtain wrapping in the shooting video Picture frame containing the target object;
According in the target image in first area target object edge, it is determined that in the picture frame comprising the target object The second area in the region in addition to the target object;
The encryption picture material included in the target object image frame in second area.
4. image processing method as claimed in claim 2 or claim 3, it is characterised in that the target object includes two dimension or three-dimensional Object, the edge for detecting target object in first area in the target image, including:
Detect the two-dimentional edge or three-dimensional edges of target object in first area in the target image.
5. image processing method as claimed in claim 4, it is characterised in that first area in the detection target image The two-dimentional edge of interior target object, including:
The edge of target object in first area in the target image is detected using edge detection algorithm.
6. image processing method as claimed in claim 4, it is characterised in that first area in the detection target image The three-dimensional edges of interior target object, including:
The edge of target object in first area in the target image is detected using edge detection algorithm;
The threedimensional model of the target object is constructed according to the edge of the target object.
7. image processing method as claimed in claim 2 or claim 3, it is characterised in that target in the detection first area After the edge of object, methods described also includes:
The profile information at the edge of the target object detected is stored in the database of tree-like hierarchy structure.
8. image processing method as claimed in claim 1, it is characterised in that described to receive the selection performed on target image Before operation, methods described also includes:
Receive the access request that destination application accesses the target image;
Picture material on the encryption target image in second area, including:
Allow the destination application to access the picture material of first area on the target image, and refuse the target and answer Described in routine access on target image second area picture material.
9. a kind of mobile terminal, it is characterised in that the mobile terminal includes memory, at least one processor and is stored in institute State on memory and can at least one program of at least one computing device, at least one program by it is described extremely The step in the method described in any one of the claims 1~8 is realized during a few computing device.
10. a kind of computer-readable recording medium, the computer-readable recording medium storage has computer executable at least One program, it is characterised in that at least one program makes the computer perform above-mentioned power when being performed by the computer Profit requires the step in the method described in 1~8 any one.
CN201711018577.5A 2017-10-26 2017-10-26 A kind of image processing method, mobile terminal and computer-readable recording medium Pending CN107770443A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711018577.5A CN107770443A (en) 2017-10-26 2017-10-26 A kind of image processing method, mobile terminal and computer-readable recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711018577.5A CN107770443A (en) 2017-10-26 2017-10-26 A kind of image processing method, mobile terminal and computer-readable recording medium

Publications (1)

Publication Number Publication Date
CN107770443A true CN107770443A (en) 2018-03-06

Family

ID=61271249

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711018577.5A Pending CN107770443A (en) 2017-10-26 2017-10-26 A kind of image processing method, mobile terminal and computer-readable recording medium

Country Status (1)

Country Link
CN (1) CN107770443A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109918882A (en) * 2019-02-01 2019-06-21 维沃移动通信有限公司 A kind of image encryption method and mobile terminal
CN110490001A (en) * 2019-08-26 2019-11-22 西安闻泰电子科技有限公司 Check the method, apparatus, equipment and storage medium of image
CN111159749A (en) * 2019-12-31 2020-05-15 Oppo广东移动通信有限公司 Photographing method, photographing device, mobile terminal and computer readable storage medium
CN112449102A (en) * 2019-09-03 2021-03-05 联发科技股份有限公司 Private image encryption method and device
CN112839244A (en) * 2019-11-22 2021-05-25 北京大学 Monitoring video grading encryption and decryption method and system based on code stream grade
CN114679518A (en) * 2022-03-31 2022-06-28 维沃移动通信有限公司 Image display method and device and electronic equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103796034A (en) * 2012-10-26 2014-05-14 镇江鼎拓科技信息有限公司 Video integrated system under collaboration platform system architecture based on streaming media technology
CN104796594A (en) * 2014-01-16 2015-07-22 中兴通讯股份有限公司 Preview interface special effect real-time presenting method and terminal equipment
CN104966067A (en) * 2015-06-29 2015-10-07 福建天晴数码有限公司 Image processing method and system for protecting privacy
CN106485164A (en) * 2016-09-27 2017-03-08 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN106570408A (en) * 2015-10-08 2017-04-19 阿里巴巴集团控股有限公司 Sensitive information display method and apparatus
CN106650467A (en) * 2016-09-22 2017-05-10 宇龙计算机通信科技(深圳)有限公司 Method, mobile terminal and system for data encryption
CN107122679A (en) * 2017-05-16 2017-09-01 北京小米移动软件有限公司 Image processing method and device
CN107133993A (en) * 2017-04-19 2017-09-05 珠海市魅族科技有限公司 A kind of image processing method and device
CN107134008A (en) * 2017-05-10 2017-09-05 广东技术师范学院 A kind of method and system of the dynamic object identification based under three-dimensional reconstruction

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103796034A (en) * 2012-10-26 2014-05-14 镇江鼎拓科技信息有限公司 Video integrated system under collaboration platform system architecture based on streaming media technology
CN104796594A (en) * 2014-01-16 2015-07-22 中兴通讯股份有限公司 Preview interface special effect real-time presenting method and terminal equipment
CN104966067A (en) * 2015-06-29 2015-10-07 福建天晴数码有限公司 Image processing method and system for protecting privacy
CN106570408A (en) * 2015-10-08 2017-04-19 阿里巴巴集团控股有限公司 Sensitive information display method and apparatus
CN106650467A (en) * 2016-09-22 2017-05-10 宇龙计算机通信科技(深圳)有限公司 Method, mobile terminal and system for data encryption
CN106485164A (en) * 2016-09-27 2017-03-08 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN107133993A (en) * 2017-04-19 2017-09-05 珠海市魅族科技有限公司 A kind of image processing method and device
CN107134008A (en) * 2017-05-10 2017-09-05 广东技术师范学院 A kind of method and system of the dynamic object identification based under three-dimensional reconstruction
CN107122679A (en) * 2017-05-16 2017-09-01 北京小米移动软件有限公司 Image processing method and device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109918882A (en) * 2019-02-01 2019-06-21 维沃移动通信有限公司 A kind of image encryption method and mobile terminal
CN109918882B (en) * 2019-02-01 2023-11-21 维沃移动通信有限公司 Image encryption method and mobile terminal
CN110490001A (en) * 2019-08-26 2019-11-22 西安闻泰电子科技有限公司 Check the method, apparatus, equipment and storage medium of image
CN110490001B (en) * 2019-08-26 2023-05-16 西安闻泰电子科技有限公司 Method, device, equipment and storage medium for viewing image
CN112449102A (en) * 2019-09-03 2021-03-05 联发科技股份有限公司 Private image encryption method and device
CN112449102B (en) * 2019-09-03 2022-05-31 联发科技股份有限公司 Private image encryption method and device
CN112839244A (en) * 2019-11-22 2021-05-25 北京大学 Monitoring video grading encryption and decryption method and system based on code stream grade
CN112839244B (en) * 2019-11-22 2022-03-25 北京大学 Monitoring video grading encryption and decryption method and system based on code stream grade
CN111159749A (en) * 2019-12-31 2020-05-15 Oppo广东移动通信有限公司 Photographing method, photographing device, mobile terminal and computer readable storage medium
CN114679518A (en) * 2022-03-31 2022-06-28 维沃移动通信有限公司 Image display method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN107770443A (en) A kind of image processing method, mobile terminal and computer-readable recording medium
CN107229402A (en) Dynamic screenshotss method, device and the readable storage medium storing program for executing of terminal
CN109151169A (en) Camera right management method, mobile terminal and computer readable storage medium
CN108900778A (en) A kind of image pickup method, mobile terminal and computer readable storage medium
CN107729133A (en) A kind of method, terminal and computer-readable recording medium for running application program
CN108289174A (en) A kind of image pickup method, mobile terminal and computer readable storage medium
CN108733811A (en) A kind of file access method, terminal and computer readable storage medium
CN108063901A (en) A kind of image-pickup method, terminal and computer readable storage medium
CN108184051A (en) A kind of main body image pickup method, equipment and computer readable storage medium
CN107239205A (en) A kind of photographic method, mobile terminal and storage medium
CN107404618A (en) A kind of image pickup method and terminal
CN107483804A (en) A kind of image pickup method, mobile terminal and computer-readable recording medium
CN107682630A (en) Dual camera anti-fluttering method, mobile terminal and computer-readable recording medium
CN107426441A (en) A kind of displaying method of terminal, terminal and computer-readable recording medium
CN110189368A (en) Method for registering images, mobile terminal and computer readable storage medium
CN107613206A (en) A kind of image processing method, mobile terminal and computer-readable recording medium
CN108307111A (en) A kind of zoom photographic method, mobile terminal and storage medium
CN107347117A (en) A kind of message management method, mobile terminal and computer-readable recording medium
CN108111761A (en) A kind of stabilization processing method, terminal and computer readable storage medium
CN107194217A (en) User data access control method, equipment and computer-readable recording medium
CN110064196A (en) Method for controlling mobile terminal, mobile terminal and computer readable storage medium
CN108900765A (en) A kind of shooting based reminding method, mobile terminal and computer readable storage medium
CN108282608A (en) Multizone focusing method, mobile terminal and computer readable storage medium
CN108366303A (en) A kind of video broadcasting method, mobile terminal and computer readable storage medium
CN108229389A (en) Facial image processing method, apparatus and computer readable storage medium

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

Application publication date: 20180306

RJ01 Rejection of invention patent application after publication