Nothing Special   »   [go: up one dir, main page]

CN113315870B - Information display method, information display device, electronic equipment and storage medium - Google Patents

Information display method, information display device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113315870B
CN113315870B CN202110578492.2A CN202110578492A CN113315870B CN 113315870 B CN113315870 B CN 113315870B CN 202110578492 A CN202110578492 A CN 202110578492A CN 113315870 B CN113315870 B CN 113315870B
Authority
CN
China
Prior art keywords
mode
specified
image
photographing mode
photographing
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
CN202110578492.2A
Other languages
Chinese (zh)
Other versions
CN113315870A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202110578492.2A priority Critical patent/CN113315870B/en
Publication of CN113315870A publication Critical patent/CN113315870A/en
Application granted granted Critical
Publication of CN113315870B publication Critical patent/CN113315870B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Multimedia (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Studio Devices (AREA)

Abstract

The embodiment of the application discloses an information display method, an information display device, electronic equipment and a storage medium. The method comprises the following steps: displaying a preview image, wherein the preview image is an image acquired by the electronic equipment in real time; and if the starting condition of the appointed photographing mode is met based on the image acquisition parameters and the image acquisition scene, displaying prompt information for prompting to start the appointed photographing mode. Therefore, under the condition that the electronic equipment is configured with the appointed photographing mode, the user can be actively prompted to take the picture by adopting the appointed photographing mode under the condition that the image acquisition parameters and the detection of the image acquisition scene are suitable for taking the picture by using the appointed photographing mode, so that the use ratio of the appointed photographing mode can be improved, and the appointed photographing mode is started under the adaptive scene, so that the quality of the picture acquired under the adaptive scene is improved.

Description

Information display method, information display device, electronic equipment and storage medium
Technical Field
The present application relates to the field of image processing technologies, and in particular, to an information display method, an apparatus, an electronic device, and a storage medium.
Background
Along with the diversification of electronic devices for image acquisition modes and diversification of image processing modes, more photographing modes can be supported by the electronic devices. However, for some photographing modes, the user does not know what scene to use, which results in low usage rate of the photographing mode, and the electronic device cannot effectively improve the quality of image acquisition in some scenes.
Disclosure of Invention
In view of the above problems, embodiments of the present application provide an information display method, an apparatus, an electronic device, and a storage medium, so as to improve the above problems.
In a first aspect, an embodiment of the present application provides an information display method, which is applied to an electronic device, where the method includes: displaying a preview image, wherein the preview image is an image acquired by the electronic equipment in real time; and if the starting condition of the appointed photographing mode is met based on the image acquisition parameters and the image acquisition scene, displaying prompt information for prompting to start the appointed photographing mode.
In a second aspect, an embodiment of the present application provides an information display apparatus, which is operated in an electronic device, including: the image display unit is used for displaying a preview image, wherein the preview image is an image acquired by the electronic equipment in real time; and the information display unit is used for displaying prompt information for prompting to start the appointed shooting mode if the appointed shooting mode starting condition is determined to be met based on the image acquisition parameters and the image acquisition scene.
In a third aspect, an embodiment of the present application provides an electronic device, including one or more processors and a memory; one or more programs are stored in the memory and configured to be executed by the one or more processors to implement the methods described above.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having program code stored therein, wherein the program code, when executed by a processor, performs the method described above.
According to the information display method, the information display device, the electronic equipment and the storage medium, after entering the preview image acquisition state, the acquired preview image can be displayed in real time, and further, when the condition that the starting condition of the appointed shooting mode is met is determined based on the image acquisition parameters and the image acquisition scene, prompt information for prompting to start the appointed shooting mode is displayed. Therefore, under the condition that the electronic equipment is configured with the appointed photographing mode, the user can be actively prompted to take the picture by adopting the appointed photographing mode under the condition that the image acquisition parameters and the detection of the image acquisition scene are suitable for taking the picture by using the appointed photographing mode, so that the use ratio of the appointed photographing mode can be improved, and the appointed photographing mode is started under the adaptive scene, so that the quality of the picture acquired under the adaptive scene is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of an information display method according to an embodiment of the present application;
FIG. 2 is a schematic diagram showing a preview image in an embodiment of the present application;
FIG. 3 is a schematic diagram of a prompt message in an embodiment of the present application;
Fig. 4 is a flowchart of an information display method according to another embodiment of the present application;
FIG. 5 shows a schematic flow chart of S220 in FIG. 4;
FIG. 6 is a schematic diagram of fog detection in an embodiment of the present application;
FIG. 7 shows another flow diagram of S220 of FIG. 4;
Fig. 8 is a flowchart of an information display method according to still another embodiment of the present application;
FIG. 9 is a schematic diagram of another prompt message in an embodiment of the application;
FIG. 10 is a schematic diagram of a designated touch gesture in an embodiment of the application;
FIG. 11 is a schematic diagram showing display mode information according to an embodiment of the present application;
fig. 12 is a flowchart showing an information display method according to still another embodiment of the present application;
fig. 13 is a block diagram showing a structure of an information display device according to an embodiment of the present application;
fig. 14 is a block diagram showing a structure of an information display device according to another embodiment of the present application;
Fig. 15 shows a block diagram of an electronic device for performing an information display method according to an embodiment of the present application in real time;
fig. 16 shows a storage unit for storing or carrying program codes for implementing the information display method according to the embodiment of the present application in real time.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
With the development of image acquisition technology of electronic devices, more users of electronic devices can use the image acquisition function of the electronic devices to acquire images. In addition, with the diversification of image acquisition modes and diversification of image processing modes of electronic devices, more photographing modes can be supported by the electronic devices.
However, the inventor finds that, for some photographing modes, the user does not know what scene to use, so that the usage rate of the photographing mode is not high, and the electronic device cannot effectively improve the picture acquisition quality in some scenes.
Therefore, the inventor proposes the information display method, the device, the electronic equipment and the storage medium in the embodiment of the application, after entering a preview image acquisition state, the acquired preview image can be displayed in real time, and further, when the condition that the starting condition of the appointed photographing mode is met is determined based on the image acquisition parameters and the image acquisition scene, prompt information for prompting to start the appointed photographing mode is displayed. Therefore, under the condition that the electronic equipment is configured with the appointed photographing mode, the user can be actively prompted to take the picture by adopting the appointed photographing mode under the condition that the image acquisition parameters and the detection of the image acquisition scene are suitable for taking the picture by using the appointed photographing mode, so that the use ratio of the appointed photographing mode can be improved, and the appointed photographing mode is started under the adaptive scene, so that the quality of the picture acquired under the adaptive scene is improved. Embodiments encompassed by the present application will be described below with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a flowchart of an information display method according to an embodiment of the application, where the method includes:
s110: and displaying a preview image, wherein the preview image is an image acquired by the electronic equipment in real time.
As one way, after detecting that a lens is started, the electronic device may display an image acquired by the started lens in real time as a preview image. In the process of displaying the preview image, a user can know the image which can be acquired by the lens currently in real time, and if the image which can be acquired by the lens changes, the preview image also changes synchronously. The lens may be a color lens, and the image collected by the color lens is an image with a specified color mode. For example, the color mode may be an RGB mode. For example, as shown in fig. 2, after entering the preview image capturing state, the electronic device may display a preview image display interface 10, where the captured live image is displayed through a lens.
S120: and if the starting condition of the appointed photographing mode is met based on the image acquisition parameters and the image acquisition scene, displaying prompt information for prompting to start the appointed photographing mode.
The image acquisition parameters are understood to be parameters based on which the electronic device performs image acquisition. Or parameters that affect the quality of the image output after the photographing operation. The image acquisition scene represents a scene corresponding to content acquired by the electronic equipment. For example, the image acquisition scene may include a sunny day, a cloudy, a beach, a mountain, a city, and the like.
For this specified photographing mode, there is a more adapted photographing environment. Then the specified photographing mode can be made to have a more positive photographing effect when in the adapted photographing environment. The more aggressive photographing effect may include improving the visual experience of the image obtained by photographing.
In the embodiment of the application, in order to facilitate determining whether the image acquisition parameters and the image acquisition scene are in the environment adapting to the appointed photographing mode, the image acquisition parameters and the image acquisition scene can be detected, and when the image acquisition parameters and the image acquisition scene are determined to be in the environment adapting to the appointed photographing mode, the appointed photographing mode starting condition is determined to be met, and prompt information prompting to start the appointed photographing mode is displayed. For example, taking the designated photographing mode as the pass-through mode as shown in fig. 3, if it is determined that the starting condition of the pass-through mode is met, a prompt message with the content of "suggest to start the pass-through mode" may be displayed in a floating manner on the preview image display interface 10.
According to the information display method provided by the embodiment, after entering the preview image acquisition state, the acquired preview image can be displayed in real time, and further, when the condition that the starting condition of the appointed shooting mode is met is determined based on the image acquisition parameters and the image acquisition scene, prompt information for prompting to start the appointed shooting mode is displayed. Therefore, under the condition that the electronic equipment is configured with the appointed photographing mode, the user can be actively prompted to take the picture by adopting the appointed photographing mode under the condition that the image acquisition parameters and the detection of the image acquisition scene are suitable for taking the picture by using the appointed photographing mode, so that the use ratio of the appointed photographing mode can be improved, and the appointed photographing mode is started under the adaptive scene, so that the quality of the picture acquired under the adaptive scene is improved.
Referring to fig. 4, fig. 4 is a flowchart illustrating an information display method according to an embodiment of the application, the method includes:
s210: and displaying a preview image, wherein the preview image is an image acquired by the electronic equipment in real time.
S220: if the starting condition of the appointed photographing mode is met based on the image acquisition parameters, the image acquisition scene and the target content, displaying prompt information for prompting to start the appointed photographing mode; the target content is content corresponding to the appointed shooting mode in the preview image acquired in the preview image acquisition state.
The content corresponding to the specified photographing mode may be understood as content that may be processed in the photographing process of the specified photographing mode, where the processing may include removing or enhancing a color effect.
It should be noted that, as a way, in the process of photographing based on the specified photographing mode, the electronic device may collect a normal image, where the normal image is an image that is directly collected through the lens and is not subjected to subsequent processing, and then perform subsequent processing on the normal image based on the way corresponding to the specified photographing mode to obtain an image corresponding to the specified photographing mode, so as to obtain an image obtained by photographing in the specified photographing mode. If the system resource of the electronic device is consumed in the subsequent processing of the normal image based on the mode corresponding to the specified photographing mode, if the visual effect of the image is improved after the subsequent processing, if the visual effect is not easy to be perceived by the user, the subsequent processing may not have a significant effect, and further, the system resource is not consumed effectively.
In this way, whether the specified photographing mode is satisfied or not is determined by combining the image acquisition parameters, the image acquisition scene and the target content, the effectiveness of image processing based on the specified photographing mode can be more effectively improved, and the ineffective consumption of system resources can be avoided to a greater extent.
As one way, as shown in fig. 5, if it is determined that the specified photographing mode starting condition is met based on the image acquisition parameters, the image acquisition scene and the target content, a prompt message for prompting to start the specified photographing mode is displayed, including:
S221: and if the image acquisition parameters meet the specified parameter conditions, acquiring an image acquisition scene.
S222: and if the image acquisition scene belongs to the appointed scene, acquiring target content.
S223: and if the duty ratio of the target content in the preview image meets a specified proportion threshold, determining that a specified photographing mode starting condition is met, and displaying prompt information for prompting to start the specified photographing mode.
Optionally, the specified parameter condition includes at least one of the following conditions: collecting the ambient brightness in a specified threshold interval; the focus distance is greater than a distance threshold.
Wherein, the brightness of the collecting environment may affect the imaging quality of some lenses. For example, in pass-through mode, the electronic device may activate a NIR (Near-infra) lens, and for a NIR lens, if the acquisition environment is bright or small, the NIR lens may not be able to image effectively. For example, if the ambient brightness is the Lux index value (light intensity index value), and if the Lux index value is greater than 180, the light intensity is smaller, and most of the light intensity is in rainy days or at night, so that the imaging quality of the NIR lens in such a scene is poor, and the imaging processing of the image acquired by the NIR lens is not suitable. For another example, if the Lux index value is less than 90, it is indicated that the illumination intensity is high, and most of the Lux index value is easy to expose such as backlight, and the imaging quality of the NIR lens is poor in such a scene, so that the method is not suitable for image processing by using the image acquired by the NIR lens. Then, as one way, in the case of taking the Lux index value as the acquisition environment brightness, the specified threshold interval corresponding to the acquisition environment brightness is the interval of 90 to 180 Lux index values.
Wherein the focus distance (AF DISTANCE) determines the sharpness of objects at different distance positions. If the focusing distance is smaller than the threshold value, the shooting subject is near and clear, and the blurring effect is generated at the far distance. Taking the pass-through mode as an example, in the case where the specified photographing mode is the pass-through mode, the distance threshold may be 2 meters.
Optionally, the method further comprises: and inputting the preview image into a specified neural network model, and acquiring whether an image acquisition scene belongs to the specified scene or not through the specified neural network model. The preview image can be input into the appointed neural network model, then the identification of the image acquisition scene output by the appointed neural network model is obtained, then whether the identification of the output image acquisition scene exists or not is inquired in a pre-established scene white list, and if yes, the image acquisition scene can be determined to belong to the appointed scene. The scene report list can be stored locally or in the cloud of the electronic device, and can be synchronously updated after the white list is established for the first time.
The initial neural network can be trained through a training data set to obtain the appointed neural network, the training data set can comprise a positive sample and a negative sample, and when the positive sample and the negative sample are determined, the positive sample and the negative sample can be determined according to a photographing mode which is required to be adapted, so that the appointed neural network model obtained through training can identify an appointed scene which is suitable for an appointed photographing mode. For example, if it is desired to train a neural network model that can be adapted for the pass-through mode, then the positive samples in the training dataset may include pictures marked as sunny, cloudy, beach, mountain, city, fog, etc., and the negative samples may include pictures marked as indoor, food, portrait, animal, etc.
In order to enhance the detection capability of the specified neural network, the negative sample can also comprise pictures of scenes such as overcast and rainy days, night scenes, evening, sunrise and sunset, and the like, which are easily mixed with the positive sample, but are not available in the transparent mode, so that the data volume is increased to enhance the detection capability of the model.
Alternatively, the target content may be different in different specified photographing modes. For example, the specified photographing mode is a transparent mode, and the target content is a pixel whose corresponding transmittance is greater than a specified transmittance threshold. It should be noted that, in the process of photographing in the transparent mode, the electronic device may reduce the fog area in the image collected by the lens and not subjected to subsequent processing, so that the foggy area in the image is reduced, and thus the image looks more transparent.
The electronic device can detect the fog area of the image based on a dark channel prior algorithm. As shown in fig. 6, the left image in the image shown in fig. 6 is an image which is acquired through a lens and is not subjected to subsequent processing, the right image is an image which is obtained by performing dark channel prior algorithm processing on the image which is not subjected to subsequent processing, wherein the transmissivity value of a fog area such as a far mountain is low, and the image which is subjected to dark channel prior algorithm processing is in a foggy white color. In this manner, the electronic device may detect the transmittance of each pixel in the image, take the pixel having a transmittance greater than the specified transmittance threshold as a fog (i.e., the target content in pass-through mode), and then count the proportion of the fog to the entire image. Alternatively, the specified transmission threshold may be 160 and the specified proportion threshold 5%.
In addition, the specified photographing mode may be a portrait mode, and the target content is a face area.
In the process of determining whether the specified mode starting condition is satisfied, other orders may be adopted besides the order of detecting the image acquisition parameters first and then detecting the image acquisition scene and the duty ratio of the target content sequentially after the image acquisition parameters satisfy the specified parameter condition.
For example, as shown in fig. 7, if it is determined that the specified photographing mode starting condition is met based on the image capturing parameters, the image capturing scene and the target content, the displaying of the prompting information prompting to start the specified photographing mode may also include:
s231: and if the image acquisition scene belongs to the appointed scene, acquiring image acquisition parameters.
S232: and if the image acquisition parameters meet the specified parameter conditions, acquiring target content.
S233: and if the duty ratio of the target content in the preview image meets a specified proportion threshold, determining that a specified photographing mode starting condition is met, and displaying prompt information for prompting to start the specified photographing mode. In this way, the electronic device determines whether the image acquisition scene is specified, determines whether the image acquisition parameter satisfies the specified parameter condition after determining that the image acquisition scene is the specified scene, and determines the duty ratio of the target content after determining that the specified parameter condition is satisfied.
It is clear that no matter what kind of detection sequence is, the electronic device needs to consume system resources in the detection process. The system resources may include power, processor resources, memory, and the like. In some cases, if the electronic device performs all the detection steps and finally determines that the photographing mode is not suitable for the designated photographing mode, a certain system resource is wasted. In the case that the detection sequence can be multiple, the electronic device can determine the detection sequence according to the current actual requirement, so that the system resource consumption caused by the detection process can be reduced to a greater extent.
As one approach, the electronic device may first acquire a current time and determine a specific detection order based on the current time. It should be noted that, for some photographing modes, there is a certain requirement for the brightness of the collecting environment, if the brightness of the environment is low, the photographing effect may be poor, and if the designated photographing mode that needs to be prompted to start by the electronic device is a certain requirement for the brightness of the collecting environment, it may be determined that the parameters about the brightness of the collecting environment are detected and ranked first. The electronic device can determine the specific detection order by the current moment.
For example, if the current time representation is already in a time period with strong illumination intensity, the image acquisition parameter representing the current time may have a high probability of meeting the specified parameter condition, then the electronic device may be triggered to detect whether the image acquisition scene meets the specified scene, then detect whether the image acquisition parameter meets the specified parameter condition, and finally detect the target content. If the current moment representation is in a time period with higher illumination intensity, the probability that the image acquisition parameters representing the current moment possibly satisfy the specified parameter conditions is smaller, then the electronic equipment can be triggered to detect whether the image acquisition parameters satisfy the specified parameter conditions or not, then detect whether the image acquisition scene belongs to the specified scene or not, and finally detect the target content, so that the specific detection sequence is adjusted based on the current moment, and the waste of system resources can be caused to a smaller degree. The time period with the relatively high illumination intensity can be 9 am to 5 pm, and the time period with the relatively high illumination intensity can be between 5 pm and 9 am.
According to the information display method provided by the embodiment, under the condition that the electronic equipment is configured with the appointed photographing mode, the user can be actively prompted to take the appointed photographing mode to take the picture under the condition that the appointed photographing mode is suitable for taking the picture through the detection of the image acquisition parameters and the image acquisition scene, so that the utilization rate of the appointed photographing mode can be improved, and the appointed photographing mode is started under the adaptive scene, so that the quality of the picture acquired under the adaptive scene is improved. In addition, in this embodiment, whether to prompt to start the specified photographing mode is further determined according to the content corresponding to the specified photographing mode in the preview image collected in the preview image collection state, which is favorable for improving the effectiveness and accuracy of starting the specified photographing mode.
Referring to fig. 8, fig. 8 is a flowchart of an information display method according to an embodiment of the application, the method includes:
s310: and displaying a preview image, wherein the preview image is an image acquired by the electronic equipment in real time.
S320: and if the starting condition of the appointed photographing mode is met based on the image acquisition parameters and the image acquisition scene, displaying prompt information for prompting to start the appointed photographing mode.
S330: and if the starting operation is detected, starting the appointed photographing mode.
After the electronic device displays the prompt information for prompting to start the specified photographing mode, if the starting operation is further detected, the photographing mode can be switched to the specified photographing mode. In addition, in the embodiment of the present application, there may be a plurality of modes for starting the specified photographing mode, and in different modes for starting the specified photographing mode, the corresponding starting operation may be different.
As one way, the designated photographing mode may be triggered to start by the touch prompt. In this way, the start operation may be a touch operation acting on the prompt message. For example, referring to fig. 3 again, after the prompt message with the content of "recommended open-through mode" is displayed in fig. 3, if a touch operation is detected on the prompt message with the content of "recommended open-through mode", it is determined that a start operation is detected, and then the specified photographing mode is started correspondingly. Moreover, in order to facilitate the first-time user to know timely that the appointed photographing mode can be triggered and started through the touch prompt information, fonts of appointed characters in the prompt information can be distinguished, and therefore the user can perceive that the prompt information can respond to touch. As shown in fig. 9, the font of "start" may be set to be inconsistent with other fonts in the prompt information, and an underline is correspondingly configured, so that the user can conveniently perceive that the prompt information can respond to the touch of the user.
Alternatively, the initiation of the designated photographing mode may be triggered by a touch gesture acting in the screen. In this way, after the prompt information is displayed, if the specified touch gesture is detected to act on the screen, it is determined that the start operation is detected, and then the specified photographing mode is started. For example, the designated touch gesture may be a sliding operation along a designated direction, where the designated direction may be a direction indicated by a dashed arrow in fig. 10, and if a sliding operation along the direction indicated by the dashed arrow is detected as shown in fig. 10, it is determined that a start operation is detected, and then the designated photographing mode is started.
It should be noted that the required device may be different in different photographing modes, or the parameters configured for the lens may be different. The electronic device starts the specified photographing mode may be understood as a device required for the electronic device to start the specified photographing mode or a parameter required for the electronic device to configure the lens to the specified photographing mode. For example, in the transparent mode, the electronic device needs to collect near infrared mode images through the NIR lens, and in the case of determining to start the transparent mode, the electronic device starts the NIR lens in addition to keeping the color lens continuously running.
As one way, after the specified photographing mode is started, if a photographing operation is detected, photographing is performed based on the specified photographing mode.
Optionally, the specified photographing mode is a pass-through mode, and if a photographing operation is detected, photographing is performed based on the specified photographing mode, including: if photographing operation is detected, collecting a color mode image and a near infrared mode image corresponding to the color mode image; and fusing the color mode image and the near infrared mode image to generate a photographed image.
In one mode, during the fusion process, the color mode image and the near infrared mode image may be aligned to obtain an aligned color mode image and a near infrared mode image, and after the alignment is completed, the electronic device may identify the aligned color mode image and determine the region to be fused (for example, may be the determined fog region); since the post-alignment color mode image and the post-alignment near infrared mode image obtained after the alignment process have the identical spatial layout. The electronic device can further find out a target area corresponding to the to-be-fused area from the aligned near infrared mode image according to the determined to-be-fused area, extract near infrared mode image information corresponding to the target area from the aligned near infrared mode image according to the target area, and further perform fusion processing on the aligned color mode image based on the near infrared mode image information, so that a target image is obtained, wherein the fused target image is a color image.
It should be noted that, in the embodiment of the present application, the method for fusing the color mode image and the near infrared mode image is not limited to the above method, and any method for fusing a color mode image and a near infrared mode image may be applied to the method of the embodiment of the present application.
After the specified photographing mode is started, in order to facilitate the user to perceive that the specified photographing mode has been started, as a way, mode information may be displayed in a floating manner on the interface. For example, as shown in fig. 11, after the through mode has been started, mode information whose content is "through mode" may be displayed on the preview image display interface 10.
As another way, if the photographing operation is detected, before photographing based on the specified photographing mode, the method further includes: and if the starting operation is detected, processing the preview image based on a designated color processing mode. The appointed color processing mode can improve the contrast ratio of the preview image, so that the visual effect of the image is more attractive. It should be noted that, in the embodiment of the present application, the processing step of the designated color processing manner and the processing step of the image in the pass-through mode are different, and in this embodiment, the preview image is processed based on the designated color processing manner, so that the preview image may have an effect of processing the image in the pass-through mode, so that a user may perceive the approximate processing effect of the pass-through mode. And the data processing amount corresponding to the designated color processing mode is lower than the data processing amount for processing the image in the transparent mode, so that timeliness of effect display is improved, and the user can experience the difference in photographing effect after the transparent mode is started in time.
After the pass-through mode is started, the preview image may be processed based on the designated color processing method, and the mode information may be displayed at the same time.
As one mode, after the specified photographing mode is started and when the electronic device starts the specified color processing mode for the preview image, if it is detected that the color lens is switched to the specified lens mode (for example, the telephoto mode or the wide-angle mode), the processing of the preview image based on the specified color processing mode is turned off, but the specified photographing mode is not turned off. It should be noted that, if the shot is changed to the specified shot mode, the user is represented to pay more attention to the real degree of the image, and further the image processing based on the specified color processing mode can be canceled.
According to the information display method provided by the embodiment, under the condition that the electronic equipment is configured with the appointed photographing mode, the user can be actively prompted to take the appointed photographing mode to take the picture under the condition that the appointed photographing mode is suitable for taking the picture through the detection of the image acquisition parameters and the image acquisition scene, so that the utilization rate of the appointed photographing mode can be improved, and the appointed photographing mode is started under the adaptive scene, so that the quality of the picture acquired under the adaptive scene is improved. In addition, in the embodiment, the prompt information can be used as a trigger to start the entry of the appointed photographing mode, so that a user can rapidly control the electronic equipment to switch to the appointed photographing mode.
Referring to fig. 12, fig. 12 is a flowchart of an information display method according to an embodiment of the application, the method includes:
S410: the camera is started.
Wherein, in the process of starting the camera at the current stage, only the color lens can be started so as to acquire a preview image through the color lens for display.
S420: and detecting whether the acquisition environment brightness is within a specified threshold interval.
And if the acquisition environment brightness is detected not to be in the specified threshold interval and the photographing operation is detected, outputting a normal image.
S421: if the acquisition environment brightness is detected to be in the specified threshold interval, detecting whether the focusing distance is larger than a distance threshold.
And if the focusing distance is not greater than the distance threshold value and the photographing operation is detected, outputting a normal image.
S422: if the focusing distance is larger than the distance threshold, detecting whether the image acquisition scene belongs to the appointed scene.
And if the image acquisition scene is detected not to belong to the specified scene and the photographing operation is detected, outputting a normal image.
S423: if the image acquisition scene is detected to belong to the specified scene, whether the duty ratio of the atomized area in the preview image meets a specified proportion threshold value is detected.
And if the ratio of the atomized area in the preview image is detected to not meet the specified proportion threshold value and the photographing operation is detected, outputting a normal image.
S424: if the fact that the duty ratio of the atomizing area in the preview image meets the specified proportion threshold value is detected, the condition that the penetrating mode starting condition is met is determined, and prompt information for prompting to start the penetrating mode is displayed.
S430: and detecting whether the pass-through mode is started.
If the transparent mode is not detected, determining to start, and photographing operation is detected, outputting a normal image.
S431: if the pass-through mode is determined to be activated, the NIR lens is additionally activated.
S440: if the photographing operation is detected, an image photographed by the common lens and an image photographed by the NIR lens are obtained, and image fusion is performed.
S450: outputting the fused image as a photographed image.
According to the information display method provided by the embodiment, under the condition that the electronic equipment is configured with the through mode, through detecting the acquisition environment brightness, the focusing distance and the image acquisition scene, under the condition that the through mode is suitable for photographing, the user can be actively prompted to take the picture by adopting the through mode, so that the utilization rate of the appointed photographing mode can be improved, and the through mode is started under the adaptive scene, so that the quality of the acquired picture under the adaptive scene is also improved.
Referring to fig. 13, fig. 13 shows an information display apparatus 500 according to an embodiment of the application, which is operated in an electronic device, the apparatus 500 includes:
The image display unit 510 is configured to display a preview image, where the preview image is an image acquired by the electronic device in real time.
The information display unit 520 is configured to display a prompt message for prompting to start the specified photographing mode if it is determined that the specified photographing mode starting condition is met based on the image acquisition parameters and the image acquisition scene.
As one way, the information display unit 520 is specifically configured to display a prompt message for prompting to start the specified photographing mode if it is determined that the specified photographing mode starting condition is met based on the image acquisition parameter, the image acquisition scene and the target content; the target content is content corresponding to the appointed shooting mode in the preview image acquired in the preview image acquisition state.
In this manner, the optional information display unit 520 is specifically configured to acquire an image acquisition scene if the image acquisition parameter meets a specified parameter condition; if the image acquisition scene belongs to the appointed scene, acquiring target content; and if the duty ratio of the target content in the preview image meets a specified proportion threshold, determining a specified photographing mode starting condition, and displaying prompt information for prompting to start the specified photographing mode.
Wherein the specified parameter condition includes at least one of the following conditions: collecting the ambient brightness in a specified threshold interval; the focus distance is greater than a distance threshold. Optionally, the information display unit 520 is specifically configured to input the preview image into a specified neural network model, so as to obtain whether the image acquisition scene belongs to the specified scene through the specified neural network model. Optionally, the specified photographing mode is a transparent mode, and the target content is a pixel with a corresponding transmittance greater than a specified transmittance threshold.
As one way, as shown in fig. 14, the apparatus 500 further includes: the mode starting unit 530 and the photographing unit 540.
The mode starting unit 530 is configured to, after determining that a specified photographing mode starting condition is met based on the image acquisition parameters and the image acquisition scene, display prompt information for prompting to start the specified photographing mode, and if a start operation is detected, start the specified photographing mode.
And a photographing unit 540, configured to perform photographing based on the specified photographing mode if a photographing operation is detected. Optionally, the specified photographing mode is a pass-through mode, and the photographing unit 540 is specifically configured to collect a color mode image and a near infrared mode image corresponding to the color mode image if a photographing operation is detected; and fusing the color mode image and the near infrared mode image to generate a photographed image.
As one mode, the image display unit 510 is further configured to process the preview image based on a specified color processing mode if a start operation is detected.
According to the information display device provided by the embodiment, after entering the preview image acquisition state, the acquired preview image can be displayed in real time, and then the prompt information for prompting to start the appointed shooting mode is displayed under the condition that the appointed shooting mode starting condition is met based on the image acquisition parameters and the image acquisition scene. Therefore, under the condition that the electronic equipment is configured with the appointed photographing mode, the user can be actively prompted to take the picture by adopting the appointed photographing mode under the condition that the image acquisition parameters and the detection of the image acquisition scene are suitable for taking the picture by using the appointed photographing mode, so that the use ratio of the appointed photographing mode can be improved, and the appointed photographing mode is started under the adaptive scene, so that the quality of the picture acquired under the adaptive scene is improved.
It should be noted that, in the present application, the device embodiment and the foregoing method embodiment correspond to each other, and specific principles in the device embodiment may refer to the content in the foregoing method embodiment, which is not described herein again.
An electronic device according to the present application will be described with reference to fig. 15.
Referring to fig. 15, based on the above information display method and apparatus, another electronic device 200 capable of executing the above information display method is provided in the embodiment of the present application. The electronic device 200 includes one or more (only one shown) processors 102, memory 104, and network modules 106 coupled to one another. The memory 104 stores therein a program capable of executing the contents of the foregoing embodiments, and the processor 102 can execute the program stored in the memory 104.
Wherein the processor 102 may include one or more processing cores. The processor 102 utilizes various interfaces and lines to connect various portions of the overall electronic device 200, perform various functions of the electronic device 200, and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 104, and invoking data stored in the memory 104. Alternatively, the processor 102 may be implemented in hardware in at least one of digital signal Processing (DIGITAL SIGNAL Processing, DSP), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 102 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for being responsible for rendering and drawing of display content; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 102 and may be implemented solely by a single communication chip.
The Memory 104 may include random access Memory (Random Access Memory, RAM) or Read-Only Memory (ROM). Memory 104 may be used to store instructions, programs, code sets, or instruction sets. The memory 104 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (e.g., a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described below, etc. The storage data area may also store data created by the terminal 100 in use (such as phonebook, audio-video data, chat-record data), etc.
The network module 106 is configured to receive and transmit electromagnetic waves, and to implement mutual conversion between the electromagnetic waves and the electrical signals, so as to communicate with a communication network or other devices, such as an audio playing device. The network module 106 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and the like. The network module 106 may communicate with various networks such as the Internet, intranets, wireless networks, or other devices via wireless networks. The wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network. For example, the network module 106 may interact with base stations.
The sensor module 108 may include at least one sensor. Specifically, the sensor module 108 may include, but is not limited to: light sensors, motion sensors, pressure sensors, infrared thermal sensors, distance sensors, acceleration sensors, and other sensors.
Wherein the pressure sensor may detect the pressure generated by pressing against the electronic device 200. That is, the pressure sensor detects a pressure generated by contact or pressing between the user and the electronic device, for example, a pressure generated by contact or pressing between the user's ear and the mobile terminal. Thus, the pressure sensor may be used to determine whether contact or pressure has occurred between the user and the electronic device 200, as well as the magnitude of the pressure.
The acceleration sensor may detect the acceleration in each direction (typically, three axes), and may detect the gravity and direction when stationary, and may be used for recognizing the gesture of the electronic device 200 (such as horizontal-vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer, and knocking), and so on. In addition, the electronic device 200 may further be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, etc., which will not be described in detail herein,
The camera 110 may include a color lens and an NIR lens. Wherein, the color lens may be used to collect a designated color mode image, and the NIR lens may be used to collect a near infrared mode image.
Referring to fig. 16, a block diagram of a computer readable storage medium according to an embodiment of the present application is shown. The computer readable medium 800 has stored therein program code which can be invoked by a processor to perform the methods described in the method embodiments described above.
The computer readable storage medium 800 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 800 comprises a non-volatile computer readable medium (non-transitory computer-readable storage medium). The computer readable storage medium 800 has storage space for program code 810 that performs any of the method steps described above. The program code can be read from or written to one or more computer program products. Program code 810 may be compressed, for example, in a suitable form.
According to the information display method, the information display device, the electronic equipment and the storage medium, after entering the preview image acquisition state, the acquired preview image can be displayed in real time, and further, when the condition that the starting condition of the appointed shooting mode is met is determined based on the image acquisition parameters and the image acquisition scene, prompt information for prompting to start the appointed shooting mode is displayed. Therefore, under the condition that the electronic equipment is configured with the appointed photographing mode, the user can be actively prompted to take the picture by adopting the appointed photographing mode under the condition that the image acquisition parameters and the detection of the image acquisition scene are suitable for taking the picture by using the appointed photographing mode, so that the use ratio of the appointed photographing mode can be improved, and the appointed photographing mode is started under the adaptive scene, so that the quality of the picture acquired under the adaptive scene is improved.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present application, the meaning of "plurality" means at least two, for example, two, three, etc., unless specifically defined otherwise.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be appreciated by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not drive the essence of the corresponding technical solutions to depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (11)

1. An information display method, characterized by being applied to an electronic device, the method comprising:
displaying a preview image, wherein the preview image is an image acquired by the electronic equipment in real time;
if the image acquisition parameters meet the specified parameter conditions, acquiring an image acquisition scene;
If the image acquisition scene belongs to a specified scene, acquiring target content, wherein the target content is content corresponding to a specified photographing mode in a preview image acquired in a preview image acquisition state, and the target content represents a foggy area;
If the duty ratio of the target content in the preview image meets a specified proportion threshold, determining that a specified photographing mode starting condition is met, displaying prompt information for prompting to start the specified photographing mode, wherein the specified photographing mode is a transparent mode, and the transparent mode is used for reducing a foggy area in the image.
2. The method of claim 1, wherein the specified parameter condition comprises at least one of:
Collecting the ambient brightness in a specified threshold interval;
The focus distance is greater than a distance threshold.
3. The method according to claim 1, wherein the method further comprises:
and inputting the preview image into a specified neural network model, and acquiring whether an image acquisition scene belongs to the specified scene or not through the specified neural network model.
4. The method of claim 1, wherein the designated photographing mode is a through mode and the target content is a corresponding pixel having a transmittance greater than a designated transmittance threshold.
5. The method of any one of claims 1-4, wherein after displaying the prompt message prompting initiation of the specified photographing mode, further comprising:
and if the starting operation is detected, starting the appointed photographing mode.
6. The method of claim 5, wherein if the start operation is detected, after starting the specified photographing mode, further comprising:
and if the photographing operation is detected, photographing based on the appointed photographing mode.
7. The method of claim 6, wherein the specified photographing mode is a pass-through mode, and wherein photographing based on the specified photographing mode if a photographing operation is detected comprises:
if photographing operation is detected, collecting a color mode image and a near infrared mode image corresponding to the color mode image;
And fusing the color mode image and the near infrared mode image to generate a photographed image.
8. The method of claim 6, wherein if a photographing operation is detected, before photographing based on the specified photographing mode, further comprising:
And if the starting operation is detected, processing the preview image based on a designated color processing mode.
9. An information display apparatus, operable in an electronic device, the apparatus comprising:
the image display unit is used for displaying a preview image, wherein the preview image is an image acquired by the electronic equipment in real time;
The information display unit is used for acquiring an image acquisition scene if the image acquisition parameters meet the specified parameter conditions; if the image acquisition scene belongs to a specified scene, acquiring target content, wherein the target content is content corresponding to a specified photographing mode in a preview image acquired in a preview image acquisition state, and the target content represents a foggy area; if the duty ratio of the target content in the preview image meets a specified proportion threshold, determining that a specified photographing mode starting condition is met, displaying prompt information for prompting to start the specified photographing mode, wherein the specified photographing mode is a transparent mode, and the transparent mode is used for reducing a foggy area in the image.
10. An electronic device comprising one or more processors and memory; one or more programs are stored in the memory and configured to perform the method of any of claims 1-8 by the one or more processors.
11. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a program code, wherein the program code, when being executed by a processor, performs the method of any of claims 1-8.
CN202110578492.2A 2021-05-26 2021-05-26 Information display method, information display device, electronic equipment and storage medium Active CN113315870B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110578492.2A CN113315870B (en) 2021-05-26 2021-05-26 Information display method, information display device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110578492.2A CN113315870B (en) 2021-05-26 2021-05-26 Information display method, information display device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113315870A CN113315870A (en) 2021-08-27
CN113315870B true CN113315870B (en) 2024-05-28

Family

ID=77374973

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110578492.2A Active CN113315870B (en) 2021-05-26 2021-05-26 Information display method, information display device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113315870B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107635095A (en) * 2017-09-20 2018-01-26 广东欧珀移动通信有限公司 Shoot method, apparatus, storage medium and the capture apparatus of photo
CN111586282A (en) * 2019-02-18 2020-08-25 北京小米移动软件有限公司 Shooting method, shooting device, terminal and readable storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107635095A (en) * 2017-09-20 2018-01-26 广东欧珀移动通信有限公司 Shoot method, apparatus, storage medium and the capture apparatus of photo
CN111586282A (en) * 2019-02-18 2020-08-25 北京小米移动软件有限公司 Shooting method, shooting device, terminal and readable storage medium

Also Published As

Publication number Publication date
CN113315870A (en) 2021-08-27

Similar Documents

Publication Publication Date Title
CN112840376B (en) Image processing method, device and equipment
CN109409161B (en) Graphic code identification method, device, terminal and storage medium
CN109961453B (en) Image processing method, device and equipment
CN108701439B (en) Image display optimization method and device
EP3890306A1 (en) Photographing method and device, mobile terminal and storage medium
CN112950525B (en) Image detection method and device and electronic equipment
CN108399349A (en) Image-recognizing method and device
CN112262563A (en) Image processing method and electronic device
CN108513069B (en) Image processing method, image processing device, storage medium and electronic equipment
CN107690804B (en) Image processing method and user terminal
CN111881862B (en) Gesture recognition method and related device
CN109948525A (en) It takes pictures processing method, device, mobile terminal and storage medium
KR20220092771A (en) Photographing method, photographing device, terminal, and storage medium
WO2023011302A1 (en) Photographing method and related apparatus
CN115242983A (en) Photographing method, electronic device, computer program product, and readable storage medium
CN115115526A (en) Image processing method and apparatus, storage medium, and graphic calculation processor
CN117201930B (en) Photographing method and electronic equipment
CN116916151B (en) Shooting method, electronic device and storage medium
CN112887615A (en) Shooting method and device
CN113315870B (en) Information display method, information display device, electronic equipment and storage medium
CN108495038B (en) Image processing method, image processing device, storage medium and electronic equipment
WO2023001110A1 (en) Neural network training method and apparatus, and electronic device
CN114943976A (en) Model generation method and device, electronic equipment and storage medium
CN113873177B (en) Multi-view shooting method and device, electronic equipment and storage medium
EP4287639A1 (en) Image processing method and apparatus, electronic device, storage medium and chip

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