Storage medium detection method and device and computer readable storage medium
By acquiring the characteristic parameters of the storage medium for anomaly detection, the problem of inconsistent screening standards and low accuracy in memory card testing has been solved, achieving efficient and accurate storage medium testing.
Patent Information
- Application Number
- CN202410490373.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-22
- Publication Date
- 2025-10-24
AI Technical Summary
Existing technologies rely on manual screening for memory card testing, which leads to inconsistent screening standards, low accuracy, and high costs, making it difficult to efficiently test storage functions.
By acquiring characteristic parameters of the shooting equipment and storage medium, anomaly detection is performed, including sharpness and jitter amplitude analysis. Combined with Fourier transform and Laplace transform, it is determined whether there are any abnormalities in the storage performance of the storage medium.
This has enabled the standardization of storage media testing, improved testing accuracy and efficiency, and reduced labor costs.
Smart Images

Figure CN120832273A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computers, in particular to a storage medium detection method and device and computer readable storage medium. BACKGROUND
[0002] With the continuous development and wide application of computer information technology, storage cards are often used for file storage in daily life.
[0003] When testing the storage function of a storage card, the storage file is generally stored in the storage card first, and then the storage file is manually screened to determine whether the storage file is abnormal, so as to determine whether the function of the storage card is normal.
[0004] However, the manual screening method has high labor and time costs, and the screening standards are not unified and the accuracy is not high. SUMMARY
[0005] The technical problem solved by the present application is to provide a storage medium detection method, which can unify the screening standards and make the screening results more accurate, thereby improving the test efficiency and reducing the screening cost.
[0006] To solve the above technical problem, the first aspect of the present application provides a storage medium detection method. The detection method comprises: acquiring a first characteristic parameter when a test file is collected by a shooting device, and a second characteristic parameter when the test file is encoded and stored in a storage medium; performing abnormal detection on the first characteristic parameter and the second characteristic parameter; in response to the first characteristic parameter and the second characteristic parameter satisfying a non-abnormal condition, performing abnormal detection on the test file after shooting; and determining whether the storage performance of the storage medium is abnormal based on the abnormal detection result of the test file.
[0007] The step of determining whether the storage medium is abnormal based on the abnormal detection result of the test file comprises: if the abnormal detection result is that the test file is abnormal, determining that the storage medium is abnormal.
[0008] The step of performing abnormal detection on the test file after shooting in response to the first characteristic parameter and the second characteristic parameter satisfying the non-abnormal condition comprises: detecting the clarity and / or jitter amplitude of the test file; and if the clarity is lower than a clarity threshold and / or the jitter amplitude exceeds a jitter threshold, determining that the abnormal detection result of the test file is abnormal.
[0009] If the sharpness is lower than the sharpness threshold and / or the jitter amplitude exceeds the jitter threshold, the step of determining the abnormality detection result of the test file as existing abnormality comprises: sequentially performing discrete Fourier transform on each frame image of the test file to obtain a frequency spectrum of the current frame image; obtaining a high-frequency proportion in the frequency spectrum of the current frame image; if the high-frequency proportion exceeds a set proportion, determining that the sharpness of the test file is lower than the sharpness threshold; or / and sequentially performing Laplace transform on each frame image of the test file to obtain image edge data of the current frame image; detecting the offset of the image edge data between the current frame and the adjacent image; if the offset is greater than a set offset, determining that the jitter amplitude of the test file exceeds the jitter threshold.
[0010] If the sharpness is lower than the sharpness threshold and / or the jitter amplitude exceeds the jitter threshold, the step of determining the abnormality detection result of the test file as existing abnormality comprises: if the sharpness is lower than the sharpness threshold and / or the jitter amplitude exceeds the jitter threshold, detecting whether the terminal reading the test file exists stuttering; if the terminal does not exist stuttering, determining that the abnormality detection result of the test file is existing abnormality.
[0011] The first characteristic parameter comprises a shooting device parameter and / or a storage medium parameter; the shooting device parameter comprises at least one of a central processing unit utilization rate, a graphic processing unit utilization rate, a residual memory proportion, and a disk read-write speed of the shooting device; and the storage medium parameter comprises a read-write speed of the storage medium. The second characteristic parameter comprises at least one of a decoding delay and a rendering delay.
[0012] The step of obtaining the first characteristic parameter when the test file is collected by the shooting device, and the second characteristic parameter when the test file is encoded and stored to the storage medium comprises: collecting the storage medium parameter from the storage medium through an external adapter board.
[0013] The step of performing abnormality detection on the first characteristic parameter and the second characteristic parameter comprises: if the floating range of the first characteristic parameter does not satisfy a set floating interval within a set duration, determining that the first characteristic parameter exists abnormality; and if the decoding delay and / or the rendering delay are greater than a delay index within the set duration, determining that the second characteristic parameter exists abnormality.
[0014] The method further includes: detecting attribute parameters of the photographing device and the storage medium; in response to the attribute parameters of the photographing device and the storage medium satisfying a set condition, performing the steps of acquiring the first characteristic parameter when the test file is collected by the photographing device and the second characteristic parameter when the test file is encoded and stored to the storage medium; the attribute parameters of the photographing device include at least one of a utilization rate of a central processing unit, a utilization rate of a graphic processing unit, a remaining memory occupancy ratio, and a disk read-write speed; and the attribute parameters of the storage medium include a storage medium read-write speed.
[0015] If the attribute parameters of the photographing device are two or more, the step of detecting the attribute parameters of the photographing device and the storage medium includes: performing weighted summation processing on each attribute parameter; and if a processed result satisfies a set range, it is determined that the attribute parameters of the photographing device satisfy the set condition.
[0016] To solve the above technical problems, the second aspect of the present application provides an intelligent terminal, which has a processor and a memory coupled with each other, the memory is used for storing program data, and the processor executes the program data when working to realize any of the above detection methods.
[0017] To solve the above technical problems, the third aspect of the present application provides a computer readable storage medium, which stores program data, and the program data can be executed by a processor to realize any of the above detection methods.
[0018] Different from the prior art, the detection method of the storage medium provided by the present application effectively detects the detection environment of the photographing device collecting the test file and encoding, quickly detects the test file, determines whether the storage performance of the storage medium is abnormal based on the abnormal detection result of the test file, can realize the unification of screening standards, makes the screening result more accurate, effectively improves the test efficiency, and reduces the screening cost. BRIEF DESCRIPTION OF DRAWINGS
[0019] Figure 1 is a flowchart of an embodiment of the detection method of the storage medium of the present application;
[0020] Figure 2 is a flowchart of another embodiment of the detection method of the storage medium of the present application;
[0021] Figure 3 is a flowchart of still another embodiment of the detection method of the storage medium of the present application;
[0022] Figure 4 is a structural schematic diagram of an embodiment of the intelligent terminal of the present application;
[0023] Figure 5 is a structural schematic diagram of an embodiment of the test system of the present application;
[0024] Figure 6 is a structural schematic diagram of an embodiment of the computer readable storage medium of the present application. DETAILED DESCRIPTION
[0025] The scheme of the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0026] In the following description, specific details are set forth in order to provide a thorough understanding of the present application, but the present application can be practiced without these particulars. In other instances, well-known methods, procedures, components, and circuits have not been described in detail so as not to obscure the present application.
[0027] The term "and / or" herein is merely an association relationship of the associated objects, and there can be three relationships, for example, A and / or B, which can be: A alone, A and B together, and B alone. In addition, the character " / " herein generally indicates an "or" relationship between the associated objects. In addition, "multiple" herein means two or more than two.
[0028] The present application first provides a storage medium detection method.
[0029] Please refer to Figure 1 , Figure 1 is a flowchart of an embodiment of the storage medium detection method of the present application.
[0030] The present embodiment is mainly applied to the storage function test of the storage medium, and the storage medium detection method comprises:
[0031] S101: Obtain the first characteristic parameter when the test file is collected by the shooting device, and the second characteristic parameter when the test file is encoded and stored to the storage medium.
[0032] In order to ensure that the screening results of the storage medium detection method are more accurate, the process of storing the storage medium is monitored when the test file is shot. Further, in order to ensure the accuracy and practicability of the test, the use process of the storage medium in daily life is simulated in the detection process, and the collection of the test file is set by recording the video through the shooting device.
[0033] The shooting device can be selected from a digital video recorder (VDR), an Internet Protocol Camera (IPC), and the like. The storage compatibility of the storage medium is further detected by matching different shooting devices to collect test files, and the corresponding test files are collected according to the selection of the shooting device and the corresponding recording scene, for example, recording a driving record during driving, setting up a monitoring camera system indoors or outdoors for monitoring, or recording a fixed style of video in a studio.
[0034] The shooting file can be a multimedia file, such as a video file, an audio file, and a picture set.
[0035] The first characteristic parameter is a parameter for representing the performance of the hardware of the shooting device and the storage medium, and includes at least one of a shooting device parameter, such as a central processor utilization rate, a graphic processor utilization rate, a remaining memory ratio, and a disk read-write speed of the shooting device, and a storage medium parameter, such as a read-write speed of the storage medium, when the shooting device collects the test file.
[0036] The terminal and the shooting device are directly connected through a protocol to directly obtain the shooting device parameter. The shooting device parameter can further include a central processor temperature, a graphic processor rendering speed, a display refresh rate, and a device power.
[0037] The second characteristic parameter is a parameter for representing the state of the encoding tool of the shooting device, and includes at least one of a decoding delay and a rendering delay of the shooting device.
[0038] Specifically, the terminal can further obtain the encoding state of the encoding tool in the shooting device through a protocol. The encoding state can include a video frame rate.
[0039] To ensure that the terminal can obtain the information of the shooting device and the storage medium during the detection process and complete the detection, the terminal is connected to the shooting device to obtain the shooting device parameter, the terminal is connected to an external adapter plate, the external adapter plate is connected to the storage medium, and the terminal obtains the storage medium parameter through the external adapter plate. The external adapter plate is further connected to the storage medium. When the shooting device collects the test file, the shooting device is connected to the storage medium to store the test file. After the test file is collected, the terminal sends a command to control the external adapter plate to connect the terminal to the storage medium, and the terminal obtains the storage medium parameter and the test file through the external adapter plate to detect the test file.
[0040] S102: Abnormality detection is performed on the first characteristic parameter and the second characteristic parameter.
[0041] By monitoring the first characteristic parameter and the second characteristic parameter in real time during shooting, shooting abnormalities caused by device problems during device recording can be effectively excluded in real time. Therefore, interference factors other than the test file itself during shooting or recording can be reduced, and the accuracy of the detection process can be further improved.
[0042] In an optional embodiment, if the floating range of the first characteristic parameter does not satisfy the floating interval within the set duration, it is determined that the first characteristic parameter is abnormal; and if the decoding delay and / or the rendering delay of the encoding state is greater than the delay index within the set duration, it is determined that the second characteristic parameter is abnormal.
[0043] Specifically, the first characteristic parameter can be judged according to the obtained first characteristic parameter. When the first characteristic parameter does not fluctuate within 5 seconds, or fluctuates within the fluctuation interval that is greater than 90% of the predicted maximum parameter and less than or equal to the average minimum performance of the plurality of first characteristic parameters within 5 seconds, it is considered that the first characteristic parameter satisfies the no-abnormal condition, and the shooting device is in a stable state to normally collect the test file. Otherwise, it is considered that the floating range of the first characteristic parameter does not satisfy the floating interval, and it is determined that the first characteristic parameter is abnormal, which may have hardware rendering frame dropping.
[0044] The second characteristic parameter can be judged according to the obtained second characteristic parameter. When the decoding delay and / or the rendering delay of the encoding tool is greater than 80ms during rendering, it is determined that the second characteristic parameter is abnormal, which may have software rendering frame dropping.
[0045] The collection process of the test file is abnormal, which affects the detection of the test file and the judgment of the storage function of the storage medium. Therefore, when there is hardware rendering frame dropping and software rendering frame dropping, it is considered that the shooting device will definitely produce rendering frame dropping during the collection of the test file, and the collection of the test file needs to be stopped. When the shooting device has hardware rendering frame dropping or software rendering frame dropping, the current rendering frame dropping state and the test file can be retained, and then repeated detection is performed. If there is no rendering frame dropping during the repeated detection process, but the video also has detection abnormalities, it is considered that the storage card is abnormal, that is, the abnormal detection result of the test file is used to determine whether the storage performance of the storage medium is abnormal.
[0046] It can be understood that, in order to save detection time, when the shooting device has hardware rendering frame dropping or software rendering frame dropping, the collection of the test file can also be stopped in other embodiments.
[0047] S103: In response to the first characteristic parameter and the second characteristic parameter satisfying the no-abnormal condition, performing abnormal detection on the test file after shooting is completed.
[0048] In the process of collecting the test file, if only one of the first characteristic parameter and the second characteristic parameter is abnormal, there may be problems of abnormality of the shooting device or abnormal compatibility between the storage medium and the shooting device. Such problems may affect the shooting test file and further affect the judgment of the performance detection result of the storage medium. Therefore, in order to prevent interference caused by objective reasons such as shooting hardware devices or software performance, in the embodiment, the test file collected under the condition that the shooting device is normal can be further detected.
[0049] After the shooting device test file collection is completed, the test file is checked, the image of each frame or key frame of the test video is extracted, and the single frame picture detection or the comparison between the front and rear frames is performed to detect the image blur, loss or video stutter, frame drop and the like, and the detection result of the test file with abnormality is obtained.
[0050] S104: Determine whether the storage performance of the storage medium is abnormal based on the abnormality detection result of the test file.
[0051] Correspondingly, when the test file detection is normal, it can be judged that the storage medium is normal.
[0052] If the abnormality detection result is that the test file is abnormal, it is determined that the storage medium is abnormal.
[0053] In a specific embodiment, when the test file is a video, the image of each frame or key frame in the video can be extracted, the single frame picture detection or the comparison between the front and rear frames is performed to detect the image blur, loss or video stutter, frame drop and the like, and the detection result of the test file with abnormality is obtained, so as to judge the result that the storage medium is abnormal. Correspondingly, when the test file detection is normal, it can be judged that the storage medium is normal.
[0054] In other embodiments, the test file can also be an audio collected by the shooting device. By detecting whether the audio is stuttered, lost or has extreme changes in sound quality or volume, the detection result of the test file with abnormality is obtained, so as to judge the result that the storage medium is abnormal. The test file can also be a photo set collected by the shooting device. If a certain photo is missing or the pixel distribution is abnormal, the detection result of the test file with abnormality is obtained, so as to judge the result that the storage medium is abnormal.
[0055] The detection method in the above embodiment effectively detects the test file collected by the shooting device and the detection environment for encoding, quickly detects the test file, determines whether the storage performance of the storage medium is abnormal based on the abnormality detection result of the test file, can realize the unification of screening standards, makes the screening result more accurate, effectively improves the test efficiency and reduces the labor cost.
[0056] Referring to Figure 2 , Figure 2 is a flowchart of another embodiment of the detection method of the storage medium.
[0057] S201: Obtain a first feature parameter when a test file is collected by a shooting device, and a second feature parameter when the test file is encoded and stored to a storage medium.
[0058] This step is the same as step S101. For details, please refer to step S101 and the related text description, which will not be repeated here.
[0059] S202: Perform anomaly detection on the first feature parameter and the second feature parameter.
[0060] This step is the same as step S102. For details, please refer to step S102 and the related text description, which will not be repeated here.
[0061] S203: In response to the first feature parameter and the second feature parameter satisfying the no anomaly condition, detecting the sharpness and / or the jitter amplitude of the test file.
[0062] Specifically, when the test file has an anomaly, it can be reflected in the video as video loss or frame drop. When the video drops frames, there will be picture skipping or stuttering, and there will be image blur.
[0063] Generally, the sharpness or jitter amplitude of the image can be detected. In a preferred embodiment, the sharpness and jitter amplitude of the image can also be detected at the same time to ensure that the screening result is more accurate, so as to prevent normal video pictures from being incorrectly identified, effectively improving the test efficiency.
[0064] For example, in a specific embodiment, the image of each frame or key frame in the video can be extracted, and the sharpness of the test file is detected by single frame picture. When the sharpness of the extracted image is lower than the sharpness threshold, it is considered that the frame is a blurred image, and it can be determined that the test file has an anomaly. In a special scenario, if there are continuous blurred images, we can also consider that there is a shooting device focusing anomaly when collecting the test file, resulting in continuous blurred pictures. We can repeat the test to find out the reason for the anomaly, and we can also consider whether there is a sudden change in sharpness between the front and back frames in the video. If there is a sudden change in sharpness, it is confirmed that the test file has an anomaly.
[0065] Or, in a specific embodiment, we detect the frame between the frame and the frame before and after the frame, the normal video picture moves is relatively smooth, so when the jitter amplitude is too large to exceed the jitter threshold, it can be judged that the frame exists picture jitter, and it can be determined that the test file exists exception. Understandably, the design of the jitter threshold is not unique, and the jitter threshold can be selected according to the selection of the shooting device.
[0066] In a specific embodiment, when the frame appears at the same time the definition is lower than the definition threshold and the jitter amplitude exceeds the jitter threshold, it is considered that the frame is a blurred image and exists picture jitter, and it can be determined that the test file exists exception.
[0067] In an optional embodiment, the discrete Fourier transform is performed on each frame image of the test file in sequence to obtain a frequency spectrum of the current frame image; a high frequency proportion in the frequency spectrum of the current frame image is obtained; if the high frequency proportion exceeds a set proportion, it is determined that the definition of the test file is lower than the definition threshold; or / and the Laplace transform is performed on each frame image of the test file in sequence to obtain image edge data of the current frame image; an offset of the image edge data between the current frame and adjacent images is detected; if the offset is greater than a set offset, it is determined that the jitter amplitude of the test file exceeds the jitter threshold.
[0068] Specifically, when the test file exists exception, it can be video loss or frame drop in the video, when the video frame drops, the picture jumps or stalls, and the image is blurred, the blurred image has a obvious feature, that is, the edge information is very limited.
[0069] Generally, the definition or jitter amplitude of the image can be detected, in a preferred embodiment, the definition and jitter amplitude of the image can also be detected at the same time to ensure that the screening result is more accurate, to prevent normal video pictures from being incorrectly identified, and effectively improve the test efficiency.
[0070] For example, in a specific embodiment, the image definition of the test file is detected, and two-dimensional discrete Fourier transform is performed on each frame image in the video, and the discrete Fourier transform of a function f(x, y) of an image size of MxN is given by the following equation:
[0071]
[0072] Where u=0, 1, 2, …, M-1 and v=0, 1, 2, …, N-1. Wherein the variables u and v are used to determine their frequencies, the frequency domain system is the coordinate system spanned by F(u, v), wherein u and v are used as (frequency) variables, and the spatial domain is the coordinate system spanned by f(x, y), wherein x and y are used as (space) variables.
[0073] The Fourier transform spectrum corresponding to each frame of image can be obtained, and the low frequency and high frequency distributed in the spectrum are detected. The high frequency component in the image signal refers to the place where the signal intensity (brightness / gray scale) changes sharply in the image, which can be the image edge or image noise. If the Fourier transform spectrum of the current frame of image contains a high frequency component exceeding 25% of the total proportion, it is considered that the image has many noise points, that is, the clarity of the extracted image is lower than the clarity threshold, and it is considered that the frame is a blurred image, and it can be determined that the test file has an anomaly.
[0074] Alternatively, in a specific embodiment, the image jitter amplitude of the test file is detected, and the edge data of the frame of image is obtained through the Laplace operator formula:
[0075]
[0076] Among them, The Laplace operator is represented, f(x, y) is the gray scale value function of the image, and and The second-order partial derivatives of the image in x and y directions are represented respectively. By calculating the sum of the two partial derivatives, the edge and texture features in the image can be found. The Laplace operator is mainly used to measure the second-order derivative of the image, which can emphasize the image area with rapid intensity change. When there is a significant high variance in the image, the Laplace operator will produce a large range of response, including the edge and non-edge parts of the image; on the contrary, if the image has no obvious high variance, there will be no large range of response, indicating that the edge in the image is very small.
[0077] Then the edge data of the current frame and the adjacent image are compared, and when the offset exceeds 7.0, that is, the jitter amplitude exceeds the jitter threshold, it can be determined that the test file has an anomaly, otherwise it is considered that the frame does not have picture jitter. We detect the jitter amplitude of the picture between the frame and the previous and next frames. Normal video picture movement is relatively smooth, so when the jitter amplitude is too large and exceeds the jitter threshold, it can be judged that the frame has picture jitter, and it can be determined that the test file has an anomaly. It can be understood that the value of the preset offset is not unique, and the preset offset can be selected according to the selection of the shooting device.
[0078] In a specific embodiment, when the frame has a clarity lower than the clarity threshold and a jitter amplitude exceeding the jitter threshold at the same time, it is considered that the frame is a blurred image and has picture jitter, and it can be determined that the test file has an anomaly.
[0079] When the terminal detects the test file in the storage medium, the terminal needs to extract the test file from the storage medium, so it is necessary to consider that the terminal itself will be stuck when extracting the test file, so that the normal test file extracted will be abnormal.
[0080] S204: If the clarity is lower than the clarity threshold and / or the jitter amplitude exceeds the jitter threshold, detect whether the terminal reading the test file is stuck; if the terminal is not stuck, determine that the abnormal detection result of the test file is abnormal.
[0081] Specifically, it can reduce the interference factors of non-test files during shooting or recording, further improve the accuracy of the detection process, and need to detect the terminal when extracting the test file in the terminal. The terminal can be detected to detect the storage card read-write speed or the performance parameters of the terminal, such as processor utilization, decoding tool running state, memory utilization, disk utilization, etc. Only when the terminal is not stuck, the abnormal detection result of the test file can be obtained, and the interference on the result is reduced.
[0082] The detection method in the above embodiment effectively detects the test file collected by the shooting device and the detection environment for encoding, detects the test file by detecting the clarity and / or jitter amplitude of the test file, determines whether the storage performance of the storage medium is abnormal based on the abnormal detection result of the test file, and can realize the unification of screening standards. At the same time, the screening result is more accurate, which effectively improves the test efficiency and reduces the labor cost.
[0083] Please refer to Figure 3 , Figure 3 is a flowchart of another embodiment of the detection method of the storage medium.
[0084] S301: Detect the attribute parameters of the shooting device and the storage medium; in response to the attribute parameters of the shooting device and the storage medium meeting the set conditions, execute the steps of acquiring the first feature parameter when the test file is collected by the shooting device, and the second feature parameter when the test file is encoded and stored to the storage medium; wherein the attribute parameters of the shooting device include at least one of the utilization of the central processing unit, the utilization of the graphic processing unit, the remaining memory ratio, and the disk read-write speed; the attribute parameters of the storage medium include the read-write speed of the storage medium.
[0085] In order to improve the detection efficiency, the attribute parameters of the shooting device and the storage medium are detected to ensure that the detection environment meets the test conditions, avoid the problem of rendering or test file abnormality in the subsequent detection process caused by the problem of the hardware device, and save the detection time.
[0086] In an optional embodiment, if the attribute parameter of the shooting device is two or more, the step of detecting the attribute parameter of the shooting device and the storage medium comprises: performing weighted summation processing on each attribute parameter; if the processed result meets the set range, it is determined that the attribute parameter of the shooting device meets the set condition.
[0087] In the shooting device, there can be a device that renders through the coexistence of the central processor and the image processor. At this time, the attribute parameters including the central processor and the image processor can be detected, and weighted summation processing can be performed. The specific weight allocation can be modified according to the shooting device and the test file collection environment.
[0088] Specifically, the attribute parameters can be obtained to determine whether the parameter fluctuation of each attribute parameter does not occur within 5 seconds, or whether the parameter fluctuation is always greater than the average minimum performance of a plurality of first characteristic parameters and less than or equal to 90% of the predicted maximum parameter within the fluctuation range within 5 seconds. If so, it is considered that the attribute parameter meets the set range, and the shooting device is in a stable state. The test file collection task of the shooting device is started.
[0089] In other embodiments, the shooting device includes a central processor. In the shooting device, there can be a device that renders through the central processor. Therefore, the focus of detecting this kind of device is the related attribute parameters of the central processor, including but not limited to the central processor utilization rate, temperature, and running mode, etc. It is determined that the attribute parameter of the shooting device meets the set condition.
[0090] Because the working states of the shooting device and the storage medium are different, the attribute parameters obtained before collection and the first characteristic parameters during collection can be different. The fluctuation range considered to meet the set parameter fluctuation of the stable state can also be different. It can be understood that when different shooting devices are selected for detection, the fluctuation range can be adjusted according to the shooting device.
[0091] S302: Obtain the first characteristic parameter when collecting the test file through the shooting device, and the second characteristic parameter when encoding the test file and storing it to the storage medium.
[0092] This step is the same as step S201. For details, please refer to step S201 and the related text description, which will not be repeated here.
[0093] S303: Abnormality detection is performed on the first characteristic parameter and the second characteristic parameter.
[0094] This step is the same as step S202. For details, please refer to step S202 and the related text description, which will not be repeated here.
[0095] S304: In response to the first feature parameter and the second feature parameter satisfying the non-exception condition, performing exception detection on the photographed test file.
[0096] This step is the same as step S203. For details, please refer to step S203 and the related text description, which will not be repeated here.
[0097] S305: If the sharpness is lower than the sharpness threshold and / or the jitter amplitude exceeds the jitter threshold, detecting whether the terminal reading the test file has a lag; if the terminal does not have a lag, determining that the exception detection result of the test file is abnormal.
[0098] This step is the same as step S204. For details, please refer to step S204 and the related text description, which will not be repeated here.
[0099] The detection method in the above embodiment, by acquiring the attribute parameters before collection, acquiring the first feature parameters of the shooting device parameters and the storage medium parameters in the test file, and the second feature parameters of the encoding state, effectively detects the detection environment of the test file collected by the shooting device and the encoding, reduces the interference factors in the detection process, further improves the accuracy of the detection process, detects the test file by detecting the sharpness and / or jitter amplitude of the test file, determines whether the storage performance of the storage medium is abnormal based on the exception detection result of the test file, which can realize the uniformity of the screening standard, and also makes the screening result more accurate, effectively improves the test efficiency, and reduces the labor cost.
[0100] Please refer to Figure 4 , Figure 4 is a structural schematic diagram of an embodiment of the intelligent terminal of the present application; the intelligent terminal 40 has a processor 401 and a memory 402 coupled to each other, the memory 402 is used to store program data, and the processor 401 executes the program data when working to realize any of the above detection methods.
[0101] In one specific implementation scenario, the intelligent terminal 40 can include, but is not limited to, a microcomputer, a server, and the like, and can further include a notebook computer, a tablet computer, and the like mobile device, without limitation. Specifically, the processor 401 is configured to control itself and the memory 402 to implement the steps of any of the above detection method embodiments. The processor 401 can also be referred to as a CPU (Central Processing Unit). The processor 401 can be an integrated circuit chip with processing capability. The processor 401 can also be a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. In addition, the processor 401 can be implemented by an integrated circuit chip together.
[0102] Please refer to Figure 5 , Figure 5 is a structural schematic diagram of an embodiment of the test system 500. The test system 500 includes an intelligent terminal 40, a shooting device 41, an external adapter board 42, and the like. The intelligent terminal 40 is connected to the shooting device 41 to obtain shooting device parameters. The intelligent terminal 40 is connected to the external adapter board 42, and the external adapter board 42 is connected to a storage medium 43. The intelligent terminal 40 obtains storage medium parameters through the external adapter board 42. The intelligent terminal 40 obtains storage medium parameters through a chip on the external adapter board 42. The external adapter board 42 is also connected to the storage medium 43. When the shooting device 41 collects test files, the shooting device 41 is connected to the storage medium 43 to store the test files. After the test file collection is completed, the intelligent terminal 40 sends a command to control the external adapter board 42 to connect the intelligent terminal 40 to the storage medium 43. The intelligent terminal 40 obtains storage medium parameters and test files through the external adapter board 42 to detect the test files. Based on the abnormal detection result of the test files, it is determined whether the storage performance of the storage medium 43 is abnormal, so as to implement any of the above detection methods.
[0103] The test system 500 provided in the above embodiments can effectively detect the detection environment in which the shooting device 41 collects test files and encodes the test files, quickly detect the test files, determine whether the storage performance of the storage medium 43 is abnormal based on the abnormal detection result of the test files, unify the screening standards, make the screening results more accurate, effectively improve the test efficiency, and reduce the labor cost.
[0104] Figure 6 is a structural schematic diagram of an embodiment of the computer readable storage medium of the present application. The computer readable storage medium 60 stores program data 601, which can be executed by a processor to implement any of the detection methods described above.
[0105] In several embodiments provided in the present application, it should be understood that the disclosed system, device, can be implemented by other ways. For the technical solutions in the embodiments of the present application, it is obvious that the described embodiments are only a part of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor, shall fall within the scope of protection of the present application. For example, the above-described device embodiments are only schematic, for example, the division of the modules or units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point, the coupling or direct coupling or communication connection between the displayed or discussed each other can be through some interface, device or unit indirect coupling or communication connection, which can be electrical, mechanical or other forms.
[0106] It should be noted that if the present application has any directional indication (such as up, down, left, right, front, back, etc.), the directional indication is only used to explain the relative position relationship, motion condition, etc. between the components in a certain posture (as shown in the drawings), if the certain posture changes, the directional indication also changes accordingly.
[0107] In the description of the present application, it should be noted that unless otherwise explicitly specified and limited, the terms "coupling", "connecting", "connecting", "setting", "installing" should be understood in a broad sense, for example, it can be fixedly connected, or it can be detachably connected, or integrally connected; it can be mechanically connected, or it can be electrically connected; it can be directly connected, or it can be indirectly connected through an intermediate medium, or it can be the communication inside two elements. For those skilled in the art, the specific meaning of the above terms in the present application can be understood according to the specific circumstances.
[0108] The units described as separate components can or can not be physically separated, and the components shown as units can or can not be physical units, that is, they can be located in one place, or they can be distributed on a plurality of network units. Part or all of the units can be selected to achieve the purpose of the present embodiment scheme according to actual needs.
[0109] In addition, the technical solutions among various embodiments can be combined with each other, but it must be based on that a person skilled in the art can realize, when the combination of technical solutions appears contradictory or cannot be realized, it should be considered that the combination of technical solutions does not exist, and is not within the protection scope required by the present application.
[0110] The above only describes the embodiments of the present application, and does not limit the patent scope of the present application, and any equivalent structure or equivalent process transformation using the content of the present application specification and drawings, or direct or indirect application in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method of detecting a storage medium, characterized by, The detection method comprises: obtaining a first characteristic parameter when a test file is collected by a shooting device, and a second characteristic parameter when the test file is encoded and stored to the storage medium; performing abnormality detection on the first characteristic parameter and the second characteristic parameter; performing abnormality detection on the test file completed by shooting in response to the first characteristic parameter and the second characteristic parameter satisfying a non-abnormality condition; determining whether the storage performance of the storage medium is abnormal based on the abnormality detection result of the test file.
2. The method of detecting a storage medium according to claim 1, wherein The step of determining whether the storage medium is abnormal based on the abnormality detection result of the test file comprises: if the abnormality detection result is that the test file is abnormal, determining that the storage medium is abnormal.
3. The method of detecting a storage medium according to claim 1 or 2, wherein The step of performing abnormality detection on the test file completed by shooting in response to the first characteristic parameter and the second characteristic parameter satisfying a non-abnormality condition comprises: detecting the sharpness and / or the jitter amplitude of the test file; if the sharpness is lower than a sharpness threshold and / or the jitter amplitude exceeds a jitter threshold, determining that the abnormality detection result of the test file is abnormal.
4. The method of detecting a storage medium according to claim 3, wherein The step of determining that the abnormality detection result of the test file is abnormal if the sharpness is lower than a sharpness threshold and / or the jitter amplitude exceeds a jitter threshold comprises: performing discrete Fourier transform on each frame of the test file in turn to obtain a frequency spectrum of the current frame; obtaining a high-frequency proportion in the frequency spectrum of the current frame; if the high-frequency proportion exceeds a set proportion, determining that the sharpness of the test file is lower than the sharpness threshold; or / and performing Laplace transform on each frame of the test file in turn to obtain image edge data of the current frame; detecting the offset of the image edge data between the current frame and an adjacent image; if the offset is greater than a set offset, determining that the jitter amplitude of the test file exceeds the jitter threshold.
5. The method of detecting a storage medium according to claim 3, wherein The step of determining that the abnormality detection result of the test file is abnormal if the sharpness is lower than a sharpness threshold and / or the jitter amplitude exceeds a jitter threshold comprises: if the sharpness is lower than a sharpness threshold and / or the jitter amplitude exceeds a jitter threshold, detecting whether a terminal reading the test file is stuck; if the terminal is not stuck, determining that the abnormality detection result of the test file is abnormal.
6. The method of detecting a storage medium according to claim 1, wherein The first characteristic parameter comprises a shooting device parameter and / or a storage medium parameter; The shooting device parameter comprises at least one of a central processing unit utilization rate, a graphics processing unit utilization rate, a remaining memory occupancy ratio, and a disk read-write speed of the shooting device; and the storage medium parameter comprises a read-write speed of the storage medium. The second characteristic parameter comprises at least one of a decoding delay and a rendering delay.
7. The method of detecting a storage medium according to claim 6, wherein The step of obtaining a first characteristic parameter when a test file is collected by a shooting device, and a second characteristic parameter when the test file is encoded and stored to the storage medium comprises: collecting the storage medium parameter from the storage medium through an external adapter board.
8. The method of detecting a storage medium according to claim 6, wherein The step of performing anomaly detection on the first characteristic parameter and the second characteristic parameter comprises: If the floating range of the first characteristic parameter does not satisfy a set floating interval within a set duration, it is determined that the first characteristic parameter is abnormal; and If the decoding delay and / or the rendering delay is greater than a delay index within a set duration, it is determined that the second characteristic parameter is abnormal.
9. The method of detecting a storage medium according to claim 1, wherein Before the steps of acquiring the first characteristic parameter when the test file is collected by the shooting device, and the second characteristic parameter when the test file is encoded and stored to the storage medium, the method further comprises: detecting attribute parameters of the shooting device and the storage medium; in response to the attribute parameters of the shooting device and the storage medium satisfying a set condition, performing the steps of acquiring the first characteristic parameter when the test file is collected by the shooting device, and the second characteristic parameter when the test file is encoded and stored to the storage medium; wherein the attribute parameters of the shooting device comprise at least one of utilization rate of a central processing unit, utilization rate of a graphic processing unit, remaining memory occupancy, and disk read-write speed; the attribute parameters of the storage medium comprise storage medium read-write speed.
10. The method of detecting a storage medium according to claim 9, wherein, If the attribute parameters of the shooting device are two or more, the step of detecting the attribute parameters of the shooting device and the storage medium comprises: performing weighted summation processing on each attribute parameter; if the processed result satisfies a set range, it is determined that the attribute parameters of the shooting device satisfy the set condition.
11. A smart terminal, characterized by The intelligent terminal has a processor and a memory coupled to each other, the memory is used to store program data, and the processor performs the program data when working to realize the detection method as claimed in claims 1-10.
12. A computer-readable storage medium, characterized in that, The computer readable storage medium stores program data, and the program data can be executed by the processor to realize the detection method as claimed in any one of claims 1-10.