CN108182271B - Photographing method, terminal and computer readable storage medium - Google Patents

Photographing method, terminal and computer readable storage medium Download PDF

Info

Publication number
CN108182271B
CN108182271B CN201810049142.5A CN201810049142A CN108182271B CN 108182271 B CN108182271 B CN 108182271B CN 201810049142 A CN201810049142 A CN 201810049142A CN 108182271 B CN108182271 B CN 108182271B
Authority
CN
China
Prior art keywords
image
photographed image
similar
photographed
operation instruction
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
CN201810049142.5A
Other languages
Chinese (zh)
Other versions
CN108182271A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810049142.5A priority Critical patent/CN108182271B/en
Publication of CN108182271A publication Critical patent/CN108182271A/en
Application granted granted Critical
Publication of CN108182271B publication Critical patent/CN108182271B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/583Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Software Systems (AREA)
  • Processing Or Creating Images (AREA)
  • Studio Devices (AREA)

Abstract

The invention provides a photographing method, a terminal and a computer readable storage medium, wherein the photographing method comprises the following steps: acquiring a photographed image photographed when a photographing instruction is received; detecting whether a similar image of the photographed image exists in a preset storage space; and if the similar image exists, outputting prompt information of the similar image. According to the scheme, the photographed image photographed when the photographing instruction is received is obtained; detecting whether a similar image of the photographed image exists in a preset storage space; if the similar image exists, outputting prompt information of the similar image; the method and the device can remind the user that the similar pictures exist in the user terminal when the user takes the picture, so that the user can select whether to continue taking the picture or other processing methods, and the problem that the picture taking scheme in the prior art occupies a large space when storing the similar pictures is well solved.

Description

Photographing method, terminal and computer readable storage medium
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a photographing method, a terminal, and a computer-readable storage medium.
Background
With the development and progress of science and technology, smart phones are more and more popularized, and meanwhile, cameras carried by the mobile phones are more and more powerful in performance and larger in storage capacity, so that common cameras are gradually replaced; the photographing is simplified, different parameters do not need to be set manually, and a beautiful photo can be taken only by clicking a photographing button;
however, users often take many repeated photos in an inadvertent period, such as children playing mobile phones to carelessly take multiple useless photos, or take photos to record certain information, but the information is already taken; these repeated pictures not only put stress on the storage space of the device, but also affect the user's reading of the pictures.
Disclosure of Invention
The invention aims to provide a photographing method, a terminal and a computer readable storage medium, so as to solve the problem that a photographing scheme in the prior art occupies a large space for storing similar images.
In order to solve the technical problem, the invention is realized as follows: a method of taking a photograph comprising:
acquiring a photographed image photographed when a photographing instruction is received;
detecting whether a similar image of the photographed image exists in a preset storage space;
and if the similar image exists, outputting prompt information of the similar image.
In a first aspect, an embodiment of the present invention further provides a terminal, including:
the first acquisition module is used for acquiring a photographed image photographed when a photographing instruction is received;
the first detection module is used for detecting whether a similar image of the photographed image exists in a preset storage space or not;
and the first processing module is used for outputting prompt information of the similar images if the similar images exist.
In a second aspect, an embodiment of the present invention further provides a terminal, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program, when executed by the processor, implements the steps of the above-mentioned photographing method.
In a third aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned photographing method are implemented.
In the embodiment of the invention, the photographed image photographed when the photographing instruction is received is acquired; detecting whether a similar image of the photographed image exists in a preset storage space; if the similar image exists, outputting prompt information of the similar image; the method and the device can remind the user that the similar pictures exist in the user terminal when the user takes the picture, so that the user can select whether to continuously store the taken pictures or other processing methods, and the problem that the picture taking scheme in the prior art occupies a large space when storing the similar pictures is well solved.
Drawings
FIG. 1 is a schematic flow chart illustrating a photographing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an implementation architecture of a photographing method according to an embodiment of the present invention;
FIG. 3 is a first flowchart illustrating a specific application of the photographing method according to the embodiment of the present invention;
FIG. 4 is a schematic diagram of a specific application flow of the photographing method according to the embodiment of the present invention;
fig. 5 is a first schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a terminal structure according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention provides a photographing method aiming at the problem that similar images stored in a photographing scheme in the prior art influence a user to search images, as shown in figure 1, the photographing method comprises the following steps:
step 11: and acquiring a photographed image photographed when the photographing instruction is received.
That is, the photographed image before storage after photographing is acquired.
Step 12: and detecting whether a similar image of the photographed image exists in a preset storage space.
The preset storage space may be a local album of the terminal, or other local storage spaces of the terminal, or may be a cloud storage space, which is not limited herein.
The similar image may refer to an image whose similarity with the photographed image reaches a preset threshold.
Step 13: and if the similar image exists, outputting prompt information of the similar image.
The prompt message may be a text prompt or a voice prompt, which is not limited herein.
The photographing method provided by the embodiment of the invention obtains the photographed image photographed when the photographing instruction is received; detecting whether a similar image of the photographed image exists in a preset storage space; if the similar image exists, outputting prompt information of the similar image; the method and the device can remind the user that the similar pictures exist in the user terminal when the user takes the picture, so that the user can select whether to continue taking the picture or other processing methods, and the problem that the picture taking scheme in the prior art occupies a large space when storing the similar pictures is well solved.
Further, after outputting the prompt message that the similar image exists, the photographing method further includes: storing the photographed image or forgoing storing the photographed image.
That is, after reminding the user that the similar picture exists in the terminal, the taken picture can be stored continuously or the storage is abandoned, so as to avoid the existence of the similar picture as much as possible.
Wherein the step of storing the photographed image comprises: and directly storing the photographed image, or storing the photographed image by covering the similar image.
For example, the photographed image is a, the similar image is B, a and B may be stored separately, or a may be stored by overlaying a on B (it is understood that a is stored, and B is deleted).
Further, after outputting the prompt message that the similar image exists, the photographing method further includes: acquiring an operation instruction; the operation instruction is used for indicating a processing mode of the photographed image, and the processing mode is to store the photographed image or abandon to store the photographed image; and processing the photographed image according to the processing mode indicated by the operation instruction.
Namely, after reminding the user that the similar pictures exist in the terminal, the taken pictures can be stored continuously according to the operation instruction, or the storage is abandoned, so as to avoid the existence of the similar pictures as much as possible.
When the operation instruction is used for indicating that the processing mode of the photographed image is to store the photographed image, the operation instruction further comprises a storage mode for storing the photographed image, and the storage mode is to directly store the photographed image or store the photographed image by covering the similar image.
For a specific implementation of obtaining an operation instruction, the embodiment of the present invention provides two examples:
first, the step of obtaining the operation instruction comprises: acquiring a mapping relation between image parameters and corresponding operation instructions in a preset machine learning model; and acquiring an operation instruction corresponding to the photographed image according to the mapping relation and the image parameters of the photographed image.
Namely, the operation instruction is automatically obtained according to the experience obtained by the preset machine learning model.
Secondly, the step of obtaining the operation instruction comprises: the method comprises the steps of obtaining a first preset operation or a second preset operation input by a user, wherein the operation instruction corresponding to the first preset operation is used for indicating that the processing mode of the photographed image is storage, and the operation instruction corresponding to the second preset operation is used for indicating that the processing mode of the photographed image is abandoning storage of the photographed image.
Namely, the corresponding operation instruction is determined according to the selection result of the user. This example may be performed before or after the first example.
Further, the photographing method further comprises: and constructing a preset machine learning model according to an operation instruction corresponding to the first preset operation or the second preset operation input by the user and the image parameters of the photographed image.
Therefore, automatic operation can be performed according to the learning result of the preset machine learning model, the intelligent degree is improved, manual operation of a user is reduced, and user experience is improved.
The image parameter comprises at least one of image information, photographing condition information and user operation parameter information.
The image information may include an image type, the photographing condition information may include time information, geographical information (location information), and the like, and the user operation parameter information may include user determination time, a user determination result, and the like.
Further, before detecting whether a similar image of the photographed image exists in a preset storage space, the photographing method further includes: setting a similarity threshold;
correspondingly, the step of detecting whether the similar image of the photographed image exists in the preset storage space comprises the following steps: and detecting whether the similar images of the photographed images exist in a preset storage space or not according to the similar threshold value.
Therefore, the personalized requirements of the user can be met, and the user experience is further improved.
Wherein the step of detecting whether the similar image of the photographed image exists in a preset storage space comprises: extracting characteristic information in the photographed image; comparing the feature information with stored images in a preset storage space to obtain the corresponding similarity of each stored image; and acquiring a stored image corresponding to the similarity greater than or equal to the first threshold as a similar image.
The feature information may include a pixel arrangement of a picture, a composition element, and the like, and is not limited herein.
Preferably, the step of acquiring a stored image corresponding to a similarity greater than or equal to a first threshold as a similar image includes: when only one stored image is corresponding to the similarity greater than or equal to the first threshold, taking the acquired stored image as a similar image; or when there are a plurality of stored images corresponding to the similarity greater than or equal to the first threshold, acquiring the stored image corresponding to the similarity with the maximum value, and taking the stored image as a similar image.
Therefore, the similar image which is most similar to the photographed image can be obtained, and the problem that a large amount of space is occupied by storing the similar image in the photographing scheme is solved.
Further, the photographing method further comprises: and if the similar image does not exist, saving the photographed image.
Therefore, the normal operation of the photographing scheme can be ensured, and the photographing requirement of a user can be met.
Further, before outputting the prompt message that the similar image exists, the photographing method further includes: determining a current function type; if the current function type is photo shooting and the similar image exists, outputting prompt information of the similar image; or if the current function type is search positioning and the similar image exists, positioning and displaying the similar image.
This can satisfy different needs of the user, such as avoiding storing similar images, or locating images.
The photographing method provided by the embodiment of the invention is further explained below.
In view of the above technical problems, embodiments of the present invention provide a photographing method to remind a user that a similar photo exists in a user terminal when the user takes a picture, so that the user can select whether to continue to store the taken image or other processing methods, and at the same time, the user can learn habits of the user through a machine and automatically process similar scenes.
That is, by the scheme, the user can obtain whether the terminal album has similar images or not during photographing, and select to not store the photographed images or continue to store the photographed images (covering or not covering the similar images) and other operations; the method and the device can avoid the pressure of repeated images on the storage space of the terminal and influence the user to browse the images.
The present solution can be implemented by using an architecture as shown in fig. 2, which includes: the system comprises a photographing module, a storage module, a processor module, a human-computer interaction module, a retrieval comparison module, a monitoring module and other basic modules.
The scheme provided by the embodiment of the invention is illustrated below.
Example one:
adding an intelligent photographing mode into a camera APP of a terminal, wherein the functions of the mode are as follows: when the user selects to use the intelligent photographing mode for photographing, the system prompts the user to perform selection operations, such as continuously storing the photographed image, abandoning to store the photographed image and the like, according to the picture content repetition threshold value preset by the user as a judgment condition, and when the user selects to continuously store the photographed image, the system can select to cover the original image and store the image at the same time. The specific process can be shown in fig. 3, and includes:
step 31: starting;
the user starts the photographing function.
Step 32: setting a decision repetition threshold;
a user sets a threshold value X for judging the repetition of a terminal reminding image in a camera; and when the system judges that the similarity of the two images is greater than the threshold value X, the two images are considered to be repeated, otherwise, the two images are not repeated.
Step 33: selecting an intelligent photographing mode;
and the user selects the intelligent photographing mode to photograph.
Step 34: taking a picture and searching and comparing in the terminal;
the user takes a picture after focusing and other operations, the terminal locks the image focused by the current user, the picture is not stored, meanwhile, the characteristic information of the shot image is extracted, the image is searched in a preset storage space (such as a terminal memory), and the similarity Y of the image is obtained by comparing the characteristic information of the shot image with the characteristic information of the image in the preset storage space.
Step 35: judging whether similar images exist, if so, entering a step 36, and if not, entering a step 38;
comparing the similarity Y in the step 34 with a threshold value X, if Y is larger than or equal to X, judging that similar images exist, and when a plurality of images exist in the preset storage space and are similar to the shot images, taking the image in the preset storage space corresponding to the similarity Y with the largest value as the similar image of the shot images;
the system judges that similar photos exist and prompts the user to select the next operation: continuing to store the photographed image or abandoning to store the photographed image.
When Y is larger than or equal to X, entering step 36; otherwise step 38 is entered.
Step 36: selecting an operation method by a user;
step 37: judging whether the shot image is stored continuously, if so, entering a step 38, and if not, entering a step 39;
the user's selection is judged, and when the user selects to continue storing the photographed image, the process proceeds to step 38, and when the user selects to discard storing the photographed image, the process proceeds to step 39.
Step 38: storing the shot image and selecting a storage mode;
storing the shot image: storing the pictures locked in the photographing process, wherein the storage mode can be selected from direct storage, storage of the pictures with the highest coverage similarity and the like; the information may also be stored locally in the terminal or in the cloud, and the like, which is not limited herein.
Step 39: and (6) ending.
And finishing photographing and quitting the camera APP.
The scheme of the example can radically reduce the waste of repeated photos and terminal storage space in the terminal; therefore, the repetition of pictures in the terminal is reduced, and the reading experience of a user is improved.
Example two:
the basic scheme is the same as that of the first example, but the intelligence is higher than that of the first example, and the AI function is added in the second example, so that the operation steps of a user can be reduced, and the photographing experience of the user can be improved; the specific process can be shown in fig. 4, and includes:
step 41: starting;
step 42: setting a decision repetition threshold;
step 43: selecting an intelligent photographing mode;
step 44: taking a picture and searching and comparing in the terminal;
step 45: judging whether the images are similar, if so, entering a step 46, and if not, entering a step 48;
step 46: selecting an operation method by a user;
step 47: judging whether the shot image is stored continuously, if so, entering a step 48, and if not, entering a step 49;
and 48: storing the shot image and selecting a storage mode;
step 49: and (6) ending.
In performing steps 46 and 48, step 410 may also be performed as follows:
step 410: monitoring user behavior;
step 411: comparing the machine simulation result with the actual result;
step 412: judging whether the accuracy of the simulation result is greater than a target value, if so, entering a step 413, otherwise, returning to the step 410;
step 413: machine behavior replaces human behavior.
For steps 41 to 49, reference may be made specifically to the contents of steps 31 to 39, which are not described herein again; the difference between this example and example one is that when a monitoring module is added, and step 46 and step 48 are executed, step 410-monitoring user behavior and learning can also be executed, specifically as follows:
monitoring and recording the user's behavior in steps 46 and 48, extracting a plurality of parameters (such as photo type, time information, geographic information, user judgment time and/or user judgment result, etc.), and making the machine learn the user's behavior through a certain algorithm;
according to the monitoring and machine learning in the step 410, simultaneously, the system performs simulation selection operation, compares the operation result of the simulation selection of the system with the operation result of the user, and outputs the comparison result;
judging whether the accuracy of the system simulation result meets a certain threshold (set by a system algorithm); when not satisfied, the system continues back to step 410, and the machine continues to monitor learning; when the threshold is satisfied, step 413 is entered, that is, the machine determines to replace the human determination (in steps 46 and 48), so that the user's operation steps are reduced and the user experience is improved.
Compared with the scheme of the first example, the scheme provided by the example is more intelligent, so that the terminal learns the user behavior, the user operation is reduced, and the user experience is further improved.
It should be noted that the scheme provided by the embodiment of the present invention is not only used for reminding similar images, but also used for taking pictures to search for images: when the number of images in the preset storage space is too large and a user wants to search for a certain image, the user can quickly search through a photographing and duplicate checking method; for example, a user may store a picture of a bank card in the memory, and want to view the number in the picture, and the user may quickly locate the picture in the memory by taking a picture of the same bank or a different bank card.
An embodiment of the present invention further provides a terminal, as shown in fig. 5, including:
a first obtaining module 51, configured to obtain a photographed image photographed when the photographing instruction is received;
a first detecting module 52, configured to detect whether a similar image of the photographed image exists in a preset storage space;
the first processing module 53 is configured to output prompt information indicating that a similar image exists if the similar image exists.
The terminal provided by the embodiment of the invention obtains the photographed image photographed when the photographing instruction is received; detecting whether a similar image of the photographed image exists in a preset storage space; if the similar image exists, outputting prompt information of the similar image; the method and the device can remind the user that the similar pictures exist in the user terminal when the user takes the picture, so that the user can select whether to continue taking the picture or other processing methods, and the problem that the picture taking scheme in the prior art occupies a large space when storing the similar pictures is well solved.
Further, the terminal further includes: and the first storage module is used for storing the photographed image or abandoning the storage of the photographed image after outputting the prompt message that the similar image exists.
Wherein the first storage module comprises: and the first storage submodule is used for directly storing the photographed image or storing the photographed image by covering the similar image.
Further, the terminal further includes: the second acquisition module is used for acquiring an operation instruction after outputting prompt information with similar images; the operation instruction is used for indicating a processing mode of the photographed image, and the processing mode is to store the photographed image or abandon to store the photographed image; and the second processing module is used for processing the photographed image according to the processing mode indicated by the operation instruction.
When the operation instruction is used for indicating that the processing mode of the photographed image is to store the photographed image, the operation instruction further comprises a storage mode for storing the photographed image, and the storage mode is to directly store the photographed image or store the photographed image by covering the similar image.
For the specific implementation of the second obtaining module, the embodiment of the present invention provides two examples:
first, the second obtaining module includes: the first obtaining submodule is used for obtaining the mapping relation between the image parameters in the preset machine learning model and the corresponding operation instructions; and the second obtaining submodule is used for obtaining an operation instruction corresponding to the photographed image according to the mapping relation and the image parameters of the photographed image.
Second, the second obtaining module includes: and the third acquisition submodule is used for acquiring a first preset operation or a second preset operation input by a user, wherein the operation instruction corresponding to the first preset operation is used for indicating that the processing mode of the photographed image is storage of the photographed image, and the operation instruction corresponding to the second preset operation is used for indicating that the processing mode of the photographed image is abandoning storage of the photographed image.
Further, the terminal further includes: the first construction module is used for constructing a preset machine learning model according to an operation instruction corresponding to a first preset operation or a second preset operation input by a user and the image parameters of the photographed image.
The image parameter comprises at least one of image information, photographing condition information and user operation parameter information.
Further, the terminal further includes: the first setting module is used for setting a similar threshold before detecting whether a similar image of the photographed image exists in a preset storage space;
correspondingly, the first detection module comprises: and the first detection submodule is used for detecting whether the similar image of the photographed image exists in a preset storage space or not according to the similar threshold value.
Wherein the operation of detecting whether the similar image of the photographed image exists in the preset storage space comprises: extracting characteristic information in the photographed image; comparing the feature information with stored images in a preset storage space to obtain the corresponding similarity of each stored image; and acquiring a stored image corresponding to the similarity greater than or equal to the first threshold as a similar image.
Preferably, the operation of acquiring a stored image corresponding to a similarity greater than or equal to a first threshold as a similar image includes: when only one stored image is corresponding to the similarity greater than or equal to the first threshold, taking the acquired stored image as a similar image; or when there are a plurality of stored images corresponding to the similarity greater than or equal to the first threshold, acquiring the stored image corresponding to the similarity with the maximum value, and taking the stored image as a similar image.
Further, the terminal further includes: and the third processing module is used for saving the photographed image if the similar image does not exist.
Further, the terminal further includes: the first determining module is used for determining the current function type before outputting prompt information with similar images; the fourth processing module is used for outputting prompt information of similar images if the current function type is photo shooting and the similar images exist; or if the current function type is search positioning and the similar image exists, positioning and displaying the similar image.
The terminal provided by the embodiment of the present invention can implement each process implemented by the terminal in the method embodiments of fig. 1 to fig. 4, and is not described herein again to avoid repetition.
Fig. 6 is a schematic diagram of a hardware structure of a terminal for implementing various embodiments of the present invention, where the terminal 60 includes, but is not limited to: radio frequency unit 61, network module 62, audio output unit 63, input unit 64, sensor 65, display unit 66, user input unit 67, interface unit 68, memory 69, processor 610, and power supply 611. Those skilled in the art will appreciate that the terminal configuration shown in fig. 6 is not intended to be limiting, and that the terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 610 is configured to obtain a photographed image photographed when the photographing instruction is received; detecting whether a similar image of the photographed image exists in a preset storage space; and if the similar image exists, outputting prompt information of the similar image.
In the embodiment of the invention, the photographed image photographed when the photographing instruction is received is acquired; detecting whether a similar image of the photographed image exists in a preset storage space; if the similar image exists, outputting prompt information of the similar image; the method and the device can remind the user that the similar pictures exist in the user terminal when the user takes the picture, so that the user can select whether to continue taking the picture or other processing methods, and the problem that the picture taking scheme in the prior art occupies a large space when storing the similar pictures is well solved.
Optionally, the processor 610 is further configured to store the photographed image or abandon storing the photographed image after outputting the prompt message that the similar image exists.
Optionally, the processor 610 is specifically configured to directly store the photographed image, or store the photographed image by overlaying the similar image.
Optionally, the processor 610 is further configured to obtain an operation instruction after outputting the prompt message that the similar image exists; the operation instruction is used for indicating a processing mode of the photographed image, and the processing mode is to store the photographed image or abandon to store the photographed image; and processing the photographed image according to the processing mode indicated by the operation instruction.
Optionally, when the operation instruction is used to indicate that the processing mode of the photographed image is to store the photographed image, the operation instruction further includes a storage mode of storing the photographed image, where the storage mode is to directly store the photographed image or to store the photographed image by covering the similar image.
Optionally, the processor 610 is specifically configured to obtain a mapping relationship between an image parameter in a preset machine learning model and a corresponding operation instruction; and acquiring an operation instruction corresponding to the photographed image according to the mapping relation and the image parameters of the photographed image.
Optionally, the processor 610 is specifically configured to obtain a first preset operation or a second preset operation input by a user, where the operation instruction corresponding to the first preset operation is used to indicate that the processing mode of the photographed image is to store the photographed image, and the operation instruction corresponding to the second preset operation is used to indicate that the processing mode of the photographed image is to give up storing the photographed image.
Optionally, the processor 610 is further configured to construct a preset machine learning model according to an operation instruction corresponding to a first preset operation or a second preset operation input by a user and the image parameter of the photographed image.
Optionally, the image parameter includes at least one of image information, photographing condition information, and user operation parameter information.
Optionally, the processor 610 is further configured to set a similarity threshold before detecting whether a similar image of the photographed image exists in a preset storage space;
the processor 610 is specifically configured to detect whether a similar image of the photographed image exists in a preset storage space according to the similarity threshold.
Optionally, the processor 610 is specifically configured to extract feature information in the photographed image; comparing the feature information with stored images in a preset storage space to obtain the corresponding similarity of each stored image; and acquiring a stored image corresponding to the similarity greater than or equal to the first threshold as a similar image.
Optionally, the processor 610 is specifically configured to, when there is only one stored image corresponding to the similarity greater than or equal to the first threshold, take the acquired stored image as a similar image; or when there are a plurality of stored images corresponding to the similarity greater than or equal to the first threshold, acquiring the stored image corresponding to the similarity with the maximum value, and taking the stored image as a similar image.
Optionally, the processor 610 is further configured to save the photographed image if the similar image does not exist.
Optionally, the processor 610 is further configured to determine a current function type before outputting the prompt that a similar image exists; if the current function type is photo shooting and the similar image exists, outputting prompt information of the similar image; or if the current function type is search positioning and the similar image exists, positioning and displaying the similar image.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 61 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 610; in addition, the uplink data is transmitted to the base station. Typically, the radio frequency unit 61 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 61 can also communicate with a network and other devices through a wireless communication system.
The terminal provides wireless broadband internet access to the user via the network module 62, such as to assist the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 63 may convert audio data received by the radio frequency unit 61 or the network module 62 or stored in the memory 69 into an audio signal and output as sound. Also, the audio output unit 63 may also provide audio output related to a specific function performed by the terminal 60 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 63 includes a speaker, a buzzer, a receiver, and the like.
The input unit 64 is used to receive an audio or video signal. The input Unit 64 may include a Graphics Processing Unit (GPU) 641 and a microphone 642, and the Graphics processor 641 processes image data of still pictures or video obtained by an image capturing device (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 66. The image frames processed by the graphic processor 641 may be stored in the memory 69 (or other storage medium) or transmitted via the radio frequency unit 61 or the network module 62. The microphone 642 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 61 in case of the phone call mode.
The terminal 60 also includes at least one sensor 65, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 661 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 661 and/or a backlight when the terminal 60 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 65 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 66 is used to display information input by the user or information provided to the user. The Display unit 66 may include a Display panel 661, and the Display panel 661 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 67 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal. Specifically, the user input unit 67 includes a touch panel 671 and other input devices 672. The touch panel 671, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 671 (e.g., operations by a user on or near the touch panel 671 using a finger, a stylus, or any other suitable object or attachment). The touch panel 671 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 610, receives a command from the processor 610, and executes the command. In addition, the touch panel 671 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 671, the user input unit 67 may also include other input devices 672. In particular, the other input devices 672 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 671 can be overlaid on the display panel 661, and when the touch panel 671 detects a touch operation on or near the touch panel 671, the touch panel 671 can be transmitted to the processor 610 to determine the type of the touch event, and then the processor 610 can provide a corresponding visual output on the display panel 661 according to the type of the touch event. Although the touch panel 671 and the display panel 661 are shown as two separate components in fig. 6 to implement the input and output functions of the terminal, in some embodiments, the touch panel 671 and the display panel 661 can be integrated to implement the input and output functions of the terminal, which is not limited herein.
The interface unit 68 is an interface for connecting an external device to the terminal 60. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 68 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the terminal 60 or may be used to transmit data between the terminal 60 and external devices.
The memory 69 may be used to store software programs as well as various data. The memory 69 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 69 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 610 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 69 and calling data stored in the memory 69, thereby performing overall monitoring of the terminal. Processor 610 may include one or more processing units; preferably, the processor 610 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
The terminal 60 may further include a power supply 611 (e.g., a battery) for supplying power to various components, and preferably, the power supply 611 may be logically connected to the processor 610 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system.
In addition, the terminal 60 includes some functional modules that are not shown, and will not be described in detail herein.
Preferably, an embodiment of the present invention further provides a terminal, including a processor 610, a memory 69, and a computer program stored in the memory 69 and capable of running on the processor 610, where the computer program is executed by the processor 610 to implement each process of the above-mentioned photographing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the processes of the above-mentioned photographing method embodiment, and can achieve the same technical effects, and in order to avoid repetition, the descriptions thereof are omitted here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, 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.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A method of taking a picture, comprising:
acquiring a photographed image photographed when a photographing instruction is received;
detecting whether a similar image of the photographed image exists in a preset storage space;
if the similar image exists, outputting prompt information of the similar image;
after outputting the prompt message that the similar image exists, the photographing method further comprises the following steps:
acquiring an operation instruction; the operation instruction is used for indicating a processing mode of the photographed image, and the processing mode is to store the photographed image or abandon to store the photographed image;
processing the photographed image according to the processing mode indicated by the operation instruction;
the obtaining operation instruction comprises: acquiring a mapping relation between image parameters and corresponding operation instructions in a preset machine learning model; acquiring an operation instruction corresponding to the photographed image according to the mapping relation and the image parameters of the photographed image;
the method further comprises the following steps: constructing a preset machine learning model according to an operation instruction corresponding to a first preset operation or a second preset operation input by a user and the image parameters of the photographed image; the image parameter comprises at least one of image information, photographing condition information and user operation parameter information.
2. The photographing method according to claim 1, wherein after outputting a prompt message that a similar image exists, the photographing method further comprises:
storing the photographed image or forgoing storing the photographed image.
3. The photographing method according to claim 2, wherein the step of storing the photographed image comprises:
and directly storing the photographed image, or storing the photographed image by covering the similar image.
4. The photographing method according to claim 1, wherein when the operation instruction is used to instruct that the processing mode of the photographed image is to store the photographed image, the operation instruction further includes a storage mode of storing the photographed image, and the storage mode is to directly store the photographed image or store the photographed image by overwriting the similar image.
5. A terminal, comprising:
the first acquisition module is used for acquiring a photographed image photographed when a photographing instruction is received;
the first detection module is used for detecting whether a similar image of the photographed image exists in a preset storage space or not;
the first processing module is used for outputting prompt information of the similar images if the similar images exist;
the second acquisition module is used for acquiring an operation instruction after outputting prompt information with similar images; the operation instruction is used for indicating a processing mode of the photographed image, and the processing mode is to store the photographed image or abandon to store the photographed image;
the second processing module is used for processing the photographed image according to the processing mode indicated by the operation instruction;
wherein the obtaining the operation instruction comprises: acquiring a mapping relation between image parameters and corresponding operation instructions in a preset machine learning model; acquiring an operation instruction corresponding to the photographed image according to the mapping relation and the image parameters of the photographed image;
the first construction module is used for constructing a preset machine learning model according to an operation instruction corresponding to a first preset operation or a second preset operation input by a user and the image parameters of the photographed image; the image parameter comprises at least one of image information, photographing condition information and user operation parameter information.
6. The terminal of claim 5, further comprising:
and the first storage module is used for storing the photographed image or abandoning the storage of the photographed image after outputting the prompt message that the similar image exists.
7. The terminal of claim 6, wherein the first storage module comprises:
and the first storage submodule is used for directly storing the photographed image or storing the photographed image by covering the similar image.
8. The terminal according to claim 5, wherein when the operation instruction is used to instruct that the processing mode of the photographed image is to store the photographed image, the operation instruction further includes a storage mode of storing the photographed image, and the storage mode is to directly store the photographed image or store the photographed image by covering the similar image.
9. A terminal, characterized in that it comprises a processor, a memory and a computer program stored on said memory and executable on said processor, said computer program, when executed by said processor, implementing the steps of the photographing method according to any one of claims 1 to 4.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the photographing method according to any one of claims 1 to 4.
CN201810049142.5A 2018-01-18 2018-01-18 Photographing method, terminal and computer readable storage medium Active CN108182271B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810049142.5A CN108182271B (en) 2018-01-18 2018-01-18 Photographing method, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810049142.5A CN108182271B (en) 2018-01-18 2018-01-18 Photographing method, terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108182271A CN108182271A (en) 2018-06-19
CN108182271B true CN108182271B (en) 2020-11-17

Family

ID=62550937

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810049142.5A Active CN108182271B (en) 2018-01-18 2018-01-18 Photographing method, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108182271B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109819166B (en) * 2019-01-31 2021-03-02 维沃移动通信有限公司 Image processing method and electronic equipment
WO2021087885A1 (en) * 2019-11-07 2021-05-14 深圳市大疆创新科技有限公司 Photographing method, camera, unmanned aerial vehicle, and storage medium
CN110868537B (en) * 2019-11-08 2022-01-04 维沃移动通信有限公司 Shooting method and electronic equipment
CN111262778B (en) * 2020-01-17 2021-10-26 北京字节跳动网络技术有限公司 Invitation link information processing method and device, electronic equipment and readable medium
CN112911058B (en) * 2021-01-20 2022-07-15 惠州Tcl移动通信有限公司 Photographing control method and device, mobile terminal and storage medium
CN113642555B (en) * 2021-07-29 2022-08-05 深圳市芯成像科技有限公司 Image processing method, computer readable medium and system
CN115720256B (en) * 2022-11-15 2023-10-10 华瑞研能科技(深圳)有限公司 Intelligent shooting and saving method and system for hunting camera and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102831446A (en) * 2012-08-20 2012-12-19 南京邮电大学 Image appearance based loop closure detecting method in monocular vision SLAM (simultaneous localization and mapping)
CN103558996A (en) * 2013-10-25 2014-02-05 广东欧珀移动通信有限公司 Photo processing method and system
CN104461297A (en) * 2014-12-05 2015-03-25 上海斐讯数据通信技术有限公司 Mobile terminal with screen and screen image capturing method thereof
CN105989599A (en) * 2015-02-15 2016-10-05 西安酷派软件科技有限公司 Image processing method and apparatus, and terminal
CN107589963A (en) * 2017-09-26 2018-01-16 维沃移动通信有限公司 A kind of image processing method, mobile terminal and computer-readable recording medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102831446A (en) * 2012-08-20 2012-12-19 南京邮电大学 Image appearance based loop closure detecting method in monocular vision SLAM (simultaneous localization and mapping)
CN103558996A (en) * 2013-10-25 2014-02-05 广东欧珀移动通信有限公司 Photo processing method and system
CN104461297A (en) * 2014-12-05 2015-03-25 上海斐讯数据通信技术有限公司 Mobile terminal with screen and screen image capturing method thereof
CN105989599A (en) * 2015-02-15 2016-10-05 西安酷派软件科技有限公司 Image processing method and apparatus, and terminal
CN107589963A (en) * 2017-09-26 2018-01-16 维沃移动通信有限公司 A kind of image processing method, mobile terminal and computer-readable recording medium

Also Published As

Publication number Publication date
CN108182271A (en) 2018-06-19

Similar Documents

Publication Publication Date Title
CN108182271B (en) Photographing method, terminal and computer readable storage medium
CN110740259B (en) Video processing method and electronic equipment
CN108471498B (en) Shooting preview method and terminal
CN108777766B (en) Multi-person photographing method, terminal and storage medium
CN110557683B (en) Video playing control method and electronic equipment
CN108174103B (en) Shooting prompting method and mobile terminal
CN108848313B (en) Multi-person photographing method, terminal and storage medium
CN110072012B (en) Reminding method for screen state switching and mobile terminal
CN111416940A (en) Shooting parameter processing method and electronic equipment
CN109819168B (en) Camera starting method and mobile terminal
US11250046B2 (en) Image viewing method and mobile terminal
CN110618969B (en) Icon display method and electronic equipment
CN108984066B (en) Application icon display method and mobile terminal
CN109788204A (en) Shoot processing method and terminal device
CN108962187B (en) Screen brightness adjusting method and mobile terminal
KR102680936B1 (en) Object display methods and electronic devices
CN109618218B (en) Video processing method and mobile terminal
CN108984143B (en) Display control method and terminal equipment
CN108174110B (en) Photographing method and flexible screen terminal
CN107728877B (en) Application recommendation method and mobile terminal
CN110602387B (en) Shooting method and electronic equipment
CN111064888A (en) Prompting method and electronic equipment
CN108924413B (en) Shooting method and mobile terminal
CN108762641B (en) Text editing method and terminal equipment
CN108345657B (en) Picture screening method and mobile terminal

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
GR01 Patent grant
GR01 Patent grant