CN114155142A - Image processing method, image processing device, computer-readable storage medium and computer equipment - Google Patents

Image processing method, image processing device, computer-readable storage medium and computer equipment Download PDF

Info

Publication number
CN114155142A
CN114155142A CN202111484307.XA CN202111484307A CN114155142A CN 114155142 A CN114155142 A CN 114155142A CN 202111484307 A CN202111484307 A CN 202111484307A CN 114155142 A CN114155142 A CN 114155142A
Authority
CN
China
Prior art keywords
image
grid
poster
target
image processing
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
CN202111484307.XA
Other languages
Chinese (zh)
Inventor
不公告发明人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202111484307.XA priority Critical patent/CN114155142A/en
Publication of CN114155142A publication Critical patent/CN114155142A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • G06T3/04

Abstract

The embodiment of the invention discloses an image processing method, an image processing device, a computer readable storage medium and computer equipment, wherein the method comprises the steps of obtaining a target grid corresponding to a poster image in a grid display page of a TV (television) end; determining a display resolution of the target grid; performing equal-ratio compression on the poster image according to the display resolution to obtain a transition image; and carrying out lossless compression on the transition image to obtain a target image. Therefore, the poster images are subjected to advanced geometric compression and lossless compression according to the display resolution of the TV end grids, so that the sizes of the poster images do not need to be adapted when the poster images are rendered, and the rendering efficiency of the poster images is improved.

Description

Image processing method, image processing device, computer-readable storage medium and computer equipment
Technical Field
The invention relates to the technical field of artificial intelligence, in particular to an image processing method, an image processing device, a computer readable storage medium and computer equipment.
Background
Grid Layout (GL) is a page design method, which divides the whole page into several small lattices of the same size, and then makes each part of the content occupy several small lattices respectively. The page designed in the way is neat and ordered and is easy to read. The application of the gridding layout at a Television (TV) end can provide rich and flexible typesetting layout for content distribution at the TV end, so that the scheme is widely used at the TV end.
However, the inventors of the present application have found in their research that poster images are rendered less efficiently when displayed on a TV-side grid.
Disclosure of Invention
The embodiment of the application provides an image processing method, an image processing device, a storage medium and computer equipment, and the method can improve the rendering efficiency of poster images when the poster images are displayed on a grid of a TV end.
A first aspect of the present application provides an image processing method, including:
acquiring a target grid corresponding to the poster image in a grid display page of a TV (television) end;
determining a display resolution of the target grid;
performing equal-ratio compression on the poster image according to the display resolution to obtain a transition image;
and compressing the transition image to obtain a target image.
The acquisition unit is used for acquiring a target grid corresponding to the poster image in a grid display page of the TV end;
a determination unit configured to determine a display resolution of the target grid;
the first compression unit is used for carrying out geometric compression on the poster image according to the display resolution to obtain a transition image;
and the second compression unit is used for compressing the transition image to obtain a target image.
The third aspect of the present application further provides a computer-readable storage medium, which stores a plurality of instructions adapted to be loaded by a processor to perform the steps of the image processing method provided by the first aspect of the present application.
A fourth aspect of the present application provides a computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the image processing method provided by the first aspect of the present application when executing the computer program.
A fifth aspect of the present application provides a computer program product or computer program comprising computer instructions stored in a storage medium. A processor of a computer device reads the computer instructions from a storage medium, and the processor executes the computer instructions to cause the computer device to execute the steps of the image processing method provided by the first aspect.
According to the image processing method provided by the embodiment of the application, the corresponding target grid of the poster image in the grid display page of the TV end is obtained; determining a display resolution of the target grid; performing equal-ratio compression on the poster image according to the display resolution to obtain a transition image; and carrying out lossless compression on the transition image to obtain a target image. Therefore, the poster images are subjected to advanced geometric compression and lossless compression according to the display resolution of the TV end grids, so that the sizes of the poster images do not need to be adapted when the poster images are rendered, and the rendering efficiency of the poster images is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of a scenario of image processing in the present application;
FIG. 2 is a schematic flow chart diagram of an image processing method provided by the present application;
FIG. 3 is another schematic flow chart diagram of an image processing method provided by the present application;
FIG. 4 is a schematic structural diagram of an image processing apparatus provided in the present application;
fig. 5 is a schematic structural diagram of a terminal provided in the present application;
fig. 6 is a schematic structural diagram of a server provided in the present application.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides an image processing method, an image processing device, a computer readable storage medium and computer equipment. The image processing method can be used in an image processing device. The image processing apparatus may be integrated in a computer device, which may be a terminal or a server. The terminal can be a mobile phone, a tablet Computer, a notebook Computer, an intelligent television, a wearable intelligent device, a Personal Computer (PC), and the like. The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as cloud service, a cloud database, cloud computing, a cloud function, cloud storage, Network service, cloud communication, middleware service, domain name service, security service, Network acceleration service (CDN), big data and an artificial intelligence platform. Wherein a server may be a node in a blockchain.
Please refer to fig. 1, which is a schematic view of a scene of image processing provided by the present application; as shown in the figure, the computer apparatus a acquires data related to a grid display page from the TV terminal B, and determines a target grid corresponding to a poster image from the grid display page. Determining the display resolution of the target grid, and carrying out geometric compression on the poster image according to the display resolution to obtain a transition image; and carrying out lossless compression on the transition image to obtain a target image.
It should be noted that the scene diagram of image processing shown in fig. 1 is only an example, and the image processing scene described in the embodiment of the present application is for more clearly illustrating the technical solution of the present application, and does not constitute a limitation on the technical solution provided by the present application. As will be appreciated by those skilled in the art, with the evolution of image processing and the advent of new business scenarios, the solution provided by the present application is equally applicable to similar technical problems.
Based on the above-described implementation scenarios, detailed descriptions will be given below.
The embodiments of the present application will be described from the perspective of an image processing apparatus, which may be integrated in a computer device. The Computer device may be a terminal or a server, and the terminal may be a mobile phone, a tablet Computer, a notebook Computer, a smart television, a wearable smart device, a Personal Computer (PC), or the like. As shown in fig. 2, a schematic flow chart of an image processing method provided by the present application is shown, where the method includes:
and step 101, acquiring a target grid corresponding to the poster image in a grid display page of the TV terminal.
In the embodiment of the present application, the content display of the TV end is displayed in a grid layout manner, that is, a display area of a display screen of the TV end is divided into a plurality of grid cells, and each grid cell is used as an individual part to display the content. The different grid cells may be the same size or different sizes. For each video file to be played, a poster image corresponding to the video file can be displayed on a display page of the TV end, and the poster image can be displayed in any grid unit.
In the related art, each poster image of a video to be played is compressed and stored according to a uniform format, and when the poster image is rendered on a display page of a TV end, the compressed poster image needs to be acquired, and then adaptive adjustment is performed according to the resolution of a grid unit which is correspondingly displayed, so that the poster image is completely displayed in the corresponding grid unit. Since the resolution of the poster image needs to be adapted to the grid cells before rendering, rendering efficiency is low, fluency of the TV page is reduced, and viewing experience of the user is affected. In contrast, the image processing method provided by the application can be used for preprocessing the image, so that adaptation is not needed when the image is rendered, rendering efficiency is improved, fluency of a TV page is improved, and watching experience of a user is improved. The image processing method provided by the present application is described in further detail below.
Since the gridding layout scheme for displaying content in a TV page is generally fixed, a target grid for displaying a poster image can be determined in a TV-end grid display page. For example, in general, if the poster image is a poster image corresponding to a video which is newly released and has the highest popularity, the target grid corresponding to the poster image may be a grid with the largest size at the upper left corner of the screen.
Step 102, determining the display resolution of the target grid.
The display resolution may also be referred to as pixel resolution, which is simply referred to as resolution, and it refers to the number of pixels that can be displayed by the display, and usually multiplies the number of pixels per row by the number of pixels per column. The display resolution of the target grid is the number of pixels displayed in the target grid area, which can be expressed by multiplying the number of pixels per row by the number of pixels per column.
And 103, carrying out geometric compression on the poster image according to the display resolution to obtain a transition image.
In the embodiment of the application, after the display resolution of the target grid corresponding to the poster image is determined, the poster image can be adapted in advance according to the display resolution of the target grid, that is, the poster image is compressed according to the display resolution of the target grid as an image resolution compression index, so that a transition image is obtained. Specifically, for example, if the display resolution of the target grid is 200 × 300 and the image resolution of the poster image is 800 × 1200, the image resolution of the poster image may be first compressed to 200 × 300, resulting in a transition image.
And step 104, compressing the transition image to obtain a target image.
After the poster image is compressed in an equal ratio to obtain a transition image, the transition image can be further compressed to obtain a target image. In this way, the data amount of the poster image can be further reduced on the basis that the data amount of the poster is reduced by the geometric compression. The transmission speed of the image is improved, and the consumption of broadband resources and the consumption of server storage resources are reduced.
In some embodiments, the transition image is compressed, and in particular, the transition image may be compressed losslessly. Thus, the TV terminal can be made to restore the original data completely without causing any distortion when displaying the poster image.
According to the description, the image processing method provided by the application obtains the corresponding target grid of the poster image in the grid display page of the TV end; determining a display resolution of the target grid; performing equal-ratio compression on the poster image according to the display resolution to obtain a transition image; and compressing the transition image to obtain a target image. Therefore, the poster images are subjected to advanced geometric compression and lossless compression according to the display resolution of the TV end grids, so that the sizes of the poster images do not need to be adapted when the poster images are rendered, and the rendering efficiency of the poster images is improved.
Accordingly, the embodiment of the present application will further describe in detail the image processing method provided by the present application from the perspective of a computer device, where the computer device may be a terminal or a server. As shown in fig. 3, another schematic flow chart of the image processing method provided in the present application is shown, where the method includes:
step 201, the computer device receives an input grid generation instruction and generates a gridding layout according to the grid generation instruction.
The computer device can receive the grid generation instruction sent by the management background and also can receive the grid generation instruction sent by the TV terminal. The grid generation instruction includes specific grid setting data, and the grid setting data includes display position data of each grid on a TV-side display page and display resolution data of each grid. According to the data, a gridding layout for carrying out grid display on the TV end can be generated, and the gridding layout corresponds to the display position and the display resolution of each grid on the display interface of the TV end.
In some embodiments, receiving input grid generation instructions includes:
1. acquiring dragging operation data input by a user and received by a TV end;
2. and generating a grid generating instruction according to the operation data.
In the embodiment of the application, the computer device can receive the drag operation data from the TV terminal. Here, the drag operation data may be operation data input by the user on a display page of the TV terminal. Wherein, in the display page of the TV end, the user can customize the grid layout. Specifically, the user-defined design data of the grid layout in the TV end display page can be determined by receiving touch data of the user on the TV screen, sensing gesture data of the user or receiving adjustment data input by the user through a remote controller. Specifically, when the user determines the user-defined design data by receiving the touch data of the user on the TV screen, the drag operation data input by the user may be received, where the drag operation data may include dragging the entire grid and dragging the edge of the grid, that is, the operation may change the position of the grid, and may also change the display resolution of the grid.
After receiving user-defined design data (including the drag operation data) input by a user, the TV end may obtain the drag operation data received by the TV end, and then generate a mesh generation instruction according to the drag operation data. And the computer equipment generates a gridding layout or updates the gridding layout according to the instruction so as to display by adopting the updated gridding layout in the subsequent display.
Step 202, the computer device receives the uploaded video data and extracts the poster image from the video data.
The TV often loads a plurality of different video playing applications, and the different video playing applications also enjoy different copyrights for different video resources. For any one target video playing application, the copyrighted movie and television resources store poster images corresponding to the movie and television resources in corresponding servers; for newly copyrighted video resources, video data with poster images needs to be uploaded to a server corresponding to an application program. In the embodiment of the application, a user can upload video data of a newly copyrighted video resource to computer equipment, and the computer equipment receives the uploaded video data and extracts a poster image corresponding to the video data from the video data.
Step 203, the computer device acquires a corresponding target grid of the poster image in a grid display page of the TV terminal.
For different video resources, different display strategies are available on the display page of the video playing application program. For example, the latest and hottest movie and television resources are generally displayed at the most prominent position, for example, in the grid with the largest top left corner of the display area; for older movie assets that are less hot, they are typically displayed at a slightly marginal position, such as in the lower grid of the bottom row of the display area.
After the computer equipment acquires the poster image, the corresponding target grid of the poster image in the TV end grid display page is determined according to the heat of the movie and television resource corresponding to the poster image and the corresponding display strategy. Specifically, for example, the target grid is the grid with the largest upper left corner of the display page of the TV end.
At step 204, the computer device determines a display resolution of the target grid.
After determining that the poster image corresponds to the target grid, the computer device may further obtain display resolution data corresponding to the target grid. After the gridding layout is performed on the TV end display, the display resolution of each grid in the TV end display page is determined, and the display resolution corresponding to each grid can be determined and stored according to detailed layout data of the gridding layout. Thus, after the target grid corresponding to the poster image is determined, the display resolution of the target grid can be directly obtained from the stored display resolution data of each grid.
And step 205, the computer device performs geometric compression on the poster image according to the display resolution to obtain a transition image.
The gridding layout of each video playing application displayed at the TV end is generally fixed and has less variation. Therefore, when the video resource is received, the poster image of the video resource can be compressed in an equal ratio mode according to the display resolution of the target grid correspondingly displayed by the video resource, and the transition image corresponding to the poster image is obtained. Therefore, when the poster image is displayed, resolution adaptation to the poster image subjected to lossless compression is not needed according to the display resolution of the grid, and the rendering efficiency of the poster image is improved.
Specifically, the method for performing geometric compression on the poster image according to the display resolution to obtain the transition image comprises the following steps:
1. determining grid pixel data of a target grid according to the display resolution;
2. and adjusting the pixels of the poster image based on the grid pixel data to obtain a transition image.
After the display resolution of the target grid is obtained, the real pixels corresponding to the target grid can be calculated, and then the real pixels of the target grid are compared with the poster pixels. If the length and width of the poster pixels are larger than the real pixels of the grid, an equal-ratio compression program can be called to perform equal-ratio compression on the poster image, namely, the pixels of the poster image are adjusted, so that the pixels of the poster image are the same as the real pixels of the target grid, and a transition image is obtained.
And step 206, carrying out lossless compression on the transition image by the computer equipment to obtain a target image.
And the computer equipment performs geometric compression on the poster image according to the display resolution of the target grid to obtain a transition image. The transition image can be further subjected to lossless compression, the resolution of the poster image is not adjusted any more by the lossless compression, and only the data size of the poster image is further reduced. Therefore, the consumption of the storage resource of the computer equipment can be reduced, and the consumption of the broadband resource in the image transmission process can also be reduced.
And step 207, carrying out format detection on the target image by the computer equipment, and converting the format of the target image into a webp format.
After the poster image is subjected to geometric compression and lossless compression, whether the image format of the obtained target image is the webp format can be further detected. The webp format is a picture file format that provides both lossy compression and lossless compression (reversible compression), and can greatly reduce the file size while ensuring the same picture quality. The format of the target image is converted into the webp format, so that the data volume of the poster image can be further reduced, the data storage pressure of a server is further reduced, and the broadband resource consumption of data transmission is reduced. Therefore, the image transmission efficiency can be improved, the page switching of the TV end is smoother, and the watching experience of a user is improved.
In some embodiments, the method further comprises:
and uploading the format-converted target image to an oss server.
Among them, the object storage server (oss) is a distributed object storage server, and provides an object storage service in the form of a key-value pair. Since each video playing application has a huge amount of movie resources, each movie resource has its corresponding poster image. The storage of these resources can occupy a large amount of storage resources of the server, thereby causing a reduction in the processing efficiency of the video playback application. Therefore, the video resource data and the poster image data corresponding to the video resource data are uploaded to the oss server for storage, so that the storage pressure of the server of the video playing application program can be released, and the data processing efficiency of the video playing application program is improved.
As can be seen from the above description, the image processing method provided in the embodiment of the present application obtains a target grid corresponding to a poster image in a grid display page on a TV end; determining a display resolution of the target grid; performing equal-ratio compression on the poster image according to the display resolution to obtain a transition image; and carrying out lossless compression on the transition image to obtain a target image. Therefore, the poster images are subjected to advanced geometric compression and lossless compression according to the display resolution of the TV end grids, so that the sizes of the poster images do not need to be adapted when the poster images are rendered, and the rendering efficiency of the poster images is improved. Furthermore, the image processing method provided by the application performs two-step image compression, and converts the image format into the webp format, so that the data size of the poster image is greatly reduced, the data storage capacity in the server is reduced, the broadband resource consumption in the image transmission process is also reduced, and the storage cost and the flow cost are saved.
In order to better implement the above method, embodiments of the present invention also provide an image processing apparatus, which may be integrated in a terminal or a server.
For example, as shown in fig. 4, for a schematic structural diagram of an image processing apparatus provided in an embodiment of the present application, the image processing apparatus may include an obtaining unit 301, a determining unit 302, a first compressing unit 303, and a second compressing unit 304, as follows:
an obtaining unit 301, configured to obtain a target grid corresponding to the poster image in a grid display page of a TV end;
a determining unit 302 for determining a display resolution of the target grid;
a first compression unit 303, configured to perform geometric compression on the poster image according to the display resolution to obtain a transition image;
and a second compression unit 304, configured to compress the transition image to obtain a target image.
In some embodiments, the image processing apparatus provided by the present application further includes:
the detection unit is used for carrying out format detection on the target image;
and the converting unit is used for converting the format of the target image into the webp format if the format of the target image is not the webp format.
In some embodiments, the image processing apparatus provided by the present application further includes:
and the uploading unit is used for uploading the format-converted target image to an oss server.
In some embodiments, the image processing apparatus provided by the present application further includes:
the first receiving unit is used for receiving the uploaded video data;
and the extraction unit is used for extracting the poster image corresponding to the video data from the video data.
In some embodiments, a first compression unit comprises:
a determining subunit, configured to determine grid pixel data of the target grid according to the display resolution;
and the adjusting subunit is used for adjusting the pixels of the poster image based on the grid pixel data to obtain a transition image.
In some embodiments, the image processing apparatus provided by the present application further includes:
a second receiving unit for receiving an input mesh generation instruction;
and a generating unit for analyzing the instruction and generating a gridding layout, wherein the gridding layout corresponds to a gridding display page at the TV end.
In some embodiments, the second receiving unit is further configured to:
the TV end receives drag operation data input by a user;
and receiving a grid generation instruction which is sent by the TV end and generated according to the operation data.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
As can be seen from the above description, in the image processing method provided in the embodiment of the present application, the obtaining unit 301 obtains the target grid corresponding to the poster image in the grid display page on the TV end; the determination unit 302 determines the display resolution of the target grid; the first compression unit 303 performs geometric compression on the poster image according to the display resolution to obtain a transition image; the second compression unit 304 compresses the transition image to obtain a target image. Therefore, the poster images are subjected to advanced geometric compression and lossless compression according to the display resolution of the TV end grids, so that the sizes of the poster images do not need to be adapted when the poster images are rendered, and the rendering efficiency of the poster images is improved.
An embodiment of the present application also provides a computer device, which may be a terminal, as shown in fig. 5, where the terminal may include a Radio Frequency (RF) circuit 401, a memory 402 including one or more computer-readable storage media, an input unit 403, a display unit 404, a sensor 405, an audio circuit 406, a Wireless Fidelity (WiFi) module 407, a processor 408 including one or more processing cores, and a power supply 409. Those skilled in the art will appreciate that the terminal structure shown in fig. 5 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. Wherein:
the RF circuit 401 may be used for receiving and transmitting signals during a message transmission or communication process, and in particular, for receiving downlink information of a base station and then sending the received downlink information to the one or more processors 408 for processing; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuitry 401 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 401 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 communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The memory 402 may be used to store software programs and modules, and the processor 408 executes various functional applications and information interactions by executing the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required 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 terminal, etc. Further, the memory 402 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. Accordingly, the memory 402 may also include a memory controller to provide the processor 408 and the input unit 403 access to the memory 402.
The input unit 403 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in a particular embodiment, the input unit 403 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means 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 it to touch point coordinates, and sends the touch point coordinates to the processor 408, and can receive and execute commands from the processor 408. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 403 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices 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 404 may be used to display information input by or provided to the user and various graphical user interfaces of the terminal, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 404 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 408 to determine the type of touch event, and then the processor 408 provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 5 the touch-sensitive surface and the display panel are two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The terminal may also include at least one sensor 405, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the 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 in the terminal, detailed description is omitted here.
Audio circuitry 406, a speaker, and a microphone may provide an audio interface between the user and the terminal. The audio circuit 406 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electric signal, which is received by the audio circuit 406 and converted into audio data, which is then processed by the audio data output processor 408, and then transmitted to, for example, another terminal via the RF circuit 401, or the audio data is output to the memory 402 for further processing. The audio circuitry 406 may also include an earbud jack to provide peripheral headset communication with the terminal.
WiFi belongs to short distance wireless transmission technology, and the terminal can help the user to send and receive e-mail, browse web page and access streaming media etc. through WiFi module 407, it provides wireless broadband internet access for the user. Although fig. 5 shows the WiFi module 407, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 408 is a control center of the terminal, connects various parts of the entire handset using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby integrally monitoring the handset. Optionally, processor 408 may include one or more processing cores; preferably, the processor 408 may integrate an application processor, which handles primarily the operating system, user interface, applications, etc., and a modem processor, which handles primarily the wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 408.
The terminal also includes a power source 409 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 408 via a power management system to manage charging, discharging, and power consumption via the power management system. The power supply 409 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the terminal may further include a camera, a bluetooth module, and the like, which will not be described herein. Specifically, in this embodiment, the processor 408 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 408 runs the application programs stored in the memory 402, thereby implementing various functions:
acquiring a target grid corresponding to the poster image in a grid display page of a TV (television) end; determining a display resolution of the target grid; performing equal-ratio compression on the poster image according to the display resolution to obtain a transition image; and carrying out lossless compression on the transition image to obtain a target image.
It should be noted that the computer device provided in the embodiment of the present application and the method in the foregoing embodiment belong to the same concept, and specific implementation of the above operations may refer to the foregoing embodiment, which is not described herein again.
An embodiment of the present application further provides a computer device, where the computer device may be a server, and as shown in fig. 6, is a schematic structural diagram of the computer device provided in the present application. Specifically, the method comprises the following steps:
the computer device may include components such as a processing unit 501 of one or more processing cores, a storage unit 502 of one or more storage media, a power module 503, and an input module 504. Those skilled in the art will appreciate that the computer device configuration illustrated in FIG. 6 does not constitute a limitation of computer devices, and may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. Wherein:
the processing unit 501 is a control center of the computer device, connects various parts of the whole computer device by using various interfaces and lines, and executes various functions of the computer device and processes data by running or executing software programs and/or modules stored in the storage unit 502 and calling data stored in the storage unit 502, thereby performing overall monitoring of the computer device. Optionally, the processing unit 501 may include one or more processing cores; preferably, the processing unit 501 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like, and the modem processor mainly handles wireless communications. It is to be understood that the above-described modem processor may not be integrated into the processing unit 501.
The storage unit 502 may be used to store software programs and modules, and the processing unit 501 executes various functional applications and image processing by running the software programs and modules stored in the storage unit 502. The storage unit 502 may mainly include a storage program area and a storage data area, where 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, a web access, and the like), and the like; the storage data area may store data created according to use of the computer device, and the like. Further, the storage unit 502 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. Accordingly, the memory unit 502 may also include a memory controller to provide the processing unit 501 access to the memory unit 502.
The computer device further comprises a power module 503 for supplying power to each component, and preferably, the power module 503 may be logically connected to the processing unit 501 through a power management system, so as to implement functions of managing charging, discharging, power consumption management, and the like through the power management system. The power module 503 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The computer device may also include an input module 504, where the input module 504 may be used to receive entered numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the computer device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processing unit 501 in the computer device loads the executable file corresponding to the process of one or more application programs into the storage unit 502 according to the following instructions, and the processing unit 501 runs the application programs stored in the storage unit 502, so as to implement various functions as follows:
acquiring a target grid corresponding to the poster image in a grid display page of a TV (television) end; determining a display resolution of the target grid; performing equal-ratio compression on the poster image according to the display resolution to obtain a transition image; and compressing the transition image to obtain a target image.
It should be noted that the computer device provided in the embodiment of the present application and the method in the foregoing embodiment belong to the same concept, and specific implementation of the above operations may refer to the foregoing embodiment, which is not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present invention provide a computer-readable storage medium having stored therein a plurality of instructions, which can be loaded by a processor to perform the steps of any of the methods provided by the embodiments of the present invention. For example, the instructions may perform the steps of:
acquiring a target grid corresponding to the poster image in a grid display page of a TV (television) end; determining a display resolution of the target grid; performing equal-ratio compression on the poster image according to the display resolution to obtain a transition image; and carrying out lossless compression on the transition image to obtain a target image.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the computer-readable storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the computer-readable storage medium can execute the steps in any method provided by the embodiment of the present invention, the beneficial effects that can be achieved by any method provided by the embodiment of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
According to an aspect of the application, there is provided, among other things, a computer program product or computer program comprising computer instructions stored in a storage medium. The computer instructions are read from the storage medium by a processor of the computer device, and the processor executes the computer instructions to cause the computer device to perform the method provided in the various alternative implementations of fig. 2 or fig. 3 described above.
The image processing method, the image processing apparatus, the computer-readable storage medium, and the computer device according to the embodiments of the present invention are described in detail above, and a specific example is applied in the description to explain the principles and embodiments of the present invention, and the description of the embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. An image processing method, characterized in that the method comprises:
acquiring a target grid corresponding to the poster image in a grid display page of a TV (television) end;
determining a display resolution of the target grid;
performing equal-ratio compression on the poster image according to the display resolution to obtain a transition image;
and compressing the transition image to obtain a target image.
2. The method of claim 1, further comprising:
carrying out format detection on the target image;
and if the format of the target image is not the webp format, converting the format of the target image into the webp format.
3. The method of claim 2, further comprising:
and uploading the format-converted target image to an object storage server.
4. The method of claim 1 wherein the obtaining the poster image precedes a corresponding target grid in a TV end grid display page, further comprising:
receiving the uploaded video data;
and extracting poster images corresponding to the video data from the video data.
5. The method of claim 4 wherein said proportionally compressing the poster image at the display resolution to obtain a transition image comprises:
determining grid pixel data of the target grid according to the display resolution;
and adjusting the pixels of the poster image based on the grid pixel data to obtain a transition image.
6. The method of claim 1 wherein the obtaining the poster image precedes a corresponding target grid in a TV end grid display page, further comprising:
receiving an input grid generation instruction;
and analyzing the instruction to generate a gridding layout, wherein the gridding layout corresponds to a grid display page at the TV end.
7. The method of claim 6, wherein receiving the input grid generation instructions comprises:
acquiring dragging operation data input by a user and received by a TV end;
and generating a grid generation instruction according to the operation data.
8. An image processing apparatus, characterized in that the apparatus comprises:
the acquisition unit is used for acquiring a target grid corresponding to the poster image in a grid display page of the TV end;
a determination unit configured to determine a display resolution of the target grid;
the first compression unit is used for carrying out geometric compression on the poster image according to the display resolution to obtain a transition image;
and the second compression unit is used for compressing the transition image to obtain a target image.
9. A computer-readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the image processing method according to any one of claims 1 to 7.
10. A computer device, characterized by comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the image processing method according to any one of claims 1 to 7 when executing the computer program.
CN202111484307.XA 2021-12-07 2021-12-07 Image processing method, image processing device, computer-readable storage medium and computer equipment Pending CN114155142A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111484307.XA CN114155142A (en) 2021-12-07 2021-12-07 Image processing method, image processing device, computer-readable storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111484307.XA CN114155142A (en) 2021-12-07 2021-12-07 Image processing method, image processing device, computer-readable storage medium and computer equipment

Publications (1)

Publication Number Publication Date
CN114155142A true CN114155142A (en) 2022-03-08

Family

ID=80453054

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111484307.XA Pending CN114155142A (en) 2021-12-07 2021-12-07 Image processing method, image processing device, computer-readable storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN114155142A (en)

Similar Documents

Publication Publication Date Title
CN111544886B (en) Picture display method and related device
US9697622B2 (en) Interface adjustment method, apparatus, and terminal
CN106792120B (en) Video picture display method and device and terminal
WO2020215720A1 (en) Photographing method, storage medium, and electronic device
CN109756767B (en) Preview data playing method, device and storage medium
US10264053B2 (en) Method, apparatus, and system for data transmission between multiple devices
CN109121008B (en) Video preview method, device, terminal and storage medium
CN106658064B (en) Virtual gift display method and device
CN110248245B (en) Video positioning method and device, mobile terminal and storage medium
CN109151494B (en) Multimedia data transmission method, multimedia acquisition equipment and server
US10528845B2 (en) Method, device, and storage medium for generating GIF file
CN107948724B (en) Video transmission control method, device, storage medium and mobile terminal
US9781380B2 (en) Method, apparatus and terminal for playing multimedia content
CN111949239B (en) Screen sharing method and device, storage medium and terminal
CN105227598B (en) Resource sharing method, device and system based on cloud storage
CN109495769B (en) Video communication method, terminal, smart television, server and storage medium
CN113313804A (en) Image rendering method and device, electronic equipment and storage medium
CN112040324A (en) Playing progress adjusting method and device, storage medium and terminal
CN108268232B (en) Picture display method, device, system and storage medium
CN107798008B (en) Content pushing system, method and device
CN114510417A (en) Image rendering effect testing method and device, electronic equipment and storage medium
CN111263216B (en) Video transmission method, device, storage medium and terminal
CN111372127B (en) Data transmission method and related device
CN114155142A (en) Image processing method, image processing device, computer-readable storage medium and computer equipment
CN113205452A (en) Image processing method and device, electronic equipment and storage 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