WO2020233324A1 - Method and apparatus for testing performance of terminal device - Google Patents
Method and apparatus for testing performance of terminal device Download PDFInfo
- Publication number
- WO2020233324A1 WO2020233324A1 PCT/CN2020/086172 CN2020086172W WO2020233324A1 WO 2020233324 A1 WO2020233324 A1 WO 2020233324A1 CN 2020086172 W CN2020086172 W CN 2020086172W WO 2020233324 A1 WO2020233324 A1 WO 2020233324A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- value
- rgb color
- feature
- pictures
- color value
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3055—Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3409—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
Definitions
- This application relates to the field of computer technology, and in particular to a method and device for performance testing of terminal equipment.
- the embodiments of the present application provide a method and device for performance testing of terminal equipment.
- the performance of terminal equipment can be tested, which increases the diversity of performance testing methods, improves the operational flexibility of performance testing, and has high applicability.
- an embodiment of the present application provides a method for testing the performance of a terminal device.
- the method includes:
- an idle frequency of the central processing unit of the terminal device Acquiring an idle frequency of the central processing unit of the terminal device to be tested, where the above-mentioned idle frequency of the central processing unit is an idle frequency used to perform image feature extraction;
- the performance test value is obtained by calculating the maximum feature image size, the color gamut value, and the idle frequency of the central processing unit, and the performance of the terminal device is determined according to the performance test value.
- the embodiment of the application obtains the maximum feature picture size, the color gamut value of the largest feature picture, and the CPU idle frequency in the test video, and then uses the determined maximum feature picture size, color gamut value, and CPU idle frequency to measure
- the performance of terminal equipment increases the diversity of performance testing methods, improves the operational flexibility of performance testing, and has high applicability.
- an embodiment of the present application provides a terminal device performance test apparatus, which includes:
- the frequency acquisition module is used to acquire the idle frequency of the central processor of the terminal device to be tested, and the above-mentioned idle frequency of the central processor is the idle frequency for performing image feature extraction;
- the picture acquisition module is used to acquire M feature pictures in the test video, and determine the largest feature picture and the largest feature picture size in the above M feature pictures, where M is an integer greater than 0, and the largest feature picture is the above M The feature picture with the largest size among the feature pictures;
- a data determination module for extracting the RGB color values corresponding to each pixel point constituting the largest feature picture, and determining the color gamut value of the largest feature picture according to each RGB color value;
- the performance determining module is used to calculate the maximum characteristic picture size, the color gamut value and the idle frequency of the central processing unit to obtain the performance test value, and determine the performance of the terminal device according to the performance test value.
- the above-mentioned frequency acquisition module is used for:
- the maximum CPU frequency and the CPU turbo frequency are acquired, and the CPU frequency difference between the above-mentioned CPU maximum frequency and the above-mentioned CPU turbo frequency is determined as the CPU idle frequency.
- an embodiment of the present application provides a terminal device.
- the terminal device includes a processor and a memory, and the processor and the memory are connected to each other.
- the memory is used to store a computer program that supports the terminal device to execute the method provided in the first aspect and/or any one of the possible implementations of the first aspect
- the computer program includes program instructions, and the processor is configured to call the foregoing
- the program instructions execute the method provided in the first aspect and/or any possible implementation manner of the first aspect.
- an embodiment of the present application provides a computer-readable storage medium that stores a computer program, and the computer program includes program instructions that, when executed by a processor, cause the processor to execute The method provided by the foregoing first aspect and/or any possible implementation manner of the first aspect.
- the embodiment of the present application determines the performance of the terminal device by obtaining the maximum feature picture size, the color gamut value, and the idle frequency of the central processing unit, which improves the accuracy of the performance test of the terminal device and has high applicability.
- FIG. 1 is a schematic flowchart of a method for testing performance of a terminal device provided by an embodiment of the present application
- FIG. 2 is a schematic diagram of an application scenario of a terminal device performance testing method provided by an embodiment of the present application
- FIG. 3 is a schematic structural diagram of a terminal equipment performance testing apparatus provided by an embodiment of the present application.
- Fig. 4 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
- terminal devices include desktop computers, notebook computers, tablet computers, smart phones, etc., for ease of description, Unified description as terminal equipment.
- the terminal device can extract multiple frames of pictures from the test video according to the preset extraction time, and perform feature extraction processing on each frame of the extracted multiple frames of pictures to obtain multiple feature pictures.
- the features in each frame of pictures include user facial features and/or background features.
- the extracted user facial feature pictures and background feature pictures are collectively referred to as feature pictures.
- the embodiment of the present application determines the largest feature picture among multiple feature pictures to measure the performance of the terminal device. Then by processing the color values of the three primary colors (Red, Green, Blue abbreviation, RGB) corresponding to each pixel in the largest feature image, the color gamut value of the largest feature image can be obtained, and then according to the maximum feature image size and color gamut value With the obtained central processing unit (CPU) idle frequency, the performance test value to measure the performance of the terminal device can be determined.
- the color values of the three primary colors Red, Green, Blue abbreviation, RGB
- RGB central processing unit
- the preset performance test threshold indicates that the performance of the terminal device does not meet the requirements.
- the methods and related devices provided in the embodiments of the present application will be described in detail below with reference to FIGS. 1 to 4.
- the method provided in the embodiments of the application may include methods for obtaining CPU idle frequency, obtaining M feature pictures in the test video and determining the largest feature picture, extracting the RGB color value corresponding to each pixel of the largest feature picture, and based on RGB color.
- the value determines the color gamut value of the above-mentioned largest feature picture and determines the performance of the terminal device and other data processing stages.
- the implementation of the above-mentioned data processing stages can be referred to the implementation shown in Figure 1 below.
- FIG. 1 is a schematic flowchart of a method for testing the performance of a terminal device according to an embodiment of the application.
- the method provided in the embodiment of the present application may include the following steps 101 to 104:
- Turbo Frequency means that when an application is opened or started, the processor will automatically accelerate to the appropriate frequency, and the original operating speed will be increased by 10% to 20% to ensure smooth running of the application A technology. It is not difficult to understand that there is still a distance between the CPU turbo frequency of the terminal device when the application is in the turbo frequency state and the maximum CPU frequency of the terminal device.
- the video review system may be a web video review webpage developed based on a browser, and the feature extraction algorithm used for image feature extraction processing may be a browser plug-in, browser plug-in and application packaged into Programs are used to implement a specific function. The difference is that browser plug-ins depend on the browser and applications rely on terminal devices.
- the CPU turbo frequency can be obtained when the terminal device opens the web video review webpage through the browser, but has not yet used the browser plug-in to unframe to obtain the picture and perform the picture feature extraction process.
- the video review system can also be a client or application.
- the CPU turbo frequency is obtained when the client or application for video review is opened, but the picture has not been unframed to obtain the picture and the picture feature extraction process is performed. .
- the CPU frequency difference is the CPU idle frequency.
- the CPU idle frequency refers to the frequency that can be used to perform image feature extraction processing.
- the test video can be the process of interactive operation between the simulated customer and the remote video of the customer service, or the process of real-time interactive operation between the customer and the remote video of the customer service under the real business scene captured by the camera, for example Remote video of customers and customer service to complete the loan review process.
- the test video is a pre-shooting process of simulating the interaction between the customer and the remote video of the customer service, and is a test video stored in the terminal device or in an external storage.
- the terminal device under test can avoid the problem of inaccurate performance of the terminal device under test due to different video characteristics by reading the same piece of test video for processing. It is understandable that the video is actually played continuously one frame after another.
- the movie film is shot frame by frame and then played quickly.
- it can be set to extract N frames of pictures in the test video for feature extraction processing when the test video progresses to a certain point in time.
- N frames of pictures can be extracted for processing when the test video reaches 1 minute.
- the features extracted by the feature extraction process include user facial features and/or background features, where the user’s facial features include the user’s eyes, nose, mouth, etc., and the background features include surrounding environment features.
- the extracted user facial feature pictures and background feature pictures are collectively referred to as feature pictures.
- the maximum feature picture and the maximum feature picture size in M feature pictures first obtain the feature picture size corresponding to each feature picture in the M feature pictures, and then sort the size of each feature picture in ascending order or Sort in descending order, and finally determine the largest feature picture size and the largest feature picture corresponding to the largest feature picture size based on the sorting result.
- the most resource-consuming link in the process of facial feature extraction is the process of using convolutional neural networks to perform convolution calculations.
- the main calculation method of the convolutional neural network algorithm is to convert the feature picture into an image matrix and then perform operations with a fixed matrix (convolution kernel). It is not difficult to understand that the larger the feature picture, the larger the image matrix converted from the feature picture, so the size of the feature picture will increase exponentially and affect the amount of calculation of convolution.
- the maximum feature picture and the maximum feature picture size can be used to measure the performance of the terminal device.
- the image matrix converted from the feature picture will involve the RGB color value of each pixel. If the feature picture has very rich colors, then the feature picture is converted into an image The result of convolution calculation after matrix is more discrete. Therefore, the RGB color values corresponding to all the pixels constituting the largest feature picture can be extracted, and the color gamut value of the largest feature picture can be determined according to each RGB color value.
- the RGB color value is the hexadecimal RGB color value, so each RGB color value can be converted from the hexadecimal RGB color value to the decimal RGB color value to obtain the decimal RGB color value corresponding to each RGB color value.
- the word length of the binary RGB color value can be determined, and the word length is determined as the largest feature picture The color gamut value.
- the hexadecimal average value of each RGB color value can be directly calculated to obtain the hexadecimal RGB color value average value, and the hexadecimal RGB color value average value can be converted into binary RGB color value.
- the word length of the binary RGB color value can be determined, and then the word length can be determined as the color gamut value of the largest feature picture.
- the RGB color values corresponding to all the pixels that make up the largest feature picture can also be extracted and arranged in ascending or descending order, and then the sorted RGB color values are extracted.
- the median, after converting the median into a binary median, the word length of the binary median can be determined as the color gamut value of the largest feature picture.
- FIG. 2 is a schematic diagram of an application scenario of the terminal device performance testing method provided by an embodiment of the present application.
- the largest feature picture among the 20 feature pictures can be determined.
- the largest feature picture refers to the feature picture with the largest picture size among the 20 feature pictures.
- the largest feature picture is used to measure the resource of the terminal device occupied by the convolution calculation, and then the performance of the terminal device is measured. Assume that the largest feature picture is the feature picture 1-1 in the first frame of picture, and the feature picture 1-1 includes 4 pixels, where the RGB color values of the 4 pixels are 4169E1, 292421, COC0C0, and E3CF57, respectively.
- Converting the RGB color values of the above four pixels from the hexadecimal RGB color values to the decimal RGB color values can obtain the respective decimal RGB color values corresponding to each RGB color value of 4289945, 2696225, 12632256, and 14929751.
- the average value of the decimal RGB color value can be obtained as 8636294, and the average value of the decimal RGB color value 8636294 is converted into the binary RGB color value, and the binary RGB color value can be obtained as 100000111100011110000110, where ,
- the word length of the binary RGB color value is 24, that is, the color gamut value of the largest feature image is 24.
- the largest feature picture in the 20 feature pictures can be determined.
- the largest feature picture refers to the feature picture with the largest size among the 20 feature pictures. Since the feature image is a color image and the convolution calculation is the color value multiplication after the feature image is converted into an image matrix, the larger the feature image, the more resources it takes, and the more the color of the feature image, the more the calculated value Also more discrete.
- the largest feature picture may be used to measure the terminal device resources occupied by the convolution calculation, and then to measure the performance of the terminal device.
- the largest feature picture is the feature picture 1-1 in the first frame of picture, and the feature picture 1-1 includes 4 pixels, where the RGB color values of the 4 pixels are 4169E1, 292421, COC0C0, and E3CF57, respectively. Converting the RGB color values of the above four pixels from the hexadecimal RGB color values to the decimal RGB color values can obtain the decimal RGB color values corresponding to each RGB color value, namely 4289945, 2696225, 12632256 and 14929751.
- the number is 8459600, and 100000010001010101010000 can be obtained by converting the above-mentioned median into a binary median, where the word length of the binary median is 24, that is, the color gamut value of the largest feature picture is 24.
- the product of the i-th power of the maximum feature picture size and the color gamut value is determined, and then the quotient of the product and the idle frequency of the central processing unit is determined as the performance test value of the terminal device. If the performance test value is less than the preset performance test threshold, it is determined that the performance of the terminal device meets the requirements, where i is an integer greater than 1.
- the performance test value may be the value calculated by multiplying the maximum feature image size by the color gamut value and dividing by the CPU idle frequency. If the performance test value is greater than or equal to the preset performance test threshold, it may be Determine that the performance of the terminal equipment does not meet the requirements.
- the terminal device can extract multiple frames of pictures from the test video according to a preset extraction time, and then can perform feature extraction on each frame of the multiple frames of pictures Processing, wherein the features extracted according to the feature extraction algorithm include extracting user facial features and/or background features in each frame of picture.
- the hardware resources of the terminal device include various performance parameters.
- various performance parameters include but are not limited to CPU occupancy rate, memory occupancy rate, The graphics processor (Graphics Processing Unit, GPU) occupancy rate, etc., can be specifically determined according to actual application scenarios, and there is no restriction here.
- the memory occupancy threshold and/or the graphics processor GPU occupancy threshold can determine that the performance of the terminal device does not meet the requirements.
- the terminal device after the terminal device obtains the test video, it can extract multiple frames of pictures from the test video according to the preset extraction time, and perform feature extraction processing on each of the extracted multiple frames to obtain multiple images.
- Feature pictures where the extracted features in each frame of pictures include user facial features and/or background features.
- the extracted user facial feature pictures and background feature pictures are collectively referred to as feature pictures. Since the size of the feature picture in the convolution calculation of the convolutional neural network will affect the size of the converted image matrix, the embodiment of the present application determines the largest feature picture among multiple feature pictures to measure the performance of the terminal device.
- the terminal device can be determined to be measured.
- the performance test value of performance is compared with the preset performance test threshold. If the obtained performance test value is greater than or equal to the preset performance test threshold, it indicates that the performance of the terminal device does not meet the requirements.
- FIG. 3 is a schematic structural diagram of a terminal equipment performance testing apparatus provided by an embodiment of the present application.
- the terminal equipment performance test apparatus provided by the embodiment of the present application includes:
- the frequency acquisition module 31 is configured to acquire the CPU idle frequency of the terminal device to be tested, and the CPU idle frequency is the idle frequency used to perform image feature extraction;
- the picture acquisition module 32 is used to acquire M feature pictures in the test video, and determine the largest feature picture and the largest feature picture size among the M feature pictures, where M is an integer greater than 0, and the largest feature picture is the above The feature picture with the largest size among the M feature pictures;
- the data determining module 33 is configured to extract the RGB color values corresponding to the respective pixels constituting the largest feature picture, and determine the color gamut value of the largest feature picture according to each RGB color value;
- the performance determining module 34 is configured to calculate the maximum feature image size, the color gamut value, and the CPU idle frequency to obtain a performance test value, and determine the performance of the terminal device according to the performance test value.
- the aforementioned frequency acquisition module 31 is used to:
- the above-mentioned picture acquisition module 32 is used to:
- the aforementioned RGB color values are hexadecimal RGB color values; the aforementioned data determining module 33 is used for:
- each RGB color value from a hexadecimal RGB color value to a decimal RGB color value to obtain each decimal RGB color value corresponding to each of the above-mentioned RGB color values, and calculate the average value of the decimal RGB color value of each of the above-mentioned decimal RGB color values ;
- the average value of the decimal RGB color value is converted into a binary RGB color value, the word length of the binary RGB color value is determined, and the word length is determined as the color gamut value.
- the aforementioned data determination module 33 is used to:
- the word length of the binary RGB color value is determined, and the word length is determined as the color gamut value.
- the aforementioned performance determining module 34 is used to:
- the above-mentioned picture acquisition module 32 is used to:
- the above-mentioned terminal equipment performance testing apparatus can execute the implementation manners provided in the above-mentioned steps in FIG. 1 through various built-in functional modules.
- the aforementioned frequency acquisition module 31 can be used to perform the implementation methods of acquiring the CPU core frequency, acquiring the maximum CPU frequency, and determining the idle frequency of the CPU in the aforementioned steps.
- the above-mentioned picture acquisition module 32 can be used to perform the implementation described in the relevant steps of extracting pictures in the test video, extracting feature pictures in the pictures, and determining the largest feature picture in the above steps.
- the implementation manners provided in the above steps please refer to the implementation manners provided in the above steps.
- the above-mentioned data determination module 33 can be used to perform implementation methods such as extracting the RGB color value of the largest feature picture in the above steps and determining the color gamut value based on each RGB color value. For details, please refer to the implementation methods provided in the above steps. Repeat.
- the above-mentioned performance determining module 34 can be used to perform the above-mentioned various steps in the implementation of determining the performance of the terminal device based on the maximum feature picture size, color gamut value, and CPU idle frequency. For details, please refer to the implementation methods provided in the above-mentioned steps, which will not be repeated here. .
- the terminal device performance test apparatus can be based on the acquired test video, and can extract multiple frames of pictures from the test video according to a preset extraction time, and perform features on each frame of the extracted multiple frames of pictures
- the extraction process can obtain multiple feature pictures, where the extracted features in each frame of pictures include user facial features and/or background features.
- the extracted user facial feature pictures and background feature pictures are collectively referred to as feature pictures. Since the size of the feature picture in the convolution calculation of the convolutional neural network will affect the size of the converted image matrix, the embodiment of the present application determines the largest feature picture among multiple feature pictures to measure the performance of the terminal device.
- the terminal device can be determined to be measured.
- the performance test value of performance is compared with the preset performance test threshold. If the obtained performance test value is greater than or equal to the preset performance test threshold, it indicates that the performance of the terminal device does not meet the requirements.
- FIG. 4 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
- the terminal device in this embodiment may include: one or more processors 401 and a memory 402.
- the aforementioned processor 401 and memory 402 are connected through a bus 403.
- the memory 402 is configured to store a computer program, and the computer program includes program instructions.
- the processor 401 is configured to execute the program instructions stored in the memory 402, and perform the following operations:
- the CPU idle frequency is the idle frequency used to perform image feature extraction
- the performance test value is obtained by calculating the maximum feature picture size, the color gamut value, and the CPU idle frequency, and the performance of the terminal device is determined according to the performance test value.
- the aforementioned processor 401 is configured to:
- the aforementioned processor 401 is configured to:
- the aforementioned RGB color value is a hexadecimal RGB color value; the aforementioned processor 401 is configured to:
- each RGB color value from a hexadecimal RGB color value to a decimal RGB color value to obtain each decimal RGB color value corresponding to each of the above-mentioned RGB color values, and calculate the average value of the decimal RGB color value of each of the above-mentioned decimal RGB color values ;
- the average value of the decimal RGB color value is converted into a binary RGB color value, the word length of the binary RGB color value is determined, and the word length is determined as the color gamut value.
- the aforementioned processor 401 is configured to:
- the word length of the binary RGB color value is determined, and the word length is determined as the color gamut value.
- the aforementioned processor 401 is configured to:
- the performance test value is greater than or equal to the preset performance test threshold, it is determined that the performance of the terminal device does not meet the requirements.
- the aforementioned processor 401 is configured to:
- the aforementioned processor 401 may be a central processing unit (CPU), and the processor may also be other general-purpose processors or digital signal processors (DSP). , Application specific integrated circuit (ASIC), ready-made programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
- the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
- the memory 402 may include a read-only memory and a random access memory, and provides instructions and data to the processor 401. A part of the memory 402 may also include a non-volatile random access memory. For example, the memory 402 may also store device type information.
- the above-mentioned terminal device can execute the implementation manners provided in each step in FIG. 1 through its built-in functional modules.
- the implementation manners provided in the foregoing steps and details are not described herein again.
- the terminal device can extract multiple frames of pictures from the test video based on the acquired test video according to a preset extraction time, and perform feature extraction processing on each of the extracted multiple frames of pictures to obtain Multiple feature pictures, where the features in each frame of the extracted picture include user facial features and/or background features.
- the extracted user facial feature pictures and background feature pictures are collectively referred to as feature pictures. Since the size of the feature picture in the convolution calculation of the convolutional neural network will affect the size of the converted image matrix, the embodiment of the present application determines the largest feature picture among multiple feature pictures to measure the performance of the terminal device.
- the terminal device can be determined to be measured.
- the performance test value of performance is compared with the preset performance test threshold. If the obtained performance test value is greater than or equal to the preset performance test threshold, it indicates that the performance of the terminal device does not meet the requirements.
- the embodiments of the present application also provide a computer-readable storage medium.
- the computer-readable storage medium may be nonvolatile or volatile.
- the computer-readable storage medium stores a computer program, and the computer program includes program instructions.
- the program instructions are executed by the processor, the method for performing the performance test of the terminal device provided in each step in FIG. 1 can be referred to for details of the implementation manner provided in each step above, which will not be repeated here.
- the foregoing computer-readable storage medium may be the terminal device performance testing apparatus provided in any of the foregoing embodiments or the internal storage unit of the foregoing terminal device, such as a hard disk or memory of an electronic device.
- the computer-readable storage medium may also be an external storage device of the electronic device, such as a plug-in hard disk, a smart media card (SMC), or a secure digital (SD) card equipped on the electronic device. Flash card, etc.
- the computer-readable storage medium may also include both an internal storage unit of the electronic device and an external storage device.
- the computer-readable storage medium is used to store the computer program and other programs and data required by the electronic device.
- the computer-readable storage medium can also be used to temporarily store data that has been output or will be output.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Computer Hardware Design (AREA)
- Image Analysis (AREA)
Abstract
Disclosed in embodiments of the present application are a method and apparatus for testing performance of a terminal device, applicable to generation of a test case. The method comprises: obtaining a central processing unit idle frequency of a terminal device to be tested; obtaining M feature pictures in a test video, and determining the maximum feature picture in the M feature pictures and the maximum feature picture size, the maximum feature picture being a feature picture having the maximum size in the M feature pictures; extracting RGB color values respectively corresponding to pixel points forming the maximum feature picture, and determining a color gamut value of the maximum feature picture according to the RGB color values; and calculating a performance test value according to the maximum feature picture size, the color gamut value, and the central processing unit idle frequency, and determining performance of the terminal device according to the performance test value. By using the embodiments of the present application, the performance of a terminal device can be tested, the performance test mode is diversified, the operation flexibility of performance test is improved, and the applicability is high.
Description
本申请要求于2019年5月21日提交中国专利局、申请号为201910421940.0,发明名称为“终端设备性能测试的方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed with the Chinese Patent Office on May 21, 2019, the application number is 201910421940.0, and the invention title is "Method and Apparatus for Testing Terminal Equipment Performance", the entire content of which is incorporated into this application by reference in.
本申请涉及计算机技术领域,尤其涉及一种终端设备性能测试的方法及装置。This application relates to the field of computer technology, and in particular to a method and device for performance testing of terminal equipment.
随着网络技术的不断发展,当前一些机构在办理业务时,已经不似往常需要客户到现场办理,而是可以通过客户与客服进行远程视频来完成业务办理操作。其中,对视频中的图像特征的提取工作是目前先进的模式识别和人工智能系统的前提,因此,应用于终端设备的特征提取算法能够为通过远程视频办理贷款业务的安全性问题保驾护航。发明人意识到,终端设备的系统性能直接决定了视频特征提取算法的运行快慢和使用效率,因此,对终端设备的性能检测显得尤为重要。With the continuous development of network technology, it is no longer as usual for some institutions to conduct business on-site, but can complete business processing operations through remote video between customers and customer service. Among them, the extraction of image features in videos is the prerequisite of the current advanced pattern recognition and artificial intelligence systems. Therefore, feature extraction algorithms applied to terminal equipment can protect the security of loan business through remote video. The inventor realizes that the system performance of the terminal device directly determines the running speed and use efficiency of the video feature extraction algorithm. Therefore, the performance detection of the terminal device is particularly important.
发明内容Summary of the invention
本申请实施例提供一种终端设备性能测试的方法及装置。可测试终端设备的性能,增加了性能测试方式的多样性、提高了性能测试的操作灵活性,适用性高。The embodiments of the present application provide a method and device for performance testing of terminal equipment. The performance of terminal equipment can be tested, which increases the diversity of performance testing methods, improves the operational flexibility of performance testing, and has high applicability.
第一方面,本申请实施例提供了一种终端设备性能测试的方法,该方法包括:In the first aspect, an embodiment of the present application provides a method for testing the performance of a terminal device. The method includes:
获取待测试的终端设备的中央处理器空闲频率,上述中央处理器空闲频率为用于执行图片特征提取的空闲频率;Acquiring an idle frequency of the central processing unit of the terminal device to be tested, where the above-mentioned idle frequency of the central processing unit is an idle frequency used to perform image feature extraction;
获取测试视频中的M张特征图片,并确定上述M张特征图片中的最大特征图片及最大特征图片尺寸,其中,M为大于0的整数,上述最大特征图片为上述M张特征图片中尺寸最大的特征图片;Obtain M feature pictures in the test video, and determine the largest feature picture and the largest feature picture size among the above M feature pictures, where M is an integer greater than 0, and the above largest feature picture is the largest size among the above M feature pictures Feature picture of
提取组成上述最大特征图片的各个像素点分别对应的RGB色值,并根据 各个RGB色值确定上述最大特征图片的色域值;Extracting the RGB color values corresponding to each pixel point constituting the largest feature picture, and determining the color gamut value of the largest feature picture according to each RGB color value;
对上述最大特征图片尺寸、上述色域值和上述中央处理器空闲频率进行计算得到性能测试值,并根据上述性能测试值确定上述终端设备的性能。The performance test value is obtained by calculating the maximum feature image size, the color gamut value, and the idle frequency of the central processing unit, and the performance of the terminal device is determined according to the performance test value.
本申请实施例通过获取测试视频中的最大特征图片尺寸、最大特征图片的色域值和中央处理器空闲频率后,根据确定的最大特征图片尺寸、色域值和中央处理器空闲频率用于衡量终端设备的性能增加了性能测试方式的多样性、提高了性能测试的操作灵活性,适用性高。The embodiment of the application obtains the maximum feature picture size, the color gamut value of the largest feature picture, and the CPU idle frequency in the test video, and then uses the determined maximum feature picture size, color gamut value, and CPU idle frequency to measure The performance of terminal equipment increases the diversity of performance testing methods, improves the operational flexibility of performance testing, and has high applicability.
第二方面,本申请实施例提供了一种终端设备性能测试的装置,该装置包括:In the second aspect, an embodiment of the present application provides a terminal device performance test apparatus, which includes:
频率获取模块,用于获取待测试的终端设备的中央处理器空闲频率,上述中央处理器空闲频率为用于执行图片特征提取的空闲频率;The frequency acquisition module is used to acquire the idle frequency of the central processor of the terminal device to be tested, and the above-mentioned idle frequency of the central processor is the idle frequency for performing image feature extraction;
图片获取模块,用于获取测试视频中的M张特征图片,并确定上述M张特征图片中的最大特征图片及最大特征图片尺寸,其中,M为大于0的整数,上述最大特征图片为上述M张特征图片中尺寸最大的特征图片;The picture acquisition module is used to acquire M feature pictures in the test video, and determine the largest feature picture and the largest feature picture size in the above M feature pictures, where M is an integer greater than 0, and the largest feature picture is the above M The feature picture with the largest size among the feature pictures;
数据确定模块,用于提取组成上述最大特征图片的各个像素点分别对应的RGB色值,并根据各个RGB色值确定上述最大特征图片的色域值;A data determination module for extracting the RGB color values corresponding to each pixel point constituting the largest feature picture, and determining the color gamut value of the largest feature picture according to each RGB color value;
性能确定模块,用于对上述最大特征图片尺寸、上述色域值和上述中央处理器空闲频率进行计算得到性能测试值,并根据上述性能测试值确定上述终端设备的性能。The performance determining module is used to calculate the maximum characteristic picture size, the color gamut value and the idle frequency of the central processing unit to obtain the performance test value, and determine the performance of the terminal device according to the performance test value.
结合第二方面,在一种可能的实施方式中,上述频率获取模块用于:With reference to the second aspect, in a possible implementation manner, the above-mentioned frequency acquisition module is used for:
获取中央处理器最大频率和中央处理器睿频频率,将上述中央处理器最大频率与上述中央处理器睿频频率之间的中央处理器频率差确定为中央处理器空闲频率。The maximum CPU frequency and the CPU turbo frequency are acquired, and the CPU frequency difference between the above-mentioned CPU maximum frequency and the above-mentioned CPU turbo frequency is determined as the CPU idle frequency.
第三方面,本申请实施例提供了一种终端设备,该终端设备包括处理器和存储器,该处理器和存储器相互连接。该存储器用于存储支持该终端设备执行上述第一方面和/或第一方面任一种可能的实现方式提供的方法的计算机程序,该计算机程序包括程序指令,该处理器被配置用于调用上述程序指令,执行上述第一方面和/或第一方面任一种可能的实施方式所提供的方法。In a third aspect, an embodiment of the present application provides a terminal device. The terminal device includes a processor and a memory, and the processor and the memory are connected to each other. The memory is used to store a computer program that supports the terminal device to execute the method provided in the first aspect and/or any one of the possible implementations of the first aspect, the computer program includes program instructions, and the processor is configured to call the foregoing The program instructions execute the method provided in the first aspect and/or any possible implementation manner of the first aspect.
第四方面,本申请实施例提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,该计算机程序包括程序指令,该程序指令当被处 理器执行时使该处理器执行上述第一方面和/或第一方面任一种可能的实施方式所提供的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium that stores a computer program, and the computer program includes program instructions that, when executed by a processor, cause the processor to execute The method provided by the foregoing first aspect and/or any possible implementation manner of the first aspect.
实施本申请实施例,具有如下有益效果:The implementation of the embodiments of this application has the following beneficial effects:
本申请实施例通过获取最大特征图片尺寸、色域值和中央处理器空闲频率确定终端设备的性能提高了终端设备性能测试的准确性,适用性高。The embodiment of the present application determines the performance of the terminal device by obtaining the maximum feature picture size, the color gamut value, and the idle frequency of the central processing unit, which improves the accuracy of the performance test of the terminal device and has high applicability.
图1是本申请实施例提供的终端设备性能测试方法的流程示意图;FIG. 1 is a schematic flowchart of a method for testing performance of a terminal device provided by an embodiment of the present application;
图2是本申请实施例提供的终端设备性能测试方法的应用场景示意图;FIG. 2 is a schematic diagram of an application scenario of a terminal device performance testing method provided by an embodiment of the present application;
图3是本申请实施例提供的终端设备性能测试装置的结构示意图;FIG. 3 is a schematic structural diagram of a terminal equipment performance testing apparatus provided by an embodiment of the present application;
图4是本申请实施例提供的终端设备的结构示意图。Fig. 4 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
本申请实施例提供的终端设备性能测试的方法,可广泛适用于能够进行图像识别的终端设备的性能测试,其中,终端设备包括台式电脑、笔记本电脑、平板电脑、智能手机等,为方便描述,统一描述为终端设备。终端设备在获取测试视频后,根据预设的提取时间可从测试视频中提取多帧图片,并对提取的多帧图片中的每帧图片进行特征提取处理可得到多张特征图片,其中提取的每帧图片中的特征包括用户面部特征和/或背景特征,为方便描述,将提取的用户面部特征图片和背景特征图片统称为特征图片。由于卷积神经网络的卷积计算中特征图片的大小会影响转化成的图像矩阵的大小,因此本申请实施例通过确定多张特征图片中的最大特征图片用于衡量终端设备的性能。再通过对最大特征图片中各个像素点对应的三原色光(Red,Green,Blue的缩写,RGB)色值进行处理,可得到最大特征图片的色域值,进而根据最大特征图片尺寸、色域值和获取的中央处理器(Central Processing Unit,CPU)空闲频率,可确定衡量终端设备性能的性能测试值,通过将性能测试值与预设性能测试阈值进行比较,若得到的性能测试值大于或者等于预设性能测试阈值,说明终端设备的性能不满足要求。采用本申请实施例,可测试终端设备的性能,增加了性能测试方式的多样性、提高了性能测试的操作灵活性,适用性高。The method for testing the performance of terminal devices provided by the embodiments of the present application can be widely applied to the performance testing of terminal devices capable of image recognition. Among them, terminal devices include desktop computers, notebook computers, tablet computers, smart phones, etc., for ease of description, Unified description as terminal equipment. After acquiring the test video, the terminal device can extract multiple frames of pictures from the test video according to the preset extraction time, and perform feature extraction processing on each frame of the extracted multiple frames of pictures to obtain multiple feature pictures. The features in each frame of pictures include user facial features and/or background features. For the convenience of description, the extracted user facial feature pictures and background feature pictures are collectively referred to as feature pictures. Since the size of the feature picture in the convolution calculation of the convolutional neural network will affect the size of the converted image matrix, the embodiment of the present application determines the largest feature picture among multiple feature pictures to measure the performance of the terminal device. Then by processing the color values of the three primary colors (Red, Green, Blue abbreviation, RGB) corresponding to each pixel in the largest feature image, the color gamut value of the largest feature image can be obtained, and then according to the maximum feature image size and color gamut value With the obtained central processing unit (CPU) idle frequency, the performance test value to measure the performance of the terminal device can be determined. By comparing the performance test value with the preset performance test threshold, if the obtained performance test value is greater than or equal to The preset performance test threshold indicates that the performance of the terminal device does not meet the requirements. By adopting the embodiments of the present application, the performance of terminal equipment can be tested, the diversity of performance testing methods is increased, the operational flexibility of performance testing is improved, and the applicability is high.
下面将结合图1至图4分别对本申请实施例提供的方法及相关装置分别进 行详细说明。本申请实施例提供的方法中可包括用于获取CPU空闲频率、获取测试视频中的M张特征图片并确定最大特征图片、提取最大特征图片的各个像素点分别对应的RGB色值、基于RGB色值确定上述最大特征图片的色域值以及确定终端设备的性能等数据处理阶段。其中,上述各个数据处理阶段的实现方式可参见如下图1所示的实现方式。The methods and related devices provided in the embodiments of the present application will be described in detail below with reference to FIGS. 1 to 4. The method provided in the embodiments of the application may include methods for obtaining CPU idle frequency, obtaining M feature pictures in the test video and determining the largest feature picture, extracting the RGB color value corresponding to each pixel of the largest feature picture, and based on RGB color. The value determines the color gamut value of the above-mentioned largest feature picture and determines the performance of the terminal device and other data processing stages. Among them, the implementation of the above-mentioned data processing stages can be referred to the implementation shown in Figure 1 below.
参见图1,图1为本申请实施例提供的终端设备性能测试方法的流程示意图。本申请实施例提供的方法可以包括如下步骤101至104:Refer to FIG. 1, which is a schematic flowchart of a method for testing the performance of a terminal device according to an embodiment of the application. The method provided in the embodiment of the present application may include the following steps 101 to 104:
101、获取待测试的终端设备的中央处理器空闲频率。101. Obtain the idle frequency of the central processing unit of the terminal device to be tested.
在一些可行的实施方式中,睿频是指当打开或启动一个应用程序后,处理器会自动加速到合适的频率,而原来的运行速度会提升10%~20%以保证应用程序流畅运行的一种技术。不难理解的是,终端设备在应用程序处于睿频状态下的CPU睿频频率与终端设备的CPU最大频率之间仍有一段距离。在本申请实施例中,视频审核系统可以是基于浏览器开发的一个web视频审核网页,而用于图片特征提取处理的特征提取算法可以是被封装成的一个浏览器插件,浏览器插件和应用程序都是用于实现某项特定功能的,不同的是浏览器插件依赖于浏览器而应用程序依赖于终端设备,因此我们可以将浏览器插件理解成一种特殊的应用程序。于是,可在终端设备通过浏览器打开web视频审核网页,但还未利用浏览器插件进行拆帧获取图片并进行图片特征提取处理时获取CPU睿频频率。可选的,视频审核系统也可以是一个客户端或者应用程序,在打开用于视频审核的客户端或应用程序,但还未进行拆帧获取图片并进行图片特征提取处理时获取CPU睿频频率。再通过获取CPU最大频率,并将CPU最大频率与CPU睿频频率相减可得到CPU最大频率与CPU睿频频率之间的CPU频率差,该CPU频率差即为CPU空闲频率。换句话说,在本申请实施例中,CPU空闲频率是指可用于执行图片特征提取处理的频率。In some feasible implementations, Turbo Frequency means that when an application is opened or started, the processor will automatically accelerate to the appropriate frequency, and the original operating speed will be increased by 10% to 20% to ensure smooth running of the application A technology. It is not difficult to understand that there is still a distance between the CPU turbo frequency of the terminal device when the application is in the turbo frequency state and the maximum CPU frequency of the terminal device. In the embodiment of the application, the video review system may be a web video review webpage developed based on a browser, and the feature extraction algorithm used for image feature extraction processing may be a browser plug-in, browser plug-in and application packaged into Programs are used to implement a specific function. The difference is that browser plug-ins depend on the browser and applications rely on terminal devices. Therefore, we can understand browser plug-ins as a special application. Therefore, the CPU turbo frequency can be obtained when the terminal device opens the web video review webpage through the browser, but has not yet used the browser plug-in to unframe to obtain the picture and perform the picture feature extraction process. Optionally, the video review system can also be a client or application. The CPU turbo frequency is obtained when the client or application for video review is opened, but the picture has not been unframed to obtain the picture and the picture feature extraction process is performed. . By obtaining the maximum CPU frequency, and subtracting the maximum CPU frequency from the CPU turbo frequency, the CPU frequency difference between the CPU maximum frequency and the CPU turbo frequency can be obtained. The CPU frequency difference is the CPU idle frequency. In other words, in this embodiment of the present application, the CPU idle frequency refers to the frequency that can be used to perform image feature extraction processing.
102、获取测试视频中的M张特征图片,并确定上述M张特征图片中的最大特征图片及最大特征图片尺寸。102. Obtain M feature pictures in the test video, and determine the largest feature picture and the largest feature picture size among the M feature pictures.
在一些可行的实施方式中,测试视频可以是拍摄的模拟客户与客服远程视频进行交互操作的过程,也可以是通过摄像头拍摄的真实业务场景下客户与客服远程视频进行实时交互操作的过程,例如客户与客服远程视频,完成贷款审核的过程。在本申请实施例中,测试视频是事先拍摄的模拟客户与客服远程视 频进行交互操作的过程,且是存储在终端设备中或者外部储存器中的一段测试视频。被测试的终端设备通过读取相同的一段测试视频进行处理可以避免由于视频特征不同而导致被测试的终端设备的性能不准确的问题。可以理解的是,视频其实是由一帧一帧的图像连续播放而成的,由于人类眼睛的特殊生理结构,如果人眼睛所看画面之帧率高于16的时候,就会认为是连贯的,此现象称之为视觉停留。这也就是为什么电影胶片是一格一格拍摄出来,然后快速播放的。在本申请实施例中,可设定在测试视频进行到某个时间点时,提取测试视频中的N帧图片进行特征提取处理,一般而言,由于真实场景下拍摄的测试视频从开始到稳定需要一段时间过渡,于是可在测试视频进行到1分钟时提取N帧图片进行处理。不难理解的是,特征提取处理所提取的特征包括用户面部特征和/或背景特征,其中,用户面部特征包括用户的眼睛、鼻子、嘴巴等,背景特征包括周围环境特征,在本申请实施例中,为方便描述,将提取的用户面部特征图片和背景特征图片统称为特征图片。通过对N帧图片中的每帧图片分别进行特征提取处理,可得到N帧图片中的M张特征图片,其中,M张特征图片为从N帧图片中提取的特征图片的集合。可选的,确定M张特征图片中的最大特征图片及最大特征图片尺寸时,可先获取M张特征图片中的每张特征图片分别对应的特征图片尺寸,然后将各个特征图片尺寸进行升序或降序排列,最后基于排序结果确定最大特征图片尺寸及最大特征图片尺寸对应的最大特征图片。In some feasible implementations, the test video can be the process of interactive operation between the simulated customer and the remote video of the customer service, or the process of real-time interactive operation between the customer and the remote video of the customer service under the real business scene captured by the camera, for example Remote video of customers and customer service to complete the loan review process. In the embodiment of the present application, the test video is a pre-shooting process of simulating the interaction between the customer and the remote video of the customer service, and is a test video stored in the terminal device or in an external storage. The terminal device under test can avoid the problem of inaccurate performance of the terminal device under test due to different video characteristics by reading the same piece of test video for processing. It is understandable that the video is actually played continuously one frame after another. Due to the special physiological structure of the human eye, if the frame rate of the picture seen by the human eye is higher than 16, it will be regarded as coherent. , This phenomenon is called visual stay. This is why the movie film is shot frame by frame and then played quickly. In the embodiment of this application, it can be set to extract N frames of pictures in the test video for feature extraction processing when the test video progresses to a certain point in time. Generally speaking, because the test video shot in the real scene is from the beginning to the stable It takes a period of transition, so N frames of pictures can be extracted for processing when the test video reaches 1 minute. It is not difficult to understand that the features extracted by the feature extraction process include user facial features and/or background features, where the user’s facial features include the user’s eyes, nose, mouth, etc., and the background features include surrounding environment features. In order to facilitate description, the extracted user facial feature pictures and background feature pictures are collectively referred to as feature pictures. By performing feature extraction processing on each of the N frames of pictures separately, M feature pictures in the N frames of pictures can be obtained, where the M feature pictures are a set of feature pictures extracted from the N frames of pictures. Optionally, when determining the maximum feature picture and the maximum feature picture size in M feature pictures, first obtain the feature picture size corresponding to each feature picture in the M feature pictures, and then sort the size of each feature picture in ascending order or Sort in descending order, and finally determine the largest feature picture size and the largest feature picture corresponding to the largest feature picture size based on the sorting result.
在一些可行的实施方式中,人脸特征提取的过程中最消耗终端设备资源的环节是利用卷积神经网络进行卷积计算的过程。其中,卷积神经网络算法的主要计算方式为将特征图片转化成图像矩阵后再和一个固定的矩阵(卷积核)进行运算。不难理解的是,由于特征图片越大,由特征图片转化而来的图像矩阵也会越大,所以特征图片的大小会呈指数型增长影响卷积的计算量。在本申请实施例中,可通过从M张特征图片中确定最大特征图片及最大特征图片尺寸后,并利用最大特征图片及最大特征图片尺寸来衡量终端设备的性能。In some feasible implementation manners, the most resource-consuming link in the process of facial feature extraction is the process of using convolutional neural networks to perform convolution calculations. Among them, the main calculation method of the convolutional neural network algorithm is to convert the feature picture into an image matrix and then perform operations with a fixed matrix (convolution kernel). It is not difficult to understand that the larger the feature picture, the larger the image matrix converted from the feature picture, so the size of the feature picture will increase exponentially and affect the amount of calculation of convolution. In the embodiment of the present application, after determining the maximum feature picture and the maximum feature picture size from M feature pictures, the maximum feature picture and the maximum feature picture size can be used to measure the performance of the terminal device.
103、提取组成上述最大特征图片的各个像素点分别对应的RGB色值,并根据各个RGB色值确定上述最大特征图片的色域值。103. Extract the RGB color values corresponding to each pixel point constituting the largest feature picture, and determine the color gamut value of the largest feature picture according to each RGB color value.
在一些可行的实施方式中,由于特征图片是彩色图片,因此由特征图片转化成的图像矩阵中会涉及每个像素点的RGB色值,如果特征图片颜色非常丰 富,那么由特征图片转化成图像矩阵后再进行卷积计算得到的结果也就越离散。因此可将组成最大特征图片的所有像素点分别对应的RGB色值提取出来,并根据各个RGB色值确定最大特征图片的色域值。其中,RGB色值是十六进制RGB色值,因此可先将各个RGB色值分别由十六进制RGB色值转换成十进制RGB色值以得到各个RGB色值对应的各个十进制RGB色值,再计算各个十进制RGB色值的十进制RGB色值平均值,通过将十进制RGB色值平均值转换成二进制RGB色值,可确定二进制RGB色值的字长,并将字长确定为最大特征图片的色域值。可选的,也可将各个RGB色值直接进行十六进制的平均值计算得到十六进制RGB色值平均值,通过将十六进制RGB色值平均值转换成二进制RGB色值,可确定二进制RGB色值的字长,然后将字长确定为最大特征图片的色域值。In some feasible implementations, since the feature picture is a color picture, the image matrix converted from the feature picture will involve the RGB color value of each pixel. If the feature picture has very rich colors, then the feature picture is converted into an image The result of convolution calculation after matrix is more discrete. Therefore, the RGB color values corresponding to all the pixels constituting the largest feature picture can be extracted, and the color gamut value of the largest feature picture can be determined according to each RGB color value. Among them, the RGB color value is the hexadecimal RGB color value, so each RGB color value can be converted from the hexadecimal RGB color value to the decimal RGB color value to obtain the decimal RGB color value corresponding to each RGB color value. , And then calculate the average value of the decimal RGB color value of each decimal RGB color value, by converting the average value of the decimal RGB color value into a binary RGB color value, the word length of the binary RGB color value can be determined, and the word length is determined as the largest feature picture The color gamut value. Optionally, the hexadecimal average value of each RGB color value can be directly calculated to obtain the hexadecimal RGB color value average value, and the hexadecimal RGB color value average value can be converted into binary RGB color value. The word length of the binary RGB color value can be determined, and then the word length can be determined as the color gamut value of the largest feature picture.
可选的,在一些可行的实施方式中,也可将组成最大特征图片的所有像素点分别对应的RGB色值提取出来后进行升序或者降序排列后,提取出排序后的各个RGB色值中的中位数,通过将上述中位数转换成二进制的中位数后,可将二进制的中位数的字长确定为最大特征图片的色域值。Optionally, in some feasible implementation manners, the RGB color values corresponding to all the pixels that make up the largest feature picture can also be extracted and arranged in ascending or descending order, and then the sorted RGB color values are extracted. The median, after converting the median into a binary median, the word length of the binary median can be determined as the color gamut value of the largest feature picture.
举例来说,参见图2,图2是本申请实施例提供的终端设备性能测试方法的应用场景示意图。假设在测试视频进行到一分钟时,提取测试视频中的5帧图片用于特征提取处理,其中每帧图片中假设都提取到4张特征图片,那么5帧图片一共有20张特征图片,从这20张特征图片中可确定出20张特征图片中的最大特征图片,这里,最大特征图片是指20张特征图片中图片尺寸最大的特征图片。由于特征图片是彩色图片且卷积计算是将特征图片转化成图像矩阵后进行的色值乘算,因此特征图片越大占用的资源也就越多,特征图片的颜色越丰富其进行卷积计算后得到的值也越离散。于是,本申请实施例采用最大特征图片来衡量卷积计算占用的终端设备资源,进而衡量终端设备的性能。假设最大特征图片是第一帧图片中的特征图片1-1,特征图片1-1中包括4个像素点,其中,这4个像素点的RGB色值分别是4169E1、292421、C0C0C0和E3CF57。将上述4个像素点的RGB色值分别由十六进制RGB色值转换成十进制RGB色值可以得到各个RGB色值对应的各个十进制RGB色值为4286945、2696225、12632256和14929751。计算各个十进制RGB色值的十进制RGB色值平均值,可得到十进制RGB色值平均值为8636294,将十进制 RGB色值平均值8636294转换成二进制RGB色值,可得到二进制RGB色值为100000111100011110000110,其中,二进制RGB色值的字长是24,即最大特征图片的色域值为24。For example, refer to FIG. 2, which is a schematic diagram of an application scenario of the terminal device performance testing method provided by an embodiment of the present application. Suppose that when the test video progresses to one minute, 5 frames of pictures in the test video are extracted for feature extraction processing, and each frame of pictures assumes that 4 feature pictures are extracted, then there are a total of 20 feature pictures in 5 frames of pictures, from Among these 20 feature pictures, the largest feature picture among the 20 feature pictures can be determined. Here, the largest feature picture refers to the feature picture with the largest picture size among the 20 feature pictures. Since the feature image is a color image and the convolution calculation is the color value multiplication after the feature image is converted into an image matrix, the larger the feature image, the more resources it takes, and the richer the color of the feature image, it performs convolution calculation The values obtained later are also more discrete. Therefore, in the embodiment of the present application, the largest feature picture is used to measure the resource of the terminal device occupied by the convolution calculation, and then the performance of the terminal device is measured. Assume that the largest feature picture is the feature picture 1-1 in the first frame of picture, and the feature picture 1-1 includes 4 pixels, where the RGB color values of the 4 pixels are 4169E1, 292421, COC0C0, and E3CF57, respectively. Converting the RGB color values of the above four pixels from the hexadecimal RGB color values to the decimal RGB color values can obtain the respective decimal RGB color values corresponding to each RGB color value of 4289945, 2696225, 12632256, and 14929751. Calculate the average value of the decimal RGB color value of each decimal RGB color value, the average value of the decimal RGB color value can be obtained as 8636294, and the average value of the decimal RGB color value 8636294 is converted into the binary RGB color value, and the binary RGB color value can be obtained as 100000111100011110000110, where , The word length of the binary RGB color value is 24, that is, the color gamut value of the largest feature image is 24.
又举例来说,假设在测试视频进行到一分钟时,提取测试视频中的5帧图片用于特征提取处理,其中每帧图片中假设都提取到4张特征图片,那么5帧图片一共有20张特征图片,从这20张特征图片中可确定出20张特征图片中的最大特征图片,这里,最大特征图片是指20张特征图片中尺寸最大的特征图片。由于特征图片是彩色图片且卷积计算是将特征图片转化成图像矩阵后进行的色值乘算,因此特征图片越大占用的资源也就越多,特征图片的颜色越丰富其计算得到的值也越离散。于是,本申请实施例可用最大特征图片来衡量卷积计算占用的终端设备资源,进而衡量终端设备的性能。假设最大特征图片是第一帧图片中的特征图片1-1,特征图片1-1中包括4个像素点,其中,这4个像素点的RGB色值分别是4169E1、292421、C0C0C0和E3CF57。将上述4个像素点的RGB色值分别由十六进制RGB色值转换成十进制RGB色值可以得到各个RGB色值对应的各个十进制RGB色值,即4286945、2696225、12632256和14929751。将组成最大特征图片的所有像素点分别对应的RGB色值提取出来后进行升序排列可得到排列顺序为2696225、4286945、12632256、14929751,提取排序后的各个RGB色值的中位数可得到中位数为8459600,通过将上述中位数转换成二进制的中位数可得到100000010001010101010000,其中,二进制的中位数的字长是24,即最大特征图片的色域值为24。For another example, suppose that when the test video reaches one minute, 5 frames of pictures in the test video are extracted for feature extraction processing, and each frame of pictures assumes that 4 feature pictures are extracted, so there are a total of 20 pictures in 5 frames. Feature pictures, from these 20 feature pictures, the largest feature picture in the 20 feature pictures can be determined. Here, the largest feature picture refers to the feature picture with the largest size among the 20 feature pictures. Since the feature image is a color image and the convolution calculation is the color value multiplication after the feature image is converted into an image matrix, the larger the feature image, the more resources it takes, and the more the color of the feature image, the more the calculated value Also more discrete. Therefore, in the embodiment of the present application, the largest feature picture may be used to measure the terminal device resources occupied by the convolution calculation, and then to measure the performance of the terminal device. Assume that the largest feature picture is the feature picture 1-1 in the first frame of picture, and the feature picture 1-1 includes 4 pixels, where the RGB color values of the 4 pixels are 4169E1, 292421, COC0C0, and E3CF57, respectively. Converting the RGB color values of the above four pixels from the hexadecimal RGB color values to the decimal RGB color values can obtain the decimal RGB color values corresponding to each RGB color value, namely 4289945, 2696225, 12632256 and 14929751. Extract the RGB color values corresponding to all the pixels that make up the largest feature image and arrange them in ascending order to get the arrangement order as 2696225, 4289945, 12632256, 14929751, and extract the median of each RGB color value after sorting to get the median The number is 8459600, and 100000010001010101010000 can be obtained by converting the above-mentioned median into a binary median, where the word length of the binary median is 24, that is, the color gamut value of the largest feature picture is 24.
104、对上述最大特征图片尺寸、上述色域值和上述CPU空闲频率进行计算得到性能测试值,并根据上述性能测试值确定上述终端设备的性能。104. Calculate the aforementioned maximum characteristic picture size, the aforementioned color gamut value, and the aforementioned CPU idle frequency to obtain a performance test value, and determine the performance of the aforementioned terminal device according to the aforementioned performance test value.
在一些可行的实施方式中,确定最大特征图片尺寸的i次幂与色域值的乘积,然后将该乘积与中央处理器空闲频率的商确定为终端设备的性能测试值。若性能测试值小于预设性能测试阈值,则确定终端设备的性能满足要求,其中i为大于1的整数。在本申请实施例中,性能测试值可以是最大特征图片尺寸的平方乘以色域值再除以CPU空闲频率后计算得到的值,若性能测试值大于或者等于预设性能测试阈值,则可确定终端设备的性能不满足要求。In some feasible implementation manners, the product of the i-th power of the maximum feature picture size and the color gamut value is determined, and then the quotient of the product and the idle frequency of the central processing unit is determined as the performance test value of the terminal device. If the performance test value is less than the preset performance test threshold, it is determined that the performance of the terminal device meets the requirements, where i is an integer greater than 1. In the embodiment of the present application, the performance test value may be the value calculated by multiplying the maximum feature image size by the color gamut value and dividing by the CPU idle frequency. If the performance test value is greater than or equal to the preset performance test threshold, it may be Determine that the performance of the terminal equipment does not meet the requirements.
可选的,在一些可行的实施方式中,终端设备在接收测试视频后,根据预设的提取时间可从测试视频中提取多帧图片,然后可对多帧图片中的每帧图片 进行特征提取处理,其中根据特征提取算法提取的特征包括提取每帧图片中的用户面部特征和/或背景特征。不难理解的是,针对测试视频的处理会占用终端设备的硬件资源,其中,终端设备的硬件资源包括各项性能参数,其中,各项性能参数包括但不限于CPU占用率、内存占用率、图形处理器(Graphics Processing Unit,GPU)占有率等,具体可根据实际应用场景确定,在此不做限制。通过将获取的各项性能参数的值与对应的各项性能参数的阈值进行比较,若CPU占用率、内存占用率和/或图形处理器GPU占用率分别大于或者等于对应的CPU占用率阈值、内存占用率阈值和/或图形处理器GPU占用率阈值,可确定终端设备的性能不满足要求。Optionally, in some feasible implementation manners, after receiving the test video, the terminal device can extract multiple frames of pictures from the test video according to a preset extraction time, and then can perform feature extraction on each frame of the multiple frames of pictures Processing, wherein the features extracted according to the feature extraction algorithm include extracting user facial features and/or background features in each frame of picture. It is not difficult to understand that the processing of the test video will occupy the hardware resources of the terminal device. Among them, the hardware resources of the terminal device include various performance parameters. Among them, various performance parameters include but are not limited to CPU occupancy rate, memory occupancy rate, The graphics processor (Graphics Processing Unit, GPU) occupancy rate, etc., can be specifically determined according to actual application scenarios, and there is no restriction here. By comparing the values of the acquired performance parameters with the thresholds of the corresponding performance parameters, if the CPU occupancy rate, memory occupancy rate and/or graphics processor GPU occupancy rate are respectively greater than or equal to the corresponding CPU occupancy threshold, The memory occupancy threshold and/or the graphics processor GPU occupancy threshold can determine that the performance of the terminal device does not meet the requirements.
在本申请实施例中,终端设备在获取测试视频后,根据预设的提取时间可从测试视频中提取多帧图片,并对提取的多帧图片中的每帧图片进行特征提取处理可得到多张特征图片,其中提取的每帧图片中的特征包括用户面部特征和/或背景特征,为方便描述,将提取的用户面部特征图片和背景特征图片统称为特征图片。由于卷积神经网络的卷积计算中特征图片的大小会影响转化成的图像矩阵的大小,因此本申请实施例通过确定多张特征图片中的最大特征图片用于衡量终端设备的性能。再通过对最大特征图片中各个像素点对应的RGB色值进行处理,可得到最大特征图片的色域值,进而根据最大特征图片尺寸、色域值和获取的CPU空闲频率,可确定衡量终端设备性能的性能测试值,通过将性能测试值与预设性能测试阈值进行比较,若得到的性能测试值大于或者等于预设性能测试阈值,说明终端设备的性能不满足要求。采用本申请实施例,可测试终端设备的性能,增加了性能测试方式的多样性、提高了性能测试的操作灵活性,适用性高。In the embodiment of the present application, after the terminal device obtains the test video, it can extract multiple frames of pictures from the test video according to the preset extraction time, and perform feature extraction processing on each of the extracted multiple frames to obtain multiple images. Feature pictures, where the extracted features in each frame of pictures include user facial features and/or background features. For ease of description, the extracted user facial feature pictures and background feature pictures are collectively referred to as feature pictures. Since the size of the feature picture in the convolution calculation of the convolutional neural network will affect the size of the converted image matrix, the embodiment of the present application determines the largest feature picture among multiple feature pictures to measure the performance of the terminal device. Then by processing the RGB color value corresponding to each pixel in the largest feature picture, the color gamut value of the largest feature picture can be obtained, and then according to the maximum feature picture size, color gamut value and the obtained CPU idle frequency, the terminal device can be determined to be measured The performance test value of performance is compared with the preset performance test threshold. If the obtained performance test value is greater than or equal to the preset performance test threshold, it indicates that the performance of the terminal device does not meet the requirements. By adopting the embodiments of the present application, the performance of terminal equipment can be tested, the diversity of performance testing methods is increased, the operational flexibility of performance testing is improved, and the applicability is high.
参见图3,图3是本申请实施例提供的终端设备性能测试装置的结构示意图。本申请实施例提供的终端设备性能测试的装置包括:Refer to FIG. 3, which is a schematic structural diagram of a terminal equipment performance testing apparatus provided by an embodiment of the present application. The terminal equipment performance test apparatus provided by the embodiment of the present application includes:
频率获取模块31,用于获取待测试的终端设备的CPU空闲频率,上述CPU空闲频率为用于执行图片特征提取的空闲频率;The frequency acquisition module 31 is configured to acquire the CPU idle frequency of the terminal device to be tested, and the CPU idle frequency is the idle frequency used to perform image feature extraction;
图片获取模块32,用于获取测试视频中的M张特征图片,并确定上述M张特征图片中的最大特征图片及最大特征图片尺寸,其中,M为大于0的整数,上述最大特征图片为上述M张特征图片中尺寸最大的特征图片;The picture acquisition module 32 is used to acquire M feature pictures in the test video, and determine the largest feature picture and the largest feature picture size among the M feature pictures, where M is an integer greater than 0, and the largest feature picture is the above The feature picture with the largest size among the M feature pictures;
数据确定模块33,用于提取组成上述最大特征图片的各个像素点分别对 应的RGB色值,并根据各个RGB色值确定上述最大特征图片的色域值;The data determining module 33 is configured to extract the RGB color values corresponding to the respective pixels constituting the largest feature picture, and determine the color gamut value of the largest feature picture according to each RGB color value;
性能确定模块34,用于对上述最大特征图片尺寸、上述色域值和上述CPU空闲频率进行计算得到性能测试值,并根据上述性能测试值确定上述终端设备的性能。The performance determining module 34 is configured to calculate the maximum feature image size, the color gamut value, and the CPU idle frequency to obtain a performance test value, and determine the performance of the terminal device according to the performance test value.
在一些可行的实施方式中,上述频率获取模块31用于:In some feasible implementation manners, the aforementioned frequency acquisition module 31 is used to:
获取CPU最大频率和CPU睿频频率,将上述CPU最大频率与上述CPU睿频频率之间的CPU频率差确定为CPU空闲频率。Obtain the maximum CPU frequency and the CPU core frequency, and determine the CPU frequency difference between the above CPU maximum frequency and the above CPU core frequency as the CPU idle frequency.
在一些可行的实施方式中,上述图片获取模块32用于:In some feasible implementation manners, the above-mentioned picture acquisition module 32 is used to:
提取测试视频中的N帧图片,并对上述N帧图片中的每帧图片进行特征提取处理以得到上述N帧图片中的M张特征图片,其中,上述M张特征图片为从上述N帧图片中提取的面部特征图片和/或背景特征图片的集合。Extract N frames of pictures from the test video, and perform feature extraction processing on each of the above N frames of pictures to obtain M feature pictures in the above N frames of pictures, where the M feature pictures are from the above N frames of pictures A collection of facial feature pictures and/or background feature pictures extracted from.
在一些可行的实施方式中,上述RGB色值是十六进制RGB色值;上述数据确定模块33用于:In some feasible implementation manners, the aforementioned RGB color values are hexadecimal RGB color values; the aforementioned data determining module 33 is used for:
将各个RGB色值分别由十六进制RGB色值转换成十进制RGB色值以得到上述各个RGB色值对应的各个十进制RGB色值,并计算上述各个十进制RGB色值的十进制RGB色值平均值;Convert each RGB color value from a hexadecimal RGB color value to a decimal RGB color value to obtain each decimal RGB color value corresponding to each of the above-mentioned RGB color values, and calculate the average value of the decimal RGB color value of each of the above-mentioned decimal RGB color values ;
将上述十进制RGB色值平均值转换成二进制RGB色值,确定上述二进制RGB色值的字长,并将上述字长确定为色域值。The average value of the decimal RGB color value is converted into a binary RGB color value, the word length of the binary RGB color value is determined, and the word length is determined as the color gamut value.
在一些可行的实施方式中,上述数据确定模块33用于:In some feasible implementation manners, the aforementioned data determination module 33 is used to:
将各个RGB色值分别由十六进制RGB色值转换成十进制RGB色值以得到上述各个RGB色值对应的各个十进制RGB色值;Converting each RGB color value from a hexadecimal RGB color value into a decimal RGB color value to obtain each decimal RGB color value corresponding to each of the above-mentioned RGB color values;
提取上述各个十进制RGB色值中的RGB色值中位数,并将上述RGB色值中位数转换成二进制RGB色值;Extracting the median of the RGB color values in each of the aforementioned decimal RGB color values, and converting the median of the aforementioned RGB color values into binary RGB color values;
确定上述二进制RGB色值的字长,并将上述字长确定为色域值。The word length of the binary RGB color value is determined, and the word length is determined as the color gamut value.
在一些可行的实施方式中,上述性能确定模块34用于:In some feasible implementation manners, the aforementioned performance determining module 34 is used to:
确定上述最大特征图片尺寸的i次幂与上述色域值的乘积,其中,i为大于1的整数;Determine the product of the i-th power of the maximum feature image size and the color gamut value, where i is an integer greater than 1;
将上述乘积与上述中央处理器空闲频率的商确定为上述终端设备的性能测试值;Determining the quotient of the product and the idle frequency of the central processor as the performance test value of the terminal device;
若上述性能测试值大于或者等于预设性能测试阈值,则确定上述终端设备 的性能不满足要求。If the above performance test value is greater than or equal to the preset performance test threshold, it is determined that the performance of the above terminal device does not meet the requirements.
在一些可行的实施方式中,上述图片获取模块32用于:In some feasible implementation manners, the above-mentioned picture acquisition module 32 is used to:
获取上述M张特征图片中的每张特征图片分别对应的特征图片尺寸;Acquiring the feature picture size corresponding to each of the above M feature pictures;
将各个特征图片尺寸进行排序,并基于排序结果确定最大特征图片尺寸及上述最大特征图片尺寸对应的最大特征图片。Sort each feature picture size, and determine the maximum feature picture size and the maximum feature picture corresponding to the above-mentioned maximum feature picture size based on the sorting result.
具体实现中,上述终端设备性能测试的装置可通过其内置的各个功能模块执行如上述图1中各个步骤所提供的实现方式。例如,上述频率获取模块31可用于执行上述各个步骤中获取CPU睿频频率、获取CPU最大频率以及确定CPU空闲频率等实现方式,具体可参见上述各个步骤所提供的实现方式,在此不再赘述。上述图片获取模块32可用于执行上述各个步骤中提取测试视频中的图片、提取图片中的特征图片、确定最大特征图片等相关步骤所描述的实现方式,具体可参见上述各个步骤所提供的实现方式,在此不再赘述。上述数据确定模块33可用于执行上述各个步骤中提取最大特征图片的RGB色值以及基于各个RGB色值确定色域值等实现方式,具体可参见上述各个步骤所提供的实现方式,在此不再赘述。上述性能确定模块34可用于执行上述各个步骤中基于最大特征图片尺寸、色域值和CPU空闲频率确定终端设备性能等实现方式,具体可参见上述各个步骤所提供的实现方式,在此不再赘述。In a specific implementation, the above-mentioned terminal equipment performance testing apparatus can execute the implementation manners provided in the above-mentioned steps in FIG. 1 through various built-in functional modules. For example, the aforementioned frequency acquisition module 31 can be used to perform the implementation methods of acquiring the CPU core frequency, acquiring the maximum CPU frequency, and determining the idle frequency of the CPU in the aforementioned steps. For details, please refer to the implementation methods provided in the aforementioned steps, and will not be repeated here. . The above-mentioned picture acquisition module 32 can be used to perform the implementation described in the relevant steps of extracting pictures in the test video, extracting feature pictures in the pictures, and determining the largest feature picture in the above steps. For details, please refer to the implementation manners provided in the above steps. , I won’t repeat it here. The above-mentioned data determination module 33 can be used to perform implementation methods such as extracting the RGB color value of the largest feature picture in the above steps and determining the color gamut value based on each RGB color value. For details, please refer to the implementation methods provided in the above steps. Repeat. The above-mentioned performance determining module 34 can be used to perform the above-mentioned various steps in the implementation of determining the performance of the terminal device based on the maximum feature picture size, color gamut value, and CPU idle frequency. For details, please refer to the implementation methods provided in the above-mentioned steps, which will not be repeated here. .
在本申请实施例中,终端设备性能测试的装置可基于获取的测试视频,根据预设的提取时间可从测试视频中提取多帧图片,并对提取的多帧图片中的每帧图片进行特征提取处理可得到多张特征图片,其中提取的每帧图片中的特征包括用户面部特征和/或背景特征,为方便描述,将提取的用户面部特征图片和背景特征图片统称为特征图片。由于卷积神经网络的卷积计算中特征图片的大小会影响转化成的图像矩阵的大小,因此本申请实施例通过确定多张特征图片中的最大特征图片用于衡量终端设备的性能。再通过对最大特征图片中各个像素点对应的RGB色值进行处理,可得到最大特征图片的色域值,进而根据最大特征图片尺寸、色域值和获取的CPU空闲频率,可确定衡量终端设备性能的性能测试值,通过将性能测试值与预设性能测试阈值进行比较,若得到的性能测试值大于或者等于预设性能测试阈值,说明终端设备的性能不满足要求。采用本申请实施例,可测试终端设备的性能,增加性能测试方式的多样性,提高终端设备性能测试的准确性,灵活性高,适用范围广。In the embodiment of the present application, the terminal device performance test apparatus can be based on the acquired test video, and can extract multiple frames of pictures from the test video according to a preset extraction time, and perform features on each frame of the extracted multiple frames of pictures The extraction process can obtain multiple feature pictures, where the extracted features in each frame of pictures include user facial features and/or background features. For the convenience of description, the extracted user facial feature pictures and background feature pictures are collectively referred to as feature pictures. Since the size of the feature picture in the convolution calculation of the convolutional neural network will affect the size of the converted image matrix, the embodiment of the present application determines the largest feature picture among multiple feature pictures to measure the performance of the terminal device. Then by processing the RGB color value corresponding to each pixel in the largest feature picture, the color gamut value of the largest feature picture can be obtained, and then according to the maximum feature picture size, color gamut value and the obtained CPU idle frequency, the terminal device can be determined to be measured The performance test value of performance is compared with the preset performance test threshold. If the obtained performance test value is greater than or equal to the preset performance test threshold, it indicates that the performance of the terminal device does not meet the requirements. By adopting the embodiments of the present application, the performance of the terminal equipment can be tested, the diversity of performance testing methods is increased, the accuracy of the performance testing of the terminal equipment is improved, the flexibility is high, and the application range is wide.
参见图4,图4是本申请实施例提供的终端设备的结构示意图。如图4所示,本实施例中的终端设备可以包括:一个或多个处理器401和存储器402。上述处理器401和存储器402通过总线403连接。存储器402用于存储计算机程序,该计算机程序包括程序指令,处理器401用于执行存储器402存储的程序指令,执行如下操作:Refer to FIG. 4, which is a schematic structural diagram of a terminal device provided by an embodiment of the present application. As shown in FIG. 4, the terminal device in this embodiment may include: one or more processors 401 and a memory 402. The aforementioned processor 401 and memory 402 are connected through a bus 403. The memory 402 is configured to store a computer program, and the computer program includes program instructions. The processor 401 is configured to execute the program instructions stored in the memory 402, and perform the following operations:
获取待测试的终端设备的CPU空闲频率,上述CPU空闲频率为用于执行图片特征提取的空闲频率;Obtain the CPU idle frequency of the terminal device to be tested, where the CPU idle frequency is the idle frequency used to perform image feature extraction;
获取测试视频中的M张特征图片,并确定上述M张特征图片中的最大特征图片及最大特征图片尺寸,其中,M为大于0的整数,上述最大特征图片为上述M张特征图片中尺寸最大的特征图片;Obtain M feature pictures in the test video, and determine the largest feature picture and the largest feature picture size among the above M feature pictures, where M is an integer greater than 0, and the above largest feature picture is the largest size among the above M feature pictures Feature picture of
提取组成上述最大特征图片的各个像素点分别对应的RGB色值,并根据各个RGB色值确定上述最大特征图片的色域值;Extracting the RGB color values corresponding to each pixel point constituting the largest feature picture, and determining the color gamut value of the largest feature picture according to each RGB color value;
对上述最大特征图片尺寸、上述色域值和上述CPU空闲频率进行计算得到性能测试值,并根据上述性能测试值确定上述终端设备的性能。The performance test value is obtained by calculating the maximum feature picture size, the color gamut value, and the CPU idle frequency, and the performance of the terminal device is determined according to the performance test value.
在一些可行的实施方式中,上述处理器401用于:In some feasible implementation manners, the aforementioned processor 401 is configured to:
获取CPU最大频率和CPU睿频频率,将上述CPU最大频率与上述CPU睿频频率之间的CPU频率差确定为CPU空闲频率。Obtain the maximum CPU frequency and the CPU core frequency, and determine the CPU frequency difference between the above CPU maximum frequency and the above CPU core frequency as the CPU idle frequency.
在一些可行的实施方式中,上述处理器401用于:In some feasible implementation manners, the aforementioned processor 401 is configured to:
提取测试视频中的N帧图片,并对上述N帧图片中的每帧图片进行特征提取处理以得到上述N帧图片中的M张特征图片,其中,上述M张特征图片为从上述N帧图片中提取的面部特征图片和/或背景特征图片的集合。Extract N frames of pictures from the test video, and perform feature extraction processing on each of the above N frames of pictures to obtain M feature pictures in the above N frames of pictures, where the M feature pictures are from the above N frames of pictures A collection of facial feature pictures and/or background feature pictures extracted from.
在一些可行的实施方式中,上述RGB色值是十六进制RGB色值;上述处理器401用于:In some feasible implementation manners, the aforementioned RGB color value is a hexadecimal RGB color value; the aforementioned processor 401 is configured to:
将各个RGB色值分别由十六进制RGB色值转换成十进制RGB色值以得到上述各个RGB色值对应的各个十进制RGB色值,并计算上述各个十进制RGB色值的十进制RGB色值平均值;Convert each RGB color value from a hexadecimal RGB color value to a decimal RGB color value to obtain each decimal RGB color value corresponding to each of the above-mentioned RGB color values, and calculate the average value of the decimal RGB color value of each of the above-mentioned decimal RGB color values ;
将上述十进制RGB色值平均值转换成二进制RGB色值,确定上述二进制RGB色值的字长,并将上述字长确定为色域值。The average value of the decimal RGB color value is converted into a binary RGB color value, the word length of the binary RGB color value is determined, and the word length is determined as the color gamut value.
在一些可行的实施方式中,上述处理器401用于:In some feasible implementation manners, the aforementioned processor 401 is configured to:
将各个RGB色值分别由十六进制RGB色值转换成十进制RGB色值以得 到上述各个RGB色值对应的各个十进制RGB色值;Convert each RGB color value from a hexadecimal RGB color value to a decimal RGB color value to obtain each decimal RGB color value corresponding to each of the above-mentioned RGB color values;
提取上述各个十进制RGB色值中的RGB色值中位数,并将上述RGB色值中位数转换成二进制RGB色值;Extracting the median of the RGB color values in each of the aforementioned decimal RGB color values, and converting the median of the aforementioned RGB color values into binary RGB color values;
确定上述二进制RGB色值的字长,并将上述字长确定为色域值。The word length of the binary RGB color value is determined, and the word length is determined as the color gamut value.
在一些可行的实施方式中,上述处理器401用于:In some feasible implementation manners, the aforementioned processor 401 is configured to:
确定上述最大特征图片尺寸的i次幂与上述色域值的乘积,其中,i为大于1的整数;Determine the product of the i-th power of the maximum feature image size and the color gamut value, where i is an integer greater than 1;
将上述乘积与上述中央处理器空闲频率的商确定为上述终端设备的性能测试值;Determining the quotient of the product and the idle frequency of the central processor as the performance test value of the terminal device;
若上述性能测试值大于或者等于预设性能测试阈值,则确定上述终端设备的性能不满足要求。If the performance test value is greater than or equal to the preset performance test threshold, it is determined that the performance of the terminal device does not meet the requirements.
在一些可行的实施方式中,上述处理器401用于:In some feasible implementation manners, the aforementioned processor 401 is configured to:
获取上述M张特征图片中的每张特征图片分别对应的特征图片尺寸;Acquiring the feature picture size corresponding to each of the above M feature pictures;
将各个特征图片尺寸进行排序,并基于排序结果确定最大特征图片尺寸及上述最大特征图片尺寸对应的最大特征图片。Sort each feature picture size, and determine the maximum feature picture size and the maximum feature picture corresponding to the above-mentioned maximum feature picture size based on the sorting result.
应当理解,在一些可行的实施方式中,上述处理器401可以是中央处理单元(central processing unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现成可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。该存储器402可以包括只读存储器和随机存取存储器,并向处理器401提供指令和数据。存储器402的一部分还可以包括非易失性随机存取存储器。例如,存储器402还可以存储设备类型的信息。It should be understood that in some feasible implementation manners, the aforementioned processor 401 may be a central processing unit (CPU), and the processor may also be other general-purpose processors or digital signal processors (DSP). , Application specific integrated circuit (ASIC), ready-made programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like. The memory 402 may include a read-only memory and a random access memory, and provides instructions and data to the processor 401. A part of the memory 402 may also include a non-volatile random access memory. For example, the memory 402 may also store device type information.
具体实现中,上述终端设备可通过其内置的各个功能模块执行如上述图1中各个步骤所提供的实现方式,具体可参见上述各个步骤所提供的实现方式,在此不再赘述。In specific implementation, the above-mentioned terminal device can execute the implementation manners provided in each step in FIG. 1 through its built-in functional modules. For details, refer to the implementation manners provided in the foregoing steps, and details are not described herein again.
在本申请实施例中,终端设备可基于获取的测试视频,根据预设的提取时间可从测试视频中提取多帧图片,并对提取的多帧图片中的每帧图片进行特征提取处理可得到多张特征图片,其中提取的每帧图片中的特征包括用户面部特 征和/或背景特征,为方便描述,将提取的用户面部特征图片和背景特征图片统称为特征图片。由于卷积神经网络的卷积计算中特征图片的大小会影响转化成的图像矩阵的大小,因此本申请实施例通过确定多张特征图片中的最大特征图片用于衡量终端设备的性能。再通过对最大特征图片中各个像素点对应的RGB色值进行处理,可得到最大特征图片的色域值,进而根据最大特征图片尺寸、色域值和获取的CPU空闲频率,可确定衡量终端设备性能的性能测试值,通过将性能测试值与预设性能测试阈值进行比较,若得到的性能测试值大于或者等于预设性能测试阈值,说明终端设备的性能不满足要求。采用本申请实施例,可测试终端设备的性能,增加性能测试方式的多样性,提高终端设备性能测试的准确性,灵活性高,适用范围广。In this embodiment of the application, the terminal device can extract multiple frames of pictures from the test video based on the acquired test video according to a preset extraction time, and perform feature extraction processing on each of the extracted multiple frames of pictures to obtain Multiple feature pictures, where the features in each frame of the extracted picture include user facial features and/or background features. For ease of description, the extracted user facial feature pictures and background feature pictures are collectively referred to as feature pictures. Since the size of the feature picture in the convolution calculation of the convolutional neural network will affect the size of the converted image matrix, the embodiment of the present application determines the largest feature picture among multiple feature pictures to measure the performance of the terminal device. Then by processing the RGB color value corresponding to each pixel in the largest feature picture, the color gamut value of the largest feature picture can be obtained, and then according to the maximum feature picture size, color gamut value and the obtained CPU idle frequency, the terminal device can be determined to be measured The performance test value of performance is compared with the preset performance test threshold. If the obtained performance test value is greater than or equal to the preset performance test threshold, it indicates that the performance of the terminal device does not meet the requirements. By adopting the embodiments of the present application, the performance of the terminal equipment can be tested, the diversity of performance testing methods is increased, the accuracy of the performance testing of the terminal equipment is improved, the flexibility is high, and the application range is wide.
本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质可以是非易失性,也可以是易失性,该计算机可读存储介质存储有计算机程序,该计算机程序包括程序指令,该程序指令被处理器执行时实现图1中各个步骤所提供的终端设备性能测试的方法,具体可参见上述各个步骤所提供的实现方式,在此不再赘述。The embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium may be nonvolatile or volatile. The computer-readable storage medium stores a computer program, and the computer program includes program instructions. When the program instructions are executed by the processor, the method for performing the performance test of the terminal device provided in each step in FIG. 1 can be referred to for details of the implementation manner provided in each step above, which will not be repeated here.
上述计算机可读存储介质可以是前述任一实施例提供的终端设备性能测试的装置或者上述终端设备的内部存储单元,例如电子设备的硬盘或内存。该计算机可读存储介质也可以是该电子设备的外部存储设备,例如该电子设备上配备的插接式硬盘,智能存储卡(smart media card,SMC),安全数字(secure digital,SD)卡,闪存卡(flash card)等。进一步地,该计算机可读存储介质还可以既包括该电子设备的内部存储单元也包括外部存储设备。该计算机可读存储介质用于存储该计算机程序以及该电子设备所需的其他程序和数据。该计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。The foregoing computer-readable storage medium may be the terminal device performance testing apparatus provided in any of the foregoing embodiments or the internal storage unit of the foregoing terminal device, such as a hard disk or memory of an electronic device. The computer-readable storage medium may also be an external storage device of the electronic device, such as a plug-in hard disk, a smart media card (SMC), or a secure digital (SD) card equipped on the electronic device. Flash card, etc. Further, the computer-readable storage medium may also include both an internal storage unit of the electronic device and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the electronic device. The computer-readable storage medium can also be used to temporarily store data that has been output or will be output.
Claims (20)
- 一种终端设备性能测试的方法,其中,所述方法包括:A method for terminal equipment performance testing, wherein the method includes:获取待测试的终端设备的中央处理器空闲频率,所述中央处理器空闲频率为用于执行图片特征提取的空闲频率;Acquiring a central processor idle frequency of the terminal device to be tested, where the central processor idle frequency is an idle frequency used to perform image feature extraction;获取测试视频中的M张特征图片,并确定所述M张特征图片中的最大特征图片及最大特征图片尺寸,其中,M为大于0的整数,所述最大特征图片为所述M张特征图片中尺寸最大的特征图片;Acquire M feature pictures in the test video, and determine the largest feature picture and the largest feature picture size in the M feature pictures, where M is an integer greater than 0, and the largest feature picture is the M feature pictures The largest feature picture in the size;提取组成所述最大特征图片的各个像素点分别对应的RGB色值,并根据各个RGB色值确定所述最大特征图片的色域值;Extracting the RGB color values corresponding to each pixel point constituting the largest feature picture, and determining the color gamut value of the largest feature picture according to each RGB color value;对所述最大特征图片尺寸、所述色域值和所述中央处理器空闲频率进行计算得到性能测试值,并根据所述性能测试值确定所述终端设备的性能。The maximum feature picture size, the color gamut value and the idle frequency of the central processing unit are calculated to obtain a performance test value, and the performance of the terminal device is determined according to the performance test value.
- 根据权利要求1所述方法,其中,所述获取待测试的终端设备的中央处理器空闲频率,包括:The method according to claim 1, wherein said obtaining the idle frequency of the central processing unit of the terminal device to be tested comprises:获取中央处理器最大频率和中央处理器睿频频率,将所述中央处理器最大频率与所述中央处理器睿频频率之间的中央处理器频率差确定为中央处理器空闲频率。Obtain the maximum CPU frequency and the CPU turbo frequency, and determine the CPU frequency difference between the CPU maximum frequency and the CPU turbo frequency as the CPU idle frequency.
- 根据权利要求1或2所述方法,其中,所述获取测试视频中的M张特征图片,包括:The method according to claim 1 or 2, wherein said obtaining M feature pictures in the test video comprises:提取测试视频中的N帧图片,并对所述N帧图片中的每帧图片进行图片特征提取处理以得到所述N帧图片中的M张特征图片,其中,所述M张特征图片为从所述N帧图片中提取的面部特征图片和/或背景特征图片的集合。Extract N frames of pictures in the test video, and perform picture feature extraction processing on each frame of the N frames of pictures to obtain M feature pictures in the N frames of pictures, where the M feature pictures are from A collection of facial feature pictures and/or background feature pictures extracted from the N frames of pictures.
- 根据权利要求1-3任一项所述方法,其中,所述RGB色值是十六进制RGB色值;所述根据各个RGB色值确定所述最大特征图片的色域值,包括:The method according to any one of claims 1 to 3, wherein the RGB color value is a hexadecimal RGB color value; the determining the color gamut value of the largest characteristic picture according to each RGB color value comprises:将各个RGB色值分别由十六进制RGB色值转换成十进制RGB色值以得到所述各个RGB色值对应的各个十进制RGB色值,并计算所述各个十进制RGB色值的十进制RGB色值平均值;Convert each RGB color value from a hexadecimal RGB color value to a decimal RGB color value to obtain each decimal RGB color value corresponding to each RGB color value, and calculate the decimal RGB color value of each decimal RGB color value average value;将所述十进制RGB色值平均值转换成二进制RGB色值,确定所述二进制RGB色值的字长,并将所述字长确定为色域值。The average value of the decimal RGB color value is converted into a binary RGB color value, the word length of the binary RGB color value is determined, and the word length is determined as a color gamut value.
- 根据权利要求1-3任一项所述方法,其中,所述RGB色值是十六进制RGB色值;所述根据各个RGB色值确定所述最大特征图片的色域值,包括:The method according to any one of claims 1 to 3, wherein the RGB color value is a hexadecimal RGB color value; the determining the color gamut value of the largest characteristic picture according to each RGB color value comprises:将各个RGB色值分别由十六进制RGB色值转换成十进制RGB色值以得到所述各个RGB色值对应的各个十进制RGB色值;Converting each RGB color value from a hexadecimal RGB color value into a decimal RGB color value to obtain each decimal RGB color value corresponding to each RGB color value;提取所述各个十进制RGB色值中的RGB色值中位数,并将所述RGB色值中位数转换成二进制RGB色值;Extracting the median of the RGB color values in each of the decimal RGB color values, and converting the median of the RGB color values into binary RGB color values;确定所述二进制RGB色值的字长,并将所述字长确定为色域值。The word length of the binary RGB color value is determined, and the word length is determined as a color gamut value.
- 根据权利要求4或5所述方法,其中,所述对所述最大特征图片尺寸、所述色域值和所述中央处理器空闲频率进行计算得到性能测试值,并根据所述性能测试值确定所述终端设备的性能,包括:The method according to claim 4 or 5, wherein the performance test value is obtained by calculating the maximum feature picture size, the color gamut value and the idle frequency of the CPU, and the performance test value is determined according to the performance test value The performance of the terminal equipment includes:确定所述最大特征图片尺寸的i次幂与所述色域值的乘积,其中,i为大于1的整数;Determining the product of the i-th power of the maximum feature picture size and the color gamut value, where i is an integer greater than 1;将所述乘积与所述中央处理器空闲频率的商确定为所述终端设备的性能测试值;Determining the quotient of the product and the idle frequency of the central processing unit as the performance test value of the terminal device;若所述性能测试值大于或者等于预设性能测试阈值,则确定所述终端设备的性能不满足要求。If the performance test value is greater than or equal to the preset performance test threshold, it is determined that the performance of the terminal device does not meet the requirements.
- 根据权利要求1-6任一项所述方法,其中,所述确定所述M张特征图片中的最大特征图片及最大特征图片尺寸,包括:The method according to any one of claims 1 to 6, wherein said determining the largest feature picture and the largest feature picture size in the M feature pictures comprises:获取所述M张特征图片中的每张特征图片分别对应的特征图片尺寸;Acquiring a feature picture size corresponding to each of the M feature pictures;将各个特征图片尺寸进行排序,并基于排序结果确定最大特征图片尺寸及所述最大特征图片尺寸对应的最大特征图片。Sort each feature picture size, and determine the largest feature picture size and the largest feature picture corresponding to the largest feature picture size based on the sorting result.
- 一种终端设备性能测试的装置,其中,所述装置包括:A device for performance testing of terminal equipment, wherein the device includes:频率获取模块,用于获取待测试的终端设备的中央处理器空闲频率,所述中央处理器空闲频率为用于执行图片特征提取的空闲频率;A frequency acquisition module, configured to acquire the idle frequency of the central processing unit of the terminal device to be tested, where the idle frequency of the central processing unit is an idle frequency used to perform image feature extraction;图片获取模块,用于获取测试视频中的M张特征图片,并确定所述M张特征图片中的最大特征图片及最大特征图片尺寸,其中,M为大于0的整数,所述最大特征图片为所述M张特征图片中尺寸最大的特征图片;The picture acquisition module is used to acquire M feature pictures in the test video, and determine the largest feature picture and the largest feature picture size in the M feature pictures, where M is an integer greater than 0, and the largest feature picture is The feature picture with the largest size among the M feature pictures;数据确定模块,用于提取组成所述最大特征图片的各个像素点分别对应的RGB色值,并根据各个RGB色值确定所述最大特征图片的色域值;A data determination module, configured to extract the RGB color values corresponding to each pixel point constituting the largest feature picture, and determine the color gamut value of the largest feature picture according to each RGB color value;性能确定模块,用于对所述最大特征图片尺寸、所述色域值和所述中央处理器空闲频率进行计算得到性能测试值,并根据所述性能测试值确定所述终端设备的性能。The performance determining module is configured to calculate the maximum characteristic picture size, the color gamut value and the idle frequency of the central processing unit to obtain a performance test value, and determine the performance of the terminal device according to the performance test value.
- 一种终端设备,其中,包括处理器和存储器,所述处理器和存储器相互连接;A terminal device, which includes a processor and a memory, and the processor and the memory are connected to each other;所述存储器用于存储计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行终端设备性能测试的方法,所述终端设备性能测试的方法包括:The memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to perform a method of performing a terminal device performance test, the method of terminal device performance testing including:获取待测试的终端设备的中央处理器空闲频率,所述中央处理器空闲频率为用于执行图片特征提取的空闲频率;Acquiring a central processor idle frequency of the terminal device to be tested, where the central processor idle frequency is an idle frequency used to perform image feature extraction;获取测试视频中的M张特征图片,并确定所述M张特征图片中的最大特征图片及最大特征图片尺寸,其中,M为大于0的整数,所述最大特征图片为所述M张特征图片中尺寸最大的特征图片;Acquire M feature pictures in the test video, and determine the largest feature picture and the largest feature picture size in the M feature pictures, where M is an integer greater than 0, and the largest feature picture is the M feature pictures The largest feature picture in the size;提取组成所述最大特征图片的各个像素点分别对应的RGB色值,并根据各个RGB色值确定所述最大特征图片的色域值;Extracting the RGB color values corresponding to each pixel point constituting the largest feature picture, and determining the color gamut value of the largest feature picture according to each RGB color value;对所述最大特征图片尺寸、所述色域值和所述中央处理器空闲频率进行计算得到性能测试值,并根据所述性能测试值确定所述终端设备的性能。The maximum feature picture size, the color gamut value and the idle frequency of the central processing unit are calculated to obtain a performance test value, and the performance of the terminal device is determined according to the performance test value.
- 根据权利要求9所述的终端设备,其中,所述获取测试视频中的M张特征图片,包括:The terminal device according to claim 9, wherein said acquiring M feature pictures in the test video comprises:提取测试视频中的N帧图片,并对所述N帧图片中的每帧图片进行图片特征提取处理以得到所述N帧图片中的M张特征图片,其中,所述M张特征图片为从所述N帧图片中提取的面部特征图片和/或背景特征图片的集合。Extract N frames of pictures in the test video, and perform picture feature extraction processing on each frame of the N frames of pictures to obtain M feature pictures in the N frames of pictures, where the M feature pictures are from A collection of facial feature pictures and/or background feature pictures extracted from the N frames of pictures.
- 根据权利要求9或10所述的终端设备,其中,所述RGB色值是十六进制RGB色值;所述根据各个RGB色值确定所述最大特征图片的色域值,包括:The terminal device according to claim 9 or 10, wherein the RGB color value is a hexadecimal RGB color value; the determining the color gamut value of the largest characteristic picture according to each RGB color value includes:将各个RGB色值分别由十六进制RGB色值转换成十进制RGB色值以得到所述各个RGB色值对应的各个十进制RGB色值,并计算所述各个十进制RGB色值的十进制RGB色值平均值;Convert each RGB color value from a hexadecimal RGB color value to a decimal RGB color value to obtain each decimal RGB color value corresponding to each RGB color value, and calculate the decimal RGB color value of each decimal RGB color value average value;将所述十进制RGB色值平均值转换成二进制RGB色值,确定所述二进制RGB色值的字长,并将所述字长确定为色域值。The average value of the decimal RGB color value is converted into a binary RGB color value, the word length of the binary RGB color value is determined, and the word length is determined as a color gamut value.
- 根据权利要求9或10所述的终端设备,其中,所述RGB色值是十六进制RGB色值;所述根据各个RGB色值确定所述最大特征图片的色域值,包括:The terminal device according to claim 9 or 10, wherein the RGB color value is a hexadecimal RGB color value; the determining the color gamut value of the largest characteristic picture according to each RGB color value includes:将各个RGB色值分别由十六进制RGB色值转换成十进制RGB色值以得到所述各个RGB色值对应的各个十进制RGB色值;Converting each RGB color value from a hexadecimal RGB color value into a decimal RGB color value to obtain each decimal RGB color value corresponding to each RGB color value;提取所述各个十进制RGB色值中的RGB色值中位数,并将所述RGB色值中位数转换成二进制RGB色值;Extracting the median of the RGB color values in each of the decimal RGB color values, and converting the median of the RGB color values into binary RGB color values;确定所述二进制RGB色值的字长,并将所述字长确定为色域值。The word length of the binary RGB color value is determined, and the word length is determined as a color gamut value.
- 根据权利要求11或12所述的终端设备,其中,所述对所述最大特征图片尺寸、所述色域值和所述中央处理器空闲频率进行计算得到性能测试值,并根据所述性能测试值确定所述终端设备的性能,包括:The terminal device according to claim 11 or 12, wherein the performance test value is obtained by calculating the maximum feature picture size, the color gamut value and the idle frequency of the central processing unit, and the performance test value is obtained according to the performance test The value determines the performance of the terminal device, including:确定所述最大特征图片尺寸的i次幂与所述色域值的乘积,其中,i为大于1的整数;Determining the product of the i-th power of the maximum feature picture size and the color gamut value, where i is an integer greater than 1;将所述乘积与所述中央处理器空闲频率的商确定为所述终端设备的性能测试值;Determining the quotient of the product and the idle frequency of the central processing unit as the performance test value of the terminal device;若所述性能测试值大于或者等于预设性能测试阈值,则确定所述终端设备的性能不满足要求。If the performance test value is greater than or equal to the preset performance test threshold, it is determined that the performance of the terminal device does not meet the requirements.
- 根据权利要求9-13任一项所述的终端设备,其中,所述确定所述M张特征图片中的最大特征图片及最大特征图片尺寸,包括:The terminal device according to any one of claims 9-13, wherein the determining the largest feature picture and the largest feature picture size in the M feature pictures comprises:获取所述M张特征图片中的每张特征图片分别对应的特征图片尺寸;Acquiring a feature picture size corresponding to each of the M feature pictures;将各个特征图片尺寸进行排序,并基于排序结果确定最大特征图片尺寸及所述最大特征图片尺寸对应的最大特征图片。Sort each feature picture size, and determine the largest feature picture size and the largest feature picture corresponding to the largest feature picture size based on the sorting result.
- 一种计算机可读存储介质,其中,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行终端设备性能测试的方法,所述终端设备性能测试的方法包括如下步骤:A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program includes program instructions that, when executed by a processor, cause the processor to perform a terminal device performance test The method for testing the performance of the terminal equipment includes the following steps:获取待测试的终端设备的中央处理器空闲频率,所述中央处理器空闲频率为用于执行图片特征提取的空闲频率;Acquiring a central processor idle frequency of the terminal device to be tested, where the central processor idle frequency is an idle frequency used to perform image feature extraction;获取测试视频中的M张特征图片,并确定所述M张特征图片中的最大特征图片及最大特征图片尺寸,其中,M为大于0的整数,所述最大特征图片为所述M张特征图片中尺寸最大的特征图片;Acquire M feature pictures in the test video, and determine the largest feature picture and the largest feature picture size in the M feature pictures, where M is an integer greater than 0, and the largest feature picture is the M feature pictures The largest feature picture in the size;提取组成所述最大特征图片的各个像素点分别对应的RGB色值,并根据各个RGB色值确定所述最大特征图片的色域值;Extracting the RGB color values corresponding to each pixel point constituting the largest feature picture, and determining the color gamut value of the largest feature picture according to each RGB color value;对所述最大特征图片尺寸、所述色域值和所述中央处理器空闲频率进行计算得到性能测试值,并根据所述性能测试值确定所述终端设备的性能。The maximum feature picture size, the color gamut value and the idle frequency of the central processing unit are calculated to obtain a performance test value, and the performance of the terminal device is determined according to the performance test value.
- 根据权利要求15所述的计算机可读存储介质,根据权利要求1或2所述方法,其中,所述获取测试视频中的M张特征图片,包括:The computer-readable storage medium according to claim 15, and the method according to claim 1 or 2, wherein said obtaining M feature pictures in the test video comprises:提取测试视频中的N帧图片,并对所述N帧图片中的每帧图片进行图片特征提取处理以得到所述N帧图片中的M张特征图片,其中,所述M张特征图片为从所述N帧图片中提取的面部特征图片和/或背景特征图片的集合。Extract N frames of pictures in the test video, and perform picture feature extraction processing on each frame of the N frames of pictures to obtain M feature pictures in the N frames of pictures, where the M feature pictures are from A collection of facial feature pictures and/or background feature pictures extracted from the N frames of pictures.
- 根据权利要求15或16所述的计算机可读存储介质,其中,所述RGB色值是十六进制RGB色值;所述根据各个RGB色值确定所述最大特征图片的色域值,包括:The computer-readable storage medium according to claim 15 or 16, wherein the RGB color value is a hexadecimal RGB color value; the determining the color gamut value of the largest feature picture according to each RGB color value includes :将各个RGB色值分别由十六进制RGB色值转换成十进制RGB色值以得到所述各个RGB色值对应的各个十进制RGB色值,并计算所述各个十进制RGB色值的十进制RGB色值平均值;Convert each RGB color value from a hexadecimal RGB color value to a decimal RGB color value to obtain each decimal RGB color value corresponding to each RGB color value, and calculate the decimal RGB color value of each decimal RGB color value average value;将所述十进制RGB色值平均值转换成二进制RGB色值,确定所述二进制RGB色值的字长,并将所述字长确定为色域值。The average value of the decimal RGB color value is converted into a binary RGB color value, the word length of the binary RGB color value is determined, and the word length is determined as a color gamut value.
- 根据权利要求15或16所述的计算机可读存储介质,其中,所述RGB色值是十六进制RGB色值;所述根据各个RGB色值确定所述最大特征图片的色域值,包括:The computer-readable storage medium according to claim 15 or 16, wherein the RGB color value is a hexadecimal RGB color value; the determining the color gamut value of the largest feature picture according to each RGB color value includes :将各个RGB色值分别由十六进制RGB色值转换成十进制RGB色值以得到所述各个RGB色值对应的各个十进制RGB色值;Converting each RGB color value from a hexadecimal RGB color value into a decimal RGB color value to obtain each decimal RGB color value corresponding to each RGB color value;提取所述各个十进制RGB色值中的RGB色值中位数,并将所述RGB色值中位数转换成二进制RGB色值;Extracting the median of the RGB color values in each of the decimal RGB color values, and converting the median of the RGB color values into binary RGB color values;确定所述二进制RGB色值的字长,并将所述字长确定为色域值。The word length of the binary RGB color value is determined, and the word length is determined as a color gamut value.
- 根据权利要求15或16所述的计算机可读存储介质,其中,所述对所述最大特征图片尺寸、所述色域值和所述中央处理器空闲频率进行计算得到性能测试值,并根据所述性能测试值确定所述终端设备的性能,包括:The computer-readable storage medium according to claim 15 or 16, wherein the calculation of the maximum feature picture size, the color gamut value, and the idle frequency of the CPU obtains a performance test value, and the performance test value The performance test value to determine the performance of the terminal device includes:确定所述最大特征图片尺寸的i次幂与所述色域值的乘积,其中,i为大于1的整数;Determining the product of the i-th power of the maximum feature picture size and the color gamut value, where i is an integer greater than 1;将所述乘积与所述中央处理器空闲频率的商确定为所述终端设备的性能测试值;Determining the quotient of the product and the idle frequency of the central processing unit as the performance test value of the terminal device;若所述性能测试值大于或者等于预设性能测试阈值,则确定所述终端设备的性能不满足要求。If the performance test value is greater than or equal to the preset performance test threshold, it is determined that the performance of the terminal device does not meet the requirements.
- 根据权利要求15或16所述的计算机可读存储介质,其中,所述确定所述M张特征图片中的最大特征图片及最大特征图片尺寸,包括:The computer-readable storage medium according to claim 15 or 16, wherein the determining the largest feature picture and the largest feature picture size in the M feature pictures comprises:获取所述M张特征图片中的每张特征图片分别对应的特征图片尺寸;Acquiring a feature picture size corresponding to each of the M feature pictures;将各个特征图片尺寸进行排序,并基于排序结果确定最大特征图片尺寸及所述最大特征图片尺寸对应的最大特征图片。Sort each feature picture size, and determine the largest feature picture size and the largest feature picture corresponding to the largest feature picture size based on the sorting result.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910421940.0A CN110232011B (en) | 2019-05-21 | 2019-05-21 | Method and device for testing performance of terminal equipment |
CN201910421940.0 | 2019-05-21 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020233324A1 true WO2020233324A1 (en) | 2020-11-26 |
Family
ID=67861455
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/086172 WO2020233324A1 (en) | 2019-05-21 | 2020-04-22 | Method and apparatus for testing performance of terminal device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110232011B (en) |
WO (1) | WO2020233324A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110232011B (en) * | 2019-05-21 | 2022-07-19 | 深圳壹账通智能科技有限公司 | Method and device for testing performance of terminal equipment |
CN115203019A (en) * | 2022-06-22 | 2022-10-18 | 中国电信股份有限公司 | Performance test method, device and equipment of GPU (graphics processing Unit) server and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW201140490A (en) * | 2010-05-05 | 2011-11-16 | Giga Byte Tech Co Ltd | Method for testing and classifying performance of graphic processing unit under overclock operation |
CN103902420A (en) * | 2014-03-31 | 2014-07-02 | 北京安兔兔科技有限公司 | Method and device for performance test of electronic equipment |
CN104199764A (en) * | 2014-09-18 | 2014-12-10 | 北京安兔兔科技有限公司 | Terminal performance test method and terminal performance test device |
US9658949B2 (en) * | 2014-02-14 | 2017-05-23 | Samsung Electronics Co., Ltd. | Test system of system on chip and test method thereof |
CN110232011A (en) * | 2019-05-21 | 2019-09-13 | 深圳壹账通智能科技有限公司 | The method and device of terminal device performance test |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW201315201A (en) * | 2011-09-23 | 2013-04-01 | Cal Comp Electronics & Comm Co | Product performance test system for scanner with an automatic document feeder and method thereof |
US9117011B2 (en) * | 2013-02-19 | 2015-08-25 | International Business Machines Corporation | Characterization and functional test in a processor or system utilizing critical path monitor to dynamically manage operational timing margin |
-
2019
- 2019-05-21 CN CN201910421940.0A patent/CN110232011B/en active Active
-
2020
- 2020-04-22 WO PCT/CN2020/086172 patent/WO2020233324A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW201140490A (en) * | 2010-05-05 | 2011-11-16 | Giga Byte Tech Co Ltd | Method for testing and classifying performance of graphic processing unit under overclock operation |
US9658949B2 (en) * | 2014-02-14 | 2017-05-23 | Samsung Electronics Co., Ltd. | Test system of system on chip and test method thereof |
CN103902420A (en) * | 2014-03-31 | 2014-07-02 | 北京安兔兔科技有限公司 | Method and device for performance test of electronic equipment |
CN104199764A (en) * | 2014-09-18 | 2014-12-10 | 北京安兔兔科技有限公司 | Terminal performance test method and terminal performance test device |
CN110232011A (en) * | 2019-05-21 | 2019-09-13 | 深圳壹账通智能科技有限公司 | The method and device of terminal device performance test |
Also Published As
Publication number | Publication date |
---|---|
CN110232011A (en) | 2019-09-13 |
CN110232011B (en) | 2022-07-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109756746B (en) | Video auditing method, device, server and storage medium | |
CN111193923B (en) | Video quality evaluation method and device, electronic equipment and computer storage medium | |
US11093773B2 (en) | Liveness detection method, apparatus and computer-readable storage medium | |
CN109859295A (en) | A kind of specific animation human face generating method, terminal device and storage medium | |
CN108337551B (en) | Screen recording method, storage medium and terminal equipment | |
JP2015215876A (en) | Liveness testing methods and apparatuses, and image processing methods and apparatuses | |
CN113518185B (en) | Video conversion processing method and device, computer readable medium and electronic equipment | |
Zuo et al. | Screen content image quality assessment via convolutional neural network | |
CN111985281B (en) | Image generation model generation method and device and image generation method and device | |
US11915058B2 (en) | Video processing method and device, electronic equipment and storage medium | |
WO2020233324A1 (en) | Method and apparatus for testing performance of terminal device | |
Huang et al. | A new hardware-efficient algorithm and reconfigurable architecture for image contrast enhancement | |
US11948359B2 (en) | Video processing method and apparatus, computing device and medium | |
CN112069977A (en) | Image processing method, image processing device, electronic equipment and computer readable medium | |
CN109246446A (en) | Compare the method, apparatus and equipment of video content similitude | |
CN111310724A (en) | In-vivo detection method and device based on deep learning, storage medium and equipment | |
CN111429371A (en) | Image processing method and device and terminal equipment | |
WO2022166258A1 (en) | Behavior recognition method and apparatus, terminal device, and computer-readable storage medium | |
WO2022142177A1 (en) | Method and apparatus for generating hdr image, and electronic device and readable storage medium | |
WO2022156214A1 (en) | Liveness detection method and apparatus | |
WO2020143165A1 (en) | Reproduced image recognition method and system, and terminal device | |
CN112732553B (en) | Image testing method and device, electronic equipment and storage medium | |
CN106874922B (en) | Method and device for determining service parameters | |
WO2022111269A1 (en) | Method and device for enhancing video details, mobile terminal, and storage medium | |
CN113033373B (en) | Method for training face recognition model and recognizing face and related device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20810780 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 04/03/2022) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20810780 Country of ref document: EP Kind code of ref document: A1 |