CN117221517A - Method and device for testing long stability of camera device, storage medium and electronic device - Google Patents

Method and device for testing long stability of camera device, storage medium and electronic device Download PDF

Info

Publication number
CN117221517A
CN117221517A CN202311172116.9A CN202311172116A CN117221517A CN 117221517 A CN117221517 A CN 117221517A CN 202311172116 A CN202311172116 A CN 202311172116A CN 117221517 A CN117221517 A CN 117221517A
Authority
CN
China
Prior art keywords
test
long
camera device
long stability
script
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311172116.9A
Other languages
Chinese (zh)
Inventor
季明志
张军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd, Haier Uplus Intelligent Technology Beijing Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202311172116.9A priority Critical patent/CN117221517A/en
Publication of CN117221517A publication Critical patent/CN117221517A/en
Pending legal-status Critical Current

Links

Landscapes

  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Abstract

The application discloses a long stability test method and device for a camera device, a storage medium and an electronic device, and relates to the technical field of intelligent home/smart families, wherein the long stability test method for the camera device comprises the following steps: under the running condition of the camera device, a test script is obtained, wherein the test script is a script for executing long-stable test of the camera device; and obtaining a long-stable test result of the camera device based on the test script. The method has the advantages that the camera device can be automatically subjected to long-stability test under the condition of no artificial interference, the objectivity and the accuracy of long-stability test results are improved, and the test cost is reduced.

Description

Method and device for testing long stability of camera device, storage medium and electronic device
Technical Field
The present application relates to the field of testing technologies of image capturing devices, and in particular, to a method and an apparatus for testing stability of an image capturing device, a storage medium, and an electronic device.
Background
The long-stability test of the camera means a test of stability of the camera under long-time operation.
However, the current evaluation of the stability of the image pickup apparatus under long-time operation is often performed by manual operation, which results in difficulty in ensuring the accuracy and consistency of the evaluation result and high labor cost.
Currently, searching for a method capable of automatically performing long-term stability test on an image pickup device becomes a research hotspot.
Disclosure of Invention
The application provides a long stability test method and device for a camera device, a storage medium and an electronic device, which can automatically conduct long stability test on the camera device, improve objectivity and accuracy of long stability test results and reduce test cost.
The application provides a long stability test method of a camera device, which comprises the following steps: under the running condition of the camera device, a test script is obtained, wherein the test script is a script for executing long-stable test of the camera device; and obtaining a long-stable test result of the camera device based on the test script.
According to the long stability test method of the camera device provided by the application, based on the test script, the long stability test result of the camera device is obtained, and the method specifically comprises the following steps: the method comprises the steps of inputting target parameters into a test script to obtain the test script after the input parameters, wherein the target parameters at least comprise frame monitoring duration, frame screen capturing intervals and a test method, and the frames are real-time operation frames of the camera device in the operation process; executing the test script after the parameters are transmitted to obtain two adjacent running picture images, wherein the running picture images are obtained by intercepting the real-time running pictures according to the picture screen capturing interval in the picture monitoring time; and according to the testing method, based on two adjacent running picture images, obtaining a long stability testing result of the camera device.
According to the method for testing the long stability of the camera device, which is provided by the application, the test script after the parameter is transmitted is executed to obtain two adjacent running picture images, and the method specifically comprises the following steps: executing the test script after the input parameters, and generating an operation picture image acquisition command corresponding to the test script after the input parameters; and obtaining two adjacent running picture images based on the running picture image acquisition command.
According to the method for testing the long stability of the camera device, provided by the application, based on two adjacent running picture images, a long stability test result of the camera device is obtained, and the method specifically comprises the following steps: according to the test method, obtaining pixel values of pixels in each running picture image of two adjacent running picture images; and obtaining a long stability test result of the image pickup device based on the pixel value.
According to the long stability test method of the image pickup device provided by the application, the long stability test result of the image pickup device is obtained based on the pixel value, and the method specifically comprises the following steps: obtaining pixel level difference degrees of two adjacent running picture images based on the pixel values; and under the condition that the image pickup device is in motion, if the pixel level difference degree is smaller than a first difference threshold value, determining that the long-stability test result is an abnormal test result.
According to the long stability test method of the camera device, provided by the application, the method further comprises the following steps: and under the condition that the image pickup device is at rest, if the pixel level difference is smaller than a second difference threshold or larger than a third difference threshold, determining that the long stability test result is an abnormal test result, wherein the second difference threshold is smaller than the third difference threshold, and the third difference threshold is smaller than the first difference threshold.
According to the long stability test method of the camera device provided by the application, after the long stability test result is determined to be an abnormal test result, the method further comprises the following steps: acquiring the running time corresponding to the two adjacent running picture images, and determining the abnormal time of the image pickup device based on the running time; interrupting a long stability test of the camera device and generating a test log, wherein the test log comprises any one or more of a long stability test result, abnormal time of the camera device and pixel level difference degree of two adjacent running picture images; and after the test log is generated, continuing to execute the long stability test of the camera device.
According to the long stability test method of the camera device provided by the application, after the long stability test result is determined to be an abnormal test result, the method further comprises the following steps: and storing the two adjacent running picture images.
The application also provides a long stability testing device of the camera device, which comprises: the device comprises: the acquisition module is used for acquiring a test script under the running condition of the camera device, wherein the test script is a script for executing the long-stability test of the camera device; and the execution module is used for obtaining a long-stable test result of the camera device based on the test script.
The application also provides an electronic device comprising a memory and a processor, the memory storing a computer program, the processor being arranged to implement a method of testing long stability of an image pickup device as described in any of the above by execution of the computer program.
The present application also provides a computer-readable storage medium including a stored program, wherein the program when run performs a method for implementing any one of the above-described image pickup apparatus long stability test methods.
The application also provides a computer program product comprising a computer program which when executed by a processor implements the method for testing long stability of an image pickup device as described in any one of the above.
According to the long stability test method and device for the camera device, the storage medium and the electronic device, provided by the application, the test script is acquired under the running condition of the camera device, and the long stability test result of the camera device is automatically obtained based on the test script, so that the long stability test can be automatically performed on the camera device under the condition of no artificial interference, the objectivity and accuracy of the long stability test result are improved, and the test cost is reduced.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the application or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic diagram of a hardware environment of a method for testing long stability of an image capturing apparatus according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of a method for testing long stability of an image capturing device according to the present application;
FIG. 3 is a schematic flow chart of a long-stable test result of the camera device based on the test script;
FIG. 4 is a schematic flow chart of a test script after the execution of the input parameters to obtain two adjacent running picture images;
FIG. 5 is a schematic flow chart of obtaining a long stability test result of an image pickup device based on pixel values;
FIG. 6 is a second flow chart of the method for testing long stability of an image capturing device according to the present application;
FIG. 7 is a schematic structural diagram of a long stability testing device of an image pickup device provided by the application;
fig. 8 is a schematic structural diagram of an electronic device provided by the present application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to one aspect of the embodiment of the application, a long stability test method of an image pickup device is provided. The long stability testing method of the camera device is widely applied to full-house intelligent digital control application scenes such as intelligent Home (Smart Home), intelligent Home equipment ecology, intelligent Home (Intelligence House) ecology and the like. Alternatively, in the present embodiment, the above-described image pickup apparatus long stability test method may be applied to a hardware environment constituted by the terminal device 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal device 102 through a network, and may be used to provide services (such as application services and the like) for a terminal or a client installed on the terminal, a database may be set on the server or independent of the server, for providing data storage services for the server 104, and cloud computing and/or edge computing services may be configured on the server or independent of the server, for providing data computing services for the server 104.
The network may include, but is not limited to, at least one of: wired network, wireless network. The wired network may include, but is not limited to, at least one of: a wide area network, a metropolitan area network, a local area network, and the wireless network may include, but is not limited to, at least one of: WIFI (Wireless Fidelity ), bluetooth. The terminal device 102 may not be limited to a PC, a mobile phone, a tablet computer, an intelligent air conditioner, an intelligent smoke machine, an intelligent refrigerator, an intelligent oven, an intelligent cooking range, an intelligent washing machine, an intelligent water heater, an intelligent washing device, an intelligent dish washer, an intelligent projection device, an intelligent television, an intelligent clothes hanger, an intelligent curtain, an intelligent video, an intelligent socket, an intelligent sound box, an intelligent fresh air device, an intelligent kitchen and toilet device, an intelligent bathroom device, an intelligent sweeping robot, an intelligent window cleaning robot, an intelligent mopping robot, an intelligent air purifying device, an intelligent steam box, an intelligent microwave oven, an intelligent kitchen appliance, an intelligent purifier, an intelligent water dispenser, an intelligent door lock, and the like.
In still another embodiment, the method for testing the long stability of the camera device provided by the application can be applied to intelligent household appliances. The intelligent household appliance is a household appliance product formed by introducing a microprocessor, a sensor technology and a network communication technology into household appliances, has the functions of automatically sensing the space state of a house, the state of the household appliance and the service state of the household appliance, and can automatically control and receive control instructions of a house user in the house or remotely. It is understood that the smart home appliance is an integral part of the smart home.
The application provides a long-stability testing method of a camera device, and aims to realize long-time stability assessment without human intervention. By adopting the technology of image screenshot and pixel comparison, continuous automatic testing can be carried out on the camera equipment, and the stability and performance change of the equipment can be monitored in real time. The method can greatly reduce manual intervention, improve the test efficiency and provide accurate and reliable test results.
Fig. 2 is a schematic flow chart of a method for testing long stability of an image capturing device according to the present application.
In order to further describe the method for testing the long stability of the image pickup device, the following description will refer to fig. 2.
In an exemplary embodiment of the present application, as can be seen in fig. 2, the method for testing the long stability of the camera device may include a step 210 and a step 220, and each step will be described below.
In step 210, under the condition that the camera operates, a test script is acquired, where the test script is a script for executing a long stability test of the camera.
In step 220, a long-stable test result of the camera device is obtained based on the test script.
In one embodiment, in order to test the long-term stability of the camera, it is therefore necessary that the camera be in an operational state. The image pickup device may be any device having an image pickup function, may be an image pickup device mounted on a mobile terminal, or may be a separate image pickup device which exists independently of any medium.
In yet another example, in a case where the image pickup apparatus is operated, a real-time operation screen of the image pickup apparatus is determined. It is understood that the real-time running picture refers to a real-time, continuous picture formed by the image pickup device during operation. In the application process, the long stability of the image pickup device can be determined based on the picture condition of the real-time running picture.
In a further embodiment, the long stability test method of the image pickup device can be executed by the execution end, and in the application process, the image pickup device can establish a connection relationship with the execution end, so that the operation function of the image pickup device can still normally operate after the connection of the execution end. In yet another example, the executing end may be a terminal device, such as a mobile terminal, a mobile phone, a tablet computer, etc.
In one embodiment, a pre-written test script may be obtained, where the test script is a script for performing a long-stability test of the camera device. In the application process, the long-stability test can be automatically performed on the camera device by executing the test script, so that the long-stability test result of the camera device is obtained, the long-stability test can be automatically performed on the camera device under the condition of no artificial interference, the objectivity and the accuracy of the long-stability test result are improved, and the test cost is reduced.
According to the long stability test method for the camera device, provided by the application, the test script is acquired under the running condition of the camera device, and the long stability test result of the camera device is automatically obtained based on the test script, so that the long stability test can be automatically performed on the camera device under the condition of no artificial interference, the objectivity and accuracy of the long stability test result are improved, and the test cost is reduced.
Fig. 3 is a schematic flow chart of obtaining a long-stable test result of the camera device based on the test script.
The process of obtaining the long stable test result of the image pickup device based on the test script will be described with reference to fig. 3.
In an exemplary embodiment of the present application, as can be seen in fig. 3, based on the test script, obtaining the long stability test result of the camera device may include steps 310 to 330, and each step will be described below.
In step 310, a target parameter is transmitted to the test script to obtain a test script after the transmitted parameter, wherein the target parameter at least comprises a frame monitoring duration, a frame screen capturing interval and a test method, and the frame is a real-time operation frame of the camera device in the operation process.
In step 320, the test script after the parameter is input is executed, and two adjacent running picture images are obtained, wherein the running picture images are obtained by intercepting real-time running pictures according to the picture screen capturing interval in the picture monitoring duration.
In step 330, according to the test method, a long-stable test result of the camera device is obtained based on the two adjacent running picture images.
In one embodiment, to execute the test script, target parameters may be imported for the test script to obtain the imported parameters followed by the test script and execution.
It should be noted that the image monitoring duration refers to monitoring a real-time running image of a target period and performing a long stability test based on the running image obtained by monitoring, for example, the running image within 0-40min may be monitored to perform a long stability test based on the running image within 0-40 min. The screen capturing interval refers to how long to capture running screens at intervals so as to obtain two adjacent running screen images. The running picture image may be a still picture image at a certain point in time with respect to the real-time running picture.
In yet another embodiment, the image capturing device may be subjected to a long-stability test in combination with two adjacent running picture images according to a corresponding test method, so as to obtain a long-stability test result.
As a variant, multiple sets of two adjacent running picture images may be obtained, multiple sets of long stability test results may be obtained based on the multiple sets of two adjacent running picture images, and a final long stability test result may be determined based on the multiple sets of long stability test results. It can be appreciated that in the finally formed log, it is possible to determine at which moments the image capturing apparatus is abnormal, and the corresponding causes of the abnormality, based on the plurality of sets of long stable test results. Through the embodiment, long-time long-stability test can be automatically realized on the camera device.
In still another exemplary embodiment of the present application, the test method may be a method of performing a test according to pixels of a running picture image. According to the testing method, based on two adjacent running picture images, a long-stable testing result of the camera device is obtained, and the method can be realized in the following way:
obtaining pixel values of pixels in each running picture image of two adjacent running picture images according to a test method;
and obtaining a long stability test result of the image pickup device based on the pixel value.
In one embodiment, since the test method is a method of performing a test according to pixels of the running picture images, in an application process, pixel values of pixels in each of the running picture images of two adjacent running picture images may be obtained according to the test method; further, based on the pixel values, a long-stable test result of the image pickup device is obtained.
Fig. 4 is a schematic flow chart of a test script after executing an input parameter to obtain two adjacent running picture images.
In an exemplary embodiment of the present application, as can be seen in conjunction with fig. 4, executing the test script after the parameter is entered, the obtaining of two adjacent running picture images may include step 410 and step 420, and each step will be described separately below.
In step 410, the post-parameter test script is executed, and a running picture image acquisition command corresponding to the post-parameter test script is generated.
In step 420, two adjacent running picture images are obtained based on the running picture image acquisition command.
In one embodiment, a run screen image acquisition command corresponding to an incoming post-parameter test script may be obtained by executing the incoming post-parameter test script. In an example, the running picture image acquisition command may be a command regarding an adb format. It will be appreciated that in order to be able to efficiently generate commands in relation to the adb format, the execution end may also be configured with an adb environment. It will be appreciated that the running picture image acquisition command may also be a command concerning HTML format, and in the case where the running picture image acquisition command is a command concerning HTML format, the execution side may also be configured with an HTML environment. The running picture image acquisition command may be determined according to actual situations, and is not particularly limited in this embodiment.
Further, based on the operation picture image acquisition command, two adjacent operation picture images are obtained. By the embodiment, the two adjacent running picture images are obtained by generating the running picture image acquisition command and executing the command, so that the two adjacent running picture images can be prevented from being obtained by manual operation screen capturing operation, and the processing efficiency is improved.
Fig. 5 is a schematic flow chart of obtaining a long stability test result of an image pickup device based on pixel values.
In order to further describe the method for testing the long stability of the image capturing apparatus provided by the present application, the following description will be made with reference to fig. 5.
In an exemplary embodiment of the present application, as can be seen in fig. 5, obtaining the long stability test result of the image capturing apparatus based on the pixel values may include steps 510 to 530, and each step will be described below.
In step 510, a pixel level difference of two adjacent running picture images is obtained based on the pixel values.
In step 520, if the pixel level difference is less than the first difference threshold while the image capturing apparatus is moving, the long-stable test result is determined to be an abnormal test result.
In step 530, if the pixel level difference is smaller than the second difference threshold or greater than the third difference threshold while the image capturing device is at rest, the long-stability test result is determined to be an abnormal test result, wherein the second difference threshold is smaller than the third difference threshold, and the third difference threshold is smaller than the first difference threshold.
In one embodiment, an open source library pixmap may be used, in combination with pixel values, to obtain pixel level differences for two adjacent running picture images. In the application process, the open source library pixeltach can compare the pixel level of the continuous screen shots, can calculate the difference between two images, and generate a percentage representing the difference degree, in other words, can obtain the pixel level difference degree of two adjacent running picture images.
Furthermore, the camera device can be subjected to long stability test according to the pixel level difference.
In one embodiment, when the image capturing apparatus is moving, if the performance of the image capturing apparatus is normal, two adjacent running picture images will change greatly, and the corresponding pixel level difference should be correspondingly larger. Therefore, in the moving scene of the image pickup device, if the pixel level difference is smaller than the first difference threshold, the long-stable test result is an abnormal test result. The first difference threshold may be adjusted according to practical situations, which is not specifically limited in this embodiment.
In yet another embodiment, when the image capturing apparatus is at rest, if the performance of the image capturing apparatus is normal, the two adjacent running picture images will not change significantly, and the corresponding pixel level difference will not be large. Therefore, in the static scene of the image pickup device, if the pixel level difference is greater than the third difference threshold, the long-stable test result is an abnormal test result.
In addition, because the image pickup device is in operation, two adjacent operation picture images are not identical, otherwise, the image pickup device is indicated to have a clamping condition. Therefore, if the pixel level difference is smaller than the second difference threshold, for example, the second difference threshold is infinitely close to 0, the long-stability test result is an abnormal test result.
In combination with the foregoing, when the image capturing device is in motion, a larger difference occurs between two adjacent running picture images, so that the first difference threshold, which is used as a measure for pixel level difference, is relatively larger, and when the image capturing device is in static state, a larger difference does not occur between two adjacent running picture images, i.e. the first difference threshold is greater than the third difference threshold. Further, the second variance threshold is infinitely close to 0, in an example, the second variance threshold may also be 0, the second variance threshold being the smallest one of the three variance thresholds, and thus the second variance threshold is less than the third variance threshold, and the third variance threshold is less than the first variance threshold.
Fig. 6 is a second flow chart of the method for testing the stability of the camera device according to the present application.
The procedure of another method for testing the long stability of the image pickup apparatus will be described with reference to fig. 6.
In an exemplary embodiment of the present application, as can be seen in fig. 6, the method for testing the stability of the image capturing apparatus may include steps 610 to 650, wherein steps 610 to 620 are the same as or similar to steps 210 to 220, and the detailed description and the beneficial effects thereof are shown in the foregoing description, which is omitted in this embodiment, and steps 630 to 650 will be described below respectively.
In step 630, the operation time corresponding to the two adjacent operation screen images is acquired, and the time when the abnormality of the image capturing apparatus occurs is determined based on the operation time.
In step 640, the long stability test of the image capturing apparatus is discontinued, and a test log is generated, where the test log includes any one or more of a long stability test result, a time when an abnormality occurs in the image capturing apparatus, and a pixel level difference degree of two adjacent running picture images.
In step 650, after the test log is generated, the long-stability test of the image pickup apparatus is continued.
In one embodiment, after the long-stable test result is detected as the abnormal test result, the running time corresponding to the two adjacent running picture images can be obtained, and the abnormal time of the image capturing device can be determined based on the running time. Furthermore, the long-stability test of the camera device can be interrupted, and a test log is generated, so that a user can clearly know the long-stability test result of the camera device based on the test log conveniently. After the test log is generated, the long stability test of the camera device is continued to complete the whole long stability test of the camera device. The test log may include any one or more of a long-stable test result, a time when an abnormality occurs in the image capturing device, and a pixel level difference degree of two adjacent running picture images.
In yet another exemplary embodiment of the present application, after determining that the long-stable test result is an abnormal test result, the method may further include the steps of:
and storing two adjacent running picture images.
In one embodiment, after each pixel comparison, a screenshot of the current comparison, for example, two adjacent running picture images, can be saved and used as a reference image for comparison, so as to facilitate analysis of the cause of the abnormality of the image capturing device based on the two adjacent running picture images.
According to the long-stability testing method for the camera device, provided by the application, through connecting an android mobile phone (corresponding to an execution end) and using an adb command, automatic testing on camera equipment can be realized even by only depending on a monitoring picture, so that manual operation and monitoring are reduced, and the testing efficiency and accuracy are improved. In the application process, the camera picture (corresponding to the running picture image) is captured by using a designated time interval, and the picture difference is detected by using a pixel contrast technology to judge whether abnormal change occurs.
By accurately detecting the abnormal change of the camera picture and interrupting the test flow in time, log records are generated, so that the problem can be conveniently checked and processed. In addition, detailed log records comprising information such as abnormal occurrence time and difference degree can be generated, and compared pictures can be saved, so that data support is provided for problem analysis and equipment optimization.
According to the long stability test method of the camera device, provided by the application, the long stability test result of the camera device is automatically obtained by acquiring the test script under the running condition of the camera device and based on the test script, so that the long stability test of the camera device can be automatically performed under the condition of no manual interference, the objectivity and accuracy of the long stability test result are improved, and the test cost is reduced.
The long stability test device of the image pickup device provided by the application is described below, and the long stability test device of the image pickup device described below and the long stability test method of the image pickup device described above can be referred to correspondingly.
Fig. 7 is a schematic structural diagram of a long stability testing device of an image pickup device.
The respective modules in the image pickup apparatus long stability test apparatus will be described below with reference to fig. 7.
In an exemplary embodiment of the present application, as can be seen in fig. 7, the camera long stability testing device may include an acquisition module 710 and an execution module 720, and each module will be described below.
The obtaining module 710 may be configured to obtain a test script under the condition that the camera operates, where the test script is a script for executing a long-stability test of the camera;
the execution module 720 may be configured to obtain a long-stability test result of the camera device based on the test script.
In an exemplary embodiment of the present application, the execution module 720 may implement a test script to obtain a long-stability test result of the camera device in the following manner:
the method comprises the steps of inputting target parameters into a test script to obtain the test script after the input parameters, wherein the target parameters at least comprise frame monitoring duration, frame screen capturing intervals and a test method, and the frames are real-time operation frames of the camera device in the operation process;
executing the test script after the parameters are transmitted to obtain two adjacent running picture images, wherein the running picture images are obtained by intercepting real-time running pictures according to picture screen capturing intervals in the picture monitoring time;
according to the testing method, based on two adjacent running picture images, a long and stable testing result of the camera device is obtained.
In an exemplary embodiment of the present application, the execution module 720 may implement the test script after executing the input parameters in the following manner, to obtain two adjacent running picture images:
executing the test script after the parameters are input, and generating an operation picture image acquisition command corresponding to the test script after the parameters are input;
based on the running picture image acquisition command, two adjacent running picture images are obtained.
In an exemplary embodiment of the present application, the execution module 720 may obtain the long-stable test result of the image capturing device based on the two adjacent running picture images according to the test method in the following manner:
obtaining pixel values of pixels in each running picture image of two adjacent running picture images according to a test method;
and obtaining a long stability test result of the image pickup device based on the pixel value.
In an exemplary embodiment of the present application, the execution module 720 may obtain the long stability test result of the image capturing device based on the pixel value by adopting the following manner:
obtaining pixel level difference degree of two adjacent running picture images based on the pixel values;
and under the condition that the image pickup device is in motion, if the pixel level difference degree is smaller than a first difference threshold value, determining that the long-stability test result is an abnormal test result.
In an exemplary embodiment of the present application, the execution module 720 may be further configured to:
and under the condition that the image pickup device is at rest, if the pixel level difference is smaller than a second difference threshold or larger than a third difference threshold, determining the long-stability test result as an abnormal test result, wherein the second difference threshold is smaller than the third difference threshold, and the third difference threshold is smaller than the first difference threshold.
In an exemplary embodiment of the present application, the execution module 720 may be further configured to:
acquiring the running time corresponding to two adjacent running picture images, and determining the abnormal time of the image pickup device based on the running time;
interrupting long stability test of the camera device and generating a test log, wherein the test log comprises any one or more of long stability test results, abnormal time of the camera device and pixel level difference degree of two adjacent running picture images;
and after the test log is generated, continuing to execute the long-stability test of the camera device.
In an exemplary embodiment of the present application, the execution module 720 may be further configured to:
and saving two adjacent running picture images.
Fig. 8 illustrates a physical schematic diagram of an electronic device, as shown in fig. 8, which may include: processor 810, communication interface (Communications Interface) 820, memory 830, and communication bus 840, wherein processor 810, communication interface 820, memory 830 accomplish communication with each other through communication bus 840. The processor 810 may invoke logic instructions in the memory 830 to perform a camera long stability test method comprising: acquiring a test script under the running condition of the camera device, wherein the test script is a script for executing long-stable test of the camera device; and obtaining a long-stable test result of the camera device based on the test script.
Further, the logic instructions in the memory 830 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present application further provides a computer program product, where the computer program product includes a computer program, where the computer program can be stored on a computer readable storage medium, and when the computer program is executed by a processor, the computer can execute the method for testing long stability of an image capturing apparatus provided by the above methods, and the method includes: under the running condition of the camera device, a test script is obtained, wherein the test script is a script for executing long-stable test of the camera device; and obtaining a long-stable test result of the camera device based on the test script.
In still another aspect, the present application further provides a computer readable storage medium, where the computer readable storage medium includes a stored program, where the program executes the method for testing long stability of an image capturing apparatus provided by the above methods, where the method includes: under the running condition of the camera device, a test script is obtained, wherein the test script is a script for executing long-stable test of the camera device; and obtaining a long-stable test result of the camera device based on the test script.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present application without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (11)

1. A method for testing long stability of an image pickup apparatus, the method comprising:
under the running condition of the camera device, a test script is obtained, wherein the test script is a script for executing long-stable test of the camera device;
and obtaining a long-stable test result of the camera device based on the test script.
2. The method for testing the long stability of the camera device according to claim 1, wherein the obtaining the long stability test result of the camera device based on the test script specifically comprises:
the method comprises the steps of inputting target parameters into a test script to obtain the test script after the input parameters, wherein the target parameters at least comprise frame monitoring duration, frame screen capturing intervals and a test method, and the frames are real-time operation frames of the camera device in the operation process;
executing the test script after the parameters are transmitted to obtain two adjacent running picture images, wherein the running picture images are obtained by intercepting the real-time running pictures according to the picture screen capturing interval in the picture monitoring time;
and according to the testing method, based on two adjacent running picture images, obtaining a long stability testing result of the camera device.
3. The method for testing the long stability of the image capturing device according to claim 2, wherein the step of executing the test script after the parameter is input to obtain two adjacent running picture images comprises the following steps:
executing the test script after the input parameters, and generating an operation picture image acquisition command corresponding to the test script after the input parameters;
and obtaining two adjacent running picture images based on the running picture image acquisition command.
4. The method for testing the long stability of the image capturing device according to claim 2, wherein the obtaining the long stability test result of the image capturing device based on two adjacent running picture images according to the test method specifically comprises:
according to the test method, obtaining pixel values of pixels in each running picture image of two adjacent running picture images;
and obtaining a long stability test result of the image pickup device based on the pixel value.
5. The method for testing the long stability of the image capturing apparatus according to claim 4, wherein the obtaining the long stability test result of the image capturing apparatus based on the pixel values specifically comprises:
obtaining pixel level difference degrees of two adjacent running picture images based on the pixel values;
and under the condition that the image pickup device is in motion, if the pixel level difference degree is smaller than a first difference threshold value, determining that the long-stability test result is an abnormal test result.
6. The image pickup apparatus long stability test method according to claim 5, further comprising:
and under the condition that the image pickup device is at rest, if the pixel level difference is smaller than a second difference threshold or larger than a third difference threshold, determining that the long stability test result is an abnormal test result, wherein the second difference threshold is smaller than the third difference threshold, and the third difference threshold is smaller than the first difference threshold.
7. The image pickup apparatus long stability test method according to claim 5 or 6, wherein after the determination that the long stability test result is an abnormal test result, the method further comprises:
acquiring the running time corresponding to the two adjacent running picture images, and determining the abnormal time of the image pickup device based on the running time;
interrupting a long stability test of the camera device and generating a test log, wherein the test log comprises any one or more of a long stability test result, abnormal time of the camera device and pixel level difference degree of two adjacent running picture images;
and after the test log is generated, continuing to execute the long stability test of the camera device.
8. The image pickup apparatus long stability test method according to claim 5 or 6, wherein after the determination that the long stability test result is an abnormal test result, the method further comprises:
and storing the two adjacent running picture images.
9. A long stability testing device for an image pickup apparatus, the device comprising:
the acquisition module is used for acquiring a test script under the running condition of the camera device, wherein the test script is a script for executing the long-stability test of the camera device;
and the execution module is used for obtaining a long-stable test result of the camera device based on the test script.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program when run performs the image pickup apparatus long stability test method of any one of claims 1 to 8.
11. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, the processor being arranged to execute the camera long stability test method of any one of claims 1 to 8 by means of the computer program.
CN202311172116.9A 2023-09-12 2023-09-12 Method and device for testing long stability of camera device, storage medium and electronic device Pending CN117221517A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311172116.9A CN117221517A (en) 2023-09-12 2023-09-12 Method and device for testing long stability of camera device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311172116.9A CN117221517A (en) 2023-09-12 2023-09-12 Method and device for testing long stability of camera device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN117221517A true CN117221517A (en) 2023-12-12

Family

ID=89045579

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311172116.9A Pending CN117221517A (en) 2023-09-12 2023-09-12 Method and device for testing long stability of camera device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN117221517A (en)

Similar Documents

Publication Publication Date Title
RU2624737C2 (en) Method and device for cleaning waste
CN107991891B (en) Method and system for adjusting environmental parameters and user equipment
CN114821236A (en) Smart home environment sensing method, system, storage medium and electronic device
EP3098525A1 (en) Air purification method and apparatus
CN117221517A (en) Method and device for testing long stability of camera device, storage medium and electronic device
CN113269735A (en) Display screen detection method, system and storage medium
CN115499333A (en) Method, system, storage medium and electronic device for determining association relationship
KR20060041555A (en) System and method for detecting and alarming a fire of thermal power plants
CN110954758A (en) Method and device for determining faults of electric appliance
CN115312049B (en) Instruction response method, storage medium and electronic device
KR100950734B1 (en) Automatic Recognition Method of Abnormal Status at Home Surveillance System and Internet Refrigerator
CN117726908B (en) Training method and device for picture generation model, storage medium and electronic device
CN114826899B (en) Debugging method and device for equipment control service, storage medium and electronic device
CN115988152A (en) Target cooking video generation method and device, storage medium and electronic device
CN114697345B (en) Information updating method and device, storage medium and electronic device
CN114697359B (en) Data collection method and device, storage medium and electronic device
CN105828035A (en) Monitoring method and device
CN117240874A (en) Equipment linkage method and device, storage medium and electronic device
CN114760235A (en) Execution method and device of dial testing task, storage medium and electronic device
CN116170344A (en) Message monitoring method and device, storage medium and electronic device
CN118118866A (en) Intelligent household appliance health data acquisition method and intelligent household appliance
CN116401643A (en) Abnormal behavior processing method, storage medium and electronic device
CN117830914A (en) Cooking monitoring method, household appliance and cooking monitoring system
CN117768465A (en) Scene execution method and device
CN114885092A (en) Control method and device of image acquisition device, storage medium and electronic device

Legal Events

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