CN111292316A - Test method, test device, electronic equipment and storage medium - Google Patents

Test method, test device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111292316A
CN111292316A CN202010167471.7A CN202010167471A CN111292316A CN 111292316 A CN111292316 A CN 111292316A CN 202010167471 A CN202010167471 A CN 202010167471A CN 111292316 A CN111292316 A CN 111292316A
Authority
CN
China
Prior art keywords
test
image
expansion
result
controllability
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.)
Granted
Application number
CN202010167471.7A
Other languages
Chinese (zh)
Other versions
CN111292316B (en
Inventor
缪洪波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Jimi Technology Co Ltd
Original Assignee
Chengdu Jimi Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Jimi Technology Co Ltd filed Critical Chengdu Jimi Technology Co Ltd
Priority to CN202010167471.7A priority Critical patent/CN111292316B/en
Publication of CN111292316A publication Critical patent/CN111292316A/en
Application granted granted Critical
Publication of CN111292316B publication Critical patent/CN111292316B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • G06T7/001Industrial image inspection using an image reference approach
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M11/00Testing of optical apparatus; Testing structures by optical methods not otherwise provided for
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/12Edge-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E10/00Energy generation through renewable energy sources
    • Y02E10/50Photovoltaic [PV] energy

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
  • Studio Devices (AREA)

Abstract

The application relates to the technical field of production and manufacturing of electronic control equipment, in particular to a testing method, a testing device, electronic equipment and a storage medium. The test method provided by the embodiment of the application comprises the following steps: responding to a performance test instruction, controlling a camera device to obtain a first scene image of a target scene, wherein the target scene comprises a telescopic device and a reference object, the expansion position of the telescopic device is located between the camera device and the reference object, judging whether an object image of the reference object exists in the first scene image to obtain a first judgment result, and obtaining a first test result of the telescopic device according to the first judgment result, so as to represent the telescopic controllability of the telescopic device. By the testing method and device, the electronic equipment and the storage medium, the automation degree of the telescopic controllability test of the telescopic device can be improved.

Description

Test method, test device, electronic equipment and storage medium
Technical Field
The application relates to the technical field of production and manufacturing of electronic control equipment, in particular to a testing method, a testing device, electronic equipment and a storage medium.
Background
With the development of science and technology and the progress of the era, more and more intelligent equipment devices enter the daily life of people, such as projection equipment. The projection equipment comprises a projection host and a projection curtain, wherein the projection curtain is used as a telescopic device, and the telescopic controllability is usually required to be tested in the production and manufacturing process. At present, the telescoping controllability of the telescoping device is mainly tested through manual operation, for example, an electric control switch is manually operated, and then, the telescoping execution result of the telescoping device is observed and manually recorded as statistical data. Obviously, the existing testing method has complicated testing process, excessively depends on manual operation, and has low automation degree.
Disclosure of Invention
An object of the embodiments of the present application is to provide a testing method, a testing apparatus, an electronic device, and a storage medium to solve the above problems.
In a first aspect, a testing method provided in an embodiment of the present application includes:
responding to the performance test instruction, controlling the camera device to acquire a first scene image of a target scene, wherein the target scene comprises a telescopic device and a reference object, and the expansion position of the telescopic device is positioned between the camera device and the reference object;
judging whether an object image of a reference object exists in the first scene image or not to obtain a first judgment result;
and obtaining a first test result of the telescopic device according to the first judgment result, and the first test result is used for representing the telescopic controllability of the telescopic device.
In the testing method provided in the foregoing embodiment, the image capturing device is controlled to obtain a first scene image of the target scene, and whether an object image of the reference object exists in the first scene image is determined to obtain a first determination result, because the target scene includes the telescopic device and the reference object, and the expansion position of the telescopic device is located between the image capturing device and the reference object, according to the first determination result, a first testing result of the telescopic device can be obtained, which is used for representing the telescopic controllability of the telescopic device. Obviously, compared with the prior art that the telescoping controllability of the telescoping device is tested through manual operation, for example, the electric control switch is manually operated, and then the telescoping execution result of the telescoping device is observed and manually recorded, as a method of statistical data, the testing method provided by the embodiment of the application has a simple testing process and does not need to rely on manual operation, so that the degree of automation is high.
With reference to the first aspect, an embodiment of the present application further provides a first optional implementation manner of the first aspect, where the performance test instruction is an expansion test instruction, and a first test result of the expansion device is obtained according to a first determination result to represent expansion controllability of the expansion device, and the method includes:
when the first judgment result represents that the object image exists in the first scene image, determining that the first test result of the telescopic device is unqualified in expansion controllability;
when the first judgment result represents that the object image does not exist in the first scene image, determining that the first test result of the telescopic device is qualified in expansion controllability;
or, the performance test instruction is for taking in the test instruction, and first judgement result obtains the first test result of telescoping device according to first judgement result to the flexible controllability of representation telescoping device includes:
when the first judgment result represents that the object image exists in the first scene image, determining that the first test result of the telescopic device is qualified in storage controllability;
and when the first judgment result indicates that the object image does not exist in the first scene image, obtaining a first test result for determining the telescopic device as unqualified storage controllability.
In the test method provided by the above embodiment, when the performance test instruction is the expansion test instruction, an automatic test on the expansion controllability of the expansion device can be realized, and correspondingly, when the performance test instruction is the storage test instruction, an automatic test on the storage controllability of the expansion device can be realized, so that the comprehensiveness and the practicability of the test method can be improved, and the judgment rule involved in the test process is simple, and the test efficiency can be improved.
With reference to the first optional implementation manner of the first aspect, an embodiment of the present application further provides a second optional implementation manner of the first aspect, where if the performance test instruction is an expansion test instruction, and when the first determination result indicates that the object image exists in the first scene image, the test method after determining that the first test result of the expansion device is that the expansion controllability is not good, further includes:
judging whether the current pixel area of the object image in the first scene image is smaller than the whole pixel area of the reference object;
when the current pixel area of the object image in the first scene image is smaller than the whole pixel area of the reference object, analyzing the pixel area change condition of the object image in the first scene image, and determining the expansion offset direction of the telescopic device.
In the test method provided in the foregoing embodiment, if the performance test instruction is an expansion test instruction, when the first determination result indicates that an object image exists in the first scene image and a current pixel area of the object image in the first scene image is smaller than an entire pixel area of the reference object, a change of the pixel area of the object image in the first scene image may be analyzed to determine an expansion offset direction of the expansion device. Therefore, maintenance personnel can carry out targeted detection and maintenance on the telescopic device according to the expansion offset direction of the telescopic device, and the production and manufacturing efficiency of the telescopic device is improved.
With reference to the first optional implementation manner of the first aspect, an embodiment of the present application further provides a third optional implementation manner of the first aspect, where if the performance test instruction is a storage test instruction, and when the first determination result indicates that the object image exists in the first scene image, the first test result of the expansion device is determined to be qualified in storage controllability, the test method further includes:
judging whether the current pixel area of the object image in the first scene image is smaller than the whole pixel area of the reference object;
when the current pixel area of the object image in the first scene image is smaller than the whole pixel area of the reference object, analyzing the pixel area change condition of the object image in the first scene image, and determining the accommodating offset direction of the telescopic device.
In the test method provided in the foregoing embodiment, if the performance test instruction is a storage test instruction, when the first determination result indicates that an object image exists in the first scene image and a current pixel area of the object image in the first scene image is smaller than an entire pixel area of the reference object, a change of the pixel area of the object image in the first scene image may be analyzed to determine a storage offset direction of the expansion device. Therefore, maintenance personnel can carry out targeted detection and maintenance on the telescopic device according to the accommodating offset direction of the telescopic device, and the production and manufacturing efficiency of the telescopic device is improved.
With reference to the first optional implementation manner of the first aspect, an embodiment of the present application further provides a fourth optional implementation manner of the first aspect, where if the performance test instruction is an expansion test instruction, and when the first determination result indicates that the object image does not exist in the first scene image, the test method determines that the first test result of the expansion device is qualified for the expansion controllability, the test method further includes:
generating a storage control instruction, and generating a storage test instruction after the telescopic device responds to the storage control instruction and executes a storage action;
responding to the storage test instruction, and controlling the camera device to acquire a second scene image of the target scene;
judging whether an object image of a reference object exists in the second scene image to obtain a second judgment result;
and obtaining a second test result of the telescopic device according to the second judgment result so as to represent the telescopic controllability of the telescopic device.
In the testing method provided in the foregoing embodiment, if the performance testing instruction is an expansion testing instruction, and when the first determination result indicates that the object image does not exist in the first scene image, the testing method after determining that the first testing result of the expansion device is qualified in the expansion controllability further includes: and generating a storage control instruction, responding to the storage control instruction by the telescopic device, executing a storage action, generating a storage test instruction, responding to the storage test instruction, controlling the camera device to acquire a second scene image of the target scene, judging whether an object image of the reference object exists in the second scene image so as to acquire a second judgment result, and acquiring a second test result of the telescopic device according to the second judgment result so as to represent the telescopic controllability of the telescopic device, so that the automation degree of the telescopic controllability test of the telescopic device is further improved.
With reference to the fourth optional implementation manner of the first aspect, an embodiment of the present application further provides a fifth optional implementation manner of the first aspect, where according to the second determination result, a second test result of the telescopic device is obtained to characterize a telescopic controllability of the telescopic device, and the method includes:
when the second judgment result represents that the object image exists in the second scene image, determining that the second test result of the telescopic device is qualified in storage controllability;
and when the second judgment result indicates that the object image does not exist in the second scene image, obtaining a second test result for determining the telescopic device as unqualified storage controllability.
In the test method provided in the foregoing embodiment, the second test result of the expansion device is obtained according to the second determination result to represent the expansion controllability of the expansion device, where the second determination result represents that there is an object image in the second scene image, the second test result of the expansion device is determined to be qualified in storage controllability, and when the second determination result indicates that there is no object image in the second scene image, the second test result of the expansion device is determined to be unqualified in storage controllability, and the determination rule involved in the test process is simple, and the test efficiency can be improved.
With reference to the fifth optional implementation manner of the first aspect, an embodiment of the present application further provides a sixth optional implementation manner of the first aspect, where when the second determination result indicates that an object image exists in the second scene image, after it is determined that the second test result of the telescopic device is that the storage controllability is qualified, the test method further includes:
judging whether the current pixel area of the object image in the second scene image is smaller than the whole pixel area of the reference object;
when the current pixel area of the object image in the second scene image is smaller than the whole pixel area of the reference object, analyzing the pixel area change condition of the object image in the second scene image to obtain a third analysis result;
and determining the storage offset direction of the telescopic device according to the third analysis result.
In the test method provided by the above embodiment, when the second determination result indicates that the object image exists in the second scene image, and the current pixel area of the object image in the second scene image is smaller than the whole pixel area of the reference object, the change of the pixel area of the object image in the second scene image can be analyzed, and the storage offset direction of the telescopic device can be determined. Therefore, maintenance personnel can carry out targeted detection and maintenance on the telescopic device according to the accommodating offset direction of the telescopic device, and the production and manufacturing efficiency of the telescopic device is improved.
With reference to the first optional implementation manner of the first aspect, an embodiment of the present application further provides a seventh optional implementation manner of the first aspect, where if the performance test instruction is an expansion test instruction, the test method before controlling the image capturing device to acquire the first scene image of the target scene in response to the performance test instruction further includes:
responding to the unfolding test operation, generating an unfolding control instruction, and generating an unfolding test instruction after the telescopic device responds to the unfolding control instruction and executes the unfolding action;
if the performance test instruction is a storage test instruction, responding to the performance test instruction, and controlling the camera device to obtain the scene image of the target scene, the test method further comprises the following steps:
and generating a storage control command in response to the storage test operation, and generating a storage test command after the telescopic device responds to the storage control command and executes a storage action.
With reference to the first aspect, an embodiment of the present application further provides an eighth optional implementation manner of the first aspect, where determining whether an object image of a reference object exists in the first scene image to obtain a first determination result includes:
carrying out image segmentation on the first scene image to obtain a plurality of target area images;
judging whether a target area image with color characteristics consistent with the target characteristics exists in the target area images or not;
when a target area image with color characteristics consistent with the target characteristics exists in the plurality of target area images, a first judgment result is obtained to represent an object image with a reference object in the first scene image.
And when the target area images with the color characteristics consistent with the target characteristics do not exist in the plurality of target area images, obtaining a first judgment result to represent the object image without the reference object in the first scene image.
With reference to the first aspect, an embodiment of the present application further provides a ninth optional implementation manner of the first aspect, where after obtaining a first test result of the expansion device according to the first determination result to characterize expansion controllability of the expansion device, the test method further includes:
acquiring a target number of first test results;
and carrying out statistical analysis on the first test results of the target number to obtain a final test result, wherein the final test result is used for representing the final telescopic controllability of the telescopic device.
In a second aspect, a testing apparatus provided in an embodiment of the present application includes:
the first image acquisition module is used for responding to a performance test instruction and controlling the camera device to acquire a first scene image of a target scene, wherein the target scene comprises a telescopic device and a reference object, and the expansion position of the telescopic device is positioned between the camera device and the reference object;
the first judgment module is used for judging whether the object image of the reference object exists in the first scene image so as to obtain a first judgment result;
and the first result acquisition module is used for acquiring a first test result of the telescopic device according to the first judgment result and representing the telescopic controllability of the telescopic device.
The testing apparatus provided in the embodiment of the present application has the same beneficial effects as the testing method provided in the first aspect or any one of the optional embodiments of the first aspect, and details are not repeated here.
In a third aspect, an electronic device provided in an embodiment of the present application includes a processor and a memory, where the memory stores a computer program, and the processor is configured to execute the computer program to implement the testing method provided in the first aspect or any optional implementation manner of the first aspect.
The electronic device provided in the embodiment of the present application has the same beneficial effects as the test method provided in the first aspect or any one of the optional implementation manners of the first aspect, and details are not repeated here.
In a fourth aspect, an embodiment of the present application further provides a storage medium, where a computer program is stored on the storage medium, and when the computer program is executed, the test method provided in the foregoing first aspect or any optional implementation manner of the first aspect is implemented.
The storage medium provided in the embodiment of the present application has the same beneficial effects as the test method provided in the first aspect or any one of the optional implementation manners of the first aspect, and details are not described here.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic structural block diagram of an electronic device according to an embodiment of the present application.
Fig. 2 is a flowchart of a testing method according to an embodiment of the present disclosure.
Fig. 3 is a schematic view of a target scene according to an embodiment of the present application.
Fig. 4 is a schematic view of an expanded state of a projection curtain in an embodiment of the present application.
Fig. 5 is a schematic view illustrating a storage state of a projection curtain in the embodiment of the present application.
Fig. 6 is a schematic diagram of a setting manner of a reference object in a target scene according to an embodiment of the present application.
Fig. 7 is a schematic diagram of a setting mode of a reference object in another target scene according to an embodiment of the present application.
Fig. 8 is a schematic view illustrating a telescopic device according to an embodiment of the present application.
Fig. 9 is a schematic view illustrating a deployment and deflection of another retractor according to an embodiment of the present application.
Fig. 10 is a schematic view illustrating a retraction offset of a retractable device according to an embodiment of the present application.
Fig. 11 is a schematic view illustrating a storage offset of another retractable device according to an embodiment of the present disclosure.
Fig. 12 is a schematic structural block diagram of a testing apparatus according to an embodiment of the present application.
Reference numerals: 100-an electronic device; 110-a processor; 120-a memory; 200-a camera device; 300-a telescoping device; 310-projection curtain; 311-curtain; 312-control motor; 313-a roller mechanism; 400-reference; 500-a test device; 510-a first image acquisition module; 520-a first judgment module; 530-first result obtaining module.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. Furthermore, it should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
Referring to fig. 1, a schematic block diagram of an electronic device 100 applying a testing method and apparatus according to an embodiment of the present application is shown. In the embodiment of the present application, the electronic Device 100 may be a terminal Device, such as a computer, a Personal Digital Assistant (PAD), a Mobile Internet Device (MID), and the like.
Structurally, electronic device 100 may include a processor 110 and a memory 120.
The processor 110 and the memory 120 are electrically connected, directly or indirectly, to enable data transfer or interaction, for example, the components may be electrically connected to each other via one or more communication buses or signal lines. The testing means comprises at least one software module which may be stored in the form of software or Firmware (Firmware) in the memory 120 or be solidified in an Operating System (OS) of the electronic device 100. The processor 110 is used for executing executable modules stored in the memory 120, such as software functional modules and computer programs included in the testing apparatus, so as to implement the testing method.
The processor 110 may execute the computer program upon receiving the execution instruction. The processor 110 may be an integrated circuit chip having signal processing capabilities. The Processor 110 may also be a general-purpose Processor, for example, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a discrete gate or transistor logic device, a discrete hardware component, which can implement or execute the methods, steps, and logic blocks disclosed in the embodiments of the present Application, and furthermore, the general-purpose Processor may be a microprocessor or any conventional Processor.
The Memory 120 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), and an electrically Erasable Programmable Read-Only Memory (EEPROM). The memory 120 is used for storing a program, and the processor 110 executes the program after receiving the execution instruction.
It should be understood that the structure shown in fig. 1 is merely an illustration, and the electronic device 100 provided in the embodiment of the present application may have fewer or more components than those shown in fig. 1, or may have a different configuration than that shown in fig. 1. Further, the components shown in fig. 1 may be implemented by software, hardware, or a combination thereof.
Please refer to fig. 2, which is a flowchart illustrating a testing method according to an embodiment of the present disclosure, the testing method being applied to the electronic device 100 shown in fig. 1. It should be noted that the testing method provided in the embodiments of the present application is not limited by the sequence shown in fig. 2 and the following, and the specific flow and steps of the testing method are further described below with reference to fig. 2.
And S100, responding to the performance test instruction, controlling the camera device to acquire a first scene image of a target scene, wherein the target scene comprises a telescopic device and a reference object, and the expansion position of the telescopic device is positioned between the camera device and the reference object.
In this embodiment of the application, the camera device may be independent of the electronic device, connected to the electronic device in a wired or wireless communication manner, and configured to acquire the first scene image of the target scene and send the first scene image to the processor included in the electronic device, and the camera device may also be disposed in the electronic device, connected to the processor included in the electronic device, and configured to acquire the first scene image of the target scene and send the first scene image to the processor.
Referring to fig. 3, a schematic view of a target scene provided in the present application is shown, in which the target scene includes a telescopic device 300 and a reference object 400, and an expansion position of the telescopic device 300 is located between the image capturing device 200 and the reference object 400. In addition, in the embodiment of the present application, the telescopic device 300 may be a projection curtain 310, please refer to fig. 4 and 5, the projection curtain 310 includes a curtain 311, a control motor 312, and a roller mechanism 313, a rotating shaft of the roller mechanism 313 is used for arranging the curtain 311, and a rotating portion of the roller mechanism 313 is connected to a motor shaft of the control motor 312. When the motor shaft of the control motor 312 rotates in a first direction, the projection curtain 310 performs an unfolding operation to unfold the curtain 311 (as shown in fig. 4), and when the motor shaft of the control motor 312 rotates in a second direction opposite to the first direction, the projection curtain 310 performs a storage operation to store the curtain 311 (as shown in fig. 5). Of course, in the embodiment of the present application, the telescopic device 300 may be an electrically controlled curtain, an electrically controlled rolling door, an electrically controlled retractable door, or the like, besides the projection curtain 310.
In addition, in the embodiment of the present application, the reference object 400 may be an object having any shape or color with a marking property, for example, a cube, and the color may be a prominent color different from that of the curtain 311, for example, when the projection area in the curtain 311 is white and the edge area is black, the color of the reference object 400 may be a prominent color such as red or yellow.
For the performance test instruction, in the embodiment of the present application, the performance test instruction may be an expansion test instruction or a storage test instruction. Based on this, if the performance test command is an expansion test command, before the step S100 is executed, the test method provided in the embodiment of the present application may further include a step S001.
And S001, responding to the unfolding test operation, generating an unfolding control instruction, and generating an unfolding test instruction after the expansion device responds to the unfolding control instruction and executes the unfolding action.
In the embodiment of the application, the unfolding test operation can be that a tester manually operates an unfolding test button arranged on the electronic equipment, when the electronic equipment monitors the unfolding test operation, an unfolding control instruction is generated and sent to the telescopic device, the telescopic device responds to the unfolding control instruction to execute the unfolding action, and after the telescopic device executes the unfolding action, the electronic equipment generates the unfolding test instruction. It should be noted that, in the embodiment of the present application, whether the expansion device completes the expansion action may be determined according to a preset execution time length of the expansion action, for example, when the electronic device sends the expansion control instruction to the expansion device, the electronic device synchronously counts time, and when the counted time length reaches the execution time length of the expansion action, the expansion device is considered to complete the expansion action, where the execution time length of the expansion action may be, but is not limited to, 5S or 8S.
In addition, it should be noted that, in the embodiment of the present application, after the expansion device performs the expansion action in response to the expansion control command, the expansion device may be successfully expanded, in which case, the expansion controllability of the expansion device is qualified, but the expansion device may not be successfully expanded, in which case, the expansion controllability of the expansion device is unqualified.
If the performance test command is an accommodation test command, before the step S100 is executed, the test method provided in the embodiment of the present application may further include a step S002.
Step S002 is to generate a storage control command in response to the storage test operation, and to generate a storage test command after the retractable device executes the storage operation in response to the storage control command.
In the embodiment of the application, the storage test operation may be that a tester manually operates a storage test button arranged on the electronic device, when the electronic device monitors the storage test operation, a storage control instruction is generated and sent to the telescopic device, the telescopic device responds to the storage control instruction to execute the storage action, and after the telescopic device executes the storage action, the electronic device generates the storage test instruction. It should be noted that, in the embodiment of the present application, whether the retractable device completes the retracting operation may be determined according to a preset retracting operation execution time length, for example, when the electronic device sends a retracting control command to the retractable device, the electronic device synchronously counts time, and when the counted time length reaches the retracting operation execution time length, the retractable device is considered to complete the retracting operation, where the retracting operation execution time length may be, but is not limited to, 5S or 8S.
In the embodiment of the present invention, after the retractable device performs the retracting operation in response to the retracting control command, the retractable device may be successfully retracted, in which case the retracting controllability of the retractable device is acceptable, but the retractable device may not be successfully retracted, in which case the retracting controllability of the retractable device is not acceptable.
Step S200, determining whether an object image of a reference object exists in the first scene image to obtain a first determination result.
In the embodiment of the application, whether the object image of the reference object exists in the first scene image or not can be judged according to the outline of the reference object, whether the object image of the reference object exists in the first scene image or not can be judged according to the color of the reference object, and whether the object image of the reference object exists in the first scene image or not can be judged by combining the outline and the color of the reference object. Taking the example of determining whether the object image of the reference object exists in the first scene image according to the color of the reference object, in the embodiment of the present application, the step S200 may include the steps S210, S220, S230, and S240.
Step S210, performing image segmentation on the first scene image to obtain a plurality of target area images.
In the embodiment of the application, the first scene image can be subjected to image segmentation through an image edge detection algorithm, and a plurality of target area images are obtained. The edge detection algorithm may be, but is not limited to, a differential edge detection algorithm, a reberts edge detection algorithm, a Sobel edge detection algorithm, a Prewitt edge detection algorithm, a Kirsch edge detection algorithm, and a Laplace edge detection algorithm.
Step S220 is to determine whether there is a target area image having color characteristics consistent with the target characteristics in the plurality of target area images.
In step S220, after obtaining a plurality of target area images, converting the target area image from RGB (Red, Green, Blue) color space to HSV (Hue, Saturation) color space, and determining whether the HSV color space of the target area image belongs to the target color space, if the HSV color space of the target area image belongs to the target color space, the color characteristic of the target area image is consistent with the target characteristic, wherein the target color space is a range of Red in the target color space, for example, H (0, 10), S (43, 255), V (46, 255) ] ∪ [ H (156, 180), S (43, 255), V (46, 255) ].
In step S230, when there is a target area image with color characteristics consistent with the target characteristics in the plurality of target area images, a first determination result is obtained to represent an object image with a reference object in the first scene image.
It is understood that, in the embodiment of the present application, the target region image is an object image of the reference object, but it should be noted that, in addition, the current pixel area of the object image in the first scene image may be equal to or smaller than the entire pixel area of the reference object. When the current pixel area of the object image in the first scene image is equal to the whole pixel area of the reference object, the reference object is completely exposed, and when the current pixel area of the object image in the first scene image is smaller than the whole pixel area of the reference object, the reference object is partially blocked.
Step S240, when there is no target area image with color characteristics consistent with the target characteristics in the plurality of target area images, obtaining a first determination result to represent an object image without a reference object in the first scene image.
In the embodiment of the application, when there is no target area image with color characteristics consistent with the target characteristics in the plurality of target area images, the obtained first judgment result is used for representing that there is no reference object in the first scene image, which indicates that the reference object is completely blocked.
And step S300, obtaining a first test result of the telescopic device according to the first judgment result, and representing the telescopic controllability of the telescopic device.
It can be understood that, in the embodiment of the present application, the reference object should be in the storage state before the telescopic device performs the expansion action, and the reference object should be exposed, and after the telescopic device performs the expansion action, the reference object should be shielded by the expanded telescopic device, and correspondingly, before the telescopic device performs the storage action, the reference object should be in the expansion state and the reference object should be shielded by the expanded telescopic device, and after the telescopic device performs the storage action, the reference object should be exposed. Therefore, in the embodiment of the present application, according to the first determination result, the first test result of the expansion device is obtained for representing the expansion controllability of the expansion device, and it is specifically considered whether the performance test instruction is an expansion test instruction or a storage test instruction.
Based on the above description, if the performance test command is an expansion test command, in this embodiment, the step S300 may specifically be: when the first determination result indicates that the object image exists in the first scene image, it is determined that the first test result of the expansion device is unqualified in expansion controllability, and when the first determination result indicates that the object image does not exist in the first scene image, it is determined that the first test result of the expansion device is qualified in expansion controllability, and correspondingly, if the performance test instruction is the storage test instruction, in this embodiment of the application, the step S300 may specifically be: when the first judgment result represents that the object image exists in the first scene image, the first test result of the telescopic device is determined to be qualified in storage controllability, and when the first judgment result indicates that the object image does not exist in the first scene image, the first test result of the telescopic device is obtained and determined to be unqualified in storage controllability.
In addition, in order to improve the accuracy of the first test result, in the embodiment of the present application, if the performance test command is the expansion test command, the reference object 400 may be placed at an end position of the expansion direction of the expansion device 300, for example, when the expansion device 300 is the projection curtain 310, the reference object 400 may be placed at a position corresponding to a lower portion of a standard expansion position of the curtain 311 in the projection curtain 310, that is, the projection curtain 310 performs the expansion action, after the curtain 311 expands to the standard expansion position, a lower edge of the curtain 311 is collinear with a lower edge of the reference object 400, specifically, referring to fig. 6, and correspondingly, if the performance test command is the accommodation test command, the reference object 400 may be placed at an end position of the accommodation direction of the expansion device 300, for example, when the expansion device 300 is the projection curtain 310, the reference object 400 may be placed at a position corresponding to an upper portion of the standard expansion position of the curtain 311 in the projection curtain 310, since the upper portion of the standard extended position of the screen 311 in the projection screen 310 coincides with the lower edge of the rotating shaft in the roller mechanism 313, the upper edge of the reference object 400 is collinear with the lower edge of the rotating shaft in the roller mechanism, as shown in fig. 7.
Further, in order to improve reliability of a testing result of the telescopic controllability of the telescopic device, the testing method provided in the embodiment of the present application may further include step S400 and step S500 after step S300.
Step S400, obtaining the first test result of the target number.
In the embodiment of the present application, after the first test result is obtained once, step S100, step S200, and step S300 may be repeatedly performed until the first test result is obtained for a target number of times, where the target number of times may be, but is not limited to, 10 times and 20 times.
It should be noted that, if the performance test command is an expansion test command, after the steps S100, S200 and S300 are performed once, the electronic device may automatically generate an accommodation control command, and after the expansion device responds to the accommodation control command to perform the accommodation operation, the electronic device may automatically generate an expansion control command, and after the expansion device responds to the expansion control command to perform the expansion operation, the electronic device may generate an expansion test command, and then, after the steps S100, S200 and S300 are performed once again, correspondingly, if the performance test command is an accommodation test command, after the steps S100, S200 and S300 are performed once, the electronic device may automatically generate an expansion control command, and after the expansion device responds to the expansion control command to perform the expansion operation, the electronic device may automatically generate an accommodation control command, and after the expansion device responds to the accommodation control command, after the storage operation is performed, a storage test command is generated, and step S100, step S200, and step S300 are performed again.
Also, it should be noted that, in the embodiment of the present application, whether the retractable device completes the retracting operation may be determined according to a preset retracting operation execution time length, for example, when the electronic device sends a retracting control instruction to the retractable device, the time is synchronously counted, when the time length reaches the time length when the retracting operation is executed, the retractable device is considered to complete the retracting operation, correspondingly, whether the retractable device completes the extending operation may be determined according to a preset extending operation execution time length, for example, when the electronic device sends an extending control instruction to the retractable device, the time is synchronously counted, and when the time length reaches the time length when the extending operation is executed, the retractable device is considered to complete the extending operation.
And S500, carrying out statistical analysis on the first test results of the target number to obtain a final test result, wherein the final test result is used for representing the final telescopic controllability of the telescopic device.
In the embodiment of the application, if the performance test instruction is an expansion test instruction, the proportion of the first test result with qualified expansion controllability of the expansion device can be represented according to the first test result of the target number, and a final test result is obtained. For example, when the ratio of the first test result which indicates that the expansion controllability of the expansion device is qualified in the first test result of the target number is greater than or equal to a first preset ratio, a final test result is obtained for indicating that the final expansion controllability of the expansion device is qualified, and when the ratio of the first test result which indicates that the expansion controllability of the expansion device is qualified in the first test result of the target number is smaller than the first preset ratio, a final test result is obtained for indicating that the final expansion controllability of the expansion device is unqualified, wherein the first preset ratio may be 100%.
Similarly, in the embodiment of the application, if the performance test instruction is the storage test instruction, the ratio of the first test results with qualified storage controllability of the expansion device can be represented according to the first test results of the target number of times, so as to obtain the final test result. For example, when the ratio of the first test result, which indicates that the retractable device is qualified in the storage controllability, in the first test result of the target number is greater than or equal to a second preset ratio, a final test result is obtained for indicating that the retractable device is qualified in the final storage controllability, and when the ratio of the first test result, which indicates that the retractable device is qualified in the storage controllability, in the first test result of the target number is less than the second preset ratio, a final test result is obtained for indicating that the retractable device is unqualified in the final storage controllability, where the second preset ratio may be 100%.
In addition, it should be noted that in the production and manufacturing process of the expansion device, after the expansion controllability of the expansion device is tested and the test result shows that the expansion controllability of the expansion device is not qualified, a maintenance worker is often required to overhaul the expansion device to improve the expansion controllability of the expansion device. In general, the reason why the telescopic controllability is not good may be that the signal receiving unit of the telescopic device cannot normally receive the control command (the expansion control command or the storage control command), but may also be that an abnormality occurs in the electromechanical control portion of the telescopic device, for example, when the telescopic device is a projection screen, an abnormality may also occur in the control motor or the roller mechanism of the projection screen.
When the reason that the telescopic controllability is not qualified is that the electromechanical control part of the telescopic device is abnormal, the situation is often more complicated. Taking a control command as an example of an expansion control command, after the electronic equipment responds to an expansion test operation to generate an expansion control command and sends the expansion control command to the expansion device, the expansion device responds to the expansion control command to execute an expansion action, but due to the abnormality of the electromechanical control part, the expanded expansion device may not be completely expanded and generate an offset. At present, for such a situation, a tester usually observes and manually records the offset direction of the telescopic device, and provides the recorded offset direction for a maintenance worker, and the maintenance worker performs targeted detection and maintenance on the telescopic device according to the expansion offset direction of the telescopic device. This method is cumbersome and highly dependent on manual operation, which in turn leads to inefficient manufacturing of the telescopic device.
Based on the above description, in order to improve the production and manufacturing efficiency of the expansion device, in the test method provided in the embodiment of the present application, if the performance test instruction is the expansion test instruction, when the first determination result indicates that the object image exists in the first scene image, after determining that the first test result of the expansion device is that the expansion controllability is not good, step S611 and step S612 may further be included.
In step S611, it is determined whether the current pixel area of the object image in the first scene image is smaller than the entire pixel area of the reference object.
In the embodiment of the application, the whole pixel area of the reference objectThe size of the reference object can be determined according to the shape, size, placement mode and object-image size ratio of the reference object, for example, when the reference object is a cube with the size of 50CM, one face of the reference object is placed opposite to the shooting face of the image pick-up device, and the object-image size ratio is 12.5, the area of the front face of the image pick-up device opposite to the reference object is 50CM 2500CM2When the ratio of the size of the object image is 12.5, the entire pixel area of the reference object that can be acquired by the imaging device is 4CM by 4CM or 16CM2. Thus, when the current pixel area of the object image in the first scene image is less than 16CM2And if so, judging that the current pixel area of the object image in the first scene image is smaller than the whole pixel area of the reference object, wherein the situation is usually that the telescopic device cannot be completely unfolded due to the abnormity of the electromechanical control part, and the displacement occurs.
Step S612, when the current pixel area of the object image in the first scene image is smaller than the whole pixel area of the reference object, analyzing the pixel area change condition of the object image in the first scene image, and determining the expansion offset direction of the telescopic device.
In general, when the pixel area of the object image in the first scene image is changed to: when the pixel area of the object image in the first scene image gradually increases from the first direction to the second direction, it is described that the expansion and contraction device 300 has the expansion and contraction offset direction as the second direction, and specifically, referring to fig. 8, correspondingly, when the pixel area of the object image in the first scene image changes as: when the pixel area of the object image in the first scene image gradually decreases from the first direction to the second direction, the expansion offset direction of the telescopic device 300 is illustrated as the first direction, and specifically, refer to fig. 9.
Through the steps S611 and S612, after the expansion and deviation direction of the expansion device is determined, a maintenance worker can perform targeted detection and maintenance on the expansion device according to the expansion and deviation direction of the expansion device, so that the production and manufacturing efficiency of the expansion device is improved.
Similarly, in order to improve the production and manufacturing efficiency of the expansion device, in the testing method provided in the embodiment of the application, if the performance testing instruction is the storage testing instruction, when the first determination result indicates that the object image exists in the first scene image, after determining that the first testing result of the expansion device is that the storage controllability is qualified, step S621 and step S622 may be further included.
Step S621 is performed to determine whether the current pixel area of the object image in the first scene image is smaller than the entire pixel area of the reference object.
Similarly, in the embodiment of the present application, the whole pixel area of the reference object may be determined according to the shape, size, placement mode, and object-image size ratio of the reference object, for example, when the reference object is a cube with a size of 50CM x 50CM, one face of which is placed opposite to the image capturing face of the image capturing device, and the object-image size ratio is 12.5, the area of the front face of the image capturing device opposite to the reference object is 50CM x 50CM — 2500CM2When the ratio of the size of the object image is 12.5, the entire pixel area of the reference object that can be acquired by the imaging device is 4CM by 4CM or 16CM2. Thus, when the current pixel area of the object image in the first scene image is less than 16CM2In the case of the second scene image, the current pixel area of the object image in the first scene image is determined to be smaller than the entire pixel area of the reference object, which is usually the case that the telescopic device cannot be completely accommodated due to an abnormality of the electromechanical control part, and thus the displacement occurs.
In step S622, when the current pixel area of the object image in the first scene image is smaller than the whole pixel area of the reference object, the change of the pixel area of the object image in the first scene image is analyzed, and the storage offset direction of the telescopic device is determined.
In general, when the pixel area of the object image in the first scene image is changed to: when the pixel area of the object image in the first scene image gradually increases from the first direction to the second direction, it is described that the storage offset direction of the telescopic device 300 is the second direction, and specifically, referring to fig. 10, correspondingly, when the pixel area of the object image in the first scene image changes as: when the pixel area of the object image in the first scene image gradually decreases from the first direction to the second direction, it is described that the accommodating offset direction of the telescopic device 300 is the first direction, and specifically, refer to fig. 11.
Through step S621 and step S622, after the storage offset direction of the expansion device is determined, a maintenance worker can perform targeted detection and maintenance on the expansion device according to the storage offset direction of the expansion device, so that the production and manufacturing efficiency of the expansion device is improved.
In order to further improve the automation degree of the telescopic controllability test of the telescopic device, in the test method provided in the embodiment of the application, if the performance test instruction is an expansion test instruction, when the first determination result represents that no object image exists in the first scene image, after the first test result of the telescopic device is determined to be qualified for the expansion controllability, the method may further include step S700, step S800, step S900, and step S1000.
Step S700 is to generate a storage control command, and to generate a storage test command after the retractable device executes a storage operation in response to the storage control command.
In the embodiment of the application, when the first judgment result represents that the object image does not exist in the first scene image, after the first test result of the telescopic device is determined to be qualified in the unfolding controllability, the electronic device can automatically generate an accommodating control instruction and send the accommodating control instruction to the telescopic device, the telescopic device responds to the accommodating control instruction to execute an accommodating action, and after the telescopic device executes the accommodating action, the electronic device generates an accommodating test instruction. Also, it should be noted that, in the embodiment of the present application, whether the retractable device completes the retracting operation may be determined according to a preset retracting operation execution time, for example, when the electronic device sends a retracting control command to the retractable device, the electronic device synchronously counts time, and when the counted time reaches the retracting operation execution time, the retractable device is considered to complete the retracting operation.
Similarly, in the embodiment of the present application, after the retractable device performs the retracting operation in response to the retracting control command, the retractable device may be successfully retracted, in which case the retracting controllability of the retractable device is acceptable, but the retractable device may not be successfully retracted, in which case the retracting controllability of the retractable device is not acceptable.
And step S800, responding to the storage test instruction, and controlling the camera device to acquire a second scene image of the target scene.
Step S900, determining whether an object image of the reference object exists in the second scene image to obtain a second determination result.
For the description of step S900, reference may be made to the detailed description of step S200, that is, step S900 has the same inventive concept as step S200, which is not described in detail in this embodiment of the present application.
And S1000, obtaining a second test result of the telescopic device according to the second judgment result so as to represent the telescopic controllability of the telescopic device.
In this embodiment of the application, step S1000 may specifically be: and when the second judgment result indicates that the object image exists in the second scene image, determining that the second test result of the telescopic device is qualified in the storage controllability, and when the second judgment result indicates that the object image does not exist in the second scene image, obtaining the second test result of the telescopic device and determining that the second test result of the telescopic device is unqualified in the storage controllability.
Similarly, to improve the production and manufacturing efficiency of the retractable device, based on the same inventive concept as that in steps S621 and S622, in the testing method provided in this embodiment of the application, when the second determination result indicates that the object image exists in the second scene image, after determining that the second test result of the retractable device is that the storage controllability is qualified, step S1100 and step S1200 may be further included.
Step S1100, determining whether the current pixel area of the object image in the second scene image is smaller than the entire pixel area of the reference object.
For the description of step S1100, reference may be made to the detailed description of step S621, that is, step S1100 has the same inventive concept as step S621, which is not described in detail in this embodiment of the present application.
Step S1200, when the current pixel area of the object image in the second scene image is smaller than the whole pixel area of the reference object, analyzing the pixel area change condition of the object image in the second scene image, and determining the storage offset direction of the telescopic device.
For the description of step S1200, reference may be made to the detailed description of step S622 above, that is, step S1200 has the same inventive concept as step S622, which is not described in detail in this embodiment of the present application.
Through the steps S1100 and S1200, after the storage offset direction of the telescopic device is determined, a maintenance worker can carry out targeted detection and maintenance on the telescopic device according to the storage offset direction of the telescopic device, so that the production and manufacturing efficiency of the telescopic device is improved.
Based on the same inventive concept as the above-mentioned testing method, the embodiment of the present application further provides a testing apparatus 500 applied to an electronic device. Referring to fig. 12, a testing apparatus 500 according to an embodiment of the disclosure includes a first image obtaining module 510, a first determining module 520, and a first result obtaining module 530.
The first image obtaining module 510 is configured to respond to a performance test instruction, and control the image capturing apparatus to obtain a first scene image of a target scene, where the target scene includes a telescopic apparatus and a reference object, and an expansion position of the telescopic apparatus is located between the image capturing apparatus and the reference object.
The description of the first image obtaining module 510 may refer to the detailed description of step S100 in the above related embodiments of the testing method, that is, step S100 may be executed by the first image obtaining module 510.
The first determining module 520 is configured to determine whether an object image of the reference object exists in the first scene image, so as to obtain a first determination result.
The description of the first determining module 520 may refer to the detailed description of the step S200 in the embodiment related to the testing method, that is, the step S200 may be executed by the first determining module 520.
A first result obtaining module 530, configured to obtain a first test result of the expansion device according to the first determination result, and is configured to represent an expansion controllability of the expansion device.
If the performance test instruction is an expansion test instruction, the first result obtaining module 530 is specifically configured to determine that a first test result of the expansion device is unqualified in expansion controllability when the first determination result indicates that the object image exists in the first scene image, determine that the first test result of the expansion device is qualified in expansion controllability when the first determination result indicates that the object image does not exist in the first scene image, and if the performance test instruction is a storage test instruction, the first result obtaining module 530 is specifically configured to determine that the first test result of the expansion device is qualified in storage controllability when the first determination result indicates that the object image exists in the first scene image, and obtain that the first test result of the expansion device is unqualified in storage controllability when the first determination result indicates that the object image does not exist in the first scene image.
The description of the first result obtaining module 530 may refer to the detailed description of the step S300 in the above related embodiment of the testing method, that is, the step S300 may be executed by the first result obtaining module 530.
Optionally, in this embodiment of the application, if the performance test instruction is an expansion test instruction, the test apparatus 500 further includes a second determining module and a first offset direction determining module.
When the first judgment result represents that the object image exists in the first scene image, and after the first test result of the telescopic device is determined that the expansion controllability is unqualified, the second judgment module is used for judging whether the current pixel area of the object image in the first scene image is smaller than the whole pixel area of the reference object.
The description of the second determining module may refer to the detailed description of step S611 in the above embodiments related to the testing method, that is, step S611 may be executed by the second determining module.
And the first offset direction determining module is used for analyzing the pixel area change condition of the object image in the first scene image and determining the expansion offset direction of the telescopic device when the current pixel area of the object image in the first scene image is smaller than the whole pixel area of the reference object.
The description of the first deviation direction determining module may refer to the detailed description of step S612 in the above-mentioned related embodiments of the testing method, that is, step S612 may be executed by the first deviation direction determining module.
Optionally, in this embodiment of the application, if the performance test instruction is an accommodation test instruction, the test apparatus 500 further includes a third determining module and a second deviation direction determining module.
When the first judgment result represents that the object image exists in the first scene image, and after the first test result of the telescopic device is determined to be that the storage controllability is qualified, the third judgment module is used for judging whether the current pixel area of the object image in the first scene image is smaller than the whole pixel area of the reference object.
The description of the third determining module may refer to the detailed description of step S621 in the above embodiments related to the testing method, that is, step S621 may be executed by the third determining module.
And the second offset direction determining module is used for analyzing the pixel area change condition of the object image in the first scene image and determining the storage offset direction of the telescopic device when the current pixel area of the object image in the first scene image is smaller than the whole pixel area of the reference object.
The description of the second deviation direction determining module may refer to the detailed description of step S622 in the above-mentioned related embodiments of the testing method, that is, step S622 may be executed by the second deviation direction determining module.
Optionally, in this embodiment of the application, if the performance test instruction is an expansion test instruction, the test apparatus 500 further includes an instruction generation first instruction generation module, a second image acquisition module, a fourth determination module, and a second result acquisition module.
When the first judgment result represents that no object image exists in the first scene image, and the first test result of the telescopic device is determined to be qualified in expansion controllability, the first instruction generation module is used for generating a storage control instruction, and generating a storage test instruction after the telescopic device responds to the storage control instruction and executes a storage action.
The description of the first instruction generating module may refer to the detailed description of step S700 in the above related embodiments of the testing method, that is, step S700 may be executed by the first instruction generating module.
And the second image acquisition module is used for responding to the storage test instruction and controlling the camera device to acquire a second scene image of the target scene.
The description of the second image obtaining module may refer to the detailed description of step S800 in the above related embodiments of the testing method, that is, step S800 may be executed by the second image obtaining module.
And the fourth judging module is used for judging whether the second scene image has the object image of the reference object or not so as to obtain a second judging result.
The description of the fourth determining module may refer to the detailed description of step S900 in the above embodiments related to the testing method, that is, step S900 may be executed by the fourth determining module.
And the second result acquisition module is used for acquiring a second test result of the telescopic device according to the second judgment result so as to represent the telescopic controllability of the telescopic device.
The second result obtaining module is specifically configured to determine that a second test result of the expansion device is qualified in storage controllability when the second determination result indicates that the object image exists in the second scene image, and to obtain a second test result of the expansion device as unqualified in storage controllability when the second determination result indicates that the object image does not exist in the second scene image.
The description of the second result obtaining module may refer to the detailed description about step S1000 in the above related embodiments of the testing method, that is, step S1000 may be executed by the second result obtaining module.
Optionally, in this embodiment of the application, the testing apparatus 500 further includes a fourth determining module and a third deviation direction determining module.
When the second judgment result represents that the object image exists in the second scene image, and after the second test result of the telescopic device is determined to be that the storage controllability is qualified, the fourth judgment module is used for judging whether the current pixel area of the object image in the second scene image is smaller than the whole pixel area of the reference object.
The description of the fourth determining module may refer to the detailed description of step S1100 in the embodiment related to the testing method, that is, step S1100 may be executed by the fourth determining module.
And the third offset direction determining module is used for analyzing the pixel area change condition of the object image in the second scene image and determining the storage offset direction of the telescopic device when the current pixel area of the object image in the second scene image is smaller than the whole pixel area of the reference object.
The description of the third deviation direction determination module may refer to the detailed description of step S1200 in the above-mentioned related embodiments of the test method, that is, step S1200 may be executed by the third deviation direction determination module.
Optionally, in this embodiment of the application, the testing apparatus 500 further includes a second instruction generating module and a third instruction generating module.
And if the performance test instruction is an expansion test instruction, responding to the performance test instruction, and before the camera device is controlled to acquire the first scene image of the target scene, the second instruction generation module is used for responding to the expansion test operation to generate an expansion control instruction, and after the expansion device responds to the expansion control instruction and executes the expansion action, generating the expansion test instruction.
The description of the second instruction generating module may refer to the detailed description about step S001 in the above embodiments related to the testing method, that is, step S001 may be executed by the second instruction generating module.
And if the performance test instruction is a storage test instruction, responding to the performance test instruction, and before the camera device is controlled to acquire the scene image of the target scene, the third instruction generation module is used for responding to the storage test operation to generate a storage control instruction, and after the telescopic device responds to the storage control instruction and executes the storage action, generating the storage test instruction.
The description of the third instruction generating module may refer to the detailed description of step S002 in the above-mentioned related testing method embodiment, that is, step S002 may be executed by the third instruction generating module.
Optionally, in this embodiment of the application, the first determining module 520 further includes an image segmentation unit, a feature determining unit, and a result obtaining unit.
And the image segmentation unit is used for carrying out image segmentation on the first scene image to obtain a plurality of target area images.
The description of the image segmentation unit may refer to the detailed description of step S210 in the above-mentioned related embodiments of the testing method, that is, step S210 may be performed by the image segmentation unit.
And the characteristic judging unit is used for judging whether a target area image with color characteristics consistent with the target characteristics exists in the target area images.
The description of the feature determination unit may refer to the detailed description of step S220 in the above embodiments related to the testing method, that is, step S220 may be executed by the feature determination unit.
And the result acquisition unit is used for acquiring a first judgment result to represent an object image with a reference object in the first scene image when a target area image with the color characteristic consistent with the target characteristic exists in the plurality of target area images.
The description of the result obtaining unit may refer to the detailed description of step S230 in the above related embodiments of the testing method, that is, step S230 may be executed by the result obtaining unit.
Optionally, in this embodiment of the application, the testing apparatus 500 further includes a third result obtaining module and a fourth result obtaining module.
And the third result acquisition module is used for acquiring the first test results of the target number.
The description of the third result obtaining module may refer to the detailed description of step S400 in the above related embodiments of the testing method, that is, step S400 may be executed by the third result obtaining module.
And the fourth result acquisition module is used for carrying out statistical analysis on the first test results of the target number to obtain a final test result so as to represent the final telescopic controllability of the telescopic device.
The description of the fourth result obtaining module may refer to the detailed description of step S500 in the above related embodiments of the testing method, that is, step S500 may be executed by the fourth result obtaining module.
In addition, an embodiment of the present application further provides a storage medium, where a computer program is stored on the storage medium, and when the computer program is executed, the test method provided in the foregoing method embodiment is implemented.
In summary, according to the testing method, the testing device, the electronic apparatus, and the storage medium provided in the embodiments of the present application, the first scene image of the target scene can be obtained by controlling the camera device, and whether the object image of the reference object exists in the first scene image is determined, so as to obtain the first determination result. Obviously, compared with the prior art that the telescoping controllability of the telescoping device is tested through manual operation, for example, the electric control switch is manually operated, and then the telescoping execution result of the telescoping device is observed and manually recorded, as a method of statistical data, the testing method provided by the embodiment of the application has a simple testing process and does not need to rely on manual operation, so that the degree of automation is high.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in each embodiment of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method described in each embodiment of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Moreover, it is noted that, in this document, relational terms such as "first," "second," "third," and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.

Claims (10)

1. A method of testing, comprising:
responding to a performance test instruction, controlling a camera device to acquire a first scene image of a target scene, wherein the target scene comprises a telescopic device and a reference object, and the expansion position of the telescopic device is positioned between the camera device and the reference object;
judging whether an object image of the reference object exists in the first scene image or not to obtain a first judgment result;
and obtaining a first test result of the telescopic device according to the first judgment result, and the first test result is used for representing the telescopic controllability of the telescopic device.
2. The method according to claim 1, wherein the performance test instruction is an expansion test instruction, and the obtaining a first test result of the expansion device according to the first determination result to represent the expansion controllability of the expansion device comprises:
when the first judgment result represents that the object image exists in the first scene image, determining that a first test result of the telescopic device is unqualified in expansion controllability;
when the first judgment result represents that the object image does not exist in the first scene image, determining that a first test result of the telescopic device is qualified in expansion controllability;
or, the performance test instruction is a storage test instruction, and the first determination result obtains a first test result of the expansion device according to the first determination result to represent the expansion controllability of the expansion device, including:
when the first judgment result represents that the object image exists in the first scene image, determining that a first test result of the telescopic device is qualified in storage controllability;
and when the first judgment result indicates that the object image does not exist in the first scene image, obtaining a first test result for determining that the retractable device is unqualified in storage controllability.
3. The testing method according to claim 2, wherein if the performance testing instruction is an expansion testing instruction, and when the first determination result indicates that the object image does not exist in the first scene image, after determining that the first testing result of the telescopic device is qualified for expansion controllability, the testing method further comprises:
generating a storage control command, and generating a storage test command after the telescopic device responds to the storage control command and executes a storage action;
responding to the storage test instruction, and controlling the camera device to acquire a second scene image of the target scene;
judging whether an object image of the reference object exists in the second scene image or not to obtain a second judgment result;
and obtaining a second test result of the telescopic device according to the second judgment result so as to represent the telescopic controllability of the telescopic device.
4. The method according to claim 3, wherein the obtaining a second test result of the retractable device according to the second determination result to characterize the retractable controllability of the retractable device comprises:
when the second judgment result represents that the object image exists in the second scene image, determining that a second test result of the telescopic device is qualified in storage controllability;
and when the second judgment result indicates that the object image does not exist in the second scene image, obtaining and determining that a second test result of the telescopic device is unqualified in storage controllability.
5. The method according to claim 2, wherein if the performance test command is an expansion test command, and before the performance test command is responded to control the camera device to acquire the first scene image of the target scene, the method further comprises:
responding to an unfolding test operation, generating an unfolding control instruction, and generating the unfolding test instruction after the telescopic device responds to the unfolding control instruction and executes an unfolding action;
if the performance test instruction is the storage test instruction, and the response performance test instruction controls the camera device to acquire the scene image of the target scene, the test method further includes:
and responding to the storage test operation to generate a storage control command, and after the telescopic device responds to the storage control command and executes the storage action, generating the storage test command.
6. The method according to claim 1, wherein the determining whether the object image of the reference object exists in the first scene image to obtain a first determination result includes:
performing image segmentation on the first scene image to acquire a plurality of target area images;
judging whether a target area image with color characteristics consistent with the target characteristics exists in the target area images or not;
when a target area image with color characteristics consistent with target characteristics exists in the plurality of target area images, obtaining a first judgment result to represent an object image of the reference object in the first scene image;
and when no target area image with the color characteristic consistent with the target characteristic exists in the plurality of target area images, obtaining a first judgment result to represent an object image without the reference object in the first scene image.
7. The method according to claim 1, wherein after obtaining the first test result of the retractable device according to the first determination result to characterize the retractable controllability of the retractable device, the method further comprises:
acquiring a target number of first test results;
and carrying out statistical analysis on the first test results of the target number of times to obtain a final test result, wherein the final test result is used for representing the final telescopic controllability of the telescopic device.
8. A test apparatus, comprising:
the first image acquisition module is used for responding to a performance test instruction and controlling the camera device to acquire a first scene image of a target scene, wherein the target scene comprises a telescopic device and a reference object, and the expansion position of the telescopic device is positioned between the camera device and the reference object;
the first judgment module is used for judging whether the object image of the reference object exists in the first scene image so as to obtain a first judgment result;
and the first result acquisition module is used for acquiring a first test result of the telescopic device according to the first judgment result and representing the telescopic controllability of the telescopic device.
9. An electronic device comprising a processor and a memory, the memory having a computer program stored thereon, the processor being configured to execute the computer program to implement the testing method of any one of claims 1 to 7.
10. A storage medium having a computer program stored thereon, wherein the computer program, when executed, implements a testing method as claimed in any one of claims 1 to 7.
CN202010167471.7A 2020-03-11 2020-03-11 Test method, test device, electronic equipment and storage medium Active CN111292316B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010167471.7A CN111292316B (en) 2020-03-11 2020-03-11 Test method, test device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010167471.7A CN111292316B (en) 2020-03-11 2020-03-11 Test method, test device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111292316A true CN111292316A (en) 2020-06-16
CN111292316B CN111292316B (en) 2023-09-01

Family

ID=71021566

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010167471.7A Active CN111292316B (en) 2020-03-11 2020-03-11 Test method, test device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111292316B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1601370A (en) * 2003-09-26 2005-03-30 日本电气视象技术株式会社 Projection display device
CN1738441A (en) * 2004-08-19 2006-02-22 精工爱普生株式会社 Automatic keystone distortion correction using a part of edges of a screen
US20120140319A1 (en) * 2010-12-03 2012-06-07 Fujitsu Limited Projector system and device, recording medium storing position detection program, and image providing method
CN103929603A (en) * 2013-01-16 2014-07-16 株式会社理光 Image Projection Device, Image Projection System, And Control Method
CN104473546A (en) * 2015-01-12 2015-04-01 重庆晨古科技有限公司 Electric curtain controller
CN105486646A (en) * 2014-10-07 2016-04-13 精工爱普生株式会社 Signal detection method, calibration curve creation method, quantification method
CN106878787A (en) * 2017-03-08 2017-06-20 深圳创维-Rgb电子有限公司 TV theater mode implementation method and device
CN107865567A (en) * 2016-09-28 2018-04-03 上海博开遮阳科技有限公司 The electrically driven curtain and its system and implementation method of Intelligent Recognition user
CN107917678A (en) * 2016-10-06 2018-04-17 发那科株式会社 Projection pattern producing device and three-dimentional measurement device
US20180152681A1 (en) * 2016-06-08 2018-05-31 Panasonic Intellectual Property Management Co., Ltd. Projection system
CN108369091A (en) * 2015-12-18 2018-08-03 索尼公司 Image processing apparatus and method, data and recording medium
CN110012276A (en) * 2019-04-30 2019-07-12 成都市极米科技有限公司 Method for controlling projection, projector controller and optical projection system
CN110677634A (en) * 2019-11-27 2020-01-10 成都极米科技股份有限公司 Trapezoidal correction method, device and system for projector and readable storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1601370A (en) * 2003-09-26 2005-03-30 日本电气视象技术株式会社 Projection display device
CN1738441A (en) * 2004-08-19 2006-02-22 精工爱普生株式会社 Automatic keystone distortion correction using a part of edges of a screen
US20120140319A1 (en) * 2010-12-03 2012-06-07 Fujitsu Limited Projector system and device, recording medium storing position detection program, and image providing method
CN103929603A (en) * 2013-01-16 2014-07-16 株式会社理光 Image Projection Device, Image Projection System, And Control Method
CN105486646A (en) * 2014-10-07 2016-04-13 精工爱普生株式会社 Signal detection method, calibration curve creation method, quantification method
CN104473546A (en) * 2015-01-12 2015-04-01 重庆晨古科技有限公司 Electric curtain controller
CN108369091A (en) * 2015-12-18 2018-08-03 索尼公司 Image processing apparatus and method, data and recording medium
US20180152681A1 (en) * 2016-06-08 2018-05-31 Panasonic Intellectual Property Management Co., Ltd. Projection system
CN107865567A (en) * 2016-09-28 2018-04-03 上海博开遮阳科技有限公司 The electrically driven curtain and its system and implementation method of Intelligent Recognition user
CN107917678A (en) * 2016-10-06 2018-04-17 发那科株式会社 Projection pattern producing device and three-dimentional measurement device
CN106878787A (en) * 2017-03-08 2017-06-20 深圳创维-Rgb电子有限公司 TV theater mode implementation method and device
CN110012276A (en) * 2019-04-30 2019-07-12 成都市极米科技有限公司 Method for controlling projection, projector controller and optical projection system
CN110677634A (en) * 2019-11-27 2020-01-10 成都极米科技股份有限公司 Trapezoidal correction method, device and system for projector and readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
高新波,雷云,姬红兵: "一种复杂背景下模板检测与定位的新方法" *

Also Published As

Publication number Publication date
CN111292316B (en) 2023-09-01

Similar Documents

Publication Publication Date Title
EP1984892B1 (en) Foreground/background segmentation in digital images
US20160094770A1 (en) Image Processing Method and Apparatus, and Terminal
JP4158343B2 (en) Program for identifying red-eye area in image, image processing apparatus, and recording medium
US9967482B2 (en) Image processing apparatus, image processing method, and storage medium for noise reduction processing
US10079974B2 (en) Image processing apparatus, method, and medium for extracting feature amount of image
CN110493595B (en) Camera detection method and device, storage medium and electronic device
US20190012793A1 (en) Image processing apparatus, image processing method, and storage medium
CN109040596B (en) Method for adjusting camera, mobile terminal and storage medium
US8059165B2 (en) Color processing apparatus, image processing apparatus, and method therefor
US20180150689A1 (en) Information processing apparatus, storage medium, and information processing method
US10455144B2 (en) Information processing apparatus, information processing method, system, and non-transitory computer-readable storage medium
US11037014B2 (en) Image processing apparatus, image processing method, and non-transitory computer-readable storage medium
US20170026546A1 (en) Image processing apparatus, image processing method, and storage medium
CN111292316A (en) Test method, test device, electronic equipment and storage medium
CN112188108A (en) Photographing method, terminal, and computer-readable storage medium
CN110610178A (en) Image recognition method, device, terminal and computer readable storage medium
CN116055607A (en) Zoom smoothness evaluation method and device and electronic equipment
US11575841B2 (en) Information processing apparatus, imaging apparatus, method, and storage medium
KR102384940B1 (en) Apparatus for detecting malfunction of cameras and method thereof
CN113761974A (en) Method for monitoring scalp, intelligent hair dryer and storage medium
US11822974B2 (en) Information processing apparatus, control method of information processing apparatus, and recording medium
CN112422827B (en) Information processing method, device and equipment and storage medium
JP7311099B2 (en) image display system
WO2020095790A1 (en) Subject detection device, system, method and recording medium
KR20230120073A (en) Method and apparatus for generating cognitive regions in consideration of video shooting devices and objects

Legal Events

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