CN113254690A - Thumbnail display method and equipment - Google Patents

Thumbnail display method and equipment Download PDF

Info

Publication number
CN113254690A
CN113254690A CN202010084855.2A CN202010084855A CN113254690A CN 113254690 A CN113254690 A CN 113254690A CN 202010084855 A CN202010084855 A CN 202010084855A CN 113254690 A CN113254690 A CN 113254690A
Authority
CN
China
Prior art keywords
image
thumbnail
hue
thumbnail display
attribute
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010084855.2A
Other languages
Chinese (zh)
Inventor
郝华奇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202010084855.2A priority Critical patent/CN113254690A/en
Publication of CN113254690A publication Critical patent/CN113254690A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/54Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/55Clustering; Classification

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application is applicable to the field of image processing, and provides a thumbnail display method capable of improving the attractiveness of image display, which comprises the steps of receiving a thumbnail display instruction and acquiring an image to be subjected to thumbnail display; acquiring the attribute of the image to be subjected to thumbnail display, and determining the reference attribute of the thumbnail display according to the attribute of the image to be subjected to thumbnail display; and performing attribute adjustment on the image to be subjected to thumbnail display according to the reference attribute, and performing thumbnail display on the adjusted image. The method can better keep the characteristics of the image to be subjected to thumbnail display in a mode of adjusting the reference attribute, is favorable for reducing the distortion degree of the image to be subjected to thumbnail display, enables a user to more easily recognize the content of the image to be subjected to thumbnail display, improves the harmony and the attractiveness of the image, and is favorable for improving the use experience of the user.

Description

Thumbnail display method and equipment
Technical Field
The application belongs to the technical field of image processing, and particularly relates to a thumbnail display method and equipment.
Background
With the development of science and technology, the functions of intelligent equipment are more and more powerful. The intelligent equipment comprises equipment such as a mobile phone, a tablet computer, a notebook computer and the like, can provide abundant multimedia functions, communication functions and the like for people, and brings great convenience for the working and life of people.
The intelligent equipment can shoot and record images of scenes where the user is located at any time, such as pictures and videos, or can download the images from other equipment or the Internet, and the images can be stored in an image library of the intelligent equipment and can be conveniently viewed or used at any time. When a user views thumbnails saved by the intelligent device or browses pictures on the network, the thumbnail contents of the pictures are usually displayed in a thumbnail mode. In order to improve the aesthetic appearance of the thumbnail, the thumbnail is usually covered with a layer of color, so that the thumbnail as a whole has a certain obvious color tendency. However, the forced color change tends to lose the characteristics of the original thumbnail, so that the thumbnail is distorted, and the content of the thumbnail is difficult to identify by a user.
Disclosure of Invention
The embodiment of the application provides a thumbnail display method and equipment, and can solve the problems that image features are lost when color trends are forcibly changed when thumbnails are displayed in the prior art, so that images are distorted, and users cannot easily recognize thumbnail contents.
In a first aspect, an embodiment of the present application provides a thumbnail display method, where the thumbnail display method includes: receiving a thumbnail display instruction, and acquiring an image to be displayed in a thumbnail mode; acquiring the attribute of the image to be subjected to thumbnail display, and determining the reference attribute of the thumbnail display according to the attribute of the image to be subjected to thumbnail display; and performing attribute adjustment on the image to be subjected to thumbnail display according to the reference attribute, and performing thumbnail display on the adjusted image.
The method comprises the steps of determining the reference attribute of the thumbnail display by acquiring the attribute of the image to be subjected to the thumbnail display, adjusting the image according to the reference attribute, so that the image to be subjected to the thumbnail display can be more harmonious as a whole, and compared with the method of adopting a unified mask to enable the image to present a color tendency, the method for adjusting the reference attribute can better keep the characteristics of the image to be subjected to the thumbnail display, is favorable for reducing the distortion degree of the image to be subjected to the thumbnail display, and enables a user to more easily recognize the content of the image to be subjected to the thumbnail display. The attribute of the image may include a cold and warm category of the image, a hue of the image, a saturation of the image, and the like.
With reference to the first aspect, in a first possible implementation manner of the first aspect, the obtaining an attribute of the image to be thumbnail-displayed, and determining a reference attribute of thumbnail-display according to the attribute of the image to be thumbnail-displayed includes: acquiring the cold and warm categories of the image to be displayed in the thumbnail mode; determining hue attribution of a to-be-reduced display image according to the cold and warm categories of the image; and determining the reference hue of the image according to the determined proportion of the hue attributions.
After the cold and warm categories of different images are determined, the hue attribution corresponding to the images is determined according to the cold and warm categories of the images, then the proportion corresponding to the hue attribution is determined according to the hue attribution, and the reference hue of the images is determined according to the proportion. For example, whether an image is in a warm color category or a cool color category or a neutral category may be determined according to colors included in the image. After the cooling and heating categories of the image are determined, the color which mainly contributes to the determination of the cooling and heating categories of the image can be used as the hue attribution of the image. And then calculating hue attributions of different images for statistics to obtain a hue with the densest hue attribution, wherein the hue can be used as a reference hue. The reference hue is screened through the cold and warm categories of the image, so that the determined reference hue can represent the cold and warm tones of the page more effectively and represent more information of the image more accurately.
With reference to the first aspect, in a second possible implementation manner of the first aspect, the step of acquiring an attribute of the image to be thumbnail-displayed and determining a reference attribute of thumbnail-display according to the attribute of the image to be thumbnail-displayed includes: obtaining the hue of the image to be subjected to the thumbnail display, and determining the cold and warm types of the image according to the hue of the image; determining the integral cold and warm tone of the image to be displayed in a thumbnail mode according to the cold and warm categories of the image; and determining the reference hue of the image according to the proportion of the hues corresponding to the whole cold and warm tones.
When the reference attribute of the image to be subjected to the thumbnail display is determined, the reference hue of the image to be subjected to the thumbnail display can be determined according to the cold-warm classification and the hue of the image to be subjected to the thumbnail display. Namely, the cold and warm classifications to which the images belong can be determined according to the hues of the images to be subjected to the thumbnail display, and the number of cold color images and the number of warm color images of the images to be subjected to the thumbnail display can be determined. A large number of categories are selected as the overall cool/warm tones of the images to be thumbnail displayed. And then obtaining the hue corresponding to the whole cold and warm tone, determining the reference hue of the image to be subjected to the thumbnail display according to the distribution of the hue corresponding to the whole cold and warm tone, and performing hue adjustment on the image to be subjected to the thumbnail display according to the reference hue, so that the hues of the image to be subjected to the thumbnail display are closer, the whole harmony of the thumbnail image is improved, the content in the thumbnail cannot be damaged, and the recognizability of a user on the thumbnail is improved.
In one implementation, the determining a reference hue of the image according to a proportion of hues corresponding to the overall cool/warm tone includes: searching the ratio of each hue corresponding to the determined integral cold and warm tone in the image to be displayed in a thumbnail mode according to the determined cold and warm categories; and determining the reference hue of the image according to the hue with larger proportion.
The method comprises the steps of searching for each hue corresponding to the determined cold and warm category in an image to be displayed in a contracted mode, more accurately obtaining the whole hue of the image to be displayed in the contracted mode, searching for the distribution of the corresponding hue according to the determined cold and warm category, namely the whole cold and warm hue, and more accurately determining the reference hue on the whole according to the searched distribution of the corresponding hue. Wherein, the warm colors in the cold and warm categories can comprise red, yellow, brown and other colors, and the cold colors in the cold and warm categories can comprise blue, green, purple and other colors.
In one implementation, the determining a reference hue of the image according to a ratio of hues corresponding to the overall cool/warm tone includes: according to the determined cold and warm categories, searching the proportion of each hue corresponding to the determined integral cold and warm tones in the image corresponding to the determined integral cold and warm tones; and determining the reference hue of the image according to the hue with larger proportion.
After the images are classified according to the cooling and heating categories of the images, the hue distribution corresponding to the integral cooling and heating color tones is searched according to the images corresponding to the integral cooling and heating color tones, and the hue distribution corresponding to the integral cooling and heating color tones is searched according to the searched images corresponding to the integral cooling and heating color tones, so that the reference hue corresponding to the integral cooling and heating color tones can be more accurately obtained. For example, the images to be thumbnail-displayed include 100 images, wherein the image of the cool tone is 60 images, the image of the warm tone is 30 images, and the image of the neutral tone is 10 images. The reference hue of the image to be thumbnail displayed may be determined based on a distribution of hues corresponding to 60 cool-toned images, such as hues corresponding to blue, green, and purple.
In one implementation manner, the step of acquiring the attribute of the image to be thumbnail displayed and determining the reference attribute of the thumbnail display according to the attribute of the image to be thumbnail displayed includes: acquiring the saturation of an image to be subjected to thumbnail display; a reference saturation of the thumbnail display is determined from the distribution of the saturations of the acquired image.
In the thumbnail display method, the image to be subjected to thumbnail display can be adjusted based on the reference hue, the image to be subjected to thumbnail display can also be adjusted based on the reference saturation, or the image to be subjected to thumbnail display can be adjusted through the reference hue and the reference saturation, so that the whole adjusted image is more harmonious and attractive, and the use experience of a user is improved.
Wherein the step of determining the reference saturation of the thumbnail display according to the distribution of the saturations of the acquired image includes: and determining a range corresponding to the reference saturation according to the distribution density of the image saturation in the saturation range with the preset length.
And carrying out intensity detection on the saturation distribution of the image to be subjected to the thumbnail display according to a preset saturation range, determining an area with the dense saturation distribution in the saturation range with a preset length as the reference saturation, and carrying out saturation adjustment on the image to be subjected to the thumbnail display according to the reference saturation.
Wherein the step of performing attribute adjustment on the image to be thumbnail displayed according to the reference attribute comprises: determining the saturation adjustment amplitude of the image according to the difference between the saturation of the image and the reference saturation; and adjusting the saturation of the image according to the saturation adjusting amplitude. For example, a corresponding relationship between the difference and the adjustment range may be preset, the corresponding adjustment range may be searched for according to the difference, and the saturation of the image may be adjusted according to the searched adjustment range. The corresponding relationship between the difference and the adjustment amplitude may be that the larger the difference is, the larger the adjustment amplitude is, the smaller the difference is, and the smaller the adjustment amplitude is, so that an image with a large difference between the saturation and the reference saturation can be adjusted with more accuracy. Of course, in a feasible implementation manner, the image adjusted according to the reference saturation may further determine a difference of the saturations of the adjacent images, and the saturation of the image may be adjusted according to the difference of the saturations of the adjacent images.
In one implementation manner, the step of acquiring the attribute of the image to be thumbnail displayed and determining the reference attribute of the thumbnail display according to the attribute of the image to be thumbnail displayed includes: obtaining the hue of the image of the page to be displayed in a thumbnail mode, and determining the hue distribution of the image of the page to be displayed in the thumbnail mode; and determining the reference hue of the image according to the hue distribution of the image.
The reference hue of the image is determined based on the distribution of the whole hue of the image to be subjected to the thumbnail display, the reference hue corresponding to the image to be subjected to the thumbnail display can be acquired more quickly, and the image is adjusted according to the whole determined reference hue, so that the whole hue of the image to be subjected to the thumbnail display is closer, the content of the image cannot be damaged, and the identification of a user on the content of the thumbnail displayed image is facilitated.
In one implementation, before the step of performing the attribute adjustment on the image to be thumbnail displayed according to the reference attribute, the method further includes: acquiring the sliding speed of the sliding thumbnail; and when the sliding speed is greater than a preset speed threshold value, starting to perform attribute adjustment on the image to be subjected to thumbnail display.
In order to save the display resources of the thumbnails, the moving state of the thumbnails can be acquired by monitoring the display state of the thumbnails. When a sliding instruction of a user for moving a thumbnail is received, the sliding speed of the thumbnail corresponding to the sliding instruction can be acquired, and when the sliding speed is greater than a predetermined speed, the operation of adjusting the attribute of the image to be thumbnail displayed can be omitted, so that hue adjustment and/or saturation adjustment of the image to be thumbnail displayed can be omitted. When the sliding speed is less than the preset sliding speed, the attribute adjustment of the image to be subjected to the thumbnail display is started, so that a user can observe a more attractive and harmonious display picture, and the user can be facilitated to recognize the content of the thumbnail display.
In one implementation, the step of determining a reference attribute of a thumbnail display according to an attribute of the image to be thumbnail displayed includes: and respectively determining the reference attribute of the image to be subjected to the thumbnail display in each group according to the group information of the image to be subjected to the thumbnail display. The grouping information may include grouping information according to photographing time, grouping information according to photographing place, grouping information according to image content, and the like. And respectively determining the reference attribute corresponding to each group according to the group information, and adjusting the image according to the reference attribute of each group, so that the user can more accurately recognize the content of the adjusted image.
In a second aspect, an embodiment of the present application provides a thumbnail display apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the thumbnail display method according to any one of the first aspect when executing the computer program.
In a third aspect, this application provides a computer-readable storage medium storing a computer program, which when executed by a processor implements the method according to any one of the first aspect.
It is understood that, the beneficial effects of the second aspect and the third aspect can be referred to the related description of the first aspect, and are not described herein again.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic diagram of a hardware structure of a mobile phone to which a thumbnail display provided in an embodiment of the present application is applied;
fig. 2 is a schematic diagram of a software structure of a mobile phone to which a thumbnail display provided in an embodiment of the present application is applied;
fig. 3 is a schematic flowchart illustrating an implementation flow of a thumbnail display method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an implementation process for determining a reference hue according to an embodiment of the present application;
FIG. 5 is a schematic diagram of another implementation process for determining a reference hue according to an embodiment of the present application;
FIG. 6 is a schematic diagram of image adjustment provided in another embodiment of the present application;
FIG. 7 is a flowchart illustrating an implementation process of a thumbnail display provided in an embodiment of the present application;
fig. 8 is a schematic diagram of a thumbnail display apparatus provided in an embodiment of the present application;
fig. 9 is a schematic structural diagram of a thumbnail display device provided in an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
The terminology used in the following examples is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of this application and the appended claims, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, such as "one or more", unless the context clearly indicates otherwise. It should also be understood that in the embodiments of the present application, "one or more" means one, two, or more than two; "and/or" describes the association relationship of the associated objects, indicating that three relationships may exist; for example, a and/or B, may represent: a alone, both A and B, and B alone, where A, B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The thumbnail display provided by the embodiment of the application can be applied to a mobile phone, a tablet personal computer, a wearable device, an in-vehicle device, an Augmented Reality (AR)/Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA) and other terminal devices, and the embodiment of the application does not limit the specific type of the terminal device.
For example, the terminal device may be a Station (ST) in a WLAN, which may be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA) device, a handheld device with Wireless communication capability, a computing device or other processing device connected to a Wireless modem, a vehicle-mounted device, a vehicle-mounted networking terminal, a computer, a laptop, a handheld communication device, a handheld computing device, a satellite Wireless device, a Wireless modem card, a television set-top box (STB), a Customer Premises Equipment (CPE), and/or other devices for communicating over a Wireless system and a next generation communication system, such as a Mobile terminal in a 5G Network or a Public Land Mobile Network (future evolved, PLMN) mobile terminals in the network, etc.
By way of example and not limitation, when the terminal device is a wearable device, the wearable device may also be a generic term for intelligently designing daily wearing by applying wearable technology, developing wearable devices, such as glasses, gloves, watches, clothing, shoes, and the like. A wearable device is a portable device that is worn directly on the body or integrated into the clothing or accessories of the user. The wearable device is not only a hardware device, but also realizes powerful functions through software support, data interaction and cloud interaction. The generalized wearable intelligent device has the advantages that the generalized wearable intelligent device is complete in function and large in size, can realize complete or partial functions without depending on a smart phone, such as a smart watch or smart glasses, and only is concentrated on a certain application function, and needs to be matched with other devices such as the smart phone for use, such as various smart bracelets for monitoring physical signs, smart jewelry and the like.
Take the terminal device as a mobile phone as an example. Fig. 1 is a block diagram illustrating a partial structure of a mobile phone according to an embodiment of the present disclosure. Referring to fig. 1, the cellular phone includes: a Radio Frequency (RF) circuit 110, a memory 120, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a wireless fidelity (WiFi) module 170, a processor 180, and a power supply 190. Those skilled in the art will appreciate that the handset configuration shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 1:
the RF circuit 110 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information of a base station and then processes the received downlink information to the processor 180; in addition, the data for designing uplink is transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 110 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE)), e-mail, Short Messaging Service (SMS), and the like.
The memory 120 may be used to store software programs and modules, and the processor 180 executes various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 120. The memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 130 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone 100. Specifically, the input unit 130 may include a touch panel 131 and other input devices 132. The touch panel 131, also referred to as a touch screen, may collect touch operations of a user on or near the touch panel 131 (e.g., operations of the user on or near the touch panel 131 using any suitable object or accessory such as a finger or a stylus pen), and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 131 may include two parts, i.e., a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. In addition, the touch panel 131 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 130 may include other input devices 132 in addition to the touch panel 131. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by a user or information provided to the user and various menus of the mobile phone. The Display unit 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 131 can cover the display panel 141, and when the touch panel 131 detects a touch operation on or near the touch panel 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although the touch panel 131 and the display panel 141 are shown as two separate components in fig. 1 to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 131 and the display panel 141 may be integrated to implement the input and output functions of the mobile phone.
The handset 100 may also include at least one sensor 150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 141 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between the user and the handset. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, which is received by the audio circuit 160 and converted into audio data, which is then processed by the audio data output processor 180 and then transmitted to, for example, another cellular phone via the RF circuit 110, or the audio data is output to the memory 120 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 170, and provides wireless broadband Internet access for the user. Although fig. 1 shows the WiFi module 170, it is understood that it does not belong to the essential constitution of the handset 100, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby integrally monitoring the mobile phone. Alternatively, processor 180 may include one or more processing units; preferably, the processor 180 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The handset 100 also includes a power supply 190 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 180 via a power management system, such that the power management system may be used to manage charging, discharging, and power consumption.
Although not shown, the handset 100 may also include a camera. Optionally, the position of the camera on the mobile phone 100 may be front-located or rear-located, which is not limited in this embodiment of the application.
Optionally, the mobile phone 100 may include a single camera, a dual camera, or a triple camera, which is not limited in this embodiment.
For example, the cell phone 100 may include three cameras, one being a main camera, one being a wide camera, and one being a tele camera.
Optionally, when the mobile phone 100 includes a plurality of cameras, the plurality of cameras may be all front-mounted, all rear-mounted, or a part of the cameras front-mounted and another part of the cameras rear-mounted, which is not limited in this embodiment of the present application.
In addition, although not shown, the mobile phone 100 may further include a bluetooth module or the like, which is not described herein.
Fig. 2 is a schematic diagram of a software structure of the mobile phone 100 according to the embodiment of the present application. Taking the operating system of the mobile phone 100 as an Android system as an example, in some embodiments, the Android system is divided into four layers, which are an application layer, an application Framework (FWK) layer, a system layer and a hardware abstraction layer, and the layers communicate with each other through a software interface.
As shown in fig. 2, the application layer may be a series of application packages, which may include short message, calendar, camera, video, navigation, gallery, call, and other applications.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer may include some predefined functions, such as functions for receiving events sent by the application framework layer.
As shown in FIG. 2, the application framework layers may include a window manager, a resource manager, and a notification manager, among others.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like. The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, sounding a prompt tone, vibrating the electronic device, flashing an indicator light, etc.
The application framework layer may further include:
a viewing system that includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide the communication functions of the handset 100. Such as management of call status (including on, off, etc.).
The system layer may include a plurality of functional modules. For example: a sensor service module, a physical state identification module, a three-dimensional graphics processing library (such as OpenGL ES), and the like.
The sensor service module is used for monitoring sensor data uploaded by various sensors in a hardware layer and determining the physical state of the mobile phone 100;
the physical state recognition module is used for analyzing and recognizing user gestures, human faces and the like;
the three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The system layer may further include:
the surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, and the like.
The hardware abstraction layer is a layer between hardware and software. The hardware abstraction layer may include a display driver, a camera driver, a sensor driver, etc. for driving the relevant hardware of the hardware layer, such as a display screen, a camera, a sensor, etc.
The following embodiments may be implemented on the cellular phone 100 having the above-described hardware structure/software structure. The following embodiment will describe the thumbnail display provided in the embodiment of the present application, taking the mobile phone 100 as an example.
Fig. 3 shows a schematic flow chart of the thumbnail display provided by the present application, by way of example and not limitation, the method may be applied in the above-described cell phone 100.
In step S301, a thumbnail display instruction is received, and an image to be thumbnail displayed is acquired;
the thumbnail is a thumbnail corresponding to a picture stored in the thumbnail display device. And determining the pixel content displayed in the thumbnail according to the corresponding proportion according to the size of the thumbnail. The thumbnail usually contains a hyperlink pointing to a picture with a complete size, and when a user clicks the thumbnail, the user can jump through the hyperlink to execute an opening instruction of the complete picture corresponding to the thumbnail to complete the opening operation of the complete picture. The thumbnail is loaded faster because of the smaller size of the thumbnail and less pixel content being displayed. And the thumbnail comprises the outline of the image in the complete picture, so that the user can conveniently and quickly browse the picture.
In one implementation scenario, the instruction for displaying the thumbnail may include an instruction for a user to open an album of the thumbnail display device. For example, after clicking an "album" application program, the user enters the album to obtain an image to be thumbnail displayed in the album.
In an implementation scenario, the instruction for displaying the thumbnail may also be an instruction for selecting the displayed image under the album by the user, for example, the user selects the image to be thumbnail displayed by sliding, or selects the image to be thumbnail displayed by dragging a scroll bar. The method is not limited to the above, and the method may further include a search instruction of the image, determine the searched image according to the search instruction, and determine the image to be thumbnail displayed according to the searched image.
The acquired image to be thumbnail displayed may be a full-size image or an image subjected to a predetermined scaling down process. When the image to be thumbnail displayed is subsequently adjusted, the image subjected to the reduction processing of the preset proportion can be directly processed, and the processing of the image subjected to the reduction processing is simpler, so that the display efficiency of the thumbnail can be improved.
The reduced images can be stored in the thumbnail display device in advance, when the images to be thumbnail displayed have a predetermined display sequence, the adjusted images can be calculated according to the thumbnail display method of the present application, and the calculated adjusted images are stored in the thumbnail display device in advance, and when the adjusted images need to be displayed, the pre-stored adjusted images can be directly read. For example, the display order of the pre-stored images may be sorted according to time, sorted according to picture category, or the like.
The reduced images have no fixed display order, for example, when the user displays the images searched according to different keywords, or the searched image database is updated, for example, a new photo is taken, the attribute adjustment processing can be performed on the images to be subjected to thumbnail display in real time according to the thumbnail display instruction, so that the requirements of thumbnail display of images in different scenes can be met.
In step S302, acquiring an attribute of the image to be thumbnail-displayed, and determining a reference attribute of thumbnail-display according to the attribute of the image to be thumbnail-displayed;
in this application, the attribute of the image to be thumbnail-displayed may include a cooling and heating category, a hue, a saturation, or the like of the image, or may also be combined according to two attributes thereof, for example, the cooling and heating category of the image and the hue of the image may be combined to jointly determine a reference attribute for thumbnail-display.
The reference attribute may be one of hues in the image, or may also be a saturation range included in the image. The hue is the primary characteristic of color and is the most accurate standard for distinguishing various colors. The initial base color phases were: red, orange, yellow, green, blue, violet. Other more types of hues can be derived from the combination of base colors.
In one implementation, the implementation of determining the reference hue can be as shown in fig. 4, including:
in step S401, the cooling/heating category of the image to be thumbnail displayed is acquired.
Wherein the cool and warm categories of the image include cool tone, warm tone, and neutral tone. When the cooling and heating type corresponding to each image to be subjected to thumbnail display is determined, the color phase included in each image to be subjected to thumbnail display and the proportion of each included color phase can be acquired.
The cold and warm categories corresponding to each image to be displayed in a thumbnail mode can be determined according to the preset corresponding relation between the hues and the cold and warm scores and the proportion of each hue, namely the scores of the warm tone and the cold tone can be calculated according to the product of the cold and warm scores and the proportion of different hues, and the cold and warm categories of the images can be determined according to the scores.
In step S402, the hue attribution of the image to be thumbnail displayed is determined according to the cooling and heating categories of the image.
After the cold and warm categories of the image are determined, the corresponding colors can be searched according to the cold and warm categories. For example, the color corresponding to the cool color category may include a purple color, a green color, a blue color, and the like, and the hue occupation ratio of the color corresponding to each cool color category in a single image of the cool color category may be searched, and the hue with the largest hue occupation ratio is used as the hue attribution of the image.
For example, when the cool/warm type of an image is determined as the cool type, the ratio of purple, the ratio of blue, the ratio of green, and the like are searched for in the colors corresponding to the cool type, and the cool color having the largest ratio is selected as the hue attribute of the image.
In step S403, a reference hue of the image is determined based on the ratio to which the determined hue belongs.
After determining the hue attributions corresponding to the different images respectively, the hue attribution with the largest proportion can be selected according to the proportion of the hue attributions, and the hue attribution is determined as the reference hue of the image in the page.
In one implementation, the basic attribute of the thumbnail display may be determined according to a cooling and heating classification of an image and a color phase of the image, and specifically, as shown in fig. 5, the method includes:
in step S501, a hue of the image to be thumbnail displayed is obtained, and the cooling and heating category of the image is determined according to the hue of the image.
Wherein the cool and warm categories of the image include cool tone, warm tone, and neutral tone. When the cooling and heating type corresponding to each image to be subjected to thumbnail display is determined, the color phase included in each image to be subjected to thumbnail display and the proportion of each included color phase can be acquired.
The cold and warm categories corresponding to each image to be displayed in a thumbnail mode can be determined according to the preset corresponding relation between the hues and the cold and warm scores and the proportion of each hue, namely the scores of the warm tone and the cold tone can be calculated according to the product of the cold and warm scores and the proportion of different hues, and the cold and warm categories of the images can be determined according to the scores.
For example, for an image a to be thumbnail-displayed, hues of X1, X2, X3, X4, and X5 are included, where X1 and X2 are warm hues, and X3, X4, and X5 are cool hues. The cool and warm scores corresponding to each hue in X1, X2, X3, X4 and X5 are Y1, Y2, Y3, Y4 and Y5 respectively, and the proportions corresponding to each hue are Z1, Z2, Z3, Z4 and Z5 respectively, so that the score of the image for the warm color category can be calculated as Y1Z 1+ Y2Z 2, and the score of the cool color category can be calculated as: y3 × Z3+ Y4 × Z4+ Y5 × Z5. And comparing the score of the warm color category with the score of the cold color category, and selecting the category with the larger score as the cold and warm category corresponding to the image.
Or, a dominant hue, that is, a hue with the largest proportion, included in the image may be obtained, and the cool and warm categories corresponding to the image may be determined directly from the dominant hue according to a correspondence between the hue and the cool and warm categories. For example, the dominant hue of an image may be determined to be yellow based on the fact that the yellow proportion of the image exceeds the proportion of the other hues. According to the corresponding relation between the hue and the cold and warm tone, the image can be determined to be the warm color category.
In step S502, the overall cooling and heating tone of the image to be thumbnail displayed is determined according to the cooling and heating category of the image.
After the cold and warm categories of each image to be subjected to the thumbnail display are determined, the number of the cold color categories and the number of the warm color categories of the image to be subjected to the thumbnail display can be obtained, and the cold color categories or the warm color categories with larger number can be obtained as the whole cold and warm tones of the image to be subjected to the thumbnail display by comparing the number of the cold color categories with the number of the warm color categories.
For example, the images to be thumbnail-displayed include 100 images, wherein the number of the images in the cool color category or the cool tone is 60, the number of the images in the warm color category or the warm tone is 30, and the number of the images in the neutral tone is 10. Since the number of images of the cool color category is larger than the number of images of the warm color category and the number of images of the neutral tone, it is determined that the overall cool-warm tone is the cool tone or the cool color category.
In a feasible implementation manner, the contribution weight values of different images to the overall cool and warm tone can be determined according to the positions and the cool and warm degrees of the images in the page to be displayed in a thumbnail mode, the score values corresponding to the cool tone, the warm tone or the neutral tone are calculated by combining the contribution weight values, and the overall cool and warm tone of the image to be displayed in the thumbnail mode is determined according to the calculated score values. For example, the closer the position of an image in a page to be thumbnail-displayed is to the center, the larger contribution weight can be obtained.
In step S503, a reference hue of the image is determined according to a ratio of hues corresponding to the entire cool/warm tone.
After the overall cool/warm tone corresponding to the image to be displayed in a thumbnail manner is determined, the hue corresponding to the overall cool/warm tone can be determined according to the corresponding relationship between the cool/warm tone and the hue. Then, the ratio of the corresponding hue in the image is further determined, and according to the ratio, the hue with larger ratio can be selected as the reference hue of the image.
When the proportion of the hues in the image is determined, the proportion of each hue corresponding to the determined overall cool/warm tone can be searched in the image to be subjected to the thumbnail display. The method comprises the steps of searching for each hue corresponding to the determined cold and warm category in an image to be displayed in a contracted mode, more accurately obtaining the whole hue of the image to be displayed in the contracted mode, searching for the distribution of the corresponding hue according to the determined cold and warm category, namely the whole cold and warm hue, and more accurately determining the reference hue on the whole according to the searched distribution of the corresponding hue. Wherein, the warm color in the cold and warm category can comprise red, yellow, brown and other colors, the cold color in the cold and warm category can comprise blue, green, purple and other colors, and the neutral color can comprise gray, white and other colors.
When the proportion of the hues in the image is determined, or the proportion of each hue corresponding to the determined overall cool/warm tone may be searched for in the image corresponding to the determined overall cool/warm tone. After the images are classified according to the cooling and heating categories of the images, the hue distribution corresponding to the integral cooling and heating color tones is searched according to the images corresponding to the integral cooling and heating color tones, and the hue distribution corresponding to the integral cooling and heating color tones is searched according to the searched images corresponding to the integral cooling and heating color tones, so that the reference hue corresponding to the integral cooling and heating color tones can be more accurately obtained. For example, the images to be thumbnail-displayed include 100 images, wherein the image of the cool tone is 60 images, the image of the warm tone is 30 images, and the image of the neutral tone is 10 images. The hue with a wider distribution can be selected as the reference hue of the image to be thumbnail displayed based on the distribution of hues corresponding to 60 images with cool tone, such as corresponding hues of blue, green, and purple.
Fig. 5 illustrates an implementation process of determining a reference hue of a thumbnail display according to an overall cool-warm tone of an image to be thumbnail displayed and a hue of the image to be thumbnail displayed, but is not limited thereto, and when determining the reference hue of the thumbnail display, a hue of all or part of the image to be thumbnail displayed may also be acquired, and a hue of the image to be thumbnail displayed may be determined according to a distribution of the acquired hues. That is, the reference hue in the screen can be directly determined by the hue distribution information of the image which needs to be thumbnail displayed as a whole, and the reference hue of the screen can be determined more quickly. For example, ten thumbnails are included in the thumbnail display page, and the hue included in all the thumbnails in the page and the size of the distribution range of the included hues may be calculated, that is, the distribution ranges of the same hues in the respective images are summed to obtain the distribution range of each hue in the page, and the hue with the largest distribution range is selected as the reference hue for the thumbnail display.
In one implementation, the attribute of the image to be thumbnail displayed may further include a saturation of the image. The reference saturation of the thumbnail display may be determined from the acquired saturation of the image to be thumbnail displayed. Or, the reference saturation and the reference hue of the thumbnail display can be determined according to the hue, the cold and warm types and the saturation of the image to be thumbnail displayed. Wherein determining the reference inclusion degree may be:
the method comprises the steps of acquiring the saturation of an image to be subjected to thumbnail display, and determining the reference saturation of the thumbnail display according to the distribution of the acquired saturation of the image.
The saturation of the thumbnail can determine the saturation corresponding to each image to be thumbnail displayed according to the preset corresponding relationship between the saturation characteristics and the saturation. After the saturation corresponding to each image to be thumbnail displayed is determined, the saturations with more concentrated number can be selected as the reference saturation according to the distribution of the saturations.
When the more concentrated saturation of quantity is confirmed, the saturation range of preset length can be gradually moved through the saturation range of preset length, the quantity of the confirmed saturation included in the saturation range of preset length in the moving process is detected, and the saturation range of the preset length with more included saturation quantity is selected to serve as the reference saturation.
For example, the value range of the saturation is 0 to 10, the saturation range of the preset length is 2, and it is assumed that the number of the images included in the page to be thumbnail displayed is 6, and the calculated saturations of the respective images are: 8.5, 5.1, 4.5, 3.6, 2.2, 5.4, the saturation range with the step size of 2 may be gradually shifted, when the saturation range is greater than or equal to 3.6 and less than 5.6, four saturation values of 3.6, 4.5, 5.1, 5.4 may be included, the saturation range may be used as the reference saturation of the thumbnail display, or the center point of the saturation range may be used as the reference saturation, and the image to be thumbnail displayed may be adjusted according to the reference saturation.
In step S303, an attribute of the image to be thumbnail displayed is adjusted according to the reference attribute, and the adjusted image is thumbnail displayed.
When the reference attribute is a reference hue, a corresponding filter can be selected according to the difference between the hues of the image and the reference image, and the image is subjected to filtering processing or color mixing processing. Because different images have different differences, the selected filter can be determined or different color mixing schemes can be selected according to the differences between the different images and the reference hue, so as to filter the images.
In an implementation manner, as shown in fig. 6, after a reference hue corresponding to the left image is obtained through calculation processing, differences between each image and the reference image are further determined, and the selected filter, such as an image in the fourth column of the first row and an image in the third column of the third row, may be determined, and a yellow filter may be selected for superposition to process the image; for the image of the third row and the second column, the green tone in the image can be reduced through the toning process. For the image in the fifth row and the fourth column, a warm color filter can be superposed to adjust the image.
In one implementation, when the image to be thumbnail displayed is adjusted according to the reference color, the adjustment amplitude may be gradually changed, and when the consistency of the adjusted color of the image reaches a predetermined ratio, for example, greater than or equal to 90%, the adjustment of the image may be completed.
When the reference attribute is a reference saturation, the saturation adjustment amplitude may be determined according to a difference in saturation between the image to be adjusted and the reference saturation. That is, the larger the difference between the saturation and the reference saturation, the larger the adjustment range, and conversely, the smaller the adjustment range.
For example, if the reference saturation is 5, the saturation of image a is 2.5, and the saturation of image B is 6, the adjustment range of image a is greater than that of image B. The adjustment amplitude of different images is determined, so that the saturation of the whole thumbnail displayed page is more harmonious and attractive. Such as the image in the sixth row and the third column of fig. 5, the image and the saturation can be made to approach the reference saturation by an adjustment that reduces the saturation of the image.
In one implementation, the adjustment range of the saturation of all the images in the page may be gradually increased, that is, the adjustment proportion of the saturation of each image is kept unchanged, and the adjustment value of the saturation is gradually increased, and when the saturation of the images in the page keeps a consistent proportion, for example, whether 90% is greater than a predetermined value, the saturation adjustment is completed. The saturation being consistent may be understood as the saturation value belonging to a saturation range of a predetermined length.
In an implementation scenario, a sliding speed of a thumbnail in a thumbnail display page may also be acquired, and the sliding speed of the thumbnail is compared with a predetermined speed threshold, and if the sliding speed is less than the speed threshold, attribute adjustment, including hue adjustment or saturation adjustment, may be started on the image to be thumbnail displayed. If the sliding speed is greater than the speed threshold, the attribute adjustment of the image to be thumbnail displayed can be stopped. Wherein the speed may be represented by a sliding time of one screen, and the speed threshold may be 150 milliseconds to 250 milliseconds.
By monitoring the display state of the thumbnail, the moving state of the thumbnail can be acquired. When a sliding instruction of a user for moving the thumbnail is received, the sliding speed of the thumbnail corresponding to the sliding instruction can be acquired, and when the sliding speed is greater than a preset speed, the operation of adjusting the attribute of the image to be thumbnail displayed can be avoided, so that hue adjustment and/or saturation adjustment of the image to be thumbnail displayed can be avoided, and system resources can be saved. When the sliding speed is less than the preset sliding speed, the attribute adjustment of the image to be subjected to the thumbnail display is started, so that a user can observe a more attractive and harmonious display picture, and the user can be facilitated to recognize the content of the thumbnail display.
In addition, in some possible implementation manners, when a plurality of image groups are included in the page to be thumbnail-displayed, the reference attribute corresponding to each group may be determined respectively, and the images in the group may be adjusted respectively according to the reference attribute of each group, so that the images in the images of each group displayed in the page are more coordinated, and the adjusted images may effectively enable a user to recognize the image content, and reduce the distortion degree of the images.
Fig. 7 is a schematic diagram of an implementation process of still another thumbnail display provided in the present application, and as shown in fig. 6, the thumbnail display process includes:
in step S701, a thumbnail page is opened.
And opening the thumbnail page to acquire the image to be displayed in a thumbnail mode.
In step S702, the hue attribution of each image is determined according to the cooling and heating type of each image.
The hue attribution corresponding to the image can be calculated according to all colors included in each image and the size of the area corresponding to the colors. According to the coldness or warmth of the color and the size of the area, the coldness value, the warmth value and the neutral color value of the image can be respectively calculated, and the color value with the larger calculated value is selected as the hue attribution of the image.
In step S703, the hue tendency of the thumbnail on the current page is calculated.
According to the calculated hue attribution of each image, the distribution information of the hue can be obtained, and according to the distribution information of the hue, the hue with more dense hue distribution can be selected as the hue tendency of the current page.
In step S704, it is determined whether the consistency ratio of the hue tendencies in the current page is less than a predetermined value. If the consistency ratio of the hue tendencies in the current page is smaller than the predetermined value, the process proceeds to step S705, and if the consistency ratio of the hue tendencies in the current page is larger than the predetermined value, the process proceeds to step S707.
In step S705, the hue tendency occupying the largest percentage is selected as the reference hue.
In step S706, the image is adjusted according to the reference hue, so that the consistency of the adjusted hues of the image is greater than a predetermined value.
In step S707, it is detected whether the consistency of the saturation of the image is greater than a predetermined saturation adjustment threshold, if so, the process proceeds to step S709, and the adjustment of the image is ended, otherwise, the process proceeds to step S708, and the saturation of the image is adjusted so that the consistency of the saturation of the image is greater than the predetermined saturation adjustment threshold.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Fig. 8 shows a block diagram of a display device of thumbnail images provided in an embodiment of the present application, corresponding to the display method of thumbnail images described in the above embodiment, and only the parts related to the embodiment of the present application are shown for convenience of explanation.
Referring to fig. 8, the apparatus includes:
an image acquisition unit 801 configured to receive a thumbnail display instruction and acquire an image to be thumbnail displayed;
a reference attribute acquiring unit 802, configured to acquire an attribute of the image to be thumbnail displayed, and determine a reference attribute of thumbnail display according to the attribute of the image to be thumbnail displayed;
an attribute adjusting unit 803, configured to perform attribute adjustment on the image to be thumbnail displayed according to the reference attribute, and perform thumbnail display on the adjusted image.
The thumbnail display apparatus shown in fig. 8 corresponds to the thumbnail display method shown in fig. 3.
Fig. 9 is a schematic structural diagram of a thumbnail display apparatus according to an embodiment of the present application. As shown in fig. 9, the thumbnail display apparatus 9 of this embodiment includes: at least one processor 90 (only one shown in fig. 9), a memory 91, and a computer program 92 stored in the memory 91 and executable on the at least one processor 90, the processor 90 implementing the steps in any of the various thumbnail display embodiments described above when executing the computer program 92.
The thumbnail display device 9 may be a computing device such as a smart phone, a tablet computer, a desktop computer, a notebook, a palm computer, and a cloud server. The thumbnail display device may include, but is not limited to, a processor 90, a memory 91. Those skilled in the art will appreciate that fig. 9 is merely an example of the thumbnail display apparatus 9, and does not constitute a limitation of the thumbnail display apparatus 9, and may include more or less components than those shown, or combine some components, or different components, such as an input-output device, a network access device, and the like.
The Processor 90 may be a Central Processing Unit (CPU), and the Processor 90 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 91 may be an internal storage unit of the thumbnail display apparatus 9 in some embodiments, such as a hard disk or a memory of the thumbnail display apparatus 9. The memory 91 may also be an external storage device of the thumbnail display device 9 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the thumbnail display device 9. Further, the memory 91 may also include both an internal storage unit and an external storage device of the thumbnail display device 9. The memory 91 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of the computer program. The memory 91 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. . Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or apparatus capable of carrying computer program code to a thumbnail display device, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (12)

1. A thumbnail display method, characterized in that the thumbnail display method comprises:
receiving a thumbnail display instruction, and acquiring an image to be displayed in a thumbnail mode;
acquiring the attribute of the image to be subjected to thumbnail display, and determining the reference attribute of the thumbnail display according to the attribute of the image to be subjected to thumbnail display;
and performing attribute adjustment on the image to be subjected to thumbnail display according to the reference attribute, and performing thumbnail display on the adjusted image.
2. The thumbnail display method according to claim 1, wherein said step of acquiring the attribute of the image to be thumbnail-displayed, determining the reference attribute of thumbnail display from the attribute of the image to be thumbnail-displayed comprises:
acquiring the cold and warm categories of the image to be displayed in the thumbnail mode;
determining hue attribution of a to-be-reduced display image according to the cold and warm categories of the image;
and determining the reference hue of the image according to the determined proportion of the hue attributions.
3. The thumbnail display method according to claim 1, wherein said step of acquiring the attribute of the image to be thumbnail-displayed, determining the reference attribute of thumbnail display from the attribute of the image to be thumbnail-displayed comprises:
obtaining the hue of the image to be subjected to the thumbnail display, and determining the cold and warm types of the image according to the hue of the image;
determining the integral cold and warm tone of the image to be displayed in a thumbnail mode according to the cold and warm categories of the image;
and determining the reference hue of the image according to the proportion of the hues corresponding to the whole cold and warm tones.
4. The thumbnail display method according to claim 3, wherein the step of determining the reference hue of the image based on the proportion of hues corresponding to the overall cool/warm tone comprises:
searching the ratio of each hue corresponding to the determined integral cold and warm tone in the image to be displayed in a thumbnail mode according to the determined cold and warm categories;
determining a reference hue of the image according to the hue with a larger proportion;
alternatively, the first and second electrodes may be,
according to the determined cold and warm categories, searching the proportion of each hue corresponding to the determined integral cold and warm tones in the image corresponding to the determined integral cold and warm tones;
and determining the reference hue of the image according to the hue with larger proportion.
5. The thumbnail display method according to any one of claims 1 to 4, wherein the step of acquiring the attribute of the image to be thumbnail-displayed and determining the reference attribute of thumbnail display according to the attribute of the image to be thumbnail-displayed comprises:
acquiring the saturation of an image to be subjected to thumbnail display;
a reference saturation of the thumbnail display is determined from the distribution of the saturations of the acquired image.
6. The thumbnail display method according to claim 5, wherein said step of determining a reference saturation of thumbnail display according to the distribution of the saturation of the acquired image comprises:
and determining a range corresponding to the reference saturation according to the distribution density of the image saturation in the saturation range with the preset length.
7. The thumbnail display method according to claim 5, wherein said step of performing attribute adjustment of the image to be thumbnail displayed according to the reference attribute comprises:
determining the saturation adjustment amplitude of the image according to the difference between the saturation of the image and the reference saturation;
and adjusting the saturation of the image according to the saturation adjusting amplitude.
8. The thumbnail display method according to claim 1, wherein said step of acquiring the attribute of the image to be thumbnail-displayed and determining the reference attribute of thumbnail display according to the attribute of the image to be thumbnail-displayed comprises:
obtaining the hue of the image of the page to be displayed in a thumbnail mode, and determining the hue distribution of the image of the page to be displayed in the thumbnail mode;
and determining the reference hue of the image according to the hue distribution of the image.
9. The thumbnail display method according to claim 1, wherein before said step of performing attribute adjustment of said image to be thumbnail displayed according to said reference attribute, said method further comprises:
acquiring the sliding speed of the sliding thumbnail;
and when the sliding speed is greater than a preset speed threshold value, starting to perform attribute adjustment on the image to be subjected to thumbnail display.
10. The thumbnail display method according to claim 1, wherein said step of determining a reference attribute of thumbnail display in accordance with an attribute of said image to be thumbnail displayed comprises:
and respectively determining the reference attribute of the image to be subjected to the thumbnail display in each group according to the group information of the image to be subjected to the thumbnail display.
11. A thumbnail display apparatus comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any one of claims 1 to 10 when executing the computer program.
12. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 10.
CN202010084855.2A 2020-02-10 2020-02-10 Thumbnail display method and equipment Pending CN113254690A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010084855.2A CN113254690A (en) 2020-02-10 2020-02-10 Thumbnail display method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010084855.2A CN113254690A (en) 2020-02-10 2020-02-10 Thumbnail display method and equipment

Publications (1)

Publication Number Publication Date
CN113254690A true CN113254690A (en) 2021-08-13

Family

ID=77219643

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010084855.2A Pending CN113254690A (en) 2020-02-10 2020-02-10 Thumbnail display method and equipment

Country Status (1)

Country Link
CN (1) CN113254690A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106303154A (en) * 2015-06-12 2017-01-04 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN109166159A (en) * 2018-10-12 2019-01-08 腾讯科技(深圳)有限公司 Obtain the method, apparatus and terminal of the dominant hue of image
CN109783182A (en) * 2019-02-15 2019-05-21 百度在线网络技术(北京)有限公司 A kind of method of adjustment, device, equipment and the medium of page subject matter tone

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106303154A (en) * 2015-06-12 2017-01-04 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN109166159A (en) * 2018-10-12 2019-01-08 腾讯科技(深圳)有限公司 Obtain the method, apparatus and terminal of the dominant hue of image
CN109783182A (en) * 2019-02-15 2019-05-21 百度在线网络技术(北京)有限公司 A kind of method of adjustment, device, equipment and the medium of page subject matter tone

Similar Documents

Publication Publication Date Title
CN108769374B (en) Image management method and mobile terminal
CN110795007B (en) Method and device for acquiring screenshot information
CN108287744A (en) Character displaying method, device and storage medium
CN108628985B (en) Photo album processing method and mobile terminal
CN109189282A (en) A kind of application recommended method, device and mobile terminal
CN107831989A (en) A kind of Application Parameters method of adjustment and mobile terminal
CN112560540B (en) Cosmetic wearing recommendation method and device
US20080163103A1 (en) Apparatus and method for identifying edges of documents
WO2023045857A1 (en) Image processing method and apparatus, electronic device and storage medium
CN113552986A (en) Multi-window screen capturing method and device and terminal equipment
CN113132704A (en) Image processing method, device, terminal and storage medium
CN113129222A (en) Color shading correction method, terminal device and computer-readable storage medium
CN107885512A (en) A kind of application program installation method, mobile terminal
CN110955788A (en) Information display method and electronic equipment
CN112835493B (en) Screen capture display method and device and terminal equipment
CN113157357A (en) Page display method, device, terminal and storage medium
CN113518243A (en) Image processing method and device
CN107844357A (en) Adjust the method, apparatus and terminal of widget outward appearance
EP4099162A1 (en) Method and apparatus for configuring theme color of terminal device, and terminal device
CN113609358B (en) Content sharing method, device, electronic equipment and storage medium
CN112989198B (en) Push content determination method, device, equipment and computer-readable storage medium
CN113010066B (en) Display parameter determination method and device
CN108171773A (en) The method, apparatus and terminal of bottom plate are added for icon
CN110149408B (en) Service data display method and device, terminal and server
CN111178055A (en) Corpus identification method, apparatus, terminal device and medium

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