CN108270973B - Photographing processing method, mobile terminal and computer readable storage medium - Google Patents
Photographing processing method, mobile terminal and computer readable storage medium Download PDFInfo
- Publication number
- CN108270973B CN108270973B CN201810118621.8A CN201810118621A CN108270973B CN 108270973 B CN108270973 B CN 108270973B CN 201810118621 A CN201810118621 A CN 201810118621A CN 108270973 B CN108270973 B CN 108270973B
- Authority
- CN
- China
- Prior art keywords
- picture
- preset
- information
- image
- mobile terminal
- 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.)
- Expired - Fee Related
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 14
- 238000000034 method Methods 0.000 claims abstract description 30
- 238000012545 processing Methods 0.000 claims abstract description 24
- 238000001514 detection method Methods 0.000 claims description 37
- 238000004590 computer program Methods 0.000 claims description 21
- 230000008569 process Effects 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012015 optical character recognition Methods 0.000 description 2
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting 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/6245—Protecting personal data, e.g. for financial or medical purposes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Bioethics (AREA)
- General Health & Medical Sciences (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Databases & Information Systems (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Medical Informatics (AREA)
- Telephone Function (AREA)
- Studio Devices (AREA)
Abstract
The application is applicable to the technical field of terminal photographing, and provides a photographing processing method, a mobile terminal and a computer readable storage medium, which comprise: the method comprises the steps of photographing through a camera of the mobile terminal to obtain a first picture, detecting whether the first picture contains preset information or not, processing the first picture containing the preset information to obtain a second picture if the first picture contains the preset information, storing the second picture in a first storage space without the preset information, and reducing the risk that privacy is revealed through the method.
Description
Technical Field
The present application belongs to the technical field of terminal photographing, and in particular, to a photographing processing method, a mobile terminal, and a computer-readable storage medium.
Background
With the development of information technology, the application of mobile terminals is more and more extensive, most of mobile terminals integrate the photographing function, and users can photograph at any time and any place through a camera carried by the mobile terminals.
However, due to the carelessness of the user, the photos obtained by taking pictures by the mobile terminal are likely to contain personal privacy information, and even if the photos are not forwarded through the network platform, the photos are only stored in the photo album of the mobile phone and risk being leaked. Therefore, the current photographing method has a risk of privacy disclosure.
Disclosure of Invention
In view of this, embodiments of the present application provide a photographing processing method, a mobile terminal, and a computer-readable storage medium, so as to solve the problem that the privacy of the current photographing method is leaked.
A first aspect of an embodiment of the present application provides a photographing processing method, including:
shooting through a camera of a mobile terminal to obtain a first picture, and detecting whether the first picture contains preset information;
if the first picture contains preset information, processing the first picture containing the preset information to obtain a second picture, wherein the second picture does not contain the preset information;
and storing the second picture in a first storage space.
A second aspect of an embodiment of the present application provides a mobile terminal, including:
the mobile terminal comprises a detection module, a processing module and a display module, wherein the detection module is used for obtaining a first picture by photographing through a camera of the mobile terminal and detecting whether the first picture contains preset information;
the processing module is used for processing the first picture containing the preset information to obtain a second picture if the first picture contains the preset information, and the second picture does not contain the preset information;
and the first storage module is used for storing the second picture in a first storage space.
A third aspect of an embodiment of the present application provides a mobile terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method provided in the first aspect of the embodiment of the present application when executing the computer program.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium storing a computer program which, when executed by one or more processors, performs the steps of the method provided by the first aspect of embodiments of the present application.
A fifth aspect of embodiments of the present application provides a computer program product comprising a computer program that, when executed by one or more processors, performs the steps of the method provided by the first aspect of embodiments of the present application.
According to the embodiment of the application, a first picture is obtained by photographing through a camera of the mobile terminal, whether the first picture contains preset information or not is detected, if the first picture contains the preset information, the first picture containing the preset information is processed to obtain a second picture, the second picture does not contain the preset information and is stored in the first storage space, the preset information can be privacy information of a user, when the picture obtained by photographing through the mobile terminal contains the privacy information, the privacy information in the picture is processed to obtain the picture without the privacy information, and the picture without the privacy information is stored, so that the risk that the privacy information of the user is leaked can be reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flow chart illustrating an implementation of a photographing processing method according to an embodiment of the present application;
fig. 2 is a schematic flow chart illustrating an implementation of a photographing processing method according to another embodiment of the present application;
fig. 3 is a schematic block diagram of a mobile terminal provided in an embodiment of the present application;
fig. 4 is a schematic block diagram of a mobile terminal according to another embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.
Fig. 1 is a schematic flow chart of an implementation of a photographing processing method provided in an embodiment of the present application, and is applied to a mobile terminal with a camera, where as shown in the figure, the method may include the following steps:
step S101, a camera of the mobile terminal is used for photographing to obtain a first picture, and whether the first picture contains preset information or not is detected.
In this embodiment of the application, the mobile terminal may be a device with an imaging apparatus, such as a camera, a mobile phone, a tablet computer, and the like, a user may use the mobile terminal to take a picture, an original picture generated after taking the picture is referred to as a first picture, and content in the first picture may be detected to determine whether the content of the first picture includes preset information, where the preset information may be information related to user privacy, and includes: the preset text information and the preset image information may be, for example: money, account password, etc., and the image information may be: avatar information, and the like.
Step S102, if the first picture contains the preset information, the first picture containing the preset information is processed to obtain a second picture, and the second picture does not contain the preset information.
In this embodiment of the application, the preset information may be one or more preset information, and the preset information may also only include text information or only include image information, and of course, may also include both text information and image information. If the first picture contains the preset information, the method comprises the following steps: if the first picture contains one or more pieces of preset information. The processing of the first picture containing the preset information can be realized by processing the area of the preset information in the first picture by using a mosaic, namely, the details of the color level of the area where the preset information is located are degraded and the color blocks are disturbed. After the first picture containing the preset information is processed, the obtained picture is called a second picture, and the preset information cannot be identified in the second picture.
As another embodiment of the present application, if the first picture does not include the preset information, the first picture not including the preset information is stored in the first storage space.
In this embodiment of the present application, if the first picture does not include the preset information: after the first picture is matched with the preset information, the first picture cannot be successfully matched with any preset information, namely the first picture does not contain any preset information. The first storage space may be a default space for storing the photo after taking by the system, for example, a default album, or may be a user-defined space for storing the photo after taking, for example, my picture.
And step S103, storing the second picture in a first storage space.
In this embodiment of the application, the first storage space may be an open storage space, the second picture may be a picture that does not include preset information, or may be a picture that does not include privacy information, and the second picture may be stored in the first storage space, or of course, after the user sets a password in the first storage space, the first storage space may also be an encrypted storage space.
According to the embodiment of the application, a first picture is obtained by photographing through a camera of the mobile terminal, whether the first picture contains preset information or not is detected, if the first picture contains the preset information, the first picture containing the preset information is processed to obtain a second picture, the second picture does not contain the preset information and is stored in the first storage space, the preset information can be privacy information of a user, when the picture obtained by photographing through the mobile terminal contains the privacy information, the privacy information in the picture is processed to obtain the picture without the privacy information, and the picture without the privacy information is stored, so that the risk that the privacy information of the user is leaked can be reduced.
Fig. 2 is a schematic flowchart of a photographing processing method according to another embodiment of the present application, where as shown in the drawing, the method may include the following steps:
step S201, a camera of the mobile terminal is used for photographing to obtain a first picture.
Step S202, recognizing the text information in the first picture, and confirming whether the recognized text information contains preset text information.
In this embodiment of the application, an Optical Character Recognition (OCR) technology may be adopted to recognize the text information in the first picture, and after recognizing the text information, the recognized text information and a position of the corresponding text information in the first picture are recorded. The preset text information may be: preset keywords and preset keywords. For example: account number, password, money, etc.
Step S203, matching the first picture with preset image information to determine whether the first picture includes the preset image information.
In an embodiment of the present application, a scene or image information of a first picture may be analyzed by an Artificial Intelligence (AI) technique to determine whether the first picture includes preset image information.
The preset image information can be stored, and then the characteristics of the preset image information are extracted, or the characteristics of the preset image information can be directly stored.
The process of matching the first picture with preset image information to determine whether the first picture contains the preset image information includes:
extracting the characteristics of a first picture, matching the characteristics of the first picture with the characteristics of preset image information, and determining the size of an image block when the first picture is divided into image blocks according to the matching degree of the first picture and the preset image information to be used as the preset size; (the larger the matching degree is, the larger the divided image blocks are, the smaller the matching degree is, the smaller the divided image blocks are, or the larger the matching degree is, the smaller the number of divided image blocks is, the smaller the matching degree is, the larger the number of divided image blocks is);
dividing the first picture into image blocks with preset sizes or image blocks with preset numbers;
extracting the characteristics of each image block, and matching the characteristics of each image block with the characteristics of preset image information;
if the matching degree of the features of the image block and the features of the preset image information is greater than a first threshold and smaller than a second threshold (the preset image information with the matching degree greater than the first threshold and smaller than the second threshold is associated with the first image block to obtain a second image block), splicing the image block with the matching degree greater than the first threshold and smaller than the second threshold and adjacent (such as left adjacent, right adjacent, upper adjacent and lower adjacent) image blocks to obtain a spliced image block;
and continuously matching the characteristics of the spliced image blocks with the characteristics of the associated preset image information until the matching degree of the spliced image blocks and the preset image information is greater than a second threshold value, which indicates that the first picture contains the preset image information, otherwise, the first picture does not contain the preset image information.
By way of example, assume that a first picture is denoted by a, preset image information is denoted by B, a first threshold value is 60%, and a second threshold value is 90%;
matching the first picture a with preset image information B to obtain a matching degree of 60%, and assuming that the number of 60% corresponding image blocks is 9 blocks, dividing the first picture a into 9 image blocks, specifically into three rows and three columns, where the image block may be represented by Aij, the value range of i is 1, 2, and 3, the value range of j is 1, 2, and 3, that is, the 9 image blocks are respectively: a11, a12, a13, a21, a22, a23, a31, a32, a 33;
respectively matching the image blocks Aij with the image B, if the matching degree of the image block A22 and the image B is 65%, and the matching degree of other image blocks except the image block A22 and the image B is less than 60%, splicing the image block A22 and adjacent image blocks (one or more of A12, A21, A32 and A23) to obtain a spliced image block, wherein one or more adjacent image blocks can be preset to be specifically selected, here, taking selecting one adjacent image block as an example, selecting one image block (A12) with the maximum matching degree with the image B from the adjacent image blocks to obtain a spliced image block (A12+ A22);
continuously matching the spliced image blocks with the image B;
if the matching degree is greater than 90%, it may be determined that the first picture includes the preset image information B, and the position of the preset image information B may be obtained according to a process of matching the image block a12+ a22 after the image block splicing with the preset image information B;
if the matching degree is 75%, acquiring adjacent image blocks (A11, A21, A32, A13 and A23) of A12+ A22, continuously acquiring an image block (A11) with the maximum matching degree with the image B from the adjacent image blocks of A12+ A22, and acquiring a spliced image block (A11+ A12+ A22);
continuing to match the spliced image blocks (A11+ A12+ A22) with the image B;
……;
until the matching degree of the spliced image blocks and the image B is greater than 90%, the first picture can be confirmed to contain preset image information B;
if the image blocks after splicing are: a11+ a12+ a13+ a21+ a22+ a23+ a31+ a32+ a33, that is, the stitched image is the first picture, and since the matching degree of the first picture and the image B is 60%, the first picture does not include the preset image information B.
Step S204, if the first picture contains one or more of preset character information and preset image information, generating a detection frame according to the position of the preset character information and/or the position of the preset image information in the first picture.
In this embodiment of the application, if the first picture includes the preset information, the position of the preset information can be correspondingly obtained, the detection frame can be generated according to the position of the preset information, that is, the preset information detected in the first picture, the detection frame can be in a preset shape such as a rectangle, a circle, a triangle, etc., each detected preset information can be correspondingly generated into a detection frame, each preset information is inside the corresponding detection frame, and it can also be understood that the detection frame is the minimum circumscribed rectangle, the circle, the triangle, etc. in the area where the preset information is located.
The detection frame generated according to the position of the preset information can generate a detection frame according to the character information of the adjacent position of the preset information. For example, assuming that the preset information is a "password", after the position of the "password" is confirmed in the first picture, the position of the text information (for example, the right adjacent preset distance) within the adjacent preset distance of the "password" is recorded at the same time, and the detection frame is generated according to the position of the preset information "password" and the position of the text information within the adjacent preset distance. If the preset distance adjacent to the preset information password does not contain the text information, the detection frame can be generated according to the position of the preset information.
Step S205, performing coding processing on the detection frame region, or setting pixel points of the detection frame region to the same gray value, to obtain a second picture.
In the embodiment of the application, the second picture is obtained by performing coding processing on the detection frame region of the first picture, for example, generating a mosaic in the detection frame region; the second picture may also be obtained by setting pixels in the detection frame region of the first picture to the same gray value, for example, setting coordinates of each pixel point in the detection frame region in the RGB color gamut space to the same coordinate value, that is, the detection frame region displays the same color.
Step S206, storing the second picture in a first storage space, and storing the first picture containing the preset information in a second storage space, where the second storage space is an encrypted storage space.
In this embodiment of the application, the second picture does not include the preset information, the second picture is stored in the first storage space, and meanwhile, the original image of the second picture, that is, the first picture including the preset information may be stored in the second storage space, where the second storage space may be an encrypted storage space, or a folder corresponding to the second storage space is set as a hidden folder. The second storage space can be a private storage space set by a user where the mobile terminal is located, even if the stored picture is the first picture containing the preset information, the user does not need to worry about the leakage of the private information, and the risk of the leakage of the private information is reduced.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Fig. 3 is a schematic block diagram of a mobile terminal according to an embodiment of the present application, and only a portion related to the embodiment of the present application is shown for convenience of description.
The mobile terminal 3 may be a software unit, a hardware unit or a combination of software and hardware unit built in an existing mobile terminal such as a mobile phone and a notebook, may be integrated into the existing mobile terminal such as a mobile phone and a notebook as an independent pendant, and may exist as an independent terminal device.
The mobile terminal 3 includes:
the detection module 31 is configured to take a picture through a camera of the mobile terminal to obtain a first picture, and detect whether the first picture contains preset information;
the processing module 32 is configured to, if the first picture includes preset information, process the first picture including the preset information to obtain a second picture, where the second picture does not include the preset information;
a first storage module 33, configured to store the second picture in a first storage space.
Optionally, the mobile terminal 3 further includes:
the second storage module 34 is configured to store the first picture not containing the preset information in the first storage space if the first picture does not contain the preset information.
Optionally, the first storage module 33 is further configured to:
and storing the first picture containing the preset information in a second storage space, wherein the second storage space is an encrypted storage space.
Optionally, the preset information includes: preset character information and preset image information;
the detection module 31 includes:
a text detection unit 311, configured to identify text information in the first picture, and determine whether the identified text information includes preset text information;
the image detection unit 312 is configured to match the first picture with preset image information to determine whether the first picture includes the preset image information.
Optionally, the processing module 32 includes:
a detection frame generating unit 321, configured to generate a detection frame according to a position of the preset information in the first picture containing the preset information;
and the processing unit 322 is configured to perform coding processing on the detection frame region, or set pixel points of the detection frame region to the same gray value, so as to obtain a second picture.
Optionally, the detection frame is a minimum circumscribed rectangle of the area where the preset information is located.
It will be apparent to those skilled in the art that, for convenience and simplicity of description, the foregoing functional units and modules are merely illustrated in terms of division, and in practical applications, the foregoing functional allocation may be performed by different functional units and modules as needed, that is, the internal structure of the mobile terminal is divided into different functional units or modules to perform all or part of the above described functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the above-mentioned apparatus may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Fig. 4 is a schematic block diagram of a mobile terminal according to another embodiment of the present application. As shown in fig. 4, the mobile terminal 4 of this embodiment includes: one or more processors 40, a memory 41, and a computer program 42 stored in the memory 41 and executable on the processors 40. The processor 40 implements the steps in the above-described embodiments of the photographing processing method, such as the steps S101 to S103 shown in fig. 1, when executing the computer program 42. Alternatively, the processor 40, when executing the computer program 42, implements the functions of the modules/units in the above-described mobile terminal embodiments, such as the functions of the modules 31 to 33 shown in fig. 3.
Illustratively, the computer program 42 may be partitioned into one or more modules/units that are stored in the memory 41 and executed by the processor 40 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 42 in the mobile terminal 4. For example, the computer program 42 may be partitioned into a detection module, a processing module, a first storage module.
The detection module is used for obtaining a first picture by photographing through a camera of the mobile terminal and detecting whether the first picture contains preset information;
the processing module is used for processing the first picture containing the preset information to obtain a second picture if the first picture contains the preset information, and the second picture does not contain the preset information;
the first storage module is used for storing the second picture in a first storage space.
Other modules or units can refer to the description of the embodiment shown in fig. 3, and are not described again here.
The mobile terminal includes, but is not limited to, a processor 40, a memory 41. Those skilled in the art will appreciate that fig. 4 is only one example of a mobile terminal 4 and is not intended to limit the mobile terminal 4 and may include more or fewer components than shown, or some components may be combined, or different components, for example, the mobile terminal may also include input devices, output devices, network access devices, buses, etc.
The Processor 40 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may be an internal storage unit of the mobile terminal 4, such as a hard disk or a memory of the mobile terminal 4. The memory 41 may also be an external storage device of the mobile terminal 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the mobile terminal 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the mobile terminal 4. The memory 41 is used for storing the computer program and other programs and data required by the mobile terminal. The memory 41 may also be used to temporarily store data that has been output or is to be output.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed mobile terminal and method may be implemented in other ways. For example, the above-described embodiments of the mobile terminal are merely illustrative, and for example, the division of the modules or units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.
Claims (9)
1. A photographing processing method, comprising:
shooting through a camera of a mobile terminal to obtain a first picture, and detecting whether the first picture contains preset information; wherein the preset information includes: preset character information and preset image information;
the detecting whether the first picture contains preset information includes:
recognizing the text information in the first picture, and confirming whether the recognized text information contains preset text information or not;
matching the first picture with preset image information to determine whether the first picture contains the preset image information, wherein the steps of:
extracting the characteristics of a first picture, matching the characteristics of the first picture with the characteristics of preset image information, and determining the size of an image block when the first picture is divided into image blocks according to the matching degree of the first picture and the preset image information to be used as the preset size;
dividing the first picture into image blocks with preset sizes;
extracting the characteristics of each image block, and matching the characteristics of each image block with the characteristics of preset image information;
if the matching degree of the characteristics of the image block and the characteristics of the preset image information is larger than a first threshold and smaller than a second threshold, splicing the image block with the matching degree larger than the first threshold and smaller than the second threshold and adjacent image blocks to obtain a spliced image block;
continuously matching the characteristics of the spliced image blocks with the characteristics of the associated preset image information until the matching degree of the spliced image blocks and the preset image information is greater than a second threshold value, which indicates that the first picture contains the preset image information, otherwise, the first picture does not contain the preset image information;
if the first picture contains preset information, processing the first picture containing the preset information to obtain a second picture, wherein the second picture does not contain the preset information;
and storing the second picture in a first storage space.
2. The method as claimed in claim 1, wherein after detecting whether the first picture contains the predetermined information, the method further comprises:
and if the first picture does not contain the preset information, storing the first picture not containing the preset information in a first storage space.
3. The method of claim 1, wherein if the first picture includes predetermined information, the method further comprises:
and storing the first picture containing the preset information in a second storage space, wherein the second storage space is an encrypted storage space.
4. The photo processing method according to any of claims 1 to 3, wherein the processing the first picture containing the preset information to obtain the second picture comprises:
generating a detection frame in the first picture containing the preset information according to the position of the preset information;
and coding the detection frame area, or setting pixel points of the detection frame area to be the same gray value, and obtaining a second picture.
5. The photographing processing method of claim 4, wherein the detection frame is a minimum circumscribed rectangle of the area where the preset information is located.
6. A mobile terminal, comprising:
the mobile terminal comprises a detection module, a processing module and a display module, wherein the detection module is used for obtaining a first picture by photographing through a camera of the mobile terminal and detecting whether the first picture contains preset information; wherein the preset information includes: preset character information and preset image information;
the detecting whether the first picture contains preset information includes:
recognizing the text information in the first picture, and confirming whether the recognized text information contains preset text information or not;
matching the first picture with preset image information to determine whether the first picture contains the preset image information, wherein the steps of:
extracting the characteristics of a first picture, matching the characteristics of the first picture with the characteristics of preset image information, and determining the size of an image block when the first picture is divided into image blocks according to the matching degree of the first picture and the preset image information to be used as the preset size;
dividing the first picture into image blocks with preset sizes;
extracting the characteristics of each image block, and matching the characteristics of each image block with the characteristics of preset image information;
if the matching degree of the characteristics of the image block and the characteristics of the preset image information is larger than a first threshold and smaller than a second threshold, splicing the image block with the matching degree larger than the first threshold and smaller than the second threshold and adjacent image blocks to obtain a spliced image block;
continuously matching the characteristics of the spliced image blocks with the characteristics of the associated preset image information until the matching degree of the spliced image blocks and the preset image information is greater than a second threshold value, which indicates that the first picture contains the preset image information, otherwise, the first picture does not contain the preset image information;
the processing module is used for processing the first picture containing the preset information to obtain a second picture if the first picture contains the preset information, and the second picture does not contain the preset information;
and the first storage module is used for storing the second picture in a first storage space.
7. The mobile terminal of claim 6, further comprising:
and the second storage module is used for storing the first picture which does not contain the preset information in the first storage space if the first picture does not contain the preset information.
8. A mobile terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 5 when executing the computer program.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by one or more processors, implements the steps of the method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810118621.8A CN108270973B (en) | 2018-02-06 | 2018-02-06 | Photographing processing method, mobile terminal and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810118621.8A CN108270973B (en) | 2018-02-06 | 2018-02-06 | Photographing processing method, mobile terminal and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108270973A CN108270973A (en) | 2018-07-10 |
CN108270973B true CN108270973B (en) | 2020-06-30 |
Family
ID=62773705
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810118621.8A Expired - Fee Related CN108270973B (en) | 2018-02-06 | 2018-02-06 | Photographing processing method, mobile terminal and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108270973B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110996010A (en) * | 2019-12-20 | 2020-04-10 | 歌尔科技有限公司 | Camera, image processing method and device thereof, and computer storage medium |
CN114020377A (en) * | 2021-10-15 | 2022-02-08 | 青岛海信移动通信技术股份有限公司 | Terminal device, picture information protection method and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107172344A (en) * | 2017-04-07 | 2017-09-15 | 北京安云世纪科技有限公司 | Shooting file memory method, device and the mobile terminal of a kind of mobile terminal |
CN107333055A (en) * | 2017-06-12 | 2017-11-07 | 美的集团股份有限公司 | Control method, control device, Intelligent mirror and computer-readable recording medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9124762B2 (en) * | 2012-12-20 | 2015-09-01 | Microsoft Technology Licensing, Llc | Privacy camera |
-
2018
- 2018-02-06 CN CN201810118621.8A patent/CN108270973B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107172344A (en) * | 2017-04-07 | 2017-09-15 | 北京安云世纪科技有限公司 | Shooting file memory method, device and the mobile terminal of a kind of mobile terminal |
CN107333055A (en) * | 2017-06-12 | 2017-11-07 | 美的集团股份有限公司 | Control method, control device, Intelligent mirror and computer-readable recording medium |
Also Published As
Publication number | Publication date |
---|---|
CN108270973A (en) | 2018-07-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2016024173A1 (en) | Image processing apparatus and method, and electronic device | |
CN110335216B (en) | Image processing method, image processing apparatus, terminal device, and readable storage medium | |
CN112102164B (en) | Image processing method, device, terminal and storage medium | |
CN108961267B (en) | Picture processing method, picture processing device and terminal equipment | |
CN108898082B (en) | Picture processing method, picture processing device and terminal equipment | |
CN108961183B (en) | Image processing method, terminal device and computer-readable storage medium | |
CN110119733B (en) | Page identification method and device, terminal equipment and computer readable storage medium | |
CN109116129B (en) | Terminal detection method, detection device, system and storage medium | |
CN111783146B (en) | Image processing method and device based on privacy protection and electronic equipment | |
CN111290684B (en) | Image display method, image display device and terminal equipment | |
CN110111241B (en) | Method and apparatus for generating dynamic image | |
CN111131688B (en) | Image processing method and device and mobile terminal | |
CN113627428A (en) | Document image correction method and device, storage medium and intelligent terminal device | |
CN108776800B (en) | Image processing method, mobile terminal and computer readable storage medium | |
CN108270973B (en) | Photographing processing method, mobile terminal and computer readable storage medium | |
CN109981989B (en) | Method and device for rendering image, electronic equipment and computer readable storage medium | |
CN108805838B (en) | Image processing method, mobile terminal and computer readable storage medium | |
CN111428740A (en) | Detection method and device for network-shot photo, computer equipment and storage medium | |
US11017557B2 (en) | Detection method and device thereof | |
CN108932703B (en) | Picture processing method, picture processing device and terminal equipment | |
CN112488054B (en) | Face recognition method, device, terminal equipment and storage medium | |
CN108769521B (en) | Photographing method, mobile terminal and computer readable storage medium | |
US20140307116A1 (en) | Method and system for managing video recording and/or picture taking in a restricted environment | |
CN108776959B (en) | Image processing method and device and terminal equipment | |
WO2021051580A1 (en) | Grouping batch-based picture detection method and apparatus, and 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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200630 |