CN109040594B - Photographing method and device - Google Patents

Photographing method and device Download PDF

Info

Publication number
CN109040594B
CN109040594B CN201810972155.XA CN201810972155A CN109040594B CN 109040594 B CN109040594 B CN 109040594B CN 201810972155 A CN201810972155 A CN 201810972155A CN 109040594 B CN109040594 B CN 109040594B
Authority
CN
China
Prior art keywords
image
shooting
processed
photographic
target
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.)
Active
Application number
CN201810972155.XA
Other languages
Chinese (zh)
Other versions
CN109040594A (en
Inventor
宋洪磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Advanced New Technologies 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 Advanced New Technologies Co Ltd filed Critical Advanced New Technologies Co Ltd
Priority to CN201810972155.XA priority Critical patent/CN109040594B/en
Publication of CN109040594A publication Critical patent/CN109040594A/en
Application granted granted Critical
Publication of CN109040594B publication Critical patent/CN109040594B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The embodiment of the specification provides a photographing method and a photographing device, wherein the method comprises the following steps: acquiring a first image; recognizing a photographic object in a first image; selecting a photographic object to be processed from the recognized photographic objects; and carrying out fuzzy processing on the shot object to be processed in the first image to obtain a second image. The device includes: the first acquisition module is used for acquiring a first image; the first identification module is used for identifying a shooting object in the first image; the selection module is used for selecting a shooting object to be processed from the identified shooting objects; and the image processing module is used for carrying out fuzzy processing on the shooting object to be processed in the first image to obtain a second image. Therefore, in the embodiment of the specification, in the process of image acquisition, the non-shooting target in the acquired image can be identified, and the non-shooting target in the acquired image is subjected to fuzzy processing, so that the privacy of a user is effectively protected, and the safety is high.

Description

Photographing method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to a photographing method and apparatus.
Background
In recent years, with the popularization of intelligent operating systems and the rapid upgrade of hardware configuration, the photographing function of terminal equipment is more and more excellent, and people can use the terminal equipment to take photos anytime and anywhere in life and work.
However, in some scenarios, such as news interviews, public relations promotion, network communication, map processing, etc., if non-photographic targets other than photographic targets appear in the photographed photos, especially when the photographed photos are widely distributed in public channels, the privacy of the non-photographic targets is easily revealed. Therefore, it is necessary to provide a photographing method with high safety.
Disclosure of Invention
The embodiment of the specification aims to provide a photographing method and a photographing device, and the embodiment of the specification is realized as follows:
in a first aspect, a photographing method is provided, the method comprising:
acquiring a first image;
identifying a photographic object in the first image;
selecting a photographic object to be processed from the recognized photographic objects;
and carrying out fuzzy processing on the shot object to be processed in the first image to obtain a second image.
In a second aspect, there is provided a photographing apparatus, the apparatus comprising:
the first acquisition module is used for acquiring a first image;
the first identification module is used for identifying a shooting object in the first image;
the selection module is used for selecting a shooting object to be processed from the identified shooting objects;
and the image processing module is used for carrying out fuzzy processing on the shooting object to be processed in the first image to obtain a second image.
In a third aspect, an electronic device is provided, including:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
acquiring a first image;
identifying a photographic object in the first image;
selecting a photographic object to be processed from the recognized photographic objects;
and carrying out fuzzy processing on the shot object to be processed in the first image to obtain a second image.
In a fourth aspect, a computer storage medium is provided that stores one or more programs that, when executed by an electronic device that includes a plurality of application programs, cause the electronic device to:
acquiring a first image;
identifying a photographic object in the first image;
selecting a photographic object to be processed from the recognized photographic objects;
and carrying out fuzzy processing on the shot object to be processed in the first image to obtain a second image.
As can be seen from the technical solutions provided by the embodiments of the present specification, in the process of image acquisition, a non-photographic target in an acquired image can be identified, and the non-photographic target in the acquired image is subjected to blurring processing, so that the privacy of a user is effectively protected, and the security is high.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present specification, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort.
FIG. 1 is a flow diagram of a method of taking a picture according to one embodiment of the present description;
FIG. 2 is a diagram of an example of a method of taking a picture according to one embodiment of the present description;
FIG. 3 is a flow chart of a method of taking a picture according to another embodiment of the present description;
FIG. 4 is a flow chart of a method of taking a picture according to another embodiment of the present description;
fig. 5 is a schematic structural view of a photographing apparatus according to an embodiment of the present specification;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present specification.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present specification, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present specification without any creative effort shall fall within the protection scope of the present specification.
The embodiment of the specification provides a photographing method and device.
Some concepts involved in the embodiments of the present description will be described first below.
The face recognition technology comprises the following steps: is a biological identification technology for identifying the identity based on the face characteristic information of a person. Specifically, a related technology, also called "face recognition or facial recognition", is a technology in which an image including a face is captured by an image capturing device, the face is automatically detected in the image, and a series of processes are performed on the detected face.
The photographing device comprises: is a physical device that can capture images and temporarily or permanently store the captured images including, but not limited to, cell phones, tablet computers, digital cameras, personal digital assistants, and the like.
And (3) photographing program: the application programs for acquiring images and converting the images into images for storage by using the photographing device and the image processing technology include but are not limited to software, applets, mobile phone application programs, webpages with interactive functions, modules supporting the photographing function in an operating system and the like.
Next, a photographing method provided in an embodiment of the present specification will be described.
It should be noted that the photographing method provided in the embodiment of the present specification is applicable to a photographing apparatus, and in practical application, the photographing apparatus may include: such as a mobile phone, a tablet computer, a digital camera, a personal digital assistant, etc., which are not limited in this specification.
Fig. 1 is a flowchart of a photographing method according to an embodiment of the present disclosure, and as shown in fig. 1, the method may include the steps of: step 102, step 104, step 106, and step 108, wherein,
in step 102, a first image is acquired.
In the embodiment of the present specification, a user may trigger the shooting device to start shooting, that is, to acquire the first image, by clicking a specific shooting button or in a voice control manner.
In step 104, a photographic subject in the first image is identified.
In the embodiments of the present specification, the subject may include: a human face or a license plate.
In the embodiment of the present specification, when the shooting object is a face, a face recognition technology may be used to recognize all faces in the first image; when the shooting object is a license plate, all license plates in the first image can be identified by using a license plate identification technology.
In step 106, a photographic subject to be processed is selected from the recognized photographic subjects.
In the embodiment of the present specification, the photographic subject to be processed is a non-photographic target, and in order to avoid the privacy of the non-photographic target from being disclosed, it is necessary to perform a blurring process on the photographic subject to be processed in the first image.
In the embodiment of the description, when a shooting object is a human face, selecting a human face to be processed from the human face in a first image, and then performing fuzzy processing; and when the shooting object is a license plate, selecting a license plate to be processed from the license plates in the first image, and then performing fuzzy processing.
In the embodiment of the present specification, the photographing apparatus may automatically select a photographic object to be processed from the recognized photographic objects, or the user may select a photographic object to be processed from the recognized photographic objects, so as to meet personalized requirements of the user.
Specifically, if the user selects the photographic subject to be processed from the recognized photographic subjects, the step 106 may specifically include the following steps:
receiving a first object selection operation input by a user, wherein the first object selection operation is used for selecting a to-be-processed shooting object from the recognized shooting objects;
and determining the shooting object selected by the user as the shooting object to be processed.
In this specification embodiment, the first object selection operation may include: click operation, slide operation, and press operation.
In the embodiment of the present specification, when the first object selection operation is a click operation, a photographic object clicked by a user may be determined as a photographic object to be processed; when the first object selection operation is a sliding operation, a photographic subject covered by a sliding track of the user may be determined as a photographic subject to be processed; when the first object selection operation is a pressing operation, a photographic subject pressed by the user may be determined as a photographic subject to be processed.
In one example, if the photographic object is a human face and the first object selection operation is a click operation, the human face clicked by the user may be determined as the photographic object to be processed; if the shooting object is a human face and the first object selection operation is a sliding operation, determining the human face covered by the sliding track of the user as the shooting object to be processed; if the photographic subject is a face and the first subject selection operation is a pressing operation, the face pressed by the user may be determined as the photographic subject to be processed.
In this embodiment of the present specification, after the selection of the photographic object to be processed is completed, the pixel point position of the photographic object to be processed in the first image is obtained.
In step 108, the subject to be processed in the first image is blurred, and a second image is obtained.
In this embodiment of the present description, a blur processing algorithm may be used to update pixel point information of pixel point positions according to pixel point positions of a to-be-processed photographic object in a first image, so as to obtain a second image, where the to-be-processed photographic object is blurred in the second image.
In one example, the shooting object is a human face, as shown in fig. 2, the application scenario includes: after the user clicks a "photographing button" in the photographing device 200, the photographing device 200 photographs a viewing scene containing a photographing target displayed in the viewing window 220, wherein the viewing scene has a plurality of persons; then, the non-shooting target in the shot image is blurred, so that an image 240 is obtained.
In this embodiment of the present specification, a temporary image storage directory and a target image storage directory may be set in the photographing apparatus in advance, in which case, the first image may be stored in the temporary image storage directory, and if the first image is not subsequently blurred, the first image may be transferred to the target image storage directory; and if the first image is subjected to blurring processing subsequently to obtain a second image, storing the second image into the target image storage directory, and deleting the first image in the temporary image storage directory.
In this embodiment of the present description, a target image storage directory may be preset in the photographing device, and in this case, the blurring processing of the first image may be directly performed in the memory of the photographing device to obtain a second image, and the second image in the memory may be stored in the target image storage directory.
In this embodiment of the present specification, before taking a picture, the user may confirm whether the photographing apparatus agrees to perform the operations of step 102 to step 108, and if the user agrees, the photographing apparatus performs the operations of step 102 to step 108.
In the embodiment of the present description, the above image processing processes are all executed at the photographing device, and the photographing device can perform fuzzy processing on the private data in the photographing process without depending on network conditions and additional image processing software, and without requiring manual operations of a photographer or a professional image processing person. In addition, the shooting device does not store the original shooting image which is not subjected to the fuzzy processing, and privacy leakage is not caused.
As can be seen from the above embodiments, in the embodiment, in the process of image acquisition, a non-shooting target in an acquired image can be identified, and the non-shooting target in the acquired image is subjected to fuzzy processing, so that the privacy of a user is effectively protected, and the security is high.
Fig. 3 is a flowchart of a photographing method according to an embodiment of the present specification, in which a photographing apparatus may automatically select a photographic subject to be processed from recognized photographic subjects, and at this time, as shown in fig. 3, the method may include the following steps: step 302, step 304, step 306, step 308, and step 310, wherein,
in step 302, a first image is acquired.
In the embodiment of the present specification, a user may trigger the shooting device to start shooting, that is, to acquire the first image, by clicking a specific shooting button or in a voice control manner.
In step 304, a photographic subject in the first image is identified.
In the embodiments of the present specification, the subject may include: a human face or a license plate.
In the embodiment of the present specification, when the shooting object is a face, a face recognition technology may be used to recognize all faces in the first image; when the shooting object is a license plate, all license plates in the first image can be identified by using a license plate identification technology.
In step 306, image characteristic data of the subject in the first image is acquired.
In this embodiment of the present specification, when the photographic subject is a human face, the image feature data of the photographic subject may be face feature data of the human face, may also be iris feature data of human eyes in the human face, and may also be a combination of the face feature data and the iris feature data, which is not limited in this embodiment of the present specification.
In this embodiment of the present description, when the photographic subject is a license plate, the image feature data of the photographic subject may be the license plate number.
In step 308, determining a photographic object which is not matched with the preset reference object in the first image according to the image characteristic data of the photographic object in the first image and the image characteristic data of the preset reference object; and determining the shooting object which does not match with the preset reference object as the shooting object to be processed.
In the embodiments of the present specification, the reference object is a photographic target, and the image feature data of the reference object is image feature data of the photographic target.
In the embodiment of the present specification, the photographic subject to be processed is a non-photographic target, and in order to avoid the privacy of the non-photographic target from being disclosed, it is necessary to perform a blurring process on the photographic subject to be processed in the first image.
In this embodiment of the present specification, if the object to be photographed is a face, the reference object is a reference face, and in this case, the image feature data of the reference object may be face feature data of the face, iris feature data of human eyes in the face, or a combination of the face feature data and the iris feature data, which is not limited in this embodiment of the present specification.
In the embodiment of the present specification, if the photographic object is a license plate, the reference object is a reference license plate, and at this time, the image feature data of the reference object is a license plate number.
In the embodiment of the present specification, for each photographic subject in a first image, comparing image feature data of the photographic subject with image feature data of a reference subject, and if the similarity between the two is greater than a preset threshold, determining that the photographic subject is matched with the reference subject, that is, the photographic subject is a photographic target; and if the similarity of the two is not greater than the preset threshold, determining that the shooting object is not matched with the reference object, namely the shooting object is a non-shooting target.
In one example, taking a shooting object as a face as an example, comparing image feature data of the face with image feature data of a reference face for each face in a first image, and if the similarity is greater than a preset threshold, determining that the face is matched with the reference face; and if the similarity is not greater than the preset threshold, determining that the face is not matched with the reference face, and determining the face which is not matched with the reference face in the first image as the face to be processed.
In this embodiment of the present specification, after the selection of the photographic object to be processed is completed, the pixel point position of the photographic object to be processed in the first image is obtained.
In step 310, a second image is obtained by blurring the object to be processed in the first image.
In this embodiment of the present description, a blur processing algorithm may be used to update pixel point information of pixel point positions according to pixel point positions of a to-be-processed photographic object in a first image, so as to obtain a second image, where the to-be-processed photographic object is blurred in the second image.
In this embodiment of the present specification, a temporary image storage directory and a target image storage directory may be set in the photographing apparatus in advance, in which case, the first image may be stored in the temporary image storage directory, and if the first image is not subsequently blurred, the first image may be transferred to the target image storage directory; and if the first image is subjected to blurring processing subsequently to obtain a second image, storing the second image into the target image storage directory, and deleting the first image in the temporary image storage directory.
In this embodiment of the present description, a target image storage directory may be preset in the photographing device, and in this case, the comparison between the photographing object in the first image and the reference object and the blurring processing may be directly performed in the memory of the photographing device to obtain a second image, and the second image in the memory may be stored in the target image storage directory.
In the embodiment of the description, a shot image is identified in a shooting process, and if a shot object which is not matched with a reference object appears in the shot image, namely the shot object is a non-shooting object, a corresponding pixel point is subjected to fuzzy processing to protect the privacy of the non-shooting object, so that the finally obtained image does not relate to the privacy of the non-shooting object.
In the embodiment of the present description, the above image processing processes are all executed at the photographing device, and the photographing device can perform fuzzy processing on the private data in the photographing process without depending on network conditions and additional image processing software, and without requiring manual operations of a photographer or a professional image processing person. In addition, the shooting device does not store the original shooting image which is not subjected to the fuzzy processing, and privacy leakage is not caused.
As can be seen from the foregoing embodiments, in the image capturing process, in the embodiment, a to-be-processed photographic subject (non-photographic subject) can be automatically selected from the captured image based on the reference subject (i.e., photographic subject), and the non-photographic subject in the captured image is subjected to the blurring processing, so that the privacy of the user is effectively protected, the security is high, and the operation is relatively simple.
Fig. 4 is a flowchart of a photographing method according to an embodiment of the present specification, in which before photographing, a photographing target may be subjected to authentication photographing, and a photographing object in a photographing screen is identified by using an image recognition technology and is used as a reference object, and in this case, as shown in fig. 4, the method may include the following steps: step 402, step 404, step 406, step 408, step 410, step 412, step 414 and step 418, wherein,
in step 402, a third image is acquired.
In the embodiment of the present specification, before photographing, authentication photographing is performed on a photographing target, and a third image is acquired, where the third image includes the photographing target.
In step 404, the photographic subject in the third image is identified.
In the embodiments of the present specification, the subject may include: a human face or a license plate. Specifically, when the shooting object is a face, a face recognition technology can be used to recognize all faces in the third image; when the shooting object is a license plate, a license plate recognition technology can be used for recognizing the license plate in the third image.
In step 406, the photographic subject in the third image is determined as the reference subject, and the image feature data of the photographic subject in the third image is determined as the image feature data of the reference subject.
In the embodiments of the present specification, the reference object is a photographic target, and the image feature data of the reference object is image feature data of the photographic target.
In this embodiment of the present specification, if the object to be photographed is a face, the reference object is a reference face, and in this case, the image feature data of the reference object may be face feature data of the face, iris feature data of human eyes in the face, or a combination of the face feature data and the iris feature data, which is not limited in this embodiment of the present specification.
In the embodiment of the present specification, if the photographic object is a license plate, the reference object is a reference license plate, and at this time, the image feature data of the reference object is a license plate number.
In the embodiments of the present specification, all the photographic subjects in the third image may be determined as the reference subject, or the reference subject may be selected by the user from the photographic subjects in the third image in consideration of the possibility that a non-photographic subject may be mixed when the photographic subject is subjected to the authentication photographing.
In this embodiment, if the user selects the reference object from the shooting object in the third image, the step 406 may specifically include the following steps:
receiving a second object selection operation input by a user, the second object selection operation being used for selecting a reference object from the photographic objects in the third image;
the photographic subject selected by the user is determined as the reference subject, and the image characteristic data of the photographic subject selected by the user is determined as the image characteristic data of the reference subject.
In this embodiment, the second object selecting operation may include: click operation, slide operation, and press operation. Specifically, when the second object selection operation is a click operation, the photographic object clicked by the user may be determined as a reference object; when the second object selection operation is a slide operation, a photographic object covered by the slide trajectory of the user may be determined as a reference object; when the second object selection operation is a pressing operation, the photographic subject pressed by the user may be determined as a reference subject.
Therefore, in the embodiment of the specification, the user can be supported to select the reference object by himself, and the selection accuracy of the reference object can be ensured because the user selection generally has a certain error correction effect.
In step 408, image feature data of the reference object is stored
In the embodiment of the present specification, in order to ensure the security of data, the image feature data of the reference object may be encrypted; and storing the image characteristic data after the encryption processing.
For example, the image characteristic data of the reference object may be encrypted using a Secure Hash Algorithm (SHA), and the encrypted image characteristic data may be stored in the photographing apparatus.
In step 410, a first image is acquired.
In the embodiment of the present specification, a user may trigger the shooting device to start shooting, that is, to acquire the first image, by clicking a specific shooting button or in a voice control manner.
In step 412, a photographic subject in the first image is identified.
In the embodiment of the present specification, when the shooting object is a face, a face recognition technology may be used to recognize all faces in the first image; when the shooting object is a license plate, all license plates in the first image can be identified by using a license plate identification technology.
In step 414, image characteristic data of the subject in the first image is acquired.
In this embodiment of the present specification, when the photographic subject is a human face, the image feature data of the photographic subject may be face feature data of the human face, may also be iris feature data of human eyes in the human face, and may also be a combination of the face feature data and the iris feature data, which is not limited in this embodiment of the present specification.
In this embodiment of the present description, when the photographic subject is a license plate, the image feature data of the photographic subject may be the license plate number.
In step 416, determining a photographic subject in the first image, which is not matched with the preset reference subject, according to the image feature data of the photographic subject in the first image and the image feature data of the preset reference subject; and determining the shooting object which does not match with the preset reference object as the shooting object to be processed.
In the embodiment of the present specification, the photographic subject to be processed is a non-photographic target, and in order to avoid the privacy of the non-photographic target from being disclosed, it is necessary to perform a blurring process on the photographic subject to be processed in the first image.
In the embodiment of the present specification, for each photographic subject in a first image, comparing image feature data of the photographic subject with image feature data of a reference subject, and if the similarity between the two is greater than a preset threshold, determining that the photographic subject is matched with the reference subject, that is, the photographic subject is a photographic target; and if the similarity of the two is not greater than the preset threshold, determining that the shooting object is not matched with the reference object, namely the shooting object is a non-shooting target.
In one example, taking a shooting object as a face as an example, comparing image feature data of the face with image feature data of a reference face for each face in a first image, and if the similarity is greater than a preset threshold, determining that the face is matched with the reference face; and if the similarity is not greater than the preset threshold, determining that the face is not matched with the reference face, and determining the face which is not matched with the reference face in the first image as the face to be processed.
In this embodiment of the present specification, after the selection of the photographic object to be processed is completed, the pixel point position of the photographic object to be processed in the first image is obtained.
In step 418, the subject to be processed in the first image is blurred, and a second image is obtained.
In this embodiment of the present description, a blur processing algorithm may be used to update pixel point information of pixel point positions according to pixel point positions of a to-be-processed photographic object in a first image, so as to obtain a second image, where the to-be-processed photographic object is blurred in the second image.
In this embodiment of the present specification, a temporary image storage directory and a target image storage directory may be set in the photographing apparatus in advance, in which case, the first image may be stored in the temporary image storage directory, and if the first image is not subsequently blurred, the first image may be transferred to the target image storage directory; and if the first image is subjected to blurring processing subsequently to obtain a second image, storing the second image into the target image storage directory, and deleting the first image in the temporary image storage directory.
In this embodiment of the present description, a target image storage directory may be preset in the photographing device, and in this case, the comparison between the photographing object in the first image and the reference object and the blurring processing may be directly performed in the memory of the photographing device to obtain a second image, and the second image in the memory may be stored in the target image storage directory.
In the embodiment of the present specification, a shot image is identified in a shooting process, and if a shooting object that is not matched with a reference object appears in the shot image (that is, the shooting object is a non-shooting object), a corresponding pixel point is subjected to fuzzy processing, so that privacy of the non-shooting object is protected, and the finally obtained image does not relate to user privacy.
In the embodiment of the present description, the above image processing processes are all executed at the photographing device, and the photographing device can perform fuzzy processing on the private data in the photographing process without depending on network conditions and additional image processing software, and without requiring manual operations of a photographer or a professional image processing person. In addition, the shooting device does not store the original shooting image which is not subjected to the fuzzy processing, and privacy leakage is not caused.
As can be seen from the foregoing embodiments, in this embodiment, before photographing, authentication photographing may be performed on a photographing target, and a photographing target in a photographing screen is recognized using an image recognition technology and is used as a reference target, so that when subsequent image acquisition is performed, a photographing target to be processed (a non-photographing target) may be automatically selected from acquired images based on the reference target (i.e., the photographing target), and the non-photographing target in the acquired images may be subjected to blurring processing, thereby effectively protecting privacy of a user, and the security is high and the operation is relatively simple.
Fig. 5 is a schematic structural diagram of a photographing apparatus according to an embodiment of the present disclosure, and as shown in fig. 5, in a software implementation, the photographing apparatus 500 may include: a first acquisition module 501, a first recognition module 502, a selection module 503, and an image processing module 504, wherein,
a first collecting module 501, configured to collect a first image;
a first recognition module 502 for recognizing a photographic subject in the first image;
a selection module 503, configured to select a photographic subject to be processed from the recognized photographic subjects;
an image processing module 504, configured to perform blur processing on the to-be-processed photographic object in the first image to obtain a second image.
As can be seen from the above embodiments, in the embodiment, in the process of image acquisition, a non-shooting target in an acquired image can be identified, and the non-shooting target in the acquired image is subjected to fuzzy processing, so that the privacy of a user is effectively protected, and the security is high.
Optionally, as an embodiment, the first identifying module 502 may include:
a first operation receiving submodule for receiving a first object selection operation input by a user, the first object selection operation being used for selecting a photographic object to be processed from the recognized photographic objects;
and the first object determination submodule is used for determining the shooting object selected by the user as a shooting object to be processed.
Optionally, as an embodiment, the first identifying module 502 may include:
the characteristic data acquisition sub-module is used for acquiring the image characteristic data of the shot object;
the second object determining submodule is used for determining a shooting object which is not matched with a preset reference object in the first image according to the image characteristic data of the shooting object and the image characteristic data of the preset reference object;
and the third object determining submodule is used for determining the shooting object which is not matched with the preset reference object as the shooting object to be processed.
Optionally, as an embodiment, the photographing apparatus 500 may further include:
the second acquisition module is used for acquiring a third image;
a second recognition module for recognizing the photographic subject in the third image;
a determination module, configured to determine the photographic subject in the third image as the reference subject, and determine image feature data of the photographic subject in the third image as image feature data of the reference subject;
and the storage module is used for storing the image characteristic data of the reference object.
Optionally, as an embodiment, the determining module may include:
a second operation receiving sub-module configured to receive a second object selection operation input by a user, the second object selection operation being used to select the reference object from the photographic objects in the third image;
a fourth object determination sub-module for determining the photographic object selected by the user as the reference object;
and the characteristic data determining submodule is used for determining the image characteristic data of the shooting object selected by the user as the image characteristic data of the reference object.
Optionally, as an embodiment, the saving module may include:
the encryption processing submodule is used for encrypting the image characteristic data of the reference object;
and the storage sub-module is used for storing the image characteristic data after the encryption processing.
Optionally, as an embodiment, the photographing apparatus 500 may further include:
and the deleting module is used for deleting the first image after the to-be-processed shooting object in the first image is subjected to fuzzy processing to obtain a second image.
Optionally, as an embodiment, the photographic subject may include: a human face or a license plate.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present specification, and as shown in fig. 6, the electronic device includes, at a hardware level, a processor, and optionally an internal bus, a network interface, and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, the network interface, and the memory may be connected to each other via an internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 6, but that does not indicate only one bus or one type of bus.
And the memory is used for storing programs. In particular, the program may include program code comprising computer operating instructions. The memory may include both memory and non-volatile storage and provides instructions and data to the processor.
The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to form the photographing device on a logic level. The processor is used for executing the program stored in the memory and is specifically used for executing the following operations:
acquiring a first image;
identifying a photographic object in the first image;
selecting a photographic object to be processed from the recognized photographic objects;
and carrying out fuzzy processing on the shot object to be processed in the first image to obtain a second image.
In the embodiment of the description, in the process of image acquisition, a non-shooting target in an acquired image can be identified, and the non-shooting target in the acquired image is subjected to fuzzy processing, so that the privacy of a user is effectively protected, and the security is high.
Optionally, as an embodiment, the selecting a photographic subject to be processed from the recognized photographic subjects includes:
receiving a first object selection operation input by a user, wherein the first object selection operation is used for selecting a to-be-processed shooting object from the recognized shooting objects;
and determining the shooting object selected by the user as a shooting object to be processed.
Optionally, as an embodiment, the selecting a photographic subject to be processed from the recognized photographic subjects includes:
acquiring image characteristic data of the shot object;
determining a shooting object which is not matched with a preset reference object in the first image according to the image characteristic data of the shooting object and the image characteristic data of the preset reference object;
and determining the shooting object which is not matched with the preset reference object as a shooting object to be processed.
Optionally, as an embodiment, before the step of acquiring the first image, the method further includes:
collecting a third image;
identifying a photographic subject in the third image;
determining a photographic subject in the third image as the reference subject, and determining image feature data of the photographic subject in the third image as the image feature data of the reference subject;
and saving the image characteristic data of the reference object.
Optionally, as an embodiment, the determining, as the reference object, the photographic subject in the third image and the image feature data of the photographic subject in the third image includes:
receiving a second object selection operation input by a user, the second object selection operation being used for selecting the reference object from the photographic objects in the third image;
and determining the photographic object selected by the user as the reference object, and determining the image characteristic data of the photographic object selected by the user as the image characteristic data of the reference object.
Optionally, as an embodiment, the saving image feature data of the reference object includes:
encrypting the image characteristic data of the reference object;
and storing the image characteristic data after the encryption processing.
Optionally, as an embodiment, after the step of performing the blurring processing on the to-be-processed photographic object in the first image to obtain a second image, the method further includes:
deleting the first image.
Optionally, as an embodiment, the photographic subject includes: a human face or a license plate.
The method executed by the photographing apparatus according to the embodiment shown in fig. 6 of the present specification can be applied to or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present specification may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present specification may be embodied directly in a hardware decoding processor, or in a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
The electronic device may also execute the method shown in fig. 1 and implement the functions of the photographing apparatus in the embodiment shown in fig. 1, which are not described herein again in this specification.
The present specification embodiments also provide a computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a portable electronic device comprising a plurality of application programs, enable the portable electronic device to perform the method of the embodiment shown in fig. 1, and in particular to perform the method of:
acquiring a first image;
identifying a photographic object in the first image;
selecting a photographic object to be processed from the recognized photographic objects;
and carrying out fuzzy processing on the shot object to be processed in the first image to obtain a second image.
In short, the above description is only a preferred embodiment of the present disclosure, and is not intended to limit the scope of the present disclosure. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present specification shall be included in the protection scope of the present specification.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.

Claims (4)

1. A method of taking a photograph, the method comprising:
collecting a first image and storing the first image in a temporary image storage directory;
identifying a photographic object in the first image, wherein the photographic object comprises a license plate;
selecting a to-be-processed shooting object from the recognized shooting objects, wherein the to-be-processed shooting object is a non-shooting target;
performing fuzzy processing on the shot object to be processed in the first image to obtain a second image;
storing the second image into a target image storage directory, and deleting the first image in the temporary image storage directory to avoid the privacy of the non-shooting target from being leaked;
wherein the selecting of the photographic subject to be processed from the recognized photographic subjects includes:
receiving a first object selection operation input by a user, wherein the first object selection operation is used for selecting a to-be-processed shooting object from the recognized shooting objects;
and determining the shooting object selected by the user as a shooting object to be processed.
2. A photographing apparatus, the apparatus comprising:
the first acquisition module is used for acquiring a first image and storing the first image into a temporary image storage directory;
the first recognition module is used for recognizing a shooting object in the first image, and the shooting object comprises a license plate;
the selection module is used for selecting a shooting object to be processed from the identified shooting objects, wherein the shooting object to be processed is a non-shooting target;
the image processing module is used for carrying out fuzzy processing on the shooting object to be processed in the first image to obtain a second image and storing the second image into a target image storage directory;
the deleting module is used for deleting the first image in the temporary image storage directory after the fuzzy processing is carried out on the shooting object to be processed in the first image to obtain a second image so as to avoid the privacy of the non-shooting target from being leaked;
wherein the first identification module comprises:
a first operation receiving submodule for receiving a first object selection operation input by a user, the first object selection operation being used for selecting a photographic object to be processed from the recognized photographic objects;
and the first object determination submodule is used for determining the shooting object selected by the user as a shooting object to be processed.
3. An electronic device, comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
collecting a first image and storing the first image in a temporary image storage directory;
identifying a photographic object in the first image, wherein the photographic object comprises a license plate;
selecting a to-be-processed shooting object from the recognized shooting objects, wherein the to-be-processed shooting object is a non-shooting target;
performing fuzzy processing on the shot object to be processed in the first image to obtain a second image;
storing the second image into a target image storage directory, and deleting the first image in the temporary image storage directory to avoid the privacy of the non-shooting target from being leaked;
wherein the selecting of the photographic subject to be processed from the recognized photographic subjects includes:
receiving a first object selection operation input by a user, wherein the first object selection operation is used for selecting a to-be-processed shooting object from the recognized shooting objects;
and determining the shooting object selected by the user as a shooting object to be processed.
4. A computer storage medium storing one or more programs that, when executed by an electronic device including a plurality of application programs, cause the electronic device to:
collecting a first image and storing the first image in a temporary image storage directory;
identifying a photographic object in the first image, wherein the photographic object comprises a license plate;
selecting a to-be-processed shooting object from the recognized shooting objects, wherein the to-be-processed shooting object is a non-shooting target;
performing fuzzy processing on the shot object to be processed in the first image to obtain a second image;
storing the second image into a target image storage directory, and deleting the first image in the temporary image storage directory to avoid the privacy of the non-shooting target from being leaked;
wherein the selecting of the photographic subject to be processed from the recognized photographic subjects includes:
receiving a first object selection operation input by a user, wherein the first object selection operation is used for selecting a to-be-processed shooting object from the recognized shooting objects;
and determining the shooting object selected by the user as a shooting object to be processed.
CN201810972155.XA 2018-08-24 2018-08-24 Photographing method and device Active CN109040594B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810972155.XA CN109040594B (en) 2018-08-24 2018-08-24 Photographing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810972155.XA CN109040594B (en) 2018-08-24 2018-08-24 Photographing method and device

Publications (2)

Publication Number Publication Date
CN109040594A CN109040594A (en) 2018-12-18
CN109040594B true CN109040594B (en) 2020-12-18

Family

ID=64628279

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810972155.XA Active CN109040594B (en) 2018-08-24 2018-08-24 Photographing method and device

Country Status (1)

Country Link
CN (1) CN109040594B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112204945A (en) * 2019-08-14 2021-01-08 深圳市大疆创新科技有限公司 Image processing method, image processing apparatus, image capturing device, movable platform, and storage medium
CN110719402B (en) * 2019-09-24 2021-07-06 维沃移动通信(杭州)有限公司 Image processing method and terminal equipment
CN111491088B (en) * 2020-04-23 2021-08-31 支付宝(杭州)信息技术有限公司 Security camera, image encryption method and device and electronic equipment
CN113806002A (en) * 2021-09-24 2021-12-17 维沃移动通信有限公司 Image display method and device
CN114302146A (en) * 2021-12-30 2022-04-08 阿里巴巴新加坡控股有限公司 Image processing method, image processing device, electronic equipment and computer storage medium
CN116389694A (en) * 2023-06-05 2023-07-04 河北思恒电子科技有限公司 Video monitoring method and video monitoring robot based on artificial intelligence

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101848337A (en) * 2009-03-25 2010-09-29 索尼公司 Image processing equipment, image processing method and program
CN107578006A (en) * 2017-08-31 2018-01-12 维沃移动通信有限公司 A kind of photo processing method and mobile terminal
CN107845069A (en) * 2017-04-14 2018-03-27 深圳市金立通信设备有限公司 A kind of image weakening method and terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4681863B2 (en) * 2004-11-30 2011-05-11 キヤノン株式会社 Image processing apparatus and control method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101848337A (en) * 2009-03-25 2010-09-29 索尼公司 Image processing equipment, image processing method and program
CN107845069A (en) * 2017-04-14 2018-03-27 深圳市金立通信设备有限公司 A kind of image weakening method and terminal
CN107578006A (en) * 2017-08-31 2018-01-12 维沃移动通信有限公司 A kind of photo processing method and mobile terminal

Also Published As

Publication number Publication date
CN109040594A (en) 2018-12-18

Similar Documents

Publication Publication Date Title
CN109040594B (en) Photographing method and device
CN109190539B (en) Face recognition method and device
EP3200125A1 (en) Fingerprint template input method and device
US10178293B2 (en) Controlling a camera using a voice command and image recognition
US11050920B2 (en) Photographed object recognition method, apparatus, mobile terminal and camera
CN109002796B (en) Image acquisition method, device and system and electronic equipment
CN109034150B (en) Image processing method and device
US10083346B2 (en) Method and apparatus for providing contact card
CN111523346B (en) Image recognition method and device, electronic equipment and storage medium
EP3173978A1 (en) Method and device for characteristic extraction
JP2019515519A5 (en)
CN111970437B (en) Text shooting method, wearable device and storage medium
CN112333356A (en) Certificate image acquisition method, device and equipment
CN108776800B (en) Image processing method, mobile terminal and computer readable storage medium
CN112597886A (en) Ride fare evasion detection method and device, electronic equipment and storage medium
CN110705532A (en) Method, device and equipment for identifying copied image
US20150015724A1 (en) Electronic device and method for controlling image capturing
CN113033538B (en) Formula identification method and device
CN108154090B (en) Face recognition method and device
CN110929545A (en) Human face image sorting method and device
CN108270973B (en) Photographing processing method, mobile terminal and computer readable storage medium
CN109344732B (en) Method and device for authentication and determining authentication mode and electronic equipment
CN111985305A (en) Screen peeping prevention method and device and terminal equipment
CN111064892A (en) Automatic image sharing method and system, electronic device and storage medium
CN113704827B (en) Privacy protection method and device in biological identification process

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200924

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200924

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

GR01 Patent grant
GR01 Patent grant