CN111292316B - 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
CN111292316B
CN111292316B CN202010167471.7A CN202010167471A CN111292316B CN 111292316 B CN111292316 B CN 111292316B CN 202010167471 A CN202010167471 A CN 202010167471A CN 111292316 B CN111292316 B CN 111292316B
Authority
CN
China
Prior art keywords
image
test
result
telescopic device
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.)
Active
Application number
CN202010167471.7A
Other languages
Chinese (zh)
Other versions
CN111292316A (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

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 electronic control equipment production and manufacturing, 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: and responding to a performance test instruction, controlling an image pickup device to acquire a first scene image of a target scene, wherein the target scene comprises a telescopic device and a reference object, the unfolding position of the telescopic device is positioned between the image pickup device and the reference object, judging whether an object image of the reference object exists in the first scene image or not to acquire a first judgment result, and acquiring a first test result of the telescopic device according to the first judgment result, wherein the first test result is used for representing telescopic controllability of the telescopic device. By the testing method, the testing device, the electronic equipment and the storage medium provided by the embodiment of the application, the automation degree of the testing of the telescopic controllability 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 electronic control equipment production and manufacturing, in particular to a testing method, a testing device, electronic equipment and a storage medium.
Background
With the development of technology and the progress of the era, more and more intelligent equipment devices enter the daily life of people, such as projection equipment. Projection devices include a projection host and a projection curtain, wherein the projection curtain is a telescoping device that is typically tested for telescoping controllability during manufacturing. Currently, the telescoping controllability of a telescoping device is mainly tested by 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 test method has complicated test process, is excessively dependent on manual operation, and has low automation degree.
Disclosure of Invention
An embodiment of the application aims to provide a testing method, a testing device, electronic equipment and a storage medium so as to solve the problems.
In a first aspect, a test method provided by 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 unfolding 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 judging result;
and obtaining a first test result of the telescopic device according to the first judgment result, wherein the first test result is used for representing the telescopic controllability of the telescopic device.
In the test method provided in the foregoing embodiment, the image capturing device is controlled to obtain the first scene image of the target scene, 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, the testing method provided by the embodiment of the application has the advantages that the testing process is simple, the manual operation is not needed, and therefore, the degree of automation is higher, compared with the method for testing the telescopic controllability of the telescopic device by manual operation, for example, an electric control switch is manually operated, and then the telescopic execution result of the telescopic device is observed and manually recorded.
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 according to a first determination result, a first test result of the expansion device is obtained, so as to characterize expansion controllability of the expansion device, where the method includes:
when the first judging result represents that an object image exists in the first scene image, determining that a first test result of the telescopic device is unqualified in unfolding controllability;
when the first judgment result represents that no object image exists in the first scene image, determining that the first test result of the telescopic device is qualified in unfolding controllability;
or, the performance test instruction is a storage test instruction, the first judgment result obtains a first test result of the telescopic device according to the first judgment result, so as to represent telescopic controllability of the telescopic device, and the performance test instruction comprises:
when the first judging result represents that an object image exists in the first scene image, determining that the first test result of the telescopic device is qualified in storage controllability;
when the first judging result indicates that no object image exists in the first scene image, a first test result for determining the telescopic device is unqualified in storage controllability.
In the test method provided by the embodiment, when the performance test instruction is the unfolding test instruction, the automatic test of the unfolding controllability of the telescopic device can be realized, and correspondingly, when the performance test instruction is the storage test instruction, the automatic test of the storage controllability of the telescopic device can be realized, so that the comprehensiveness and the practicability of the test method can be improved, the judgment rule related 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, the 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, when the first judgment result characterizes that an object image exists in the first scene image, 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 or not;
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, analyzing the pixel area change condition of the object image in the first scene image, and determining the unfolding 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 the current pixel area of the object image in the first scene image is smaller than the overall pixel area of the reference object, the change condition of the pixel area of the object image in the first scene image can be analyzed, and the expansion offset direction of the expansion device is determined. Therefore, maintenance personnel can carry out targeted detection and maintenance on the telescopic device according to the unfolding offset direction of the telescopic device, so that the production and manufacturing efficiency of the telescopic device is improved.
With reference to the first optional implementation manner of the first aspect, the 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, when the first judgment result indicates that an object image exists in the first scene image, 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 or not;
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, 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.
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 the current pixel area of the object image in the first scene image is smaller than the entire pixel area of the reference object, the change condition of the pixel area of the object image in the first scene image can be analyzed, and the storage offset direction of the telescopic device is determined. Therefore, maintenance personnel 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.
With reference to the first optional implementation manner of the first aspect, the 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, when the first judgment result indicates that the object image does not exist in the first scene image, 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 storage operation;
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 or not to obtain a second judging 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 test method provided in the foregoing embodiment, if the performance test instruction is an expansion test instruction, when the first judgment result indicates that the object image does not exist in the first scene image, the test method further includes: generating a storage control instruction, generating a storage test instruction after the telescopic device responds to the storage control instruction to execute storage action, responding to the storage test instruction, controlling the image pickup 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 or not to acquire a second judgment result, and acquiring a second test result of the telescopic device according to the second judgment result to represent the telescopic controllability of the telescopic device so as to further improve the automation degree of the telescopic controllability test of the telescopic device.
With reference to the fourth optional implementation manner of the first aspect, the embodiment of the present application further provides a fifth optional implementation manner of the first aspect, and according to the second determination result, a second test result of the telescopic device is obtained, so as to characterize telescopic controllability of the telescopic device, where the method includes:
when the second judging result represents that an object image exists in the second scene image, determining that the second testing result of the telescopic device is qualified in storage controllability;
and when the second judging result indicates that the object image does not exist in the second scene image, obtaining a second testing result for determining the telescopic device as unqualified in storage controllability.
In the test method provided in the foregoing embodiment, a second test result of the telescopic device is obtained according to the second determination result, so as to characterize the telescopic controllability of the telescopic device, including determining that the second test result of the telescopic device is qualified in storage controllability when the second determination result characterizes that an object image exists in the second scene image, and obtaining the second test result of the telescopic device is determined as unqualified in storage controllability when the second determination result indicates that the object image does not exist in the second scene image.
With reference to the fifth optional implementation manner of the first aspect, the embodiment of the present application further provides a sixth optional implementation manner of the first aspect, when the second determination result indicates that the object image exists in the second scene image, the testing method further includes, after determining that the second test result of the telescopic device is qualified in storage controllability:
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 or not;
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 in the foregoing 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 entire pixel area of the reference object, the change condition of the pixel area of the object image in the second scene image may be analyzed, and the storage offset direction of the expansion device may be determined. Therefore, maintenance personnel 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.
With reference to the first optional implementation manner of the first aspect, the embodiment of the present application further provides a seventh optional implementation manner of the first aspect, and the testing method further includes, before the controlling the image capturing device to obtain the first scene image of the target scene, if the performance test instruction is an expansion test instruction, responding to the performance test instruction:
generating a deployment control instruction in response to the deployment test operation, and generating a deployment test instruction after the expansion device responds to the deployment control instruction and executes a deployment action;
if the performance test instruction is a storage test instruction, and before the camera device is controlled to acquire the scene image of the target scene in response to the performance test instruction, the test method further comprises:
in response to the housing test operation, a housing control instruction is generated, and after the expansion device executes a housing operation in response to the housing control instruction, a housing test instruction is generated.
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:
image segmentation is carried out on the first scene image, and a plurality of target area images are obtained;
Judging whether a target area image with the consistent color characteristics with the target characteristics exists in the target area images or not;
when a target area image with the color characteristics consistent with the target characteristics exists in the target area images, a first judging 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 consistent color characteristics with the target characteristics do not exist in the target area images, obtaining a first judging 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, and after obtaining, according to the first determination result, a first test result of the telescopic device to characterize the telescopic controllability of the telescopic device, the test method further includes:
obtaining a first test result of the target number;
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 controllable performance of the telescopic device.
In a second aspect, a testing device provided in an embodiment of the present application includes:
the first image acquisition module is used for 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 unfolding position of the telescopic device is positioned between the camera device and the reference object;
The first judging module is used for judging whether the object image of the reference object exists in the first scene image or not so as to obtain a first judging result;
the first result obtaining module is used for obtaining a first test result of the telescopic device according to the first judging result and used for representing telescopic controllability of the telescopic device.
The test device provided by the embodiment of the present application has the same advantages as the test method provided by the first aspect or any optional implementation manner of the first aspect, which is not described herein.
In a third aspect, an electronic device provided by 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 test method provided by the first aspect or any optional implementation manner of the first aspect.
The electronic device provided by the embodiment of the present application has the same advantages as the test method provided by the first aspect or any optional implementation manner of the first aspect, which is not described herein.
In a fourth aspect, an embodiment of the present application further provides a storage medium, where a computer program is stored, where the computer program is executed to implement the test method provided in the first aspect, or any optional implementation manner of the first aspect.
The storage medium provided by the embodiment of the present application has the same advantages as the test method provided by the first aspect or any optional implementation manner of the first aspect, which is not described herein.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed 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 should not be considered as limiting the scope, and other related drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic 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 application.
Fig. 3 is a schematic diagram of a target scenario provided in an embodiment of the present application.
Fig. 4 is a schematic view illustrating an unfolded state of a projection curtain according to an embodiment of the present application.
Fig. 5 is a schematic view illustrating a storage state of a projection curtain according to an embodiment of the 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 manner of a reference object in another target scene according to an embodiment of the present application.
Fig. 8 is a schematic diagram of unfolding offset of a telescopic device according to an embodiment of the present application.
Fig. 9 is a schematic diagram of an unfolding offset of another telescopic device according to an embodiment of the present application.
Fig. 10 is a schematic view illustrating a storage offset of a telescopic device according to an embodiment of the present application.
Fig. 11 is a schematic view illustrating a storage offset of another telescopic device according to an embodiment of the present application.
Fig. 12 is a schematic block diagram of a test apparatus according to an embodiment of the present application.
Reference numerals: 100-an electronic device; 110-a processor; 120-memory; 200-an image pickup device; 300-telescoping device; 310-projecting a curtain; 311-curtain; 312-controlling the motor; 313-roller mechanism; 400-reference; 500-testing device; 510-a first image acquisition module; 520-a first judgment module; 530-a first result acquisition module.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application. Furthermore, it should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
Referring to fig. 1, a schematic block diagram of an electronic device 100 employing a testing method and apparatus according to an embodiment of the present application is shown. In an embodiment of the present application, the electronic device 100 may be a terminal device, such as a computer, a personal digital assistant (Personal Digital Assistant, PAD), a mobile internet device (Mobile Internet Device, MID), or the like.
Structurally, the 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 transmission or interaction, for example, the elements may be electrically connected to each other through one or more communication buses or signal lines. The test means comprise at least one software module which may be stored in the memory 120 in the form of software or Firmware (Firmware) or cured in an Operating System (OS) of the electronic device 100. The processor 110 is configured to execute executable modules stored in the memory 120, such as software functional modules and computer programs included in the test apparatus, to implement the test method.
The processor 110 may execute the computer program after receiving the execution instructions. The processor 110 may be an integrated circuit chip with signal processing capability. The processor 110 may also be a general-purpose processor, such as a digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), discrete gate or transistor logic, discrete hardware components, may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present application, and may be a microprocessor or any conventional processor, among others.
The Memory 120 may be, but is not limited to, random access Memory (Random Access Memory, RAM), read Only Memory (ROM), programmable Read Only Memory (Programmable Read-Only Memory, PROM), erasable programmable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), and electrically erasable programmable Read Only Memory (Electric Erasable Programmable Read-Only Memory, EEPROM). The memory 120 is used for storing a program, and the processor 110 executes the program after receiving an execution instruction.
It should be understood that the configuration shown in fig. 1 is merely illustrative, and that 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 those shown in fig. 1. In addition, the components shown in fig. 1 may be implemented by software, hardware, or a combination thereof.
Referring to fig. 2, a flow chart of a testing method according to an embodiment of the application is shown, and the method is applied to the electronic device 100 shown in fig. 1. It should be noted that, the testing method provided by the embodiment 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.
In step S100, in response to the performance test instruction, the image capturing device is controlled to obtain a first scene image of a target scene, where the target scene includes a telescopic device and a reference object, and an unfolding position of the telescopic device is located between the image capturing device and the reference object.
In the embodiment of the application, the camera device can be independent of the electronic equipment and connected with the electronic equipment in a wired or wireless communication mode, and is used for acquiring the first scene image of the target scene and transmitting the first scene image to a processor included in the electronic equipment, and the camera device can also be arranged in the electronic equipment and connected with the processor included in the electronic equipment, and is used for acquiring the first scene image of the target scene and transmitting the first scene image to the processor.
Referring to fig. 3, a schematic view of a target scene provided in an embodiment of the application includes a telescopic device 300 and a reference object 400, and an unfolding 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, referring 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 setting the curtain 311, and a rotating portion of the roller mechanism 313 is connected with 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 a deployment operation, and the curtain 311 (shown in fig. 4) is deployed, 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, and the curtain 311 (shown in fig. 5) is stored. Of course, in the embodiment of the present application, the telescopic device 300 may be an electrically controlled curtain, an electrically controlled rolling shutter door, an electrically controlled telescopic door, or the like, in addition to the projection curtain 310.
In addition, in the embodiment of the present application, the reference object 400 may be an object with a logo having any shape or color, for example, may be a cube, and the color may be a protruding color different from the curtain 311, for example, when the projection area is white and the edge area is black in the curtain 311, the color of the reference object 400 may be a protruding color such as red, yellow, or the like.
For the performance test instruction, in the embodiment of the present application, the performance test instruction may be a development test instruction or a storage test instruction. Based on this, if the performance test instruction is an expansion test instruction, before executing step S100, the test method provided in the embodiment of the present application may further include step S001.
Step S001, generating a deployment control instruction in response to the deployment test operation, and generating a deployment test instruction after the expansion device executes a deployment action in response to the deployment control instruction.
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 expansion action execution duration, for example, when the electronic device sends an expansion control instruction to the expansion device, timing is synchronized, and when the timing duration reaches the expansion action execution duration, the expansion device is considered to complete the expansion action, where the expansion action execution duration may be, but is not limited to, 5S and 8S.
In addition, it should be noted that, in the embodiment of the present application, after the expansion device responds to the expansion control instruction and executes the expansion action, the expansion device may be successfully expanded, in which case the expansion controllability of the expansion device is acceptable, but may not be successfully expanded, in which case the expansion controllability of the expansion device is unacceptable.
If the performance test instruction is a storage test instruction, the test method provided in the embodiment of the present application may further include step S002 before executing step S100.
Step S002, in response to the housing test operation, generates a housing control command, and after the expansion device executes the housing operation in response to the housing control command, generates a housing test command.
In the embodiment of the application, the storage test operation may be that a tester manually operates a storage test button provided on the electronic device, and when the electronic device monitors the storage test operation, the electronic device generates a storage control instruction and sends the storage control instruction to the telescopic device, the telescopic device responds to the storage control instruction to execute the storage operation, and after the telescopic device executes the storage operation, the electronic device generates the storage test instruction. It should be noted that in the embodiment of the present application, whether the telescopic device completes the storage operation may be determined according to a preset storage operation execution duration, for example, when the electronic device sends a storage control instruction to the telescopic device, the timing is synchronized, and when the timing duration reaches the storage operation execution duration, the telescopic device is considered to complete the storage operation, where the storage operation execution duration may be, but is not limited to, 5S and 8S.
In addition, in the embodiment of the present application, after the telescopic device responds to the storage control command and performs the storage operation, the telescopic device may be successfully stored, in which case the storage controllability of the telescopic device is acceptable, but may not be successfully stored, in which case the storage controllability of the telescopic device is not acceptable.
Step S200, determining whether an object image of the reference object exists in the first scene image, so as 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 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 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 can be judged by combining the outline and the color of the reference object. Taking as an example that whether an object image of the reference object exists in the first scene image is determined according to the color of the reference object, in the embodiment of the present application, step S200 may include step S210, step S220, step S230 and step S240.
In step S210, image segmentation is performed on the first scene image, and a plurality of target area images are acquired.
In the embodiment of the application, the first scene image can be subjected to image segmentation through an image edge detection algorithm to obtain a plurality of target area images. The edge detection algorithm may be, but is not limited to, a differential edge detection algorithm, a Reborts edge detection algorithm, a Sobel edge detection algorithm, a Prewitt edge detection algorithm, a Kirsch edge detection algorithm, or a Laplace edge detection algorithm.
Step S220, determining whether there is a target area image with a color characteristic consistent with the target feature among the plurality of target area images.
The telescopic device is taken as a projection curtain, in the projection curtain, a projection area of the curtain is white, an edge area is black, a reference object is a cube, and the color is red, and correspondingly, in the embodiment of the application, the target feature is a red pixel feature. When step S220 is performed, after the plurality of target area images are obtained, the target area image may be converted from an RGB (Red, green, blue) color space into an HSV (Hue, saturation, value) color space for each of the plurality of target area images, and whether the HSV color space of the target area image belongs to the target color space is determined, and if the HSV color space of the target area image belongs to the target color space, it is determined that the color characteristics of the target area image are consistent with the target characteristics. Wherein the target color space is a range of red in the HSV color space, and may be, 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 a color characteristic consistent with the target feature in the plurality of target area images, a first determination result is obtained to characterize an object image with a reference object in the first scene image.
It may be understood that in the embodiment of the present application, the target area 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 whole pixel area of the reference object. The reference object is illustrated as fully exposed when the current pixel area of the object image in the first scene image is equal to the overall pixel area of the reference object, and partially occluded when the current pixel area of the object image in the first scene image is less than the overall pixel area of the reference object.
In step S240, when there is no target area image with a color characteristic consistent with the target characteristic in the plurality of target area images, a first determination result is obtained to characterize an object image in which no reference object exists in the first scene image.
In the embodiment of the application, when no target area image with the consistent color characteristics with the target characteristics exists in the plurality of target area images, the obtained first judgment result is used for representing that no reference object exists in the first scene image, and the reference object is completely blocked.
Step S300, according to the first judging result, a first testing result of the telescopic device is obtained and used for representing the telescopic controllability of the telescopic device.
It should be understood that, in the embodiment of the present application, the reference object is exposed and the expansion device is in a storage state before performing the expansion operation, and the reference object is blocked by the expansion device after performing the expansion operation. Therefore, in the embodiment of the present application, according to the first determination result, a first test result of the expansion device is obtained, which is used to characterize the expansion controllability of the expansion device, and in particular, whether the performance test instruction is a deployment test instruction or a storage test instruction is considered.
Based on the above description, if the performance test instruction is an expansion test instruction, in the embodiment of the present application, 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 unqualified in unfolding controllability, and when the first judgment result represents that the object image does not exist in the first scene image, the first test result of the telescopic device is determined to be qualified in unfolding controllability, and correspondingly, if the performance test instruction is a storage test instruction, in the embodiment of the application, the step S300 may specifically be: when the first judgment result represents that an 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 determined to be unqualified in storage controllability.
In addition, in order to improve accuracy of the first test result, in the embodiment of the present application, if the performance test instruction is a deployment test instruction, the reference object 400 may be placed at an end position in the deployment direction of the telescopic device 300, for example, when the telescopic device 300 is the projection curtain 310, the reference object 400 may be placed at a position corresponding to a lower portion of the standard deployment position of the curtain 311 in the projection curtain 310, that is, the projection curtain 310 performs the deployment operation, after the curtain 311 is deployed to the standard deployment position, the lower edge of the curtain 311 is collinear with the lower edge of the reference object 400, specifically, referring to fig. 6, and if the performance test instruction is a deployment test instruction, the reference object 400 may be placed at an end position in the deployment direction of the telescopic device 300, for example, when the telescopic 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 deployment position of the curtain 311 in the projection curtain 310, that is coincident with the lower edge of the drum mechanism 313, and thus, specifically referring to fig. 7, the upper edge of the drum mechanism may be collinear with the upper edge of the drum mechanism.
Further, in order to improve reliability of the testing result of the telescopic device telescopic controllability, the testing method provided by the embodiment of the application may further include step S400 and step S500 after step S300.
Step S400, obtaining first test results 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 target number of first test results are obtained, where the target number of first test results may be, but is not limited to, 10 times and 20 times.
In addition, it should be noted that, if the performance test instruction is a development test instruction, after the performance test instruction is executed once in step S100, step S200, and step S300, the electronic device may automatically generate a storage control instruction, and after the expansion device responds to the storage control instruction, perform a storage operation, then automatically generate a development control instruction, and after the expansion device responds to the development control instruction, perform a development operation, then generate a development test instruction, and once again execute step S100, step S200, and step S300, and, if the performance test instruction is a storage test instruction, after the performance test instruction is executed once in step S100, step S200, and step S300, the electronic device may automatically generate a development control instruction, and after the expansion device responds to the development control instruction, automatically generate a storage control instruction, and after the expansion device responds to the storage control instruction, perform a storage operation, generate a storage test instruction, thereby performing step S100, step S200, and step S300 again.
Also, it should be noted that, in the embodiment of the present application, whether the expansion device completes the storage operation may be determined according to a preset storage operation execution duration, for example, when the electronic device sends a storage control instruction to the expansion device, synchronous timing is performed, when the timing duration reaches the storage operation execution duration, the expansion device is considered to complete the storage operation, and correspondingly, whether the expansion device completes the expansion operation may be determined according to a preset expansion operation execution duration, for example, when the electronic device sends the expansion control instruction to the expansion device, synchronous timing is performed, and when the timing duration reaches the expansion operation execution duration, the expansion device is considered to complete the expansion 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 controllable performance of the telescopic device.
In the embodiment of the application, if the performance test instruction is a unfolding test instruction, the proportion of the first test results with qualified unfolding controllability of the telescopic device can be represented in the first test results according to the target number, so that a final test result is obtained. For example, when the ratio of the first test results indicating that the expansion controllability of the expansion device is acceptable is greater than or equal to a first preset ratio in the target number of first test results, a final test result is obtained for indicating that the expansion device is acceptable in final expansion controllability, and when the ratio of the first test results indicating that the expansion controllability of the expansion device is acceptable in the target number of first test results is less than the first preset ratio in the first test results, a final test result is obtained for indicating that the expansion device is unacceptable in final expansion controllability, wherein the first preset ratio may be 100%.
In the embodiment of the application, if the performance test instruction is a storage test instruction, the proportion of the first test results with qualified storage controllability of the telescopic device can be represented in the first test results according to the target number, so that the final test result can be obtained. For example, when the ratio of the first test results indicating that the storage controllability of the telescopic device is acceptable is greater than or equal to a second preset ratio in the target number of first test results, a final test result is obtained for indicating that the final storage controllability of the telescopic device is acceptable, and when the ratio of the first test results indicating that the storage controllability of the telescopic device is acceptable is less than the second preset ratio in the target number of first test results, a final test result is obtained for indicating that the final storage controllability of the telescopic device is unacceptable, wherein the second preset ratio may be 100%.
In addition, it should be noted that during the manufacturing process of the expansion device, after the expansion controllability of the expansion device is tested, and the test result indicates that the expansion controllability of the expansion device is not qualified, maintenance personnel is often required to overhaul the expansion device, so as to improve the expansion controllability of the expansion device. In general, the reason for the disqualification of the telescopic controllability may be that the signal receiving unit of the telescopic device cannot normally receive the control command (the unfolding control command or the storage control command), but may also be that an abnormality occurs in an electromechanical control portion of the telescopic device, for example, when the telescopic device is a projection curtain, an abnormality may also occur in a control motor or a roller mechanism of the projection curtain.
When the reason for the failure of the telescoping controllability is that an abnormality occurs in the electromechanical control portion of the telescoping device, the situation is often complicated. Taking a control instruction as an example of a unfolding control instruction, after the electronic device responds to the unfolding test operation to generate the unfolding control instruction and sends the unfolding control instruction to the telescopic device, the telescopic device responds to the unfolding control instruction to execute the unfolding action, but due to the abnormality of the electromechanical control part, the unfolded telescopic device may not be completely unfolded and offset occurs, and likewise taking the control instruction as an example of a storage control instruction, the electronic device responds to the storage test operation to generate the storage control instruction and sends the storage control instruction to the telescopic device, and then the telescopic device responds to the storage control instruction to execute the storage action, but due to the abnormality of the electromechanical control part, the stored telescopic device may not be completely stored and offset occurs. Currently, in order to cope with such a situation, it is common for a tester to observe and manually record the direction of displacement of the telescopic device, and provide the direction of displacement to a maintenance worker, who then performs targeted detection and maintenance on the telescopic device according to the direction of deployment and displacement of the telescopic device. This method is complicated in process and depends excessively on manual operations, and therefore, the manufacturing efficiency of the telescopic device is liable to be low.
Based on the above description, in order to improve the production and manufacturing efficiency of the expansion device, in the test method provided by the embodiment of the present application, if the performance test instruction is an expansion test instruction, when the first judgment result represents 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 unqualified, 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 present application, the overall 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, the size is 50CM by 50CM, one surface is placed opposite to the shooting surface of the shooting device, and the object-image size ratio is 12.5, the front surface area of the shooting device opposite to the reference object is 50CM by 50 cm=2500 CM 2 The object-to-image size ratio is 12.5, and the overall pixel area of the reference object obtained by the image capturing device is 4cm×4cm=16cm 2 . Thus, when the current pixel area of the object image in the first scene image is less than 16CM 2 When it is determined that the object image is in the first field The current pixel area in the scene is smaller than the overall pixel area of the reference, which is typically due to anomalies in the electromechanical control part, the telescopic device cannot be fully deployed and an offset occurs.
In step S612, when the current pixel area of the object image in the first scene image is smaller than the entire pixel area of the reference object, the pixel area change condition of the object image in the first scene image is analyzed to determine the unfolding 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, the expansion and deviation direction of the telescopic device 300 is described as the second direction, and referring to fig. 8, the corresponding manner is that when the pixel area of the object image in the first scene image changes to: 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 described as the first direction, and fig. 9 may be specifically referred to.
After determining the expansion and offset direction of the telescopic device through step S611 and step S612, a serviceman can perform targeted detection and maintenance on the telescopic device according to the expansion and offset direction of the telescopic device, thereby improving the production and manufacturing efficiency of the telescopic device.
Similarly, in order to improve the production and manufacturing efficiency of the expansion device, in the test method provided by the embodiment of the application, if the performance test instruction is a storage test instruction, when the first judgment result represents that the object image exists in the first scene image, after determining that the first test result of the expansion device is qualified in storage controllability, step S621 and step S622 may further be included.
In step S621, 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.
Also, 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 cubeWhen the size is 50CM by 50CM, one surface of the lens is opposite to the shooting surface of the image pickup device, and the object-to-image size ratio is 12.5, the front surface area of the image pickup device opposite to the reference object is 50CM by 50 cm=2500 CM 2 The object-to-image size ratio is 12.5, and the overall pixel area of the reference object obtained by the image capturing device is 4cm×4cm=16cm 2 . Thus, when the current pixel area of the object image in the first scene image is less than 16CM 2 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 situation is usually that the telescopic device cannot be completely accommodated due to the abnormality of the electromechanical control part, and the deviation occurs.
In step S622, when the current pixel area of the object image in the first scene image is smaller than the entire pixel area of the reference object, the pixel area change condition of the object image in the first scene image is analyzed to determine the storage 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, the storage offset direction of the telescopic device 300 is described as the second direction, and referring to fig. 10, the corresponding relation is that the pixel area of the object image in the first scene image changes as follows: when the pixel area of the object image in the first scene image gradually decreases from the first direction to the second direction, the storage offset direction of the telescopic device 300 is described as the first direction, and fig. 11 may be specifically referred to.
After determining the storage offset direction of the telescopic device through step S621 and step S622, the maintenance personnel can perform targeted detection maintenance on the telescopic device according to the storage offset direction of the telescopic device, thereby improving the production and manufacturing efficiency of the telescopic device.
In order to further improve the automation degree of the expansion controllability test of the expansion device, in the test method provided by the embodiment of the application, if the performance test instruction is an expansion test instruction, when the first judgment result represents that the object image does not exist in the first scene image, after determining that the first test result of the expansion device is qualified in expansion controllability, the test method further comprises the steps of S700, S800, S900 and S1000.
In step S700, a storage control command is generated, and after the expansion device responds to the storage control command and performs a storage operation, a storage test command is generated.
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 unfolding controllability, the electronic equipment can automatically generate the storage control instruction and send the storage control instruction 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 equipment generates the storage test instruction. Also, it should be noted that in the embodiment of the present application, whether the telescopic device completes the storage operation may be determined according to a preset storage operation execution duration, for example, when the electronic device sends a storage control instruction to the telescopic device, the timing is synchronized, and when the timing duration reaches the storage operation execution duration, the telescopic device is considered to complete the storage operation.
Also, in the embodiment of the present application, after the telescopic device responds to the storage control command and performs the storage operation, the telescopic device may be successfully stored, in which case the storage controllability of the telescopic device is acceptable, but may not be successfully stored, in which case the storage controllability of the telescopic device is not acceptable.
In step S800, in response to the storage test instruction, the image capturing device is controlled to acquire a second scene image of the target scene.
In step S900, it is determined whether an object image of the reference object exists in the second scene image, so as to obtain a second determination result.
For the description of step S900, reference may be made specifically to the above detailed description of step S200, that is, step S900 has the same inventive concept as step S200, which is not described in detail in the embodiment of the present application.
Step S1000, obtaining a second test result of the telescopic device according to the second judgment result to represent the telescopic controllability of the telescopic device.
In the embodiment of the present application, step S1000 may specifically be: and when the second judging result indicates that the object image does not exist in the second scene image, obtaining a second testing result for determining the telescopic device as unqualified in storage controllability.
Similarly, in order to improve the production and manufacturing efficiency of the expansion device, based on the same inventive concept as that of step S621 and step S622, in the test method provided by the embodiment of the present 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 expansion device is qualified for the storage controllability, step S1100 and step S1200 may further be included.
In step S1100, it is determined 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 is specifically made to the above detailed description of step S621, that is, step S1100 has the same inventive concept as step S621, which is not described in detail in the embodiment of the present application.
In step S1200, when the current pixel area of the object image in the second scene image is smaller than the entire pixel area of the reference object, the change condition of the pixel area of the object image in the second scene image is analyzed, and the storage offset direction of the telescopic device is determined.
For the description of step S1200, reference is specifically made to the above detailed description of step S622, that is, step S1200 has the same inventive concept as step S622, which is not described in detail in the embodiment of the present application.
After determining the storage offset direction of the telescopic device through step S1100 and step S1200, a serviceman can perform targeted detection and maintenance on the telescopic device according to the storage offset direction of the telescopic device, thereby improving the production and manufacturing efficiency of the telescopic device.
Based on the same inventive concept as the above-mentioned test method, the embodiment of the application further provides a test device 500 applied to the electronic equipment. Referring to fig. 12, a test apparatus 500 according to an embodiment of the present application includes a first image obtaining module 510, a first judging module 520, and a first result obtaining module 530.
The first image obtaining module 510 is configured to control the image capturing device to obtain a first scene image of a target scene in response to the performance test instruction, where the target scene includes a telescopic device and a reference object, and a deployment position of the telescopic device is located between the image capturing device and the reference object.
For a description of the first image acquisition module 510, reference is made in particular to the detailed description of step S100 in the above-described related embodiments of the test method, i.e. step S100 may be performed by the first image acquisition 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.
For a description of the first determination module 520, reference is made specifically to the detailed description of step S200 in the above-described related embodiments of the test method, that is, step S200 may be performed by the first determination module 520.
The first result obtaining module 530 is configured to obtain a first test result of the expansion device according to the first determination result, and is configured to characterize expansion controllability of the expansion device.
If the performance test instruction is a deployment test instruction, the first result obtaining module 530 is specifically configured to determine that the first test result of the telescoping device is not qualified in deployment controllability when the first determination result indicates that the object image exists in the first scene image, and to determine that the first test result of the telescoping device is qualified in deployment 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 telescoping device is qualified in storage controllability when the first determination result indicates that the object image exists in the first scene image, and to obtain the first test result of the telescoping device is determined that the storage controllability is not qualified when the first determination result indicates that the object image does not exist in the first scene image.
For a description of the first result acquisition module 530, reference is made specifically to the detailed description of step S300 in the above-described related embodiments of the test method, that is, step S300 may be performed by the first result acquisition module 530.
Optionally, in the embodiment of the present application, if the performance test instruction is an unfolding test instruction, the test device 500 further includes a second judging module and a first offset direction determining module.
When the first judging result represents that an object image exists in the first scene image, after the first testing result of the telescopic device is determined to be unqualified in unfolding controllability, the second judging 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.
For a description of the second determination module, reference is specifically made to the detailed description of step S611 in the above-described related embodiments of the test method, that is, step S611 may be performed by the second determination module.
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 unfolding 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.
For a description of the first offset direction determination module, reference is specifically made to the detailed description of step S612 in the above-described test method related embodiments, that is, step S612 may be performed by the first offset direction determination module.
Optionally, in the embodiment of the present application, if the performance test instruction is a storage test instruction, the test apparatus 500 further includes a third determining module and a second offset direction determining module.
When the first judging result represents that an object image exists in the first scene image, after the first testing result of the telescopic device is determined to be qualified in storage controllability, the third judging 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.
For the description of the third judgment module, reference is made specifically to the detailed description of step S621 in the above-described related embodiments of the test method, that is, step S621 may be performed by the third judgment 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.
For a description of the second offset direction determination module reference is made in particular to the detailed description of step S622 in the above-described test method related embodiments, i.e. step S622 may be performed by the second offset direction determination module.
Optionally, in the embodiment of the present application, if the performance test instruction is an unfolding test instruction, the test device 500 further includes a first instruction generating module for generating an instruction, a second image obtaining module, a fourth judging module, and a second result obtaining module.
When the first judgment result represents that no object image exists in the first scene image, the first instruction generation module is used for generating a storage control instruction after determining that the first test result of the telescopic device is qualified in unfolding controllability, and generating a storage test instruction after the telescopic device responds to the storage control instruction and executes storage action.
For a description of the first instruction generation module, reference is made in particular to the detailed description of step S700 in the above-described test method related embodiments, i.e. step S700 may be performed by the first instruction generation module.
And the second image acquisition module is used for responding to the storage test instruction and controlling the image pickup device to acquire a second scene image of the target scene.
For a description of the second image acquisition module reference is made in particular to the detailed description of step S800 in the above-described test method related embodiments, i.e. step S800 may be performed by the second image acquisition module.
And the fourth judging module is used for judging whether the object image of the reference object exists in the second scene image or not so as to obtain a second judging result.
For a description of the fourth determination module, reference is made specifically to the detailed description of step S900 in the above-described related embodiments of the test method, that is, step S900 may be performed by the fourth determination 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 the second test result of the telescopic device is qualified in storage controllability when the second judgment result represents that the object image exists in the second scene image, and obtain that the second test result of the telescopic device is unqualified in storage controllability when the second judgment result indicates that the object image does not exist in the second scene image.
For a description of the second result acquisition module reference is made in particular to the detailed description of step S1000 in the above-described test method related embodiments, i.e. step S1000 may be performed by the second result acquisition module.
Optionally, in an embodiment of the present application, the testing device 500 further includes a fourth determining module and a third offset direction determining module.
And when the second judging result represents that the object image exists in the second scene image, determining that the second testing result of the telescopic device is qualified in storage controllability, and 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 or not by the fourth judging module.
For a description of the fourth determination module, reference is made specifically to the detailed description of step S1100 in the above-described related embodiments of the test method, that is, step S1100 may be performed by the fourth determination 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.
For a description of the third offset direction determination module, reference is specifically made to the detailed description of step S1200 in the above-described test method related embodiments, that is, step S1200 may be performed by the third offset direction determination module.
Optionally, in an embodiment of the present application, the test apparatus 500 further includes a second instruction generating module and a third instruction generating module.
And if the performance test instruction is a unfolding test instruction, the second instruction generating module is used for responding to unfolding test operation before the image pickup device is controlled to acquire a first scene image of the target scene in response to the performance test instruction, generating an unfolding control instruction, and generating the unfolding test instruction after the expansion device responds to the unfolding control instruction and executes unfolding action.
For a description of the second instruction generation module reference is made in particular to the detailed description of step S001 in the above-described test method related embodiments, i.e. step S001 may be performed by the second instruction generation module.
And if the performance test instruction is a storage test instruction, responding to the performance test instruction, and before controlling the image pickup device to acquire a 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.
For a description of the third instruction generation module, reference is specifically made to the detailed description of step S002 in the above-described test method related embodiment, that is, step S002 may be executed by the third instruction generation module.
Optionally, in the embodiment of the present 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 acquire a plurality of target area images.
For the description of the image segmentation unit, reference is specifically made to the detailed description of step S210 in the above-described related embodiments of the test method, that is, step S210 may be performed by the image segmentation unit.
And the characteristic judging unit is used for judging whether target area images with consistent color characteristics with the target characteristics exist in the plurality of target area images.
For the description of the feature judgment unit, reference is specifically made to the detailed description of step S220 in the above-described test method related embodiment, that is, step S220 may be performed by the feature judgment unit.
And a result acquisition unit for acquiring a first judgment result to characterize an object image of which reference object exists in the first scene image when the target area image with the color characteristic consistent with the target characteristic exists in the plurality of target area images.
For the description of the result acquisition unit, reference is specifically made to the detailed description of step S230 in the above-described test method related embodiment, that is, step S230 may be performed by the result acquisition unit.
Optionally, in an embodiment of the present application, the testing device 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 quantity.
For a description of the third result acquisition module, reference is specifically made to the detailed description of step S400 in the above-described related embodiments of the test method, that is, step S400 may be performed by the third result acquisition 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 controllable performance of the telescopic device.
For a description of the fourth result acquisition module, reference is specifically made to the detailed description of step S500 in the above-described related embodiments of the test method, that is, step S500 may be performed by the fourth result acquisition module.
In addition, the embodiment of the present application further provides a storage medium, on which a computer program is stored, and when the computer program is executed, the test method provided in the embodiment of the method is implemented, specifically, the embodiment of the method may be referred to above, and details of this embodiment of the present application will not be described herein.
In summary, according to the test method, the 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 image capturing 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, the testing method provided by the embodiment of the application has the advantages that the testing process is simple, the manual operation is not needed, and therefore, the degree of automation is higher, compared with the method for testing the telescopic controllability of the telescopic device by manual operation, for example, an electric control switch is manually operated, and then the telescopic execution result of the telescopic device is observed and manually recorded.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The apparatus embodiments described above are merely illustrative, for example, of the flowcharts and block diagrams in the figures that 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 a single part, or each module may exist alone, or two or more modules may be integrated to form a single 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 this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, etc.
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 variations will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.
Moreover, it should be noted that relational terms such as "first," "second," "third," and the like are 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. Moreover, 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 (9)

1. A method for testing the telescoping controllability of a telescoping device, 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 unfolding 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 so as to obtain a first judging result;
The determining whether the object image of the reference object exists in the first scene image to obtain a first determination result includes: image segmentation is carried out on the first scene image, and a plurality of target area images are obtained; judging whether target area images with consistent color characteristics with target characteristics exist in the target area images or not to obtain a first judging result;
according to the first judging result, a first testing result of the telescopic device is obtained and used for representing telescopic controllability of the telescopic device;
the performance test instruction is an unfolding test instruction, and the obtaining, according to the first determination result, a first test result of the expansion device to characterize expansion controllability of the expansion device includes: when the first judging result represents that the object image exists in the first scene image, determining that a first testing result of the telescopic device is unqualified in unfolding controllability; when the first judging result represents that the object image does not exist in the first scene image, determining that a first testing result of the telescopic device is qualified in unfolding controllability;
or the performance test instruction is a storage test instruction, the first judgment result obtains a first test result of the expansion device according to the first judgment result, so as to represent expansion controllability of the expansion device, and the performance test instruction comprises:
When the first judging result represents that the object image exists in the first scene image, determining that a first testing result of the telescopic device is qualified in storage controllability;
and when the first judging result indicates that the object image does not exist in the first scene image, obtaining a first test result for determining the telescopic device to be unqualified in storage controllability.
2. The test method according to claim 1, wherein if the performance test instruction is a deployment test instruction, after determining that the first test result of the telescopic device is that deployment controllability is acceptable when the first determination result indicates that the object image does not exist in the first scene image, the test method further comprises:
generating a storage control instruction, and generating a storage test instruction after the telescopic device responds to the storage control instruction and executes storage operation;
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 so as to obtain a second judging 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.
3. The method according to claim 2, wherein obtaining a second test result of the telescopic device according to the second determination result to characterize telescopic controllability of the telescopic device includes:
when the second judging result represents that the object image exists in the second scene image, determining that a second testing result of the telescopic device is qualified in storage controllability;
and when the second judging result indicates that the object image does not exist in the second scene image, obtaining a second testing result for determining the telescopic device to be unqualified in storage controllability.
4. The test method according to claim 1, wherein if the performance test instruction is a development test instruction, the test method further comprises, before the response performance test instruction controls the image capturing device to capture the first scene image of the target scene:
responding to a deployment test operation, generating a deployment control instruction, and generating the deployment test instruction after the expansion device responds to the deployment control instruction and executes a deployment action;
if the performance test instruction is the storage test instruction, the response performance test instruction controls the camera device to acquire the scene image of the target scene, and the test method further comprises:
And responding to the storage test operation, generating a storage control instruction, and generating the storage test instruction after the telescopic device responds to the storage control instruction and executes storage operation.
5. The test method according to claim 1, wherein the determining whether there is a target area image whose color characteristics coincide with target characteristics among the plurality of target area images to obtain the first determination result includes:
when a target area image with the color characteristics consistent with the target characteristics exists in the target area images, a first judging result is obtained to represent an object image of the reference object in the first scene image;
and when the target area images with the consistent color characteristics with the target characteristics do not exist in the target area images, obtaining a first judging result to represent the object image of the reference object not existing in the first scene image.
6. The method according to claim 1, wherein after obtaining a first test result of the telescopic device according to the first determination result to characterize telescopic controllability of the telescopic device, the method further comprises:
Obtaining a first test result of the target number;
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 controllable performance of the telescopic device.
7. A test device for telescopic controllability of a telescopic device, comprising:
the first image acquisition module is used for 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 unfolding position of the telescopic device is positioned between the camera device and the reference object; wherein the performance test instruction is a unfolding test instruction or a storage test instruction;
the first judging module is used for judging whether the object image of the reference object exists in the first scene image or not so as to obtain a first judging result;
the first judging module is used for carrying out image segmentation on the first scene image to obtain a plurality of target area images; judging whether target area images with consistent color characteristics with target characteristics exist in the target area images or not to obtain a first judging result; or when the first judging result represents that the object image exists in the first scene image, determining that the first testing result of the telescopic device is qualified in storage controllability; when the first judging result indicates that the object image does not exist in the first scene image, a first test result for determining the telescopic device is unqualified in storage controllability is obtained;
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 telescopic controllability of the telescopic device;
the first result acquisition module determines that a first test result of the expansion device is unqualified in expansion controllability when the first judgment result represents that the object image exists in the first scene image; and when the first judging result represents that the object image does not exist in the first scene image, determining that the first testing result of the telescopic device is qualified in unfolding controllability.
8. An electronic device comprising a processor and a memory, the memory having stored thereon a computer program, the processor being configured to execute the computer program to implement the test method of any of claims 1-6.
9. A storage medium having a computer program stored thereon, wherein the computer program, when executed, implements the test method of any one of claims 1 to 6.
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 CN111292316A (en) 2020-06-16
CN111292316B true 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 (11)

* 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
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
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5625839B2 (en) * 2010-12-03 2014-11-19 富士通株式会社 Projector device, position detection program, and projector system
JP6153050B1 (en) * 2016-06-08 2017-06-28 パナソニックIpマネジメント株式会社 Projection system

Patent Citations (11)

* 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
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
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
高新波,雷云,姬红兵.一种复杂背景下模板检测与定位的新方法.系统工程与电子技术.2004,(01),第87-90页. *

Also Published As

Publication number Publication date
CN111292316A (en) 2020-06-16

Similar Documents

Publication Publication Date Title
US8237853B2 (en) Image sensing apparatus and control method therefor
EP4037313A1 (en) White balance synchronization method and apparatus, and terminal device
CN108288044B (en) Electronic device, face recognition method and related product
US8922669B2 (en) Image processing apparatus having a display unit and image processing program for controlling the display unit
JP4158343B2 (en) Program for identifying red-eye area in image, image processing apparatus, and recording medium
JP2014053855A (en) Image processing device and method, and program
US7124053B2 (en) Image processing method and apparatus therefor
EP3301906A1 (en) Method for processing image and electronic device supporting the same
US20210068742A1 (en) Image processing system, imaging apparatus, electronic device, methods of controlling the system, and the apparatuses, and storage medium
US20020080251A1 (en) Digital imaging device, image processing device, digital imaging method, and image processing program
CN103945109A (en) Image pickup apparatus, remote control apparatus, and methods of controlling image pickup apparatus and remote control apparatus
CN110769225B (en) Projection area obtaining method based on curtain and projection device
CN111292316B (en) Test method, test device, electronic equipment and storage medium
CN114520895B (en) Projection control method, device, projection optical machine and readable storage medium
CN108289170A (en) The camera arrangement and method of metering region can be detected
CN112313945B (en) Image correction device, imaging device, image correction method, and storage medium
CN113747149B (en) Abnormality detection method and device for optical filter, electronic device and storage medium
US11727716B2 (en) Information processing apparatus, imaging apparatus, which determines exposure amount with respect to face detection and human body detection
CN111602390A (en) Terminal white balance processing method, terminal and computer readable storage medium
JP2015233202A (en) Image processing apparatus, image processing method, and program
JP6851551B2 (en) Imaging device, imaging method, and program
US11822974B2 (en) Information processing apparatus, control method of information processing apparatus, and recording medium
KR102384940B1 (en) Apparatus for detecting malfunction of cameras and method thereof
CN111031257A (en) Exposure control method, terminal and storage medium
US11188743B2 (en) Image processing apparatus and image processing method

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