CN114298883A - Image processing method, intelligent terminal and storage medium - Google Patents

Image processing method, intelligent terminal and storage medium Download PDF

Info

Publication number
CN114298883A
CN114298883A CN202111551515.7A CN202111551515A CN114298883A CN 114298883 A CN114298883 A CN 114298883A CN 202111551515 A CN202111551515 A CN 202111551515A CN 114298883 A CN114298883 A CN 114298883A
Authority
CN
China
Prior art keywords
information
image
processed
shooting
watermark
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111551515.7A
Other languages
Chinese (zh)
Inventor
赵玮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Transsion Holdings Co Ltd
Original Assignee
Shenzhen Transsion Holdings 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 Shenzhen Transsion Holdings Co Ltd filed Critical Shenzhen Transsion Holdings Co Ltd
Priority to CN202111551515.7A priority Critical patent/CN114298883A/en
Publication of CN114298883A publication Critical patent/CN114298883A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Telephone Function (AREA)

Abstract

The application discloses an image processing method, an intelligent terminal and a storage medium, wherein the image processing method comprises the following steps: acquiring shooting information of an image to be processed; and determining the watermark information of the image to be processed based on a preset strategy according to the shooting information. According to the image processing method, the watermark information of the image to be processed is determined according to the shooting information of the image to be processed, the watermark content of the image can be enriched and colorful, the individuation level of the image is improved, and the user experience is effectively improved.

Description

Image processing method, intelligent terminal and storage medium
Technical Field
The present application relates to the field of terminal technologies, and in particular, to an image processing method, an intelligent terminal, and a storage medium.
Background
The rapid popularization of the intelligent terminal brings more fun and convenience to the work and life of a user, wherein the user can select to add a watermark with a mark or interesting characters on a picture or a video in order to protect the safe use of a multimedia file or increase the interestingness.
In the course of conceiving and implementing the present application, the inventors found that at least the following problems existed: the added watermark has single content, and cannot express the individual characteristics of the picture or the video, so that the user experience is influenced.
The foregoing description is provided for general background information and is not admitted to be prior art.
Disclosure of Invention
The application aims to provide an image processing method, an intelligent terminal and a storage medium, which can enable the watermark content of an image to be more colorful, improve the personalized level of the image and effectively improve the user experience.
The application provides an image processing method, which comprises the following steps:
s101, acquiring shooting information of an image to be processed;
step S202, according to the shooting information, determining the watermark information of the image to be processed based on a preset strategy.
Optionally, the shooting information includes at least one of: shooting position information, shooting environment information, and shooting object information.
Optionally, the step S101 includes:
and carrying out object identification on the image to be processed to obtain shooting object information of the image to be processed.
Optionally, the object recognition is performed on the image to be processed to obtain shooting object information of the image to be processed, where the shooting object information includes at least one of:
carrying out shooting object type identification on the image to be processed to obtain shooting object type information;
carrying out shooting object name identification on the image to be processed to obtain shooting object name information;
and carrying out shooting object expression recognition on the image to be processed to obtain shooting object expression information.
Optionally, the step S102 includes at least one of:
determining the shooting position information and/or a preset position identification matched with the shooting position information as watermark information;
determining the shooting environment information and/or a preset environment icon matched with the shooting environment information as watermark information;
determining the shooting object type information as watermark information;
determining the name information of the shot object as watermark information;
and determining the preset expression pattern matched with the expression information of the shot object as watermark information.
Optionally, after the step S2, the method includes:
carrying out watermarking processing on the image to be processed based on the watermarking information to obtain a target image;
and classifying and storing the target image according to the watermark information.
Optionally, the performing watermarking processing on the image to be processed based on the watermarking information before obtaining the target image includes:
outputting prompt information for confirming whether to perform watermarking processing on the image to be processed based on the watermarking information;
and responding to the confirmation operation, executing the step of carrying out watermarking processing on the image to be processed based on the watermarking information to obtain a target image.
Optionally, the method further comprises:
and responding to an input operation, and adding input information at a preset position of the image to be processed.
The application also provides an intelligent terminal, intelligent terminal includes: a memory, a processor, wherein the memory has stored thereon a computer program which, when executed by the processor, implements the steps of the image processing method as set forth in any one of the above.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the image processing method as set forth in any of the above.
The image processing method, the intelligent terminal and the storage medium provided by the embodiment of the application comprise the following steps: acquiring shooting information of an image to be processed; and determining the watermark information of the image to be processed based on a preset strategy according to the shooting information. Therefore, the watermark information of the image to be processed is determined according to the shooting information of the image to be processed, the watermark content of the image can be enriched and colorful, the individuation level of the image is improved, and the user experience is effectively improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application. In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal according to an embodiment of the present disclosure;
fig. 2 is a communication network system architecture diagram according to an embodiment of the present application;
fig. 3 is a schematic flowchart of an image processing method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of an image processing method according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings. With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
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, the recitation of an element by the phrase "comprising an … …" does not exclude the presence of additional like elements in the process, method, article, or apparatus that comprises the element, and optionally, identically named components, features, and elements in different embodiments of the present application may have different meanings, as may be determined by their interpretation in the embodiment or by their further context within the embodiment.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope herein. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context. Also, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It will be further understood that the terms "comprises," "comprising," "includes" and/or "including," when used in this specification, specify the presence of stated features, steps, operations, elements, components, items, species, and/or groups, but do not preclude the presence, or addition of one or more other features, steps, operations, elements, components, species, and/or groups thereof. The terms "or" and/or "as used herein are to be construed as inclusive or meaning any one or any combination. Thus, "A, B or C" or "A, B and/or C" means "any of the following: a; b; c; a and B; a and C; b and C; A. b and C ". An exception to this definition will occur only when a combination of elements, functions, steps or operations are inherently mutually exclusive in some way.
It should be understood that, although the steps in the flowcharts in the embodiments of the present application are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, in different orders, and may be performed alternately or at least partially with respect to other steps or sub-steps of other steps.
It should be noted that step numbers such as S101 and S102 are used herein for the purpose of more clearly and briefly describing the corresponding contents, and do not constitute a substantial limitation on the sequence, and those skilled in the art may perform S102 first and then S101 in specific implementations, but these steps should be within the scope of the present application.
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for the convenience of description of the present application, and have no specific meaning in themselves. Thus, "module", "component" or "unit" may be used mixedly.
The smart terminal may be implemented in various forms. For example, the smart terminal described in the present application may include mobile terminals such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and fixed terminals such as a Digital TV, a desktop computer, and the like.
The following description will be given taking a mobile terminal as an example, and it will be understood by those skilled in the art that the configuration according to the embodiment of the present application can be applied to a fixed type terminal in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present application, the mobile terminal 100 may include: an RF (Radio Frequency) unit 101, a wireless network module 102, an audio output unit 103, an a/V (audio/video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 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. Alternatively, the radio frequency unit 101 may also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex-Long Term Evolution), TDD-LTE (Time Division duplex-Long Term Evolution, Time Division Long Term Evolution), 5G, and so on.
The wireless network belongs to the short-distance wireless transmission technology, the mobile terminal can help the user to receive and send e-mails, browse webpages, access streaming media and the like through the wireless network module 102, and wireless broadband internet access is provided for the user. Although fig. 1 shows the wireless network module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the wireless network module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the wireless network module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Optionally, the light sensor includes an ambient light sensor that may adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 1061 and/or the backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 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 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Alternatively, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Optionally, the touch detection device detects a touch orientation of a user, detects a signal caused by a 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 110, and can receive and execute commands sent by the processor 110. Alternatively, the touch panel 1071 may be implemented in various types, such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Optionally, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited thereto.
Alternatively, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. 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 108 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 mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a program storage area and a data storage area, and optionally, the program storage area may store an operating system, an application program (such as a sound playing function, an image playing function, and the like) required by at least one function, 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. Optionally, the memory 109 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 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, optionally, the application processor mainly handles operating systems, user interfaces, application programs, etc., and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present application, a communication network system on which the mobile terminal of the present application is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present disclosure, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Optionally, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Alternatively, the eNodeB2021 may be connected with other enodebs 2022 through a backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. Optionally, the MME2031 is a control node that handles signaling between the UE201 and the EPC203, providing bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present application is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems (e.g. 5G), and the like.
Based on the above mobile terminal hardware structure and communication network system, various embodiments of the present application are provided.
Referring to fig. 3, for the image processing method provided in the embodiment of the present application, the method may be applied to a case of adding a watermark to an image, and the method may be executed by an image processing apparatus provided in the embodiment of the present application, the apparatus may be implemented in a software and/or hardware manner, and in a specific application, the apparatus may be specifically an intelligent terminal or the like. The smart terminal may be implemented in various forms, and the smart terminal described in this embodiment may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palm top computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a wearable device, a smart band, and a pedometer. In this embodiment, taking an execution subject of the image processing method as an example of an intelligent terminal, the image processing method includes the following steps:
step S101: and acquiring shooting information of the image to be processed.
Optionally, the image to be processed may be an image that is not completely photographed, such as a preview image, or may also be an image that is completely photographed, such as a photo in an album, a video, or the like. The photographing information may be used to represent information related to a photographing position, environment, object, etc. when the image to be processed is photographed. Optionally, the shooting information includes at least one of: shooting position information, shooting environment information, and shooting object information. The shooting position information can be used for representing the corresponding position when the intelligent terminal shoots the image to be processed, or the position of an object in the image to be processed.
For example, if the user uses the smart terminal to photograph a certain building at the location B when the user is at the location a, the photographing location information may be the location a or the location B. The shooting environment information may be used to represent environment information of the to-be-processed image when being shot, and the environment information may be a weather type (e.g., sunny day, rainy day, etc.), a temperature, a wind level, a time (e.g., day, night, etc.), and the like. The photographic subject information may be used to characterize the type of subject in the image to be processed (e.g., whether the subject is a person, a landscape, an animal, or food, etc.), the name (e.g., the name of a public person, a mountain, a lake, etc.), the expression (e.g., whether the subject is happy, sad, etc.), and the like. It should be noted that the shooting information may be automatically obtained during the process of shooting the to-be-processed image, for example, the intelligent terminal obtains the shooting position information through a positioning function before finishing shooting the to-be-processed image, and/or obtains the shooting environment information through a networking function, or may be obtained after shooting the to-be-processed image, for example, the intelligent terminal uses the position information obtained through the positioning function as the shooting position information, and/or uses the environment information obtained through the networking function as the shooting environment information after finishing shooting the to-be-processed image.
Optionally, the step S101 includes: and carrying out object identification on the image to be processed to obtain shooting object information of the image to be processed. As can be understood, since the image to be processed includes a photographic subject, the photographic subject information of the image to be processed can be obtained by performing subject recognition on the image to be processed.
Optionally, the object recognition is performed on the image to be processed to obtain shooting object information of the image to be processed, where the shooting object information includes at least one of: carrying out shooting object type identification on the image to be processed to obtain shooting object type information; carrying out shooting object name identification on the image to be processed to obtain shooting object name information; and carrying out shooting object expression recognition on the image to be processed to obtain shooting object expression information.
Optionally, the type identification of the object to be shot on the image to be processed to obtain the type information of the object to be shot may be performed by first extracting the object from the image to be processed, then judging whether the extracted object is a person, and if so, determining that the type of the object to be shot is a person; and/or, if not, detecting whether the extracted object is a landscape, an animal, food, etc., and further determining the corresponding type of the shooting object based on the detection result, for example, when the object is detected to be a mountain, a river, a lake, a forest, a blue sky and a white cloud, the type of the shooting object is indicated to be a landscape, when the object is detected to be a cat, a dog, a cow, a sheep or a fish, the type of the shooting object is indicated to be an animal, and when the object is detected to be a cake, a noodle or a steamed bun, the type of the shooting object is indicated to be a delicious food.
Optionally, the name recognition of the object to be processed is performed on the image to be processed to obtain the name information of the object, and after the type of the object to be processed is determined, the object extracted from the image to be processed may be matched based on a preset object database corresponding to the type of the object to be processed to obtain the name information of the object to be processed. For example, when it is determined that the type of the subject is a person, matching may be performed on the subject extracted from the image to be processed based on a preset public person database to determine whether the subject is a public person, such as a star, and if the subject is a public person, information such as a name of the public person may be acquired as the subject name information. Still alternatively, when it is determined that the type of the photographic subject is an animal, matching may be performed on the subject extracted from the image to be processed based on a preset animal database to obtain a corresponding name of the animal as photographic subject name information.
Optionally, the expression recognition of the to-be-processed image is performed to obtain the expression information of the to-be-processed image, and the expression recognition of the to-be-processed image may be performed based on a preset expression database corresponding to the type of the to-be-processed image after the type of the to-be-processed image is determined to obtain the expression information of the to-be-processed image. For example, when the photographic subject of the image to be processed is a person, facial expression recognition of the photographic subject can be performed on the image to be processed based on a preset facial expression database to obtain facial expression information of the photographic subject, such as whether the facial expression type of the photographic subject is happy or sad. Therefore, the object identification is carried out on the image to be processed in different modes, different shooting object information is obtained, the watermark content of the image can be further enriched, and the individuation level of the image can be further improved.
Step S102: and determining the watermark information of the image to be processed based on a preset strategy according to the shooting information.
It can be understood that, according to the difference of the shooting information, the preset policy may be correspondingly set according to the actual situation, for example, directly determining the shooting information as the watermark information, or determining the identification information of the shooting information as the watermark information, or the like.
Optionally, the step S102 includes at least one of:
determining the shooting position information and/or a preset position identification matched with the shooting position information as watermark information;
determining the shooting environment information and/or a preset environment icon matched with the shooting environment information as watermark information;
determining the shooting object type information as watermark information;
determining the name information of the shot object as watermark information;
and determining the preset expression pattern matched with the expression information of the shot object as watermark information.
Optionally, when the shooting information includes shooting position information, the shooting position information may be directly determined as the watermark information of the image to be processed, or a preset position identifier matched with the shooting position information may be determined as the watermark information of the image to be processed. For example, if the shooting position information corresponding to the image to be processed is "third-generation city", the character "third-generation city" may be directly used as the watermark information of the image to be processed, or the city logo corresponding to the "third-generation city" may be used as the watermark information of the image to be processed. Or, assuming that the shooting position information corresponding to the image to be processed is "zhangjia kingdom tianguo shan country forest park", the character "zhangjia kingdom tianguo country forest park" may be directly used as the watermark information of the image to be processed, and the logo of the scenic spot corresponding to the "zhangjia kingdom tianguo country forest park" may also be used as the watermark information of the image to be processed.
Optionally, when the shooting information includes shooting environment information, the shooting environment information may be directly determined as the watermark information of the image to be processed, or a preset environment icon matched with the shooting environment information may be determined as the watermark information of the image to be processed. For example, if the shooting environment information corresponding to the image to be processed is "heavy snow", the character "heavy snow" may be directly used as the watermark information of the image to be processed, and a weather identifier corresponding to the "heavy snow", that is, three snowflakes under one cloud, may also be used as the watermark information of the image to be processed.
Alternatively, when the photographic information includes photographic subject type information, the photographic subject type information may be determined as watermark information. For example, if the shooting object type information is "star", the character "star" may be used as the watermark information of the image to be processed, and the name of the star may be used as the watermark information of the image to be processed at the same time.
Alternatively, when the photographic information includes photographic subject name information, the photographic subject name information may be determined as watermark information. For example, assuming that the photographic subject name information is "dog", a character "dog" may be used as the watermark information of the image to be processed.
Optionally, when the shooting information includes shooting object expression information, a preset expression pattern matched with the shooting object expression information may be determined as watermark information. For example, assuming that the expression information of the photographic subject is "hurting heart", a preset expression pattern corresponding to "hurting heart", such as a "lacrimation" expression packet, may be used as the watermark information of the image to be processed. Therefore, the watermark information of the image to be processed is correspondingly determined according to different shooting information of the image to be processed, the watermark content of the image can be further enriched, and the individuation level of the image can be further improved.
It should be noted that, the user may also adjust the watermark information of the image to be processed according to the requirement, for example, adjust the size, transparency, color, position, font, and the like of the watermark information, so that the watermark information of the image to be processed more meets the requirement of the user.
In summary, in the image processing method provided by the embodiment, the watermark information of the image to be processed is determined according to the shooting information of the image to be processed, so that the watermark content of the image can be richer and more colorful, the personalized level of the image is improved, and the user experience is effectively improved.
Optionally, after the step S102, the method includes:
carrying out watermarking processing on the image to be processed based on the watermarking information to obtain a target image;
and classifying and storing the target image according to the watermark information.
Optionally, when the image to be processed is an image that is not completely photographed, such as a preview image, if a photographing instruction is received, the image to be processed may be subjected to watermarking based on the watermark information to obtain a target image, that is, the image to be processed including the watermark information is obtained. Because the watermark information can represent the shooting information of the image to be processed, the target image can be classified and stored according to the watermark information in order to manage the image conveniently. For example, assuming that an album of the smart terminal includes a first folder labeled with "animal" and a second folder labeled with "person", if the watermark information is "dog", the target image may be stored in the first folder, so as to implement classified storage. Therefore, classification storage is carried out according to the watermark information of the image, subsequent images can be conveniently searched, operations such as sharing the image are convenient to carry out, and user experience is further improved.
Optionally, the performing watermarking processing on the image to be processed based on the watermarking information before obtaining the target image includes:
outputting prompt information for confirming whether to perform watermarking processing on the image to be processed based on the watermarking information;
and responding to the confirmation operation, executing the step of carrying out watermarking processing on the image to be processed based on the watermarking information to obtain a target image.
Optionally, since the user may or may not need to perform watermarking on the image to be processed based on the watermark information, that is, the watermark information is displayed on the image to be processed, at this time, after the watermark information is determined, the intelligent terminal may output text or voice prompt information for confirming whether to perform watermarking on the image to be processed based on the watermark information, when a confirmation operation input by the user is received or an operation input by the user is not received for a time period exceeding a preset time period, it is indicated that the user needs to perform watermarking on the image to be processed based on the watermark information, at this time, the step of performing watermarking on the image to be processed based on the watermark information is continuously performed, and a target image is obtained. For example, after determining the shooting position information of the image to be processed as the watermark information, the intelligent terminal may output a prompt message for prompting a user whether to display the shooting position information of the image to be processed on the image to be processed as watermark content. Therefore, the user experience is further improved by outputting the prompt information to facilitate the user to select and confirm the watermark content of the image to be processed.
Optionally, the method further comprises:
receiving an input operation aiming at the image to be processed;
responding to the input operation, and adding input information at a preset position of the image to be processed.
It is understood that, under the influence of the shooting scene, the shooting position, the personal emotion and other factors, the user may need to add custom content to the image to be processed, such as a sentence or a poem that is thought when the image to be processed is shot, to be retained in the image to be processed, so as to facilitate the subsequent viewing or expression of the emotion and the like. After the intelligent terminal receives the input operation aiming at the image to be processed, the input information can be added at the preset position of the image to be processed according to the input operation. It should be noted that the preset position may be a default position, or may be a position determined by a user through a click or the like. Optionally, the input information may also be used as the watermark content of the image to be processed. Therefore, the user can express the emotion and show the personality conveniently by inputting the custom content on the image to be processed, and the user experience is further improved.
Based on the same application concept of the foregoing embodiments, the present embodiment describes in detail the technical solutions of the foregoing embodiments by a specific example. Referring to fig. 4, the image processing method provided by the embodiment of the present application includes the following steps:
step S201: the camera application is opened.
Optionally, the smart terminal will open the camera application when the user clicks on the camera application icon or otherwise invokes the camera application.
Step S202: and acquiring current position information and prompting whether the current position information is used as watermark content.
Optionally, the intelligent terminal may perform positioning through a global navigation positioning system, a beidou satellite navigation system, or through networking, and the like, obtain position information such as a current city name or longitude and latitude, and prompt the user on a preview interface whether to display the position information on the image as watermark content. If the user selects to display the position information on the image, the position information can be displayed at a preset position of the image by default, such as the lower left corner.
Step S203: and acquiring current weather and/or temperature information, and prompting whether the current weather and/or temperature information is used as watermark content.
Optionally, the smart terminal may obtain current weather and/or temperature information, such as 30 ° sunny, 20 ° rainy, 15 ° typhoon, and the like, through a weather application, and prompt the user on a preview interface whether to display the current weather and/or temperature information on the image as watermark content. If the user selects to display the current weather and/or temperature information as watermark content on the image, the current weather and/or temperature information may be displayed at a preset position of the image by default, such as the lower right corner.
Step S204: and judging whether the preview image contains a portrait or not, if so, executing the step S205, and/or otherwise, executing the step S208.
Step S205: and judging whether the portrait is a star or not based on the face recognition, if so, executing step S206, and/or otherwise, executing step S207.
Optionally, the intelligent terminal may compare the portrait in the preview image with a preset portrait library to detect whether the portrait is matched with a star portrait in the preset portrait library, if so, the step S206 is continuously executed, and/or if not, the step S207 is continuously executed.
Step S206: and acquiring a star name corresponding to the portrait and prompting whether the star name is used as watermark content.
Optionally, when detecting that the portrait is matched with a star portrait in a preset portrait library, the intelligent terminal may correspondingly obtain a star name corresponding to the portrait, and prompt the user on a preview interface whether to display the star name as watermark content on the image. If the user selects to display the star name as the watermark content on the image, the star name can be displayed at a preset position of the image by default, such as a central position.
Step S207: and acquiring portrait expression information, and prompting whether a picture corresponding to the portrait expression information is used as watermark content.
Optionally, the intelligent terminal may perform expression recognition on the portrait in the preview image based on a face key point detection technology, so as to obtain portrait expression information, such as a face expression type, and automatically match the portrait expression information with a preset expression picture library, so as to obtain a picture corresponding to the portrait expression information, such as a cartoon image or an animation picture, and prompt a user on a preview interface whether to display the picture corresponding to the portrait expression information on the image as watermark content. If the user selects to display the picture corresponding to the portrait expression information on the image as the watermark content, the picture can be displayed at a preset position of the image by default, such as a central position. Optionally, the user may also select a picture from a preset expression picture library in a manual manner as the picture corresponding to the portrait expression information.
Step S208: and acquiring scene information in the preview image, and prompting whether the scene information is used as watermark content.
Optionally, the intelligent terminal may perform scene recognition on the preview image to obtain scene information in the preview image, for example, detect whether the preset image includes information of a mountain, a river, a lake, a sea, a forest, a blue sky, or a white cloud, so as to determine whether the preset image is a landscape scene; or matching the object information in the preset image with a preset food library to judge whether the preset image is a food scene; or matching the object information in the preset image with a preset animal library to judge whether the preset image is an animal scene or not, and then prompting whether scene information is displayed on the image as watermark content or not.
Step S209: and adjusting the setting of the watermark according to a watermark setting instruction input by a user.
Optionally, the user can add characters in the image in a self-defined manner according to own needs, such as the name of the user, the current comprehension, the verse, the lyric and the like, and the characters added in the self-defined manner can be displayed in the center of the lower edge of the image in a default manner. Optionally, the user may also set the position of the watermark, adjust the size, angle, font, color, transparency, etc. Generally, after the intelligent terminal receives an instruction of clicking the watermark by a user, the watermark can be controlled to enter an editable state.
Step S210: and receiving a shooting instruction, and generating an image containing the watermark.
Optionally, after the user clicks the button for taking a picture or recording a video, the intelligent terminal correspondingly receives the shooting instruction, and the watermark is automatically displayed on the shot picture or video to obtain the image containing the watermark.
Step S211: and automatically classifying and storing the images according to the watermarks.
Optionally, in the gallery, the intelligent terminal may automatically classify and store the images with the watermark information into corresponding folders by retrieving the images with the watermark information, for example, the images may be classified according to the watermark information such as portrait, weather, city, landscape, animal, food, and the like. Here, the terminal may collect watermark information on different images, and if the number of images with the same watermark is greater than 2, the terminal may automatically establish a folder with the corresponding watermark information as a watermark label, and store the images with the same watermark information to the same folder, thereby implementing automatic classification.
It should be noted that, if the system default state of the intelligent terminal is the non-networking state, after the user opens the camera application to enter the camera interface or starts the watermark function, the intelligent terminal may prompt the user to start the network, and after the network is started, the steps S202 to S211 are executed.
In summary, in the image processing method provided in the above embodiment, by acquiring the positioning and weather information, and by face key point recognition and expression recognition, the watermark information is intelligently displayed and gallery classification is automatically implemented, which has the following advantages: the interestingness of the user in using the watermark function is increased, and the experience of photographing and video recording is improved; by adding customized watermarks, the emotion which the user wants to express is conveyed, and the personality is highlighted, so that each photo or video has story performance; according to the watermark label information, automatic classification can be achieved in the gallery, a user can conveniently search similar images, and therefore the images can be uploaded to a social platform to be shared more quickly, and the use experience of a camera is improved.
The embodiment of the present application further provides an intelligent terminal, the intelligent terminal includes: a memory, a processor, wherein the memory has stored thereon a computer program which, when executed by the processor, implements the steps of the image processing method as set forth in any one of the above.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the storage medium, and when being executed by a processor, the computer program implements the steps of the image processing method as described in any one of the above.
In the embodiments of the intelligent terminal and the computer-readable storage medium provided in the embodiments of the present application, all technical features of any one of the embodiments of the image processing method may be included, and the expanding and explaining contents of the specification are basically the same as those of the embodiments of the method, and are not described herein again.
Embodiments of the present application also provide a computer program product, which includes computer program code, when the computer program code runs on a computer, the computer is caused to execute the image processing method as described in the above various possible embodiments.
An embodiment of the present application further provides a chip, which includes a memory and a processor, where the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that a device in which the chip is installed executes the image processing method described in the above various possible embodiments.
It should be understood that the foregoing scenarios are only examples, and do not constitute a limitation on application scenarios of the technical solutions provided in the embodiments of the present application, and the technical solutions of the present application may also be applied to other scenarios. For example, as can be known by those skilled in the art, with the evolution of system architecture and the emergence of new service scenarios, the technical solution provided in the embodiments of the present application is also applicable to similar technical problems.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The units in the device in the embodiment of the application can be merged, divided and deleted according to actual needs.
In the present application, the same or similar term concepts, technical solutions and/or application scenario descriptions will be generally described only in detail at the first occurrence, and when the description is repeated later, the detailed description will not be repeated in general for brevity, and when understanding the technical solutions and the like of the present application, reference may be made to the related detailed description before the description for the same or similar term concepts, technical solutions and/or application scenario descriptions and the like which are not described in detail later.
In the present application, each embodiment is described with emphasis, and reference may be made to the description of other embodiments for parts that are not described or illustrated in any embodiment.
The technical features of the technical solution of the present application may be arbitrarily combined, and for brevity of description, all possible combinations of the technical features in the embodiments are not described, however, as long as there is no contradiction between the combinations of the technical features, the scope of the present application should be considered as being described in the present application.
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 solution of the present application or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as above, and includes several instructions for enabling an intelligent terminal (e.g., a mobile phone, a computer, a server, a controlled terminal, or a network device) to execute the method of each embodiment of the present application.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions according to the embodiments of the present application are all or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, memory Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (10)

1. An image processing method, characterized by comprising the steps of:
s101, acquiring shooting information of an image to be processed;
step S202, according to the shooting information, determining the watermark information of the image to be processed based on a preset strategy.
2. The method of claim 1, wherein the photographic information comprises at least one of: shooting position information, shooting environment information, and shooting object information.
3. The method according to claim 2, wherein the step S101 includes:
and carrying out object identification on the image to be processed to obtain shooting object information of the image to be processed.
4. The method according to claim 3, wherein the object recognition is performed on the image to be processed to obtain the shooting object information of the image to be processed, and the method comprises at least one of the following steps:
carrying out shooting object type identification on the image to be processed to obtain shooting object type information;
carrying out shooting object name identification on the image to be processed to obtain shooting object name information;
and carrying out shooting object expression recognition on the image to be processed to obtain shooting object expression information.
5. The method according to any one of claims 1 to 4, wherein the step S102 comprises at least one of:
determining the shooting position information and/or a preset position identification matched with the shooting position information as watermark information;
determining the shooting environment information and/or a preset environment icon matched with the shooting environment information as watermark information;
determining the shooting object type information as watermark information;
determining the name information of the shot object as watermark information;
and determining the preset expression pattern matched with the expression information of the shot object as watermark information.
6. The method according to any one of claims 1 to 4, wherein the step S102 is followed by:
carrying out watermarking processing on the image to be processed based on the watermarking information to obtain a target image;
and classifying and storing the target image according to the watermark information.
7. The method according to claim 6, wherein before performing watermarking on the image to be processed based on the watermarking information to obtain a target image, the method comprises:
outputting prompt information for confirming whether to perform watermarking processing on the image to be processed based on the watermarking information;
and responding to the confirmation operation, executing the step of carrying out watermarking processing on the image to be processed based on the watermarking information to obtain a target image.
8. The method of any of claims 1 to 4, further comprising:
and responding to an input operation, and adding input information at a preset position of the image to be processed.
9. An intelligent terminal, characterized in that, intelligent terminal includes: memory, processor, wherein the memory has stored thereon a computer program which, when being executed by the processor, carries out the steps of the image processing method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the image processing method according to any one of claims 1 to 8.
CN202111551515.7A 2021-12-17 2021-12-17 Image processing method, intelligent terminal and storage medium Pending CN114298883A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111551515.7A CN114298883A (en) 2021-12-17 2021-12-17 Image processing method, intelligent terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111551515.7A CN114298883A (en) 2021-12-17 2021-12-17 Image processing method, intelligent terminal and storage medium

Publications (1)

Publication Number Publication Date
CN114298883A true CN114298883A (en) 2022-04-08

Family

ID=80968013

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111551515.7A Pending CN114298883A (en) 2021-12-17 2021-12-17 Image processing method, intelligent terminal and storage medium

Country Status (1)

Country Link
CN (1) CN114298883A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115484508A (en) * 2022-09-09 2022-12-16 上海东普信息科技有限公司 Watermark generation method, device, equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115484508A (en) * 2022-09-09 2022-12-16 上海东普信息科技有限公司 Watermark generation method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108259781B (en) Video synthesis method, terminal and computer-readable storage medium
CN107959795B (en) Information acquisition method, information acquisition equipment and computer readable storage medium
CN111416940A (en) Shooting parameter processing method and electronic equipment
CN107818787B (en) Voice information processing method, terminal and computer readable storage medium
CN113179370B (en) Shooting method, mobile terminal and readable storage medium
CN114037692A (en) Image processing method, mobile terminal and storage medium
WO2022266907A1 (en) Processing method, terminal device and storage medium
CN107896304B (en) Image shooting method and device and computer readable storage medium
CN113487705A (en) Image annotation method, terminal and storage medium
CN108595600B (en) Photo classification method, mobile terminal and readable storage medium
CN114298883A (en) Image processing method, intelligent terminal and storage medium
CN107368253B (en) Picture zooming display method, mobile terminal and storage medium
CN113126844A (en) Display method, terminal and storage medium
CN112543248A (en) Air-separating operation method, terminal and storage medium
CN112135045A (en) Video processing method, mobile terminal and computer storage medium
CN108255389B (en) Image editing method, mobile terminal and computer readable storage medium
CN112532838B (en) Image processing method, mobile terminal and computer storage medium
CN113901245A (en) Picture searching method, intelligent terminal and storage medium
CN114092366A (en) Image processing method, mobile terminal and storage medium
CN110275667B (en) Content display method, mobile terminal, and computer-readable storage medium
CN109495683B (en) Interval shooting method and device and computer readable storage medium
CN108549648B (en) Character picture processing method, terminal and computer readable storage medium
CN108335301B (en) Photographing method and mobile terminal
CN108830917B (en) Information generation method, terminal and computer readable storage medium
CN116012881A (en) Image processing method, intelligent terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication