Image display method, device, electronic device and storage medium

By performing edge detection of image frame data and using neural network models, automatically determining and switching image modes is solved, and the problem of poor image display accuracy under traditional manual selection is achieved, achieving higher display accuracy and user experience.

CN112801932BActive Publication Date: 2024-11-05GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201911032525.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-10-28
Publication Date
2024-11-05
Estimated Expiration
2039-10-28

AI Technical Summary

Technical Problem

The traditional image display method based on manual selection of image mode has the problem of poor display accuracy. When users select image mode through subjective feelings, it is difficult to accurately match the best mode.

Method used

By performing edge detection processing on image frame data, image edge features are acquired, combined with image quality, the target image mode is automatically determined using a neural network model, and switching when the current mode is inconsistent with the target mode, improving the display accuracy of the image mode.

Benefits of technology

Automatic switching and precise matching of image modes are realized, improving the display accuracy of images in specific modes and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112801932B_ABST
    Figure CN112801932B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of mobile intelligent terminals, and in particular to an image display method, device, electronic device and storage medium. The method in one embodiment includes: obtaining image frame data and a current image mode; performing edge detection processing on the image frame data to obtain image edge features, and determining image parameters of the image frame data according to the image edge features; obtaining the image quality of the image frame data, and determining a target image mode of the image frame data according to the image parameters and the image quality; when the current image mode is inconsistent with the target image mode, the image frame data is displayed using the target image mode. In this way, automatic switching of image modes can be achieved, and the image mode is determined according to the image parameters and the image quality, which can improve the display accuracy of the image frame data in the image mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of smart terminal technology, and in particular to an image display method, device, electronic device and storage medium. Background Art

[0002] With the development of science and technology, there are more and more types of smart terminals, which greatly enrich people's lives. For example, people can easily watch videos through smart terminals such as smart phones, tablets, digital TVs, etc. The image mode of smart terminals is generally pre-set according to the definition of the manufacturer, such as standard mode, movie mode, picture mode, sports mode, etc.

[0003] Traditional image modes mainly rely on the user's subjective feelings about the playback screen, and are manually selected and set when the source and viewing scene change. However, since the human eye is generally not very sensitive to the playback screen, the image mode manually selected by the user often has poor display accuracy. That is, the traditional image display method based on manually selecting the image mode has the defect of poor display accuracy. Summary of the invention

[0004] Based on this, it is necessary to provide an image display method, device, electronic device and storage medium that can improve display accuracy in response to the above technical problems.

[0005] A method for displaying an image, the method comprising:

[0006] Get image frame data and current image mode;

[0007] Performing edge detection processing on the image frame data to obtain image edge features, and determining image parameters corresponding to the image frame data according to the image edge features;

[0008] Acquiring image quality of the image frame data, and determining a target image mode of the image frame data according to the image parameters and the image quality;

[0009] When the current image mode is inconsistent with the target image mode, the image frame data is displayed using the target image mode.

[0010] In one embodiment, before determining the target image mode of the image frame data according to the image parameters and the image quality, the method further includes:

[0011] Acquire sample data, where the sample data includes sample image parameters, sample image quality, and corresponding image mode;

[0012] Inputting the sample image parameters and the sample image quality into a neural network model for training to obtain a training result;

[0013] Compare the training results with the corresponding image patterns, and adjust the parameters of the neural network model until the training results meet the preset conditions to obtain a trained neural network model;

[0014] Determining the target image mode of the image frame data according to the image parameter and the image quality comprises:

[0015] The image parameters and the image quality are input into the trained neural network model, and the output of the neural network model is obtained, that is, the target image mode is obtained.

[0016] In one embodiment, before obtaining the image quality of the image frame data, the process includes:

[0017] Get the display resolution;

[0018] When the resolution corresponding to the image frame data is not equal to the display resolution, scaling the image frame data to obtain scaled image frame data;

[0019] The obtaining the image quality of the image frame data comprises:

[0020] The image quality of the image frame data after the scaling process is obtained.

[0021] In one embodiment, determining the image parameters of the image frame data according to the image edge features comprises:

[0022] Get a preset edge feature set;

[0023] When there is an edge feature in the edge feature set that matches the image edge feature, the image parameter of the image frame data is obtained according to the matched edge feature.

[0024] In one embodiment, the method further comprises:

[0025] When there is no edge feature matching the image edge feature in the edge feature set, sending the image frame data to a cloud server, and the cloud server compares the image frame data with pre-stored image data to obtain image parameters of the image frame data;

[0026] Receive image parameters of the image frame data fed back by the cloud server.

[0027] In one embodiment, acquiring image frame data includes:

[0028] The input video data is acquired, and the video data is decoded and denoised to obtain image frame data.

[0029] An image display device, comprising:

[0030] A data acquisition module, used to acquire image frame data and current image mode;

[0031] An image processing module, used for performing edge detection processing on the image frame data to obtain image edge features, and determining image parameters corresponding to the image frame data according to the image edge features;

[0032] An image mode determination module, used for obtaining the image quality of the image frame data, and determining a target image mode of the image frame data according to the image parameters and the image quality;

[0033] The image mode switching module is used to display the image frame data in the target image mode when the current image mode is inconsistent with the target image mode.

[0034] An electronic device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0035] Get image frame data and current image mode;

[0036] Performing edge detection processing on the image frame data to obtain image edge features, and determining image parameters corresponding to the image frame data according to the image edge features;

[0037] Acquiring image quality of the image frame data, and determining a target image mode of the image frame data according to the image parameters and the image quality;

[0038] When the current image mode is inconsistent with the target image mode, the image frame data is displayed using the target image mode.

[0039] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0040] Get image frame data and current image mode;

[0041] Performing edge detection processing on the image frame data to obtain image edge features, and determining image parameters corresponding to the image frame data according to the image edge features;

[0042] Acquiring image quality of the image frame data, and determining a target image mode of the image frame data according to the image parameters and the image quality;

[0043] When the current image mode is inconsistent with the target image mode, the image frame data is displayed using the target image mode.

[0044] The above-mentioned image display method, device, electronic device and storage medium obtain image edge features by performing edge detection processing on image frame data, determine image parameters corresponding to the image frame data according to the image edge features, obtain the image quality of the image frame data, and then determine the target image mode of the image frame data according to the image parameters and the image quality. When the current image mode of the mobile terminal is inconsistent with the target image mode, the image frame data is displayed using the target image mode, which can realize automatic switching of image modes, and determine the image mode according to the image parameters and the image quality, which can improve the display accuracy of the image frame data in the image mode. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] FIG. 1( a ) is a diagram showing an application scenario of an image display method in one embodiment;

[0046] FIG. 1( b ) is a diagram showing an application scenario of an image display method in one embodiment;

[0047] Figure 2 is a schematic flow chart of an image display method in one embodiment;

[0048] Figure 3 is a flow chart of an image display method in another embodiment;

[0049] Figure 4 is a structural block diagram of an image display device in one embodiment;

[0050] Figure 5 FIG. 4 is a diagram showing the internal structure of an electronic device in one embodiment. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0052] FIG1 is an application environment diagram of an image display method in an embodiment. Referring to FIG1(a), the application scenario includes a terminal processor 102 and a terminal display component 104, and the terminal processor 102 is connected to the terminal display component 104 through an interface. The terminal processor 102 can send data to the terminal display component 104 through the interface to control the terminal display component to display. The terminal processor 102 obtains image frame data and the current image mode; performs edge detection processing on the image frame data to obtain image edge features, and determines image parameters of the image frame data according to the image edge features; obtains image quality of the image frame data; determines the target image mode of the image frame data according to the image parameters and the image quality; when the current image mode is inconsistent with the target image mode, the target image mode is used to display the image frame data, such as sending the target image mode to the terminal display component 104. The terminal display component 104 loads the image frame data according to the target image mode for display.

[0053] In another application scenario, as shown in FIG1(b), the terminal 106 communicates with the server 108 via a network. The server 108 obtains the image frame data and the current image mode from the terminal 106; performs edge detection processing on the image frame data to obtain image edge features, and determines image parameters corresponding to the image frame data according to the image edge features; obtains the image quality of the image frame data, and determines the target image mode of the image frame data according to the image parameters and the image quality; when the current image mode is inconsistent with the target image mode, the image frame data is displayed using the target image mode. The terminal 106 may be, but is not limited to, various personal computers, laptops, smart phones, and tablet computers, and the server 108 may be implemented as an independent server or a server cluster consisting of multiple servers.

[0054] In one embodiment, Figure 2 As shown, an image display method is provided, which is described by taking the method applied to the terminal processor / server in FIG. 1 as an example, and includes the following steps:

[0055] Step 202, obtaining image frame data and current image mode.

[0056] An image frame is the smallest unit that makes up a video. Obtaining image frame data includes: obtaining input video data, decoding and denoising the video data, and obtaining image frame data. Denoising can be achieved by methods such as neighborhood averaging, low-pass filtering, and median filtering. For example, after decoding and denoising the video data, 50 frames per second are output. The method of increasing by time can be adopted, such as capturing 10 frames within 5 minutes. Specifically, 1 frame can be captured in the first second, and another frame can be captured after 60 seconds, and so on. The current image mode refers to the image mode in the current state of the mobile terminal. It can be the default setting of the manufacturer when the terminal leaves the factory, or it can be the image mode manually switched by the user last time. The image mode can specifically include: standard mode, movie mode, gorgeous mode, game mode, Dolby video bright mode / dark mode, picture mode, sports mode, customized mode, etc.

[0057] Step 204: perform edge detection processing on the image frame data to obtain image edge features, and determine image parameters corresponding to the image frame data according to the image edge features.

[0058] Edge detection refers to feature extraction and feature detection, which is used to detect edges or discontinuous areas with obvious changes in a digital image. Edge detection is the main feature extraction method for image analysis and pattern recognition. Edge refers to the collection of pixels whose surrounding pixels have grayscale changes or roof-like changes. It exists between the target and the background, the target and the target, the region and the region, and the primitive and the primitive. It is an important feature of image segmentation, an important information source of texture features and the basis of shape features. For example, edge detection can be performed based on wavelet transform. Wavelet transform has good local time-frequency conversion and multi-scale analysis capabilities. The basic idea of ​​wavelet edge detection operator is to take the wavelet function as the first-order derivative or second-order derivative of the smoothing function, and use the modulus of the wavelet transform of the signal to take the local maximum value or zero-crossing point at the signal mutation point to extract the edge point of the signal. Image parameters refer to image parameters used to characterize the content corresponding to the image frame data, such as grayscale histogram information, brightness histogram information, chromaticity histogram information, icon information, etc. of the image frame data.

[0059] In one embodiment, determining the image parameters of the image frame data according to the image edge features includes: obtaining a preset edge feature set; when there is an edge feature matching the image edge feature in the edge feature set, obtaining the image parameters of the image frame data according to the matched edge feature. Further, when there is no edge feature matching the image edge feature in the edge feature set, the image frame data is sent to a cloud server, and the cloud server compares the image frame data with the pre-stored image data to obtain the image parameters of the image frame data, and receives the image parameters of the image frame data fed back by the cloud server. Since the cloud server has strong computing power and computing speed, the entire picture can be compared with the highlighted stored image in the cloud server database, and the grayscale information, brightness information and chromaticity information of the obtained image frame data are highly accurate.

[0060] Step 206, obtaining the image quality of the image frame data, and determining the target image mode of the image frame data according to the image parameters and the image quality.

[0061] The image quality evaluation processing of the image frame data can be realized by the image quality evaluation algorithm. The image quality evaluation algorithm takes any image as input and outputs a quality score as output. The image frame data is processed by the image quality evaluation algorithm to obtain the image quality of the image frame data. IQA (Image Quality Assessment) mainly evaluates the quality of the image, that is, the degree of image distortion, by analyzing the characteristics of the image. IQA can include three types: full reference IQA, partial reference IQA and no reference IQA. Among them, full reference IQA refers to comparing the difference between the image to be evaluated and the reference image when the ideal image is selected as the reference image, analyzing the degree of distortion of the image to be evaluated, and thus obtaining the quality evaluation of the image to be evaluated. Partial reference IQA uses partial feature information of the ideal image as a reference to compare and analyze the image to be evaluated, so as to obtain the image quality evaluation result. Since the reference information is the feature extracted from the image, it is necessary to first extract partial feature information of the image to be evaluated and the ideal image, and then compare the extracted partial information to evaluate the quality of the image to be evaluated. No reference IQA is completely independent of the dependence on the ideal reference image and is based on the statistical characteristics of the image.

[0062] A neural network model is introduced to perform deep learning of image pattern matching. According to the grayscale histogram information, brightness histogram information, chromaticity histogram information obtained by edge feature detection and the image quality obtained by image quality evaluation, deep learning of image pattern matching is performed. For example, at a certain position of the picture, there is an image edge feature of fixed pixels through edge detection, and the image quality obtained by image quality evaluation is that there are noise points. Through deep learning, the matching image pattern output by the neural network model represents the cable TV playback interval, for example, the corresponding image mode is the standard mode. If the brightness histogram information and chromaticity histogram information in the image feature information are more obvious, the gorgeous mode is output as the matching image mode. That is, according to the image feature information of the current scene and the neural network model after deep learning, the target image mode applicable to the current scene is estimated.

[0063] In one embodiment, before determining the target image mode of the image frame data according to the image parameters and the image quality, it also includes: acquiring sample data, the sample data including sample image parameters, sample image quality and the corresponding image mode; inputting the sample image parameters and the sample image quality into a neural network model for training to obtain a training result; comparing the training result with the corresponding image mode, adjusting the parameters of the neural network model until the training result meets preset conditions to obtain a trained neural network model; determining the target image mode of the image frame data according to the image parameters and the image quality includes: inputting the image parameters and the image quality into the trained neural network model, obtaining the output of the neural network model, that is, obtaining the target image mode.

[0064] Step 208: When the current image mode is inconsistent with the target image mode, the target image mode is used to display the image frame data.

[0065] For example, if the current image mode obtained is the standard mode and the target image mode is the movie mode, the image mode of the mobile terminal is switched to the movie mode, and the image frame data is loaded in the movie mode for image display.

[0066] The above-mentioned image display method obtains image edge features by performing edge detection processing on the image frame data, determines image parameters corresponding to the image frame data according to the image edge features, obtains the image quality of the image frame data, and then determines the target image mode of the image frame data according to the image parameters and the image quality. When the current image mode of the mobile terminal is inconsistent with the target image mode, the image frame data is displayed using the target image mode. In this way, automatic switching of the image mode can be achieved, and the image mode is determined according to the image parameters and the image quality, which can improve the display accuracy of the image frame data in the image mode.

[0067] In one embodiment, Figure 3As shown, before obtaining the image quality of the image frame data, the process includes: step 303, obtaining the display resolution; step 304, when the resolution corresponding to the image frame data is not equal to the display resolution, scaling the image frame data to obtain the scaled image frame data; obtaining the image quality of the image frame data includes: step 305, obtaining the image quality of the scaled image frame data. Since the display resolution of the mobile terminal is fixed, for example, the display resolution of the mobile terminal is 3840*2160, and the image resolution of the playback video input by the front end is different, when the image resolution of the front end input video is greater than 3840*2160, the image resolution of the input video is reduced to 3840*2160; when the image resolution of the input video is less than 3840*2160, the image resolution of the input video is enlarged to 3840*2160; when the image resolution of the input video is equal to 3840*2160, the image resolution of the input video is not scaled. Scaling the image resolution of the input video will cause some loss in the display effect of the image. However, scaling the image resolution of the input video to the same as the display resolution can better evaluate the image quality.

[0068] It should be understood that although Figure 2-3 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-3 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0069] In one embodiment, Figure 4 As shown, an image display device is provided, including: a data acquisition module 402, an image processing module 404, an image mode determination module 406 and an image mode switching module 408. The data acquisition module is used to acquire image frame data and the current image mode. The image processing module is used to perform edge detection processing on the image frame data to obtain image edge features, and determine image parameters corresponding to the image frame data according to the image edge features. The image mode determination module is used to acquire the image quality of the image frame data, and determine the target image mode of the image frame data according to the image parameters and the image quality. The image mode switching module is used to display the image frame data using the target image mode when the current image mode is inconsistent with the target image mode.

[0070] In one embodiment, the image mode determination module also includes: a model building module for acquiring sample data, the sample data including sample image parameters, sample image quality and corresponding image mode; inputting the sample image parameters and sample image quality into the neural network model for training to obtain training results; comparing the training results with the corresponding image mode, adjusting the parameters of the neural network model until the training results meet preset conditions to obtain a trained neural network model; the image mode determination module is used to input the image parameters and image quality into the trained neural network model to obtain the output of the neural network model, that is, to obtain the target image mode.

[0071] In one embodiment, the image mode determination module also includes: a scaling module for obtaining the display resolution. When the resolution corresponding to the image frame data is not equal to the display resolution, the image frame data is scaled to obtain the scaled image frame data; the image mode determination module is used to obtain the image quality of the scaled image frame data.

[0072] In one embodiment, the image processing module is further used to obtain a preset edge feature set; when there is an edge feature in the edge feature set that matches the image edge feature, the image parameters of the image frame data are obtained according to the matched edge feature.

[0073] In one embodiment, the image processing module is also used to send the image frame data to the cloud server when there is no edge feature matching the image edge feature in the edge feature set, and the cloud server compares the image frame data with the pre-stored image data to obtain the image parameters of the image frame data; and receive the image parameters of the image frame data fed back by the cloud server.

[0074] In one embodiment, the data acquisition module is further used to acquire input video data, decode and denoise the video data, and obtain image frame data.

[0075] For the specific definition of the image display device, please refer to the definition of the image display method above, which will not be repeated here. Each module in the above-mentioned image display device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0076] In one embodiment, an electronic device is provided. Figure 5An internal structure diagram of an electronic device is provided. The electronic device includes a processor, a memory and a display screen connected via a system bus. The processor is used to provide computing and control capabilities. The memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. A method for adjusting display brightness can be performed by the processor of the electronic device, that is, when the computer program is executed by the processor, an image display method is implemented.

[0077] Those skilled in the art will understand that Figure 5 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0078] In one embodiment, an electronic device is provided, including a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program: acquiring image frame data and a current image mode; performing edge detection processing on the image frame data to obtain image edge features, and determining image parameters corresponding to the image frame data based on the image edge features; acquiring image quality of the image frame data, and determining a target image mode of the image frame data based on the image parameters and the image quality; and when the current image mode is inconsistent with the target image mode, displaying the image frame data using the target image mode.

[0079] In one embodiment, an electronic device is provided, including a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program: obtaining sample data, the sample data including sample image parameters, sample image quality, and a corresponding image mode; inputting the sample image parameters and the sample image quality into a neural network model for training to obtain a training result; comparing the training result with the corresponding image mode, adjusting the parameters of the neural network model until the training result meets preset conditions, and obtaining a trained neural network model; inputting the image parameters and the image quality into the trained neural network model, and obtaining the output of the neural network model, that is, obtaining a target image mode.

[0080] In one embodiment, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the following steps when executing the computer program: obtaining a display resolution; when a resolution corresponding to image frame data is not equal to the display resolution, scaling the image frame data to obtain scaled image frame data; and obtaining image quality of the scaled image frame data.

[0081] In one embodiment, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the following steps when executing the computer program: obtaining a preset edge feature set; when there is an edge feature in the edge feature set that matches the image edge feature, obtaining image parameters of the image frame data according to the matched edge feature.

[0082] In one embodiment, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the following steps when executing the computer program: when there is no edge feature matching the image edge feature in the edge feature set, sending image frame data to a cloud server, and the cloud server comparing the image frame data with pre-stored image data to obtain image parameters of the image frame data; and receiving the image parameters of the image frame data fed back by the cloud server.

[0083] In one embodiment, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the following steps when executing the computer program: acquiring input video data, decoding and denoising the video data, and obtaining image frame data.

[0084] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: acquiring image frame data and a current image mode; performing edge detection processing on the image frame data to obtain image edge features, and determining image parameters corresponding to the image frame data based on the image edge features; acquiring image quality of the image frame data, and determining a target image mode of the image frame data based on the image parameters and the image quality; when the current image mode is inconsistent with the target image mode, displaying the image frame data using the target image mode.

[0085] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: obtaining sample data, the sample data including sample image parameters, sample image quality and corresponding image mode; inputting the sample image parameters and the sample image quality into a neural network model for training to obtain training results; comparing the training results with the corresponding image mode, adjusting the parameters of the neural network model until the training results meet preset conditions, and obtaining a trained neural network model; inputting the image parameters and the image quality into the trained neural network model, and obtaining the output of the neural network model, that is, obtaining the target image mode.

[0086] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: obtaining a display resolution; when the resolution corresponding to the image frame data is not equal to the display resolution, scaling the image frame data to obtain the scaled image frame data; and obtaining the image quality of the scaled image frame data.

[0087] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: obtaining a preset edge feature set; when there is an edge feature in the edge feature set that matches the image edge feature, obtaining image parameters of the image frame data based on the matching edge feature.

[0088] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: when there is no edge feature matching the image edge feature in the edge feature set, the image frame data is sent to a cloud server, and the cloud server compares the image frame data with pre-stored image data to obtain image parameters of the image frame data; and the image parameters of the image frame data fed back by the cloud server are received.

[0089] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: acquiring input video data, decoding and denoising the video data, and obtaining image frame data.

[0090] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0091] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0092] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for displaying an image, the method comprising: include: Get image frame data and current image mode; Performing edge detection processing on the image frame data to obtain image edge features, and determining image parameters corresponding to the image frame data according to the image edge features; Acquire the image quality of the image frame data, input the image parameters and the image quality into a neural network model, and acquire the output of the neural network model as a target image mode of the image frame data; When the current image mode is inconsistent with the target image mode, the image frame data is displayed using the target image mode.

2. The method according to claim 1, It is characterized in that Before determining the target image mode of the image frame data according to the image parameters and the image quality, the method further includes: Acquire sample data, where the sample data includes sample image parameters, sample image quality, and corresponding image mode; Inputting the sample image parameters and the sample image quality into a neural network model for training to obtain a training result; Compare the training results with the corresponding image patterns, and adjust the parameters of the neural network model until the training results meet the preset conditions to obtain a trained neural network model; The step of inputting the image parameters and the image quality into a neural network model and obtaining the output of the neural network model as the target image mode of the image frame data comprises: The image parameters and the image quality are input into the trained neural network model, and the output of the trained neural network model is obtained as the target image mode of the image frame data.

3. The method according to claim 1, It is characterized in that Before obtaining the image quality of the image frame data, the method includes: Get the display resolution; When the resolution corresponding to the image frame data is not equal to the display resolution, scaling the image frame data to obtain scaled image frame data; The obtaining the image quality of the image frame data comprises: The image quality of the image frame data after the scaling process is obtained.

4. The method according to claim 1, It is characterized in that Determining the image parameters of the image frame data according to the image edge features comprises: Get a preset edge feature set; When there is an edge feature in the edge feature set that matches the image edge feature, the image parameter of the image frame data is obtained according to the matched edge feature.

5. The method according to claim 4, It is characterized in that Also includes: When there is no edge feature matching the image edge feature in the edge feature set, sending the image frame data to a cloud server, and the cloud server compares the image frame data with pre-stored image data to obtain image parameters of the image frame data; Receive image parameters of the image frame data fed back by the cloud server.

6. The method according to claim 1, It is characterized in that The acquiring of image frame data comprises: The input video data is acquired, and the video data is decoded and denoised to obtain image frame data.

7. An image display device, It is characterized in that The device comprises: A data acquisition module, used to acquire image frame data and current image mode; An image processing module, used for performing edge detection processing on the image frame data to obtain image edge features, and determining image parameters corresponding to the image frame data according to the image edge features; An image mode determination module, used for obtaining the image quality of the image frame data, inputting the image parameters and the image quality into a neural network model, and obtaining the output of the neural network model as a target image mode of the image frame data; The image mode switching module is used to display the image frame data in the target image mode when the current image mode is inconsistent with the target image mode.

8. The device according to claim 7, It is characterized in that The image mode determination module also includes: a model building module, which is used to obtain sample data, wherein the sample data includes sample image parameters, sample image quality and corresponding image mode; input the sample image parameters and the sample image quality into the neural network model for training to obtain training results; compare the training results with the corresponding image mode, adjust the parameters of the neural network model until the training results meet the preset conditions, and obtain the trained neural network model; The image mode determination module is used to input the image parameters and the image quality into the trained neural network model, and obtain the output of the trained neural network model as the target image mode of the image frame data.

9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.