CN111930356B - Method and device for determining picture format - Google Patents

Method and device for determining picture format Download PDF

Info

Publication number
CN111930356B
CN111930356B CN202010838248.0A CN202010838248A CN111930356B CN 111930356 B CN111930356 B CN 111930356B CN 202010838248 A CN202010838248 A CN 202010838248A CN 111930356 B CN111930356 B CN 111930356B
Authority
CN
China
Prior art keywords
performance
picture
format
determining
formats
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010838248.0A
Other languages
Chinese (zh)
Other versions
CN111930356A (en
Inventor
蔺继鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baidu China Co Ltd
Original Assignee
Baidu China 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 Baidu China Co Ltd filed Critical Baidu China Co Ltd
Priority to CN202010838248.0A priority Critical patent/CN111930356B/en
Publication of CN111930356A publication Critical patent/CN111930356A/en
Application granted granted Critical
Publication of CN111930356B publication Critical patent/CN111930356B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/24Object-oriented
    • 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

Landscapes

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

Abstract

The application discloses a method and a device for determining a picture format, and relates to the technical field of image processing. The method comprises the following steps: acquiring performance preference information of a user on picture performance, wherein the performance preference information comprises at least one performance preference and a preset weight corresponding to the performance preference; determining the format performance of the picture format matched with the performance preference according to the performance preference aiming at each picture format in different picture formats, determining the performance index value of the format performance, and determining the performance score of the picture format according to the performance index value of the format performance and the preset weight corresponding to the performance preference; the target picture format is determined from the different picture formats according to the performance scores of the different picture formats. By adopting the method, the accuracy of determining the picture format can be improved.

Description

Method and device for determining picture format
Technical Field
The present disclosure relates to the field of image processing technologies, and in particular, to a method and apparatus for determining a picture format.
Background
In the process of program development and application, optimization of a program or an application process is often involved, a picture is taken as an important resource in the process of program development and application, the performance of the picture has an important influence on the performance of the program and the process, and the format of the picture is a main factor affecting the performance of the picture. The current method of selecting a picture format for different performance requirements is based on the experience of the developer.
However, selecting the corresponding picture format for different performance requirements based on experience has the problem of low accuracy.
Disclosure of Invention
The present disclosure provides a method, apparatus, electronic device, and computer-readable storage medium for determining a picture format.
According to a first aspect of the present disclosure, there is provided a method for determining a picture format, comprising: acquiring performance preference information of a user on picture performance, wherein the performance preference information comprises at least one performance preference and a preset weight corresponding to the performance preference; determining the format performance of the picture format matched with the performance preference according to the performance preference aiming at each picture format in different picture formats, determining the performance index value of the format performance, and determining the performance score of the picture format according to the performance index value of the format performance and the preset weight corresponding to the performance preference; the target picture format is determined from the different picture formats according to the performance scores of the different picture formats.
According to a second aspect of the present disclosure, there is provided an apparatus for determining a picture format, comprising: and an acquisition unit. The method comprises the steps of acquiring performance preference information of a user on picture performance, wherein the performance preference information comprises at least one performance preference and preset weights corresponding to the performance preference; the scoring unit is configured to determine, for each of different picture formats, a format performance of the picture format matched with the performance preference according to the performance preference, determine a performance index value of the format performance, and determine a performance score of the picture format according to the performance index value of the format performance and a preset weight corresponding to the performance preference; and a determining unit configured to determine a target picture format from among different picture formats according to the performance scores of the different picture formats.
According to a third aspect of the present disclosure, embodiments of the present disclosure provide an electronic device comprising: one or more processors to: and storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the method for determining a picture format as provided in the first aspect.
According to a fourth aspect of the present disclosure, embodiments of the present disclosure provide a computer-readable storage medium having stored thereon a computer program, wherein the program, when executed by a processor, implements the method for determining a picture format provided by the first aspect.
According to the method and the device for determining the picture formats, the performance scores of different picture formats are determined according to the user requirements, and the target picture format is determined according to the performance scores, so that the accuracy of determining the picture formats can be improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are for better understanding of the present solution and do not constitute a limitation of the present application. Wherein:
FIG. 1 is an exemplary system architecture diagram in which embodiments of the present application may be applied;
FIG. 2 is a flow chart of one embodiment of a method for determining a picture format according to the present application;
FIG. 3 is a flow chart of another embodiment of a method for determining a picture format according to the present application;
FIG. 4 is a schematic structural diagram of one embodiment of an apparatus for determining a picture format according to the present application;
fig. 5 is a block diagram of an electronic device for implementing a method for determining a picture format according to an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present application to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 illustrates an exemplary system architecture 100 to which embodiments of the methods for determining a picture format or the apparatus for determining a picture format of the present application may be applied.
As shown in fig. 1, a system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. Various client applications for receiving push services, such as an image class application, a system optimization class application, a search class application, a data acquisition class application, etc., may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting receiving push services, including but not limited to smartphones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, dynamic video expert compression standard audio plane 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic video expert compression standard audio plane 4) players, laptop and desktop computers, and the like.
The terminal devices 101, 102, 103 may be hardware or software. When the terminal apparatuses 101, 102, 103 are hardware, various electronic apparatuses are possible, and when the terminal apparatuses 101, 102, 103 are software, the electronic apparatuses may be installed therein. Which may be implemented as multiple software or software modules (e.g., multiple software modules for providing distributed services), or as a single software or software module. The present invention is not particularly limited herein.
The server 105 may obtain performance preference information of the user on the performance of the picture from the terminal devices 101, 102, 103, determine the performance score of the picture format according to the preset weight of each performance in the performance preference information and the performance index value of each performance in the picture format, and finally determine a target picture format matching the performance preference of the user from different picture formats according to the performance scores of different picture formats, and return the target picture format to the terminal devices 101, 102, 103.
It should be noted that, the method for determining a picture format provided by the embodiments of the present disclosure is generally performed by the server 105, and accordingly, the apparatus for determining a picture format is generally disposed in the server 105.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to fig. 2, a flow 200 of one embodiment of a method for determining a picture format according to the present disclosure is shown. The method for determining the picture format comprises the following steps:
step 201, performance preference information of a user on picture performance is obtained, wherein the performance preference information comprises at least one performance preference and a preset weight corresponding to the performance preference.
In this embodiment, an execution subject (e.g., a server shown in fig. 1) of the method for determining a picture format may acquire performance preference information of a user for picture performance from a user terminal. The performance preference information includes performance preferences and preset weights corresponding thereto. The picture performance refers to The effect of different formats of pictures on The performance of The hardware or software applied to The pictures under different hardware or software environments, for example, the parsing capability of The JPEG (Joint Photographic Experts Group ) format under The ARM (Advanced RISC Machines, advanced reduced instruction set processor) architecture, the color support of The PNG (Portable Network Graphic, portable network graphics) format under The X86 architecture, the storage data amount of The SVG (Scalable Vector Graphics ) format picture in The Windows system, and The like. The performance preference and the preset weight corresponding to the performance preference can represent the preference and the preference degree of the user on the format performance, for example, the user has three performance preferences on the picture format, one is that the picture corresponding to the picture format is applied to the program under the ARM architecture, and the weight corresponding to the performance preference is 0.7; secondly, the storage amount of the picture corresponding to the picture format is small, and the weight corresponding to the performance preference is 0.2; thirdly, the pictures corresponding to the picture formats are simultaneously applied to the program under the X86 architecture, and the weight corresponding to the performance preference is 0.1. It will be appreciated that a greater weight for a performance preference indicates a greater degree of preference by the user for that performance preference.
Step 202, for each of the different picture formats, determining a format performance matching the picture format with the performance preference according to the performance preference, determining a performance index value of the format performance, and determining a performance score of the picture format according to the performance index value of the format performance and a preset weight corresponding to the performance preference.
In this embodiment, for each of the picture formats, or for each of several picture formats selected by the user, according to the performance preference, each format performance of the picture format is matched with each performance preference in the performance preference information, and then, according to the performance index value of each format performance and the preset weight corresponding to the performance preference matched with each format performance, the performance score of the picture format is determined.
For example, the performance preferences of the user are: the picture is applied to ARM architecture, X86 architecture, has requirements on the size of the picture, has requirements on the color support of the picture, and the preset weights corresponding to the performance preferences are as follows: ARM architecture weight 0.9, X86 architecture weight 0.8, picture size weight 0.8, color weight 0.2. The knowledge base may be obtained through user input, internet queries, or server local storage: the performance index value of the analysis capability of the PNG format under the ARM architecture is 70 points, the performance index value of the analysis capability under the X86 architecture is 60 points, the performance index value of the picture size is 75 points, and the performance index value of the color support degree is 30 points; the SVG format has a performance index value of 80 for the resolution capability under ARM architecture, a performance index value of 90 for the resolution capability under X86 architecture, a performance index value of 85 for the picture size, and a performance index value of 70 for the color support. Then, the PNG format final score may be determined as: (70×0.9+60×0.8+75×0.8+30×0.2)/4=44.25; the SVG format final score is: (80×0.9+90×0.8+85×0.8+70×0.2)/4=56.5.
For another example, according to the size of the weight, the performance index value of the format performance corresponding to the performance preference with the largest weight may be selected as the performance score of the picture format, in the above example, if the weight of the ARM architecture is the largest, the performance index value of the resolution capability under the ARM architecture corresponding to the ARM architecture is selected as the performance score of the picture format, and at this time, the PNG format final score is 70 points, and the SVG format final score is 80 points.
In step 203, the target picture format is determined from the different picture formats according to the performance scores of the different picture formats.
In this embodiment, the target picture format is determined from the picture formats according to the performance scores of the picture formats. Each picture format may be arranged according to its performance score, and a pre-set number of picture formats with the highest performance score may be selected as the target picture format.
According to the method for determining the picture format, the performance scores of different picture formats are determined according to the user requirements, and the target picture format is determined according to the performance scores, so that accuracy in determining the picture format can be improved.
Optionally, determining the target picture format from the different picture formats according to the performance scores of the different picture formats includes: and determining the picture format with the performance score reaching a preset score threshold value from the performance scores of different picture formats as a target picture format.
In this embodiment, a score threshold for filtering the picture formats may be preset, and after determining the performance score of each picture format, the picture format with the performance score reaching the score threshold is used as the target picture format. The target picture format is screened by presetting the score threshold, so that the screening step can be simplified, and the screening efficiency is improved.
With further reference to fig. 3, a flow 300 of another embodiment of a method for determining a picture format is shown, comprising the steps of:
step 301, performance preference information of a user on picture performance is obtained, wherein the performance preference information comprises at least one performance preference and a preset weight corresponding to the performance preference.
Step 302, for each of the different picture formats, determining a format performance matching the picture format with the performance preference according to the performance preference, determining a performance index value of the format performance, and determining a performance score of the picture format according to the performance index value of the format performance and a preset weight corresponding to the performance preference.
Step 303, determining a target picture format from different picture formats according to the performance scores of the different picture formats.
In this embodiment, descriptions of step 301, step 302, and step 303 are identical to those of step 201, step 202, and step 203, and will not be repeated here.
Step 304, taking the picture with the picture format being the target picture format in the preset picture library as the target picture.
In this embodiment, a picture library including candidate pictures may be obtained through user input, internet, or local storage, where the candidate pictures in the picture library are in different picture formats. And after determining the target picture format, taking the candidate picture with the picture format being the target picture format in the picture library as the target picture. It will be appreciated that the target picture may be as material for program development, data for a test system, or a sample of a trained neural network model, etc.
Step 305, optimizing the picture performance of the target picture according to the performance preference information.
In this embodiment, the image processing method may be used to further optimize the image performance of the screened target image according to the performance preference information of the user. For example, if the performance preference information includes a high compression ratio requirement on the picture, image compression processing may be performed on the target picture; the performance preference information includes sensitivity to the color of the picture, and then the target picture can be subjected to color reconstruction, picture color contrast is increased, and the like.
According to the embodiment, the target picture is determined according to the target picture format, and the target picture is subjected to performance optimization according to the performance preference information of the picture, so that the target picture can further meet the requirement of a user on the picture performance, and the convenience and satisfaction of the user are improved.
Optionally, optimizing the picture performance of the target picture according to the performance preference information includes: according to the performance preference information, at least one of the following processes is carried out on the target picture: compression processing, color reconstruction, elimination or generation of a transparent channel of a target picture, recoding, extraction and optimization of key features of the target picture.
In this embodiment, performance optimization operations may be performed on the target picture according to the performance preference information, where the performance optimization operations may be one or more of the following picture processing operations: a picture compression process of compressing the size of an original picture, for example, by re-encoding a binary-encoded picture, or compressing the size of a picture by reducing the resolution of the picture, etc.; picture color reconstruction, for example, enhancing the contrast of the picture color by enhancing the color contrast, or converting the picture in RGB565 color mode into the picture in RGB888 color mode by a color mode conversion method, improving the richness of the picture color, etc., wherein the RGB color mode is a color standard in the industry, and is to obtain various colors by the variation of three color channels of red (R), green (G) and blue (B) and the superposition of the three color channels; a process of eliminating or generating a picture transparent channel, for example, creating a transparent channel (i.e., an alpha channel) of a picture using a picture transparent channel generation method, or closing a transparent channel of a picture using a picture transparent channel elimination method; re-encoding of picture data, e.g. lossy re-encoding binary data of the generated picture, i.e. for parts of the image that are insensitive to certain data/encoding fields, allows these insensitive parts to be lost during picture compression in exchange for the maximum compression ratio; and extracting key features, namely key information, in the picture by using a picture feature extraction method, and then performing performance optimization on picture data/codes corresponding to the key information.
According to the embodiment, the performance of the target picture is optimized according to the performance preference information of the picture, so that the performance of the target picture can be further improved, and the requirement of a user on the performance of the picture is further met.
In some alternative implementations of the embodiments described above in connection with fig. 2 and 3, the format performance includes an effect of the picture format on the performance of the preset program in the preset application environment or the preset development environment.
In the present embodiment, the format performance of a picture refers to the influence of a picture format in a certain application environment or a certain development environment on the performance of a program/hardware in the application environment or the development environment. For example, when a picture in a certain picture format is applied to a program in the ARM architecture, the program can analyze the picture in the certain picture format at a resolution speed, a resolution accuracy, or the like (i.e., the resolution of the picture format in the environment of the ARM architecture), or when a picture in the certain picture format is applied to software in the Windows operating system, color fidelity or the like when the picture in the certain picture format is displayed by the software.
With further reference to fig. 4, as an implementation of the method shown in the foregoing figures, the present disclosure provides an embodiment of an apparatus for determining a picture format, where the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 2, and the apparatus may be specifically applied in various electronic devices.
As shown in fig. 4, the apparatus 400 for determining a picture format according to the present embodiment, wherein the apparatus 400 includes: an acquisition unit 401, a scoring unit 402, a determination unit 403. The obtaining unit 401 is configured to obtain performance preference information of the user on the performance of the picture, where the performance preference information includes at least one performance preference and a preset weight corresponding to the performance preference; a scoring unit 402 configured to determine, for each of the different picture formats, a format performance matching the picture format with the performance preference according to the performance preference, and determine a performance indicator value of the format performance, and determine a performance score of the picture format according to the performance indicator value of the format performance and a preset weight corresponding to the performance preference; a determining unit 403 configured to determine the target picture format from the different picture formats according to the performance scores of the different picture formats.
In some embodiments, the determining unit 401 includes: and the determining module is configured to determine the picture format with the performance score reaching a preset score threshold value from the performance scores of different picture formats as a target picture format.
In some embodiments, the means for determining the picture format further comprises: the picture selecting unit is configured to take a picture with a picture format being a target picture format in a preset picture library as a target picture; and the optimizing unit is configured to optimize the picture performance of the target picture according to the performance preference information.
In some embodiments, the optimization unit comprises: the optimizing module is configured to perform at least one of the following processing on the target picture according to the performance preference information: compression processing, color reconstruction, elimination or generation of a transparent channel of a target picture, recoding, extraction and optimization of key features of the target picture.
In some embodiments, the format performance includes an impact of the picture format on the performance of the preset program under a preset application environment or a preset development environment.
The units in the above-described apparatus 400 correspond to the steps in the method described with reference to fig. 2, 3. The operations, features and technical effects achieved by the above described with respect to the method for determining a picture format are thus equally applicable to the apparatus 400 and the units contained therein, and are not described in detail herein.
According to embodiments of the present application, an electronic device and a readable storage medium are also provided.
As shown in fig. 5, a block diagram of an electronic device 500 is provided for a method of determining a picture format according to an embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the application described and/or claimed herein.
As shown in fig. 5, the electronic device includes: one or more processors 501, memory 502, and interfaces for connecting components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the electronic device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In other embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple electronic devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). One processor 501 is illustrated in fig. 5.
Memory 502 is a non-transitory computer readable storage medium provided herein. Wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the methods provided herein for determining a picture format. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to perform the method for determining a picture format provided by the present application.
The memory 502 is used as a non-transitory computer readable storage medium, and may be used to store a non-transitory software program, a non-transitory computer executable program, and modules, such as program instructions/modules (e.g., the acquisition unit 401, the scoring unit 402, and the determining unit 403 shown in fig. 4) corresponding to the method for determining a picture format in the embodiments of the present application. The processor 501 executes various functional applications of the server and data processing, i.e., implements the method for determining a picture format in the above-described method embodiment, by running non-transitory software programs, instructions, and modules stored in the memory 502.
Memory 502 may include a storage program area that may store an operating system, at least one application program required for functionality, and a storage data area; the storage data area may store data created from the use of the electronic device for determining the picture format, and the like. In addition, memory 502 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory 502 may optionally include memory located remotely from processor 501, which may be connected to the electronic device for determining the picture format via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device for determining a picture format may further include: input means 503, output means 504 and bus 505. The processor 501, memory 502, input devices 503 and output devices 504 may be connected by a bus 505 or otherwise, in fig. 5 by way of example by bus 505.
The input device 503 may receive input numeric or character information and generate key signal inputs related to user settings and function controls of the electronic device for determining a picture format, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointer stick, one or more mouse buttons, a track ball, a joystick, etc. input devices. The output devices 504 may include a display device, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibration motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device may be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASIC (application specific integrated circuit), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
These computing programs (also referred to as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented in a high-level procedural and/or object-oriented programming language, and/or in assembly/machine language. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present application may be performed in parallel, sequentially, or in a different order, provided that the desired results of the technical solutions disclosed in the present application can be achieved, and are not limited herein.
The above embodiments do not limit the scope of the application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application are intended to be included within the scope of the present application.

Claims (10)

1. A method for determining a picture format, comprising:
acquiring performance preference information of a user on picture performance, wherein the performance preference information comprises at least one performance preference and a preset weight corresponding to the performance preference, and the picture performance refers to the influence of pictures in different formats on the performance of hardware or software applied to the pictures under different hardware or software environments;
determining the format performance of the picture format matched with the performance preference according to the performance preference aiming at each picture format in different picture formats, determining a performance index value of the format performance, and determining the performance score of the picture format according to the performance index value of the format performance and a preset weight corresponding to the performance preference;
determining a target picture format from different picture formats according to performance scores of the different picture formats, including: and arranging the different picture formats according to the performance scores of the different picture formats, and determining the picture format with the performance score reaching a preset score threshold value as the target picture format from the performance scores of the different picture formats.
2. The method of claim 1, wherein the method further comprises:
taking a picture with a picture format which is the target picture format in a preset picture library as a target picture;
and optimizing the picture performance of the target picture according to the performance preference information.
3. The method of claim 2, wherein the optimizing the picture performance of the target picture according to the performance preference information comprises:
and according to the performance preference information, performing at least one of the following processing on the target picture: compression processing, color reconstruction, eliminating or generating a transparent channel of the target picture, recoding, extracting and optimizing key features of the target picture.
4. The method of claim 1, wherein the format performance includes an impact of a picture format on performance of a preset program under a preset application environment or a preset development environment.
5. An apparatus for determining a picture format, comprising:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is configured to acquire performance preference information of a user on picture performance, the performance preference information comprises at least one performance preference and a preset weight corresponding to the performance preference, and the picture performance refers to the influence of pictures in different formats on the performance of hardware or software applied to the pictures under different hardware or software environments;
a scoring unit configured to determine, for each of different picture formats, a format performance of the picture format matching the performance preference according to the performance preference, determine a performance index value of the format performance, and determine a performance score of the picture format according to the performance index value of the format performance and a preset weight corresponding to the performance preference;
a determining unit configured to determine a target picture format from different picture formats according to performance scores of the different picture formats, including: and arranging the different picture formats according to the performance scores of the different picture formats, and determining the picture format with the performance score reaching a preset score threshold value as the target picture format from the performance scores of the different picture formats.
6. The apparatus of claim 5, wherein the apparatus further comprises:
the picture selecting unit is configured to take a picture with a picture format which is the target picture format in a preset picture library as a target picture;
and the optimizing unit is configured to optimize the picture performance of the target picture according to the performance preference information.
7. The apparatus of claim 6, wherein the optimizing unit comprises:
an optimization module configured to perform at least one of the following processing on the target picture according to the performance preference information: compression processing, color reconstruction, eliminating or generating a transparent channel of the target picture, recoding, extracting and optimizing key features of the target picture.
8. The apparatus of claim 5, wherein the format performance comprises an impact of a picture format on performance of a preset program under a preset application environment or a preset development environment.
9. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-4.
10. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-4.
CN202010838248.0A 2020-08-19 2020-08-19 Method and device for determining picture format Active CN111930356B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010838248.0A CN111930356B (en) 2020-08-19 2020-08-19 Method and device for determining picture format

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010838248.0A CN111930356B (en) 2020-08-19 2020-08-19 Method and device for determining picture format

Publications (2)

Publication Number Publication Date
CN111930356A CN111930356A (en) 2020-11-13
CN111930356B true CN111930356B (en) 2024-03-26

Family

ID=73305402

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010838248.0A Active CN111930356B (en) 2020-08-19 2020-08-19 Method and device for determining picture format

Country Status (1)

Country Link
CN (1) CN111930356B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106126760A (en) * 2016-09-08 2016-11-16 福建中金在线信息科技有限公司 A kind of method that web page picture optimizes
CN106937117A (en) * 2015-12-29 2017-07-07 阿里巴巴集团控股有限公司 Method for compressing image and device
CN110098995A (en) * 2018-01-31 2019-08-06 阿里巴巴集团控股有限公司 Information processing method, information display method, device, electronic equipment and server
CN110175252A (en) * 2019-05-07 2019-08-27 深圳前海微众银行股份有限公司 A kind of method and device that picture is shown
CN110704656A (en) * 2019-09-23 2020-01-17 捷开通讯(深圳)有限公司 Picture processing method and device, storage medium and terminal
CN110719327A (en) * 2019-10-08 2020-01-21 珠海格力电器股份有限公司 Interactive method and device for uploading image and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7362376B2 (en) * 2003-12-23 2008-04-22 Lsi Logic Corporation Method and apparatus for video deinterlacing and format conversion
US10565696B2 (en) * 2017-06-05 2020-02-18 Qualcomm Incorporated Systems and methods for producing image feedback

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106937117A (en) * 2015-12-29 2017-07-07 阿里巴巴集团控股有限公司 Method for compressing image and device
CN106126760A (en) * 2016-09-08 2016-11-16 福建中金在线信息科技有限公司 A kind of method that web page picture optimizes
CN110098995A (en) * 2018-01-31 2019-08-06 阿里巴巴集团控股有限公司 Information processing method, information display method, device, electronic equipment and server
CN110175252A (en) * 2019-05-07 2019-08-27 深圳前海微众银行股份有限公司 A kind of method and device that picture is shown
CN110704656A (en) * 2019-09-23 2020-01-17 捷开通讯(深圳)有限公司 Picture processing method and device, storage medium and terminal
CN110719327A (en) * 2019-10-08 2020-01-21 珠海格力电器股份有限公司 Interactive method and device for uploading image and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
HEVC still image coding and high efficiency image file format;Jani Lainema等;《2016 IEEE International Conference on Image Processing (ICIP)》;71-75 *
三种医学图像格式的融合性能研究;胡俊峰等;《北京生物医学工程》;第29卷(第3期);245-248 *
多模态图像检索技术;王洋;《中国博士学位论文全文数据库 (信息科技辑)》(第10期);I138-66 *

Also Published As

Publication number Publication date
CN111930356A (en) 2020-11-13

Similar Documents

Publication Publication Date Title
US11710215B2 (en) Face super-resolution realization method and apparatus, electronic device and storage medium
CN112270399B (en) Operator registration processing method and device based on deep learning and electronic equipment
CN111582477B (en) Training method and device for neural network model
CN111563593B (en) Training method and device for neural network model
US11768873B2 (en) Method, apparatus, electronic device and readable storage medium for classifying video
CN110706147B (en) Image processing environment determination method, device, electronic equipment and storage medium
CN110648294A (en) Image restoration method and device and electronic equipment
CN111897619A (en) Browser page display method and device, electronic equipment and storage medium
CN111028226A (en) Method and device for algorithm transplantation
CN111935506B (en) Method and apparatus for determining repeating video frames
CN112015468A (en) Interface document processing method and device, electronic equipment and storage medium
CN114071190B (en) Cloud application video stream processing method, related device and computer program product
US11734809B2 (en) Method and apparatus for processing image
CN112311952A (en) Image processing method, system and device
CN111930356B (en) Method and device for determining picture format
CN111177479A (en) Method and device for acquiring feature vectors of nodes in relational network graph
CN112508163B (en) Method and device for displaying subgraph in neural network model and storage medium
CN112035210B (en) Method, apparatus, device and medium for outputting color information
CN112598136A (en) Data calibration method and device
CN112101284A (en) Image recognition method, training method, device and system of image recognition model
CN111510376A (en) Image processing method and device and electronic equipment
CN111611503B (en) Page processing method and device, electronic equipment and storage medium
CN111507267B (en) Document orientation detection method, device, equipment and storage medium
CN112508830B (en) Training method, device, equipment and storage medium of image processing model
CN114912522B (en) Information classification method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant